Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 1.389 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +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. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10 | |
| 11 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 12 | as_expr=expr |
| 13 | else |
| 14 | as_expr=false |
| 15 | fi |
| 16 | |
| 17 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 30 | # NLS nuisances. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 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; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 62 | |
| 63 | |
| 64 | # Name of the executable. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 65 | as_me=`(basename "$0") 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 89 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 230 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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` |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +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 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 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 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 953 | generated by GNU Autoconf 2.53. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 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 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1065 | sed "/^$/d" confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1231 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1406 | |
| 1407 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 1408 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 1409 | # just to get things to compile and link. Users are free to override OPT |
| 1410 | # when running configure or make. The build should not break if they do. |
| 1411 | # BASECFLAGS should generally not be messed with, however. |
| 1412 | |
| 1413 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 1414 | # on that fiddles with OPT and BASECFLAGS? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1415 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1416 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1417 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1418 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1419 | if test "${with_gcc+set}" = set; then |
| 1420 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1421 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1422 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1423 | no) CC=cc |
| 1424 | without_gcc=yes;; |
| 1425 | yes) CC=gcc |
| 1426 | without_gcc=no;; |
| 1427 | *) CC=$withval |
| 1428 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1429 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1430 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1431 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1432 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1433 | AIX*) CC=cc_r |
| 1434 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1435 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1436 | case $BE_HOST_CPU in |
| 1437 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1438 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1439 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1440 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 1441 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1442 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1443 | ;; |
| 1444 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1445 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1446 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1447 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1448 | ;; |
| 1449 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1450 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1451 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1452 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1453 | ;; |
| 1454 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1455 | AR="\$(srcdir)/Modules/ar_beos" |
| 1456 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1457 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1458 | Monterey*) |
| 1459 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1460 | without_gcc=;; |
| 1461 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1462 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1463 | fi; |
| 1464 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1465 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1466 | |
| 1467 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1468 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1469 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1470 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1471 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1472 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1473 | # Check whether --with-cxx or --without-cxx was given. |
| 1474 | if test "${with_cxx+set}" = set; then |
| 1475 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1476 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1477 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1478 | case $withval in |
| 1479 | no) CXX= |
| 1480 | with_cxx=no;; |
| 1481 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1482 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1483 | with_cxx=$withval;; |
| 1484 | esac |
| 1485 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1486 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1487 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1488 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1489 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1490 | fi; |
| 1491 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1492 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1493 | |
| 1494 | if test "$with_cxx" = "yes" |
| 1495 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1496 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1497 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1498 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1499 | fi |
| 1500 | |
| 1501 | |
| 1502 | |
| 1503 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1504 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1505 | then |
| 1506 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1507 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1508 | # 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] | 1509 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1510 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1511 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1512 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1514 | else |
| 1515 | if test -n "$CXX"; then |
| 1516 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1517 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1519 | for as_dir in $PATH |
| 1520 | do |
| 1521 | IFS=$as_save_IFS |
| 1522 | test -z "$as_dir" && as_dir=. |
| 1523 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1524 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1525 | ac_cv_prog_CXX="$ac_prog" |
| 1526 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1527 | break 2 |
| 1528 | fi |
| 1529 | done |
| 1530 | done |
| 1531 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1532 | fi |
| 1533 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1534 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1535 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1536 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1537 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1538 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1539 | echo "$as_me:$LINENO: result: no" >&5 |
| 1540 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1541 | fi |
| 1542 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1543 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1544 | done |
| 1545 | test -n "$CXX" || CXX="notfound" |
| 1546 | |
| 1547 | if test "$CXX" = "notfound" |
| 1548 | then |
| 1549 | CXX= |
| 1550 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1551 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1552 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1553 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1554 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1555 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1556 | cat >conftest.$ac_ext <<_ACEOF |
| 1557 | #line $LINENO "configure" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1558 | #include "confdefs.h" |
| 1559 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1560 | #ifdef F77_DUMMY_MAIN |
| 1561 | # ifdef __cplusplus |
| 1562 | extern "C" |
| 1563 | # endif |
| 1564 | int F77_DUMMY_MAIN() { return 1; } |
| 1565 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1566 | int |
| 1567 | main () |
| 1568 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1569 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1570 | ; |
| 1571 | return 0; |
| 1572 | } |
| 1573 | _ACEOF |
| 1574 | ac_clean_files_save=$ac_clean_files |
| 1575 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1576 | # Try to create an executable without -o first, disregard a.out. |
| 1577 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1578 | # of exeext. |
| 1579 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 1580 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 1581 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1582 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1583 | (eval $ac_link_default) 2>&5 |
| 1584 | ac_status=$? |
| 1585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1586 | (exit $ac_status); }; then |
| 1587 | # Find the output, starting from the most likely. This scheme is |
| 1588 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1589 | # resort. |
| 1590 | |
| 1591 | # Be careful to initialize this variable, since it used to be cached. |
| 1592 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1593 | ac_cv_exeext= |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1594 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 1595 | ls a.out conftest 2>/dev/null; |
| 1596 | ls a.* conftest.* 2>/dev/null`; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1597 | case $ac_file in |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1598 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1599 | a.out ) # We found the default executable, but exeext='' is most |
| 1600 | # certainly right. |
| 1601 | break;; |
| 1602 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1603 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 1604 | export ac_cv_exeext |
| 1605 | break;; |
| 1606 | * ) break;; |
| 1607 | esac |
| 1608 | done |
| 1609 | else |
| 1610 | echo "$as_me: failed program was:" >&5 |
| 1611 | cat conftest.$ac_ext >&5 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1612 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5 |
| 1613 | echo "$as_me: error: C++ compiler cannot create executables" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1614 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1615 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1616 | |
| 1617 | ac_exeext=$ac_cv_exeext |
| 1618 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1619 | echo "${ECHO_T}$ac_file" >&6 |
| 1620 | |
| 1621 | # Check the compiler produces executables we can run. If not, either |
| 1622 | # the compiler is broken, or we cross compile. |
| 1623 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1624 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1625 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1626 | # If not cross compiling, check that we can run a simple program. |
| 1627 | if test "$cross_compiling" != yes; then |
| 1628 | if { ac_try='./$ac_file' |
| 1629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1630 | (eval $ac_try) 2>&5 |
| 1631 | ac_status=$? |
| 1632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1633 | (exit $ac_status); }; }; then |
| 1634 | cross_compiling=no |
| 1635 | else |
| 1636 | if test "$cross_compiling" = maybe; then |
| 1637 | cross_compiling=yes |
| 1638 | else |
| 1639 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
| 1640 | If you meant to cross compile, use \`--host'." >&5 |
| 1641 | echo "$as_me: error: cannot run C++ compiled programs. |
| 1642 | If you meant to cross compile, use \`--host'." >&2;} |
| 1643 | { (exit 1); exit 1; }; } |
| 1644 | fi |
| 1645 | fi |
| 1646 | fi |
| 1647 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1648 | echo "${ECHO_T}yes" >&6 |
| 1649 | |
| 1650 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 1651 | ac_clean_files=$ac_clean_files_save |
| 1652 | # Check the compiler produces executables we can run. If not, either |
| 1653 | # the compiler is broken, or we cross compile. |
| 1654 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1655 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1656 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1657 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1658 | |
| 1659 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1660 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1662 | (eval $ac_link) 2>&5 |
| 1663 | ac_status=$? |
| 1664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1665 | (exit $ac_status); }; then |
| 1666 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1667 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1668 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1669 | # `rm'. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1670 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1671 | case $ac_file in |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1672 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1673 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1674 | export ac_cv_exeext |
| 1675 | break;; |
| 1676 | * ) break;; |
| 1677 | esac |
| 1678 | done |
| 1679 | else |
| 1680 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 1681 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 1682 | { (exit 1); exit 1; }; } |
| 1683 | fi |
| 1684 | |
| 1685 | rm -f conftest$ac_cv_exeext |
| 1686 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1687 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1688 | |
| 1689 | rm -f conftest.$ac_ext |
| 1690 | EXEEXT=$ac_cv_exeext |
| 1691 | ac_exeext=$EXEEXT |
| 1692 | |
| 1693 | ac_ext=c |
| 1694 | ac_cpp='$CPP $CPPFLAGS' |
| 1695 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1696 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1697 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1698 | |
| 1699 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1700 | |
| 1701 | fi |
| 1702 | fi |
| 1703 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1704 | # If the user switches compilers, we can't believe the cache |
| 1705 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1706 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1707 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1708 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1709 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1710 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1711 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1712 | fi |
| 1713 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1714 | ac_ext=c |
| 1715 | ac_cpp='$CPP $CPPFLAGS' |
| 1716 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1717 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1718 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1719 | if test -n "$ac_tool_prefix"; then |
| 1720 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1721 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1722 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1723 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1724 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1726 | else |
| 1727 | if test -n "$CC"; then |
| 1728 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1729 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1731 | for as_dir in $PATH |
| 1732 | do |
| 1733 | IFS=$as_save_IFS |
| 1734 | test -z "$as_dir" && as_dir=. |
| 1735 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1736 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1737 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1738 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1739 | break 2 |
| 1740 | fi |
| 1741 | done |
| 1742 | done |
| 1743 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1744 | fi |
| 1745 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1746 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1747 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1748 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1749 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1750 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1751 | echo "$as_me:$LINENO: result: no" >&5 |
| 1752 | echo "${ECHO_T}no" >&6 |
| 1753 | fi |
| 1754 | |
| 1755 | fi |
| 1756 | if test -z "$ac_cv_prog_CC"; then |
| 1757 | ac_ct_CC=$CC |
| 1758 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1759 | set dummy gcc; ac_word=$2 |
| 1760 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1761 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1762 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1764 | else |
| 1765 | if test -n "$ac_ct_CC"; then |
| 1766 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1767 | else |
| 1768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1769 | for as_dir in $PATH |
| 1770 | do |
| 1771 | IFS=$as_save_IFS |
| 1772 | test -z "$as_dir" && as_dir=. |
| 1773 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1774 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1775 | ac_cv_prog_ac_ct_CC="gcc" |
| 1776 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1777 | break 2 |
| 1778 | fi |
| 1779 | done |
| 1780 | done |
| 1781 | |
| 1782 | fi |
| 1783 | fi |
| 1784 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1785 | if test -n "$ac_ct_CC"; then |
| 1786 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1787 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1788 | else |
| 1789 | echo "$as_me:$LINENO: result: no" >&5 |
| 1790 | echo "${ECHO_T}no" >&6 |
| 1791 | fi |
| 1792 | |
| 1793 | CC=$ac_ct_CC |
| 1794 | else |
| 1795 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1796 | fi |
| 1797 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1798 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1799 | if test -n "$ac_tool_prefix"; then |
| 1800 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1801 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1802 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1803 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1804 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1806 | else |
| 1807 | if test -n "$CC"; then |
| 1808 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1809 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1811 | for as_dir in $PATH |
| 1812 | do |
| 1813 | IFS=$as_save_IFS |
| 1814 | test -z "$as_dir" && as_dir=. |
| 1815 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1816 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1817 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1818 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1819 | break 2 |
| 1820 | fi |
| 1821 | done |
| 1822 | done |
| 1823 | |
| 1824 | fi |
| 1825 | fi |
| 1826 | CC=$ac_cv_prog_CC |
| 1827 | if test -n "$CC"; then |
| 1828 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1829 | echo "${ECHO_T}$CC" >&6 |
| 1830 | else |
| 1831 | echo "$as_me:$LINENO: result: no" >&5 |
| 1832 | echo "${ECHO_T}no" >&6 |
| 1833 | fi |
| 1834 | |
| 1835 | fi |
| 1836 | if test -z "$ac_cv_prog_CC"; then |
| 1837 | ac_ct_CC=$CC |
| 1838 | # Extract the first word of "cc", so it can be a program name with args. |
| 1839 | set dummy cc; ac_word=$2 |
| 1840 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1841 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1842 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1844 | else |
| 1845 | if test -n "$ac_ct_CC"; then |
| 1846 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1847 | else |
| 1848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1849 | for as_dir in $PATH |
| 1850 | do |
| 1851 | IFS=$as_save_IFS |
| 1852 | test -z "$as_dir" && as_dir=. |
| 1853 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1854 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1855 | ac_cv_prog_ac_ct_CC="cc" |
| 1856 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1857 | break 2 |
| 1858 | fi |
| 1859 | done |
| 1860 | done |
| 1861 | |
| 1862 | fi |
| 1863 | fi |
| 1864 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1865 | if test -n "$ac_ct_CC"; then |
| 1866 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1867 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1868 | else |
| 1869 | echo "$as_me:$LINENO: result: no" >&5 |
| 1870 | echo "${ECHO_T}no" >&6 |
| 1871 | fi |
| 1872 | |
| 1873 | CC=$ac_ct_CC |
| 1874 | else |
| 1875 | CC="$ac_cv_prog_CC" |
| 1876 | fi |
| 1877 | |
| 1878 | fi |
| 1879 | if test -z "$CC"; then |
| 1880 | # Extract the first word of "cc", so it can be a program name with args. |
| 1881 | set dummy cc; ac_word=$2 |
| 1882 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1883 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1884 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1886 | else |
| 1887 | if test -n "$CC"; then |
| 1888 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1889 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1890 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1892 | for as_dir in $PATH |
| 1893 | do |
| 1894 | IFS=$as_save_IFS |
| 1895 | test -z "$as_dir" && as_dir=. |
| 1896 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1897 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1898 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1899 | ac_prog_rejected=yes |
| 1900 | continue |
| 1901 | fi |
| 1902 | ac_cv_prog_CC="cc" |
| 1903 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1904 | break 2 |
| 1905 | fi |
| 1906 | done |
| 1907 | done |
| 1908 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1909 | if test $ac_prog_rejected = yes; then |
| 1910 | # We found a bogon in the path, so make sure we never use it. |
| 1911 | set dummy $ac_cv_prog_CC |
| 1912 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1913 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1914 | # We chose a different compiler from the bogus one. |
| 1915 | # However, it has the same basename, so the bogon will be chosen |
| 1916 | # first if we set CC to just the basename; use the full file name. |
| 1917 | shift |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1918 | set dummy "$as_dir/$ac_word" ${1+"$@"} |
| 1919 | shift |
| 1920 | ac_cv_prog_CC="$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1921 | fi |
| 1922 | fi |
| 1923 | fi |
| 1924 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1925 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1926 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1927 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1928 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1929 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1930 | echo "$as_me:$LINENO: result: no" >&5 |
| 1931 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1932 | fi |
| 1933 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1934 | fi |
| 1935 | if test -z "$CC"; then |
| 1936 | if test -n "$ac_tool_prefix"; then |
| 1937 | for ac_prog in cl |
| 1938 | do |
| 1939 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1940 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1941 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1942 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1943 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1945 | else |
| 1946 | if test -n "$CC"; then |
| 1947 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1948 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1950 | for as_dir in $PATH |
| 1951 | do |
| 1952 | IFS=$as_save_IFS |
| 1953 | test -z "$as_dir" && as_dir=. |
| 1954 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1955 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1956 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1957 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1958 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1959 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1960 | done |
| 1961 | done |
| 1962 | |
| 1963 | fi |
| 1964 | fi |
| 1965 | CC=$ac_cv_prog_CC |
| 1966 | if test -n "$CC"; then |
| 1967 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1968 | echo "${ECHO_T}$CC" >&6 |
| 1969 | else |
| 1970 | echo "$as_me:$LINENO: result: no" >&5 |
| 1971 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1972 | fi |
| 1973 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1974 | test -n "$CC" && break |
| 1975 | done |
| 1976 | fi |
| 1977 | if test -z "$CC"; then |
| 1978 | ac_ct_CC=$CC |
| 1979 | for ac_prog in cl |
| 1980 | do |
| 1981 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1982 | set dummy $ac_prog; ac_word=$2 |
| 1983 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1984 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1985 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1987 | else |
| 1988 | if test -n "$ac_ct_CC"; then |
| 1989 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1990 | else |
| 1991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1992 | for as_dir in $PATH |
| 1993 | do |
| 1994 | IFS=$as_save_IFS |
| 1995 | test -z "$as_dir" && as_dir=. |
| 1996 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1997 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1998 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1999 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2000 | break 2 |
| 2001 | fi |
| 2002 | done |
| 2003 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2004 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2005 | fi |
| 2006 | fi |
| 2007 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2008 | if test -n "$ac_ct_CC"; then |
| 2009 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2010 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2011 | else |
| 2012 | echo "$as_me:$LINENO: result: no" >&5 |
| 2013 | echo "${ECHO_T}no" >&6 |
| 2014 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2015 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2016 | test -n "$ac_ct_CC" && break |
| 2017 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2018 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2019 | CC=$ac_ct_CC |
| 2020 | fi |
| 2021 | |
| 2022 | fi |
| 2023 | |
| 2024 | |
| 2025 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
| 2026 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
| 2027 | { (exit 1); exit 1; }; } |
| 2028 | |
| 2029 | # Provide some information about the compiler. |
| 2030 | echo "$as_me:$LINENO:" \ |
| 2031 | "checking for C compiler version" >&5 |
| 2032 | ac_compiler=`set X $ac_compile; echo $2` |
| 2033 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2034 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2035 | ac_status=$? |
| 2036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2037 | (exit $ac_status); } |
| 2038 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2039 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2040 | ac_status=$? |
| 2041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2042 | (exit $ac_status); } |
| 2043 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2044 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2045 | ac_status=$? |
| 2046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2047 | (exit $ac_status); } |
| 2048 | |
| 2049 | cat >conftest.$ac_ext <<_ACEOF |
| 2050 | #line $LINENO "configure" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2051 | #include "confdefs.h" |
| 2052 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2053 | #ifdef F77_DUMMY_MAIN |
| 2054 | # ifdef __cplusplus |
| 2055 | extern "C" |
| 2056 | # endif |
| 2057 | int F77_DUMMY_MAIN() { return 1; } |
| 2058 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2059 | int |
| 2060 | main () |
| 2061 | { |
| 2062 | |
| 2063 | ; |
| 2064 | return 0; |
| 2065 | } |
| 2066 | _ACEOF |
| 2067 | ac_clean_files_save=$ac_clean_files |
| 2068 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 2069 | # Try to create an executable without -o first, disregard a.out. |
| 2070 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2071 | # of exeext. |
| 2072 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2073 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2074 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2075 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2076 | (eval $ac_link_default) 2>&5 |
| 2077 | ac_status=$? |
| 2078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2079 | (exit $ac_status); }; then |
| 2080 | # Find the output, starting from the most likely. This scheme is |
| 2081 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2082 | # resort. |
| 2083 | |
| 2084 | # Be careful to initialize this variable, since it used to be cached. |
| 2085 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2086 | ac_cv_exeext= |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2087 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 2088 | ls a.out conftest 2>/dev/null; |
| 2089 | ls a.* conftest.* 2>/dev/null`; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2090 | case $ac_file in |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2091 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2092 | a.out ) # We found the default executable, but exeext='' is most |
| 2093 | # certainly right. |
| 2094 | break;; |
| 2095 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2096 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 2097 | export ac_cv_exeext |
| 2098 | break;; |
| 2099 | * ) break;; |
| 2100 | esac |
| 2101 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2102 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2103 | echo "$as_me: failed program was:" >&5 |
| 2104 | cat conftest.$ac_ext >&5 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2105 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
| 2106 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2107 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2108 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2109 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2110 | ac_exeext=$ac_cv_exeext |
| 2111 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2112 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2113 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2114 | # Check the compiler produces executables we can run. If not, either |
| 2115 | # the compiler is broken, or we cross compile. |
| 2116 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2117 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2118 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2119 | # If not cross compiling, check that we can run a simple program. |
| 2120 | if test "$cross_compiling" != yes; then |
| 2121 | if { ac_try='./$ac_file' |
| 2122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2123 | (eval $ac_try) 2>&5 |
| 2124 | ac_status=$? |
| 2125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2126 | (exit $ac_status); }; }; then |
| 2127 | cross_compiling=no |
| 2128 | else |
| 2129 | if test "$cross_compiling" = maybe; then |
| 2130 | cross_compiling=yes |
| 2131 | else |
| 2132 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2133 | If you meant to cross compile, use \`--host'." >&5 |
| 2134 | echo "$as_me: error: cannot run C compiled programs. |
| 2135 | If you meant to cross compile, use \`--host'." >&2;} |
| 2136 | { (exit 1); exit 1; }; } |
| 2137 | fi |
| 2138 | fi |
| 2139 | fi |
| 2140 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2141 | echo "${ECHO_T}yes" >&6 |
| 2142 | |
| 2143 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 2144 | ac_clean_files=$ac_clean_files_save |
| 2145 | # Check the compiler produces executables we can run. If not, either |
| 2146 | # the compiler is broken, or we cross compile. |
| 2147 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2148 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2149 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2150 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2151 | |
| 2152 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2153 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2154 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2155 | (eval $ac_link) 2>&5 |
| 2156 | ac_status=$? |
| 2157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2158 | (exit $ac_status); }; then |
| 2159 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2160 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2161 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2162 | # `rm'. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2163 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2164 | case $ac_file in |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2165 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2166 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2167 | export ac_cv_exeext |
| 2168 | break;; |
| 2169 | * ) break;; |
| 2170 | esac |
| 2171 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2172 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2173 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 2174 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 2175 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2176 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2177 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2178 | rm -f conftest$ac_cv_exeext |
| 2179 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2180 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2181 | |
| 2182 | rm -f conftest.$ac_ext |
| 2183 | EXEEXT=$ac_cv_exeext |
| 2184 | ac_exeext=$EXEEXT |
| 2185 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2186 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2187 | if test "${ac_cv_objext+set}" = set; then |
| 2188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2189 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2190 | cat >conftest.$ac_ext <<_ACEOF |
| 2191 | #line $LINENO "configure" |
| 2192 | #include "confdefs.h" |
| 2193 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2194 | #ifdef F77_DUMMY_MAIN |
| 2195 | # ifdef __cplusplus |
| 2196 | extern "C" |
| 2197 | # endif |
| 2198 | int F77_DUMMY_MAIN() { return 1; } |
| 2199 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2200 | int |
| 2201 | main () |
| 2202 | { |
| 2203 | |
| 2204 | ; |
| 2205 | return 0; |
| 2206 | } |
| 2207 | _ACEOF |
| 2208 | rm -f conftest.o conftest.obj |
| 2209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2210 | (eval $ac_compile) 2>&5 |
| 2211 | ac_status=$? |
| 2212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2213 | (exit $ac_status); }; then |
| 2214 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2215 | case $ac_file in |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2216 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2217 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2218 | break;; |
| 2219 | esac |
| 2220 | done |
| 2221 | else |
| 2222 | echo "$as_me: failed program was:" >&5 |
| 2223 | cat conftest.$ac_ext >&5 |
| 2224 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
| 2225 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
| 2226 | { (exit 1); exit 1; }; } |
| 2227 | fi |
| 2228 | |
| 2229 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2230 | fi |
| 2231 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2232 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2233 | OBJEXT=$ac_cv_objext |
| 2234 | ac_objext=$OBJEXT |
| 2235 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2236 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2237 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2239 | else |
| 2240 | cat >conftest.$ac_ext <<_ACEOF |
| 2241 | #line $LINENO "configure" |
| 2242 | #include "confdefs.h" |
| 2243 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2244 | #ifdef F77_DUMMY_MAIN |
| 2245 | # ifdef __cplusplus |
| 2246 | extern "C" |
| 2247 | # endif |
| 2248 | int F77_DUMMY_MAIN() { return 1; } |
| 2249 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2250 | int |
| 2251 | main () |
| 2252 | { |
| 2253 | #ifndef __GNUC__ |
| 2254 | choke me |
| 2255 | #endif |
| 2256 | |
| 2257 | ; |
| 2258 | return 0; |
| 2259 | } |
| 2260 | _ACEOF |
| 2261 | rm -f conftest.$ac_objext |
| 2262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2263 | (eval $ac_compile) 2>&5 |
| 2264 | ac_status=$? |
| 2265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2266 | (exit $ac_status); } && |
| 2267 | { ac_try='test -s conftest.$ac_objext' |
| 2268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2269 | (eval $ac_try) 2>&5 |
| 2270 | ac_status=$? |
| 2271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2272 | (exit $ac_status); }; }; then |
| 2273 | ac_compiler_gnu=yes |
| 2274 | else |
| 2275 | echo "$as_me: failed program was:" >&5 |
| 2276 | cat conftest.$ac_ext >&5 |
| 2277 | ac_compiler_gnu=no |
| 2278 | fi |
| 2279 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2280 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2281 | |
| 2282 | fi |
| 2283 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2284 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2285 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2286 | ac_test_CFLAGS=${CFLAGS+set} |
| 2287 | ac_save_CFLAGS=$CFLAGS |
| 2288 | CFLAGS="-g" |
| 2289 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2290 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2291 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2293 | else |
| 2294 | cat >conftest.$ac_ext <<_ACEOF |
| 2295 | #line $LINENO "configure" |
| 2296 | #include "confdefs.h" |
| 2297 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2298 | #ifdef F77_DUMMY_MAIN |
| 2299 | # ifdef __cplusplus |
| 2300 | extern "C" |
| 2301 | # endif |
| 2302 | int F77_DUMMY_MAIN() { return 1; } |
| 2303 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2304 | int |
| 2305 | main () |
| 2306 | { |
| 2307 | |
| 2308 | ; |
| 2309 | return 0; |
| 2310 | } |
| 2311 | _ACEOF |
| 2312 | rm -f conftest.$ac_objext |
| 2313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2314 | (eval $ac_compile) 2>&5 |
| 2315 | ac_status=$? |
| 2316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2317 | (exit $ac_status); } && |
| 2318 | { ac_try='test -s conftest.$ac_objext' |
| 2319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2320 | (eval $ac_try) 2>&5 |
| 2321 | ac_status=$? |
| 2322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2323 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2324 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2325 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2326 | echo "$as_me: failed program was:" >&5 |
| 2327 | cat conftest.$ac_ext >&5 |
| 2328 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2329 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2330 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2331 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2332 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2333 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2334 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2335 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2336 | elif test $ac_cv_prog_cc_g = yes; then |
| 2337 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2338 | CFLAGS="-g -O2" |
| 2339 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2340 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2341 | fi |
| 2342 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2343 | if test "$GCC" = yes; then |
| 2344 | CFLAGS="-O2" |
| 2345 | else |
| 2346 | CFLAGS= |
| 2347 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2348 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2349 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2350 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2351 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2352 | # the declaration of exit, since it's the most demanding environment. |
| 2353 | cat >conftest.$ac_ext <<_ACEOF |
| 2354 | #ifndef __cplusplus |
| 2355 | choke me |
| 2356 | #endif |
| 2357 | _ACEOF |
| 2358 | rm -f conftest.$ac_objext |
| 2359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2360 | (eval $ac_compile) 2>&5 |
| 2361 | ac_status=$? |
| 2362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2363 | (exit $ac_status); } && |
| 2364 | { ac_try='test -s conftest.$ac_objext' |
| 2365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2366 | (eval $ac_try) 2>&5 |
| 2367 | ac_status=$? |
| 2368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2369 | (exit $ac_status); }; }; then |
| 2370 | for ac_declaration in \ |
| 2371 | ''\ |
| 2372 | '#include <stdlib.h>' \ |
| 2373 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2374 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2375 | 'extern "C" void exit (int) throw ();' \ |
| 2376 | 'extern "C" void exit (int);' \ |
| 2377 | 'void exit (int);' |
| 2378 | do |
| 2379 | cat >conftest.$ac_ext <<_ACEOF |
| 2380 | #line $LINENO "configure" |
| 2381 | #include "confdefs.h" |
| 2382 | #include <stdlib.h> |
| 2383 | $ac_declaration |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2384 | #ifdef F77_DUMMY_MAIN |
| 2385 | # ifdef __cplusplus |
| 2386 | extern "C" |
| 2387 | # endif |
| 2388 | int F77_DUMMY_MAIN() { return 1; } |
| 2389 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2390 | int |
| 2391 | main () |
| 2392 | { |
| 2393 | exit (42); |
| 2394 | ; |
| 2395 | return 0; |
| 2396 | } |
| 2397 | _ACEOF |
| 2398 | rm -f conftest.$ac_objext |
| 2399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2400 | (eval $ac_compile) 2>&5 |
| 2401 | ac_status=$? |
| 2402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2403 | (exit $ac_status); } && |
| 2404 | { ac_try='test -s conftest.$ac_objext' |
| 2405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2406 | (eval $ac_try) 2>&5 |
| 2407 | ac_status=$? |
| 2408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2409 | (exit $ac_status); }; }; then |
| 2410 | : |
| 2411 | else |
| 2412 | echo "$as_me: failed program was:" >&5 |
| 2413 | cat conftest.$ac_ext >&5 |
| 2414 | continue |
| 2415 | fi |
| 2416 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2417 | cat >conftest.$ac_ext <<_ACEOF |
| 2418 | #line $LINENO "configure" |
| 2419 | #include "confdefs.h" |
| 2420 | $ac_declaration |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2421 | #ifdef F77_DUMMY_MAIN |
| 2422 | # ifdef __cplusplus |
| 2423 | extern "C" |
| 2424 | # endif |
| 2425 | int F77_DUMMY_MAIN() { return 1; } |
| 2426 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2427 | int |
| 2428 | main () |
| 2429 | { |
| 2430 | exit (42); |
| 2431 | ; |
| 2432 | return 0; |
| 2433 | } |
| 2434 | _ACEOF |
| 2435 | rm -f conftest.$ac_objext |
| 2436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2437 | (eval $ac_compile) 2>&5 |
| 2438 | ac_status=$? |
| 2439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2440 | (exit $ac_status); } && |
| 2441 | { ac_try='test -s conftest.$ac_objext' |
| 2442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2443 | (eval $ac_try) 2>&5 |
| 2444 | ac_status=$? |
| 2445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2446 | (exit $ac_status); }; }; then |
| 2447 | break |
| 2448 | else |
| 2449 | echo "$as_me: failed program was:" >&5 |
| 2450 | cat conftest.$ac_ext >&5 |
| 2451 | fi |
| 2452 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2453 | done |
| 2454 | rm -f conftest* |
| 2455 | if test -n "$ac_declaration"; then |
| 2456 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2457 | echo $ac_declaration >>confdefs.h |
| 2458 | echo '#endif' >>confdefs.h |
| 2459 | fi |
| 2460 | |
| 2461 | else |
| 2462 | echo "$as_me: failed program was:" >&5 |
| 2463 | cat conftest.$ac_ext >&5 |
| 2464 | fi |
| 2465 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2466 | ac_ext=c |
| 2467 | ac_cpp='$CPP $CPPFLAGS' |
| 2468 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2469 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2470 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2471 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2472 | |
| 2473 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2474 | |
| 2475 | ac_ext=c |
| 2476 | ac_cpp='$CPP $CPPFLAGS' |
| 2477 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2478 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2479 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2480 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2481 | 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] | 2482 | # On Suns, sometimes $CPP names a directory. |
| 2483 | if test -n "$CPP" && test -d "$CPP"; then |
| 2484 | CPP= |
| 2485 | fi |
| 2486 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2487 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2489 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2490 | # Double quotes because CPP needs to be expanded |
| 2491 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2492 | do |
| 2493 | ac_preproc_ok=false |
| 2494 | for ac_c_preproc_warn_flag in '' yes |
| 2495 | do |
| 2496 | # Use a header file that comes with gcc, so configuring glibc |
| 2497 | # with a fresh cross-compiler works. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2498 | # 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] | 2499 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2500 | cat >conftest.$ac_ext <<_ACEOF |
| 2501 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2502 | #include "confdefs.h" |
| 2503 | #include <assert.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2504 | Syntax error |
| 2505 | _ACEOF |
| 2506 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2507 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2508 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2509 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2510 | rm -f conftest.er1 |
| 2511 | cat conftest.err >&5 |
| 2512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2513 | (exit $ac_status); } >/dev/null; then |
| 2514 | if test -s conftest.err; then |
| 2515 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2516 | else |
| 2517 | ac_cpp_err= |
| 2518 | fi |
| 2519 | else |
| 2520 | ac_cpp_err=yes |
| 2521 | fi |
| 2522 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2523 | : |
| 2524 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2525 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2526 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2527 | # Broken: fails on valid input. |
| 2528 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2529 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2530 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2531 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2532 | # OK, works on sane cases. Now check whether non-existent headers |
| 2533 | # can be detected and how. |
| 2534 | cat >conftest.$ac_ext <<_ACEOF |
| 2535 | #line $LINENO "configure" |
| 2536 | #include "confdefs.h" |
| 2537 | #include <ac_nonexistent.h> |
| 2538 | _ACEOF |
| 2539 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2540 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2541 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2542 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2543 | rm -f conftest.er1 |
| 2544 | cat conftest.err >&5 |
| 2545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2546 | (exit $ac_status); } >/dev/null; then |
| 2547 | if test -s conftest.err; then |
| 2548 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2549 | else |
| 2550 | ac_cpp_err= |
| 2551 | fi |
| 2552 | else |
| 2553 | ac_cpp_err=yes |
| 2554 | fi |
| 2555 | if test -z "$ac_cpp_err"; then |
| 2556 | # Broken: success on invalid input. |
| 2557 | continue |
| 2558 | else |
| 2559 | echo "$as_me: failed program was:" >&5 |
| 2560 | cat conftest.$ac_ext >&5 |
| 2561 | # Passes both tests. |
| 2562 | ac_preproc_ok=: |
| 2563 | break |
| 2564 | fi |
| 2565 | rm -f conftest.err conftest.$ac_ext |
| 2566 | |
| 2567 | done |
| 2568 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2569 | rm -f conftest.err conftest.$ac_ext |
| 2570 | if $ac_preproc_ok; then |
| 2571 | break |
| 2572 | fi |
| 2573 | |
| 2574 | done |
| 2575 | ac_cv_prog_CPP=$CPP |
| 2576 | |
| 2577 | fi |
| 2578 | CPP=$ac_cv_prog_CPP |
| 2579 | else |
| 2580 | ac_cv_prog_CPP=$CPP |
| 2581 | fi |
| 2582 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2583 | echo "${ECHO_T}$CPP" >&6 |
| 2584 | ac_preproc_ok=false |
| 2585 | for ac_c_preproc_warn_flag in '' yes |
| 2586 | do |
| 2587 | # Use a header file that comes with gcc, so configuring glibc |
| 2588 | # with a fresh cross-compiler works. |
| 2589 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2590 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2591 | cat >conftest.$ac_ext <<_ACEOF |
| 2592 | #line $LINENO "configure" |
| 2593 | #include "confdefs.h" |
| 2594 | #include <assert.h> |
| 2595 | Syntax error |
| 2596 | _ACEOF |
| 2597 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2598 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2599 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2600 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2601 | rm -f conftest.er1 |
| 2602 | cat conftest.err >&5 |
| 2603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2604 | (exit $ac_status); } >/dev/null; then |
| 2605 | if test -s conftest.err; then |
| 2606 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2607 | else |
| 2608 | ac_cpp_err= |
| 2609 | fi |
| 2610 | else |
| 2611 | ac_cpp_err=yes |
| 2612 | fi |
| 2613 | if test -z "$ac_cpp_err"; then |
| 2614 | : |
| 2615 | else |
| 2616 | echo "$as_me: failed program was:" >&5 |
| 2617 | cat conftest.$ac_ext >&5 |
| 2618 | # Broken: fails on valid input. |
| 2619 | continue |
| 2620 | fi |
| 2621 | rm -f conftest.err conftest.$ac_ext |
| 2622 | |
| 2623 | # OK, works on sane cases. Now check whether non-existent headers |
| 2624 | # can be detected and how. |
| 2625 | cat >conftest.$ac_ext <<_ACEOF |
| 2626 | #line $LINENO "configure" |
| 2627 | #include "confdefs.h" |
| 2628 | #include <ac_nonexistent.h> |
| 2629 | _ACEOF |
| 2630 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2631 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2632 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2633 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2634 | rm -f conftest.er1 |
| 2635 | cat conftest.err >&5 |
| 2636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2637 | (exit $ac_status); } >/dev/null; then |
| 2638 | if test -s conftest.err; then |
| 2639 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2640 | else |
| 2641 | ac_cpp_err= |
| 2642 | fi |
| 2643 | else |
| 2644 | ac_cpp_err=yes |
| 2645 | fi |
| 2646 | if test -z "$ac_cpp_err"; then |
| 2647 | # Broken: success on invalid input. |
| 2648 | continue |
| 2649 | else |
| 2650 | echo "$as_me: failed program was:" >&5 |
| 2651 | cat conftest.$ac_ext >&5 |
| 2652 | # Passes both tests. |
| 2653 | ac_preproc_ok=: |
| 2654 | break |
| 2655 | fi |
| 2656 | rm -f conftest.err conftest.$ac_ext |
| 2657 | |
| 2658 | done |
| 2659 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2660 | rm -f conftest.err conftest.$ac_ext |
| 2661 | if $ac_preproc_ok; then |
| 2662 | : |
| 2663 | else |
| 2664 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2665 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2666 | { (exit 1); exit 1; }; } |
| 2667 | fi |
| 2668 | |
| 2669 | ac_ext=c |
| 2670 | ac_cpp='$CPP $CPPFLAGS' |
| 2671 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2672 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2673 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2674 | |
| 2675 | |
| 2676 | |
| 2677 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2678 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2679 | cat >conftest.$ac_ext <<_ACEOF |
| 2680 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2681 | #include "confdefs.h" |
| 2682 | #ifdef _AIX |
| 2683 | yes |
| 2684 | #endif |
| 2685 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2686 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2687 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2688 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2689 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2690 | echo "${ECHO_T}yes" >&6 |
| 2691 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2692 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2693 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2694 | |
| 2695 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2696 | echo "$as_me:$LINENO: result: no" >&5 |
| 2697 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2698 | fi |
| 2699 | rm -f conftest* |
| 2700 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2701 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2702 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 2703 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2704 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2706 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2707 | cat >conftest.$ac_ext <<_ACEOF |
| 2708 | #line $LINENO "configure" |
| 2709 | #include "confdefs.h" |
| 2710 | #include <stdlib.h> |
| 2711 | #include <stdarg.h> |
| 2712 | #include <string.h> |
| 2713 | #include <float.h> |
| 2714 | |
| 2715 | _ACEOF |
| 2716 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2717 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2718 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2719 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2720 | rm -f conftest.er1 |
| 2721 | cat conftest.err >&5 |
| 2722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2723 | (exit $ac_status); } >/dev/null; then |
| 2724 | if test -s conftest.err; then |
| 2725 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2726 | else |
| 2727 | ac_cpp_err= |
| 2728 | fi |
| 2729 | else |
| 2730 | ac_cpp_err=yes |
| 2731 | fi |
| 2732 | if test -z "$ac_cpp_err"; then |
| 2733 | ac_cv_header_stdc=yes |
| 2734 | else |
| 2735 | echo "$as_me: failed program was:" >&5 |
| 2736 | cat conftest.$ac_ext >&5 |
| 2737 | ac_cv_header_stdc=no |
| 2738 | fi |
| 2739 | rm -f conftest.err conftest.$ac_ext |
| 2740 | |
| 2741 | if test $ac_cv_header_stdc = yes; then |
| 2742 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2743 | cat >conftest.$ac_ext <<_ACEOF |
| 2744 | #line $LINENO "configure" |
| 2745 | #include "confdefs.h" |
| 2746 | #include <string.h> |
| 2747 | |
| 2748 | _ACEOF |
| 2749 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2750 | egrep "memchr" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2751 | : |
| 2752 | else |
| 2753 | ac_cv_header_stdc=no |
| 2754 | fi |
| 2755 | rm -f conftest* |
| 2756 | |
| 2757 | fi |
| 2758 | |
| 2759 | if test $ac_cv_header_stdc = yes; then |
| 2760 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2761 | cat >conftest.$ac_ext <<_ACEOF |
| 2762 | #line $LINENO "configure" |
| 2763 | #include "confdefs.h" |
| 2764 | #include <stdlib.h> |
| 2765 | |
| 2766 | _ACEOF |
| 2767 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2768 | egrep "free" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2769 | : |
| 2770 | else |
| 2771 | ac_cv_header_stdc=no |
| 2772 | fi |
| 2773 | rm -f conftest* |
| 2774 | |
| 2775 | fi |
| 2776 | |
| 2777 | if test $ac_cv_header_stdc = yes; then |
| 2778 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2779 | if test "$cross_compiling" = yes; then |
| 2780 | : |
| 2781 | else |
| 2782 | cat >conftest.$ac_ext <<_ACEOF |
| 2783 | #line $LINENO "configure" |
| 2784 | #include "confdefs.h" |
| 2785 | #include <ctype.h> |
| 2786 | #if ((' ' & 0x0FF) == 0x020) |
| 2787 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2788 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2789 | #else |
| 2790 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 2791 | || ('j' <= (c) && (c) <= 'r') \ |
| 2792 | || ('s' <= (c) && (c) <= 'z')) |
| 2793 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2794 | #endif |
| 2795 | |
| 2796 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2797 | int |
| 2798 | main () |
| 2799 | { |
| 2800 | int i; |
| 2801 | for (i = 0; i < 256; i++) |
| 2802 | if (XOR (islower (i), ISLOWER (i)) |
| 2803 | || toupper (i) != TOUPPER (i)) |
| 2804 | exit(2); |
| 2805 | exit (0); |
| 2806 | } |
| 2807 | _ACEOF |
| 2808 | rm -f conftest$ac_exeext |
| 2809 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2810 | (eval $ac_link) 2>&5 |
| 2811 | ac_status=$? |
| 2812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2813 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2815 | (eval $ac_try) 2>&5 |
| 2816 | ac_status=$? |
| 2817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2818 | (exit $ac_status); }; }; then |
| 2819 | : |
| 2820 | else |
| 2821 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2822 | echo "$as_me: failed program was:" >&5 |
| 2823 | cat conftest.$ac_ext >&5 |
| 2824 | ( exit $ac_status ) |
| 2825 | ac_cv_header_stdc=no |
| 2826 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2827 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2828 | fi |
| 2829 | fi |
| 2830 | fi |
| 2831 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 2832 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 2833 | if test $ac_cv_header_stdc = yes; then |
| 2834 | |
| 2835 | cat >>confdefs.h <<\_ACEOF |
| 2836 | #define STDC_HEADERS 1 |
| 2837 | _ACEOF |
| 2838 | |
| 2839 | fi |
| 2840 | |
| 2841 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 2842 | |
| 2843 | |
| 2844 | |
| 2845 | |
| 2846 | |
| 2847 | |
| 2848 | |
| 2849 | |
| 2850 | |
| 2851 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 2852 | inttypes.h stdint.h unistd.h |
| 2853 | do |
| 2854 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2855 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 2856 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2857 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2859 | else |
| 2860 | cat >conftest.$ac_ext <<_ACEOF |
| 2861 | #line $LINENO "configure" |
| 2862 | #include "confdefs.h" |
| 2863 | $ac_includes_default |
| 2864 | |
| 2865 | #include <$ac_header> |
| 2866 | _ACEOF |
| 2867 | rm -f conftest.$ac_objext |
| 2868 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2869 | (eval $ac_compile) 2>&5 |
| 2870 | ac_status=$? |
| 2871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2872 | (exit $ac_status); } && |
| 2873 | { ac_try='test -s conftest.$ac_objext' |
| 2874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2875 | (eval $ac_try) 2>&5 |
| 2876 | ac_status=$? |
| 2877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2878 | (exit $ac_status); }; }; then |
| 2879 | eval "$as_ac_Header=yes" |
| 2880 | else |
| 2881 | echo "$as_me: failed program was:" >&5 |
| 2882 | cat conftest.$ac_ext >&5 |
| 2883 | eval "$as_ac_Header=no" |
| 2884 | fi |
| 2885 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2886 | fi |
| 2887 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2888 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2889 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 2890 | cat >>confdefs.h <<_ACEOF |
| 2891 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 2892 | _ACEOF |
| 2893 | |
| 2894 | fi |
| 2895 | |
| 2896 | done |
| 2897 | |
| 2898 | |
| 2899 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2900 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2901 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2902 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2904 | fi |
| 2905 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2906 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2907 | else |
| 2908 | # Is the header compilable? |
| 2909 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 2910 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 |
| 2911 | cat >conftest.$ac_ext <<_ACEOF |
| 2912 | #line $LINENO "configure" |
| 2913 | #include "confdefs.h" |
| 2914 | $ac_includes_default |
| 2915 | #include <minix/config.h> |
| 2916 | _ACEOF |
| 2917 | rm -f conftest.$ac_objext |
| 2918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2919 | (eval $ac_compile) 2>&5 |
| 2920 | ac_status=$? |
| 2921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2922 | (exit $ac_status); } && |
| 2923 | { ac_try='test -s conftest.$ac_objext' |
| 2924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2925 | (eval $ac_try) 2>&5 |
| 2926 | ac_status=$? |
| 2927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2928 | (exit $ac_status); }; }; then |
| 2929 | ac_header_compiler=yes |
| 2930 | else |
| 2931 | echo "$as_me: failed program was:" >&5 |
| 2932 | cat conftest.$ac_ext >&5 |
| 2933 | ac_header_compiler=no |
| 2934 | fi |
| 2935 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2936 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 2937 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 2938 | |
| 2939 | # Is the header present? |
| 2940 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 2941 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 |
| 2942 | cat >conftest.$ac_ext <<_ACEOF |
| 2943 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2944 | #include "confdefs.h" |
| 2945 | #include <minix/config.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2946 | _ACEOF |
| 2947 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2948 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2949 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2950 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2951 | rm -f conftest.er1 |
| 2952 | cat conftest.err >&5 |
| 2953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2954 | (exit $ac_status); } >/dev/null; then |
| 2955 | if test -s conftest.err; then |
| 2956 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2957 | else |
| 2958 | ac_cpp_err= |
| 2959 | fi |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2960 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2961 | ac_cpp_err=yes |
| 2962 | fi |
| 2963 | if test -z "$ac_cpp_err"; then |
| 2964 | ac_header_preproc=yes |
| 2965 | else |
| 2966 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2967 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2968 | ac_header_preproc=no |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2969 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2970 | rm -f conftest.err conftest.$ac_ext |
| 2971 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 2972 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 2973 | |
| 2974 | # So? What about this header? |
| 2975 | case $ac_header_compiler:$ac_header_preproc in |
| 2976 | yes:no ) |
| 2977 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2978 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2979 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2980 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2981 | no:yes ) |
| 2982 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 2983 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 2984 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 2985 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 2986 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2987 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2988 | esac |
| 2989 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2990 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2991 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2993 | else |
| 2994 | ac_cv_header_minix_config_h=$ac_header_preproc |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2995 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2996 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2997 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2998 | |
| 2999 | fi |
| 3000 | if test $ac_cv_header_minix_config_h = yes; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3001 | MINIX=yes |
| 3002 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3003 | MINIX= |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3004 | fi |
| 3005 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3006 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3007 | if test "$MINIX" = yes; then |
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 _POSIX_SOURCE 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 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3013 | |
| 3014 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3015 | #define _POSIX_1_SOURCE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3016 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3017 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3018 | |
| 3019 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3020 | #define _MINIX 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3021 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3022 | |
| 3023 | fi |
| 3024 | |
| 3025 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3026 | # Check for unsupported systems |
| 3027 | case $ac_sys_system/$ac_sys_release in |
| 3028 | SunOS/4*|DYNIX/*|dgux*/*|IRIX/4*|Linux*/1*) |
| 3029 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3030 | echo See README for details. |
| 3031 | exit 1;; |
| 3032 | esac |
| 3033 | |
| 3034 | if test "$MINIX" = yes; then |
| 3035 | echo This system \(MINIX\) is no longer supported. |
| 3036 | echo Read README for details. |
| 3037 | exit 1 |
| 3038 | fi |
| 3039 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3040 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3041 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3042 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3043 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3044 | # Check whether --with-suffix or --without-suffix was given. |
| 3045 | if test "${with_suffix+set}" = set; then |
| 3046 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3047 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3048 | case $withval in |
| 3049 | no) EXEEXT=;; |
| 3050 | yes) EXEEXT=.exe;; |
| 3051 | *) EXEEXT=$withval;; |
| 3052 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3053 | fi; |
| 3054 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3055 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3056 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3057 | # Test whether we're running on a non-case-sensitive system, in which |
| 3058 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3059 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3060 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3061 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3062 | if test ! -d CaseSensitiveTestDir; then |
| 3063 | mkdir CaseSensitiveTestDir |
| 3064 | fi |
| 3065 | |
| 3066 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3067 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3068 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3069 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3070 | BUILDEXEEXT=.exe |
| 3071 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3072 | echo "$as_me:$LINENO: result: no" >&5 |
| 3073 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3074 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3075 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3076 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3077 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3078 | case $MACHDEP in |
| 3079 | bsdos*) |
| 3080 | case $CC in |
| 3081 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3082 | esac;; |
| 3083 | esac |
| 3084 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3085 | case $ac_sys_system in |
| 3086 | hp*|HP*) |
| 3087 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3088 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3089 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3090 | Monterey*) |
| 3091 | case $CC in |
| 3092 | cc) CC="$CC -Wl,-Bexport";; |
| 3093 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3094 | SunOS*) |
| 3095 | # 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] | 3096 | |
| 3097 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3098 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3099 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3100 | |
| 3101 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3102 | esac |
| 3103 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3104 | |
| 3105 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3106 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3107 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3108 | if test -z "$LIBRARY" |
| 3109 | then |
| 3110 | LIBRARY='libpython$(VERSION).a' |
| 3111 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3112 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3113 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3114 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3115 | # 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] | 3116 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3117 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3118 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3119 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3120 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3121 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3122 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3123 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3124 | # RUNSHARED is used to run shared python without installed libraries |
| 3125 | # |
| 3126 | # INSTSONAME is the name of the shared library that will be use to install |
| 3127 | # on the system - some systems like version suffix, others don't |
| 3128 | |
| 3129 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3130 | |
| 3131 | |
| 3132 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3133 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3134 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3135 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3136 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3137 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3138 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3139 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3140 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3141 | # 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] | 3142 | # If CXX is set, and if it is needed to link a main function that was |
| 3143 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3144 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3145 | # 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] | 3146 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3147 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3148 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3149 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3150 | if test -z "$LINKCC" |
| 3151 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3152 | if test -z "$CXX"; then |
| 3153 | LINKCC="\$(PURIFY) \$(CC)" |
| 3154 | else |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3155 | 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] | 3156 | $CXX -c conftest.$ac_ext 2>&5 |
| 3157 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3158 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3159 | then |
| 3160 | LINKCC="\$(PURIFY) \$(CC)" |
| 3161 | else |
| 3162 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3163 | fi |
| 3164 | rm -fr conftest* |
| 3165 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3166 | case $ac_sys_system in |
| 3167 | AIX*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3168 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); $LINKCC";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 3169 | dgux*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3170 | LINKCC="LD_RUN_PATH=$libdir $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3171 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3172 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3173 | esac |
| 3174 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3175 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3176 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3177 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3178 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3179 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3180 | # Check whether --enable-shared or --disable-shared was given. |
| 3181 | if test "${enable_shared+set}" = set; then |
| 3182 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3183 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3184 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3185 | |
| 3186 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3187 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3188 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3189 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3190 | enable_shared="yes";; |
| 3191 | *) |
| 3192 | enable_shared="no";; |
| 3193 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3194 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3195 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3196 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3197 | |
| 3198 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3199 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3200 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3201 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3202 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3203 | # library that we build, but we do not want to link against it (we |
| 3204 | # will find it with a -framework option). For this reason there is an |
| 3205 | # extra variable BLDLIBRARY against which Python and the extension |
| 3206 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3207 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3208 | if test "$enable_framework" |
| 3209 | then |
| 3210 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 3211 | LDLIBRARYDIR='$(PYTHONFRAMEWORKDIR)' |
| 3212 | BLDLIBRARY='' |
| 3213 | else |
| 3214 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3215 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3216 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3217 | # Other platforms follow |
| 3218 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3219 | |
| 3220 | cat >>confdefs.h <<\_ACEOF |
| 3221 | #define Py_ENABLE_SHARED 1 |
| 3222 | _ACEOF |
| 3223 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3224 | case $ac_sys_system in |
| 3225 | BeOS*) |
| 3226 | LDLIBRARY='libpython$(VERSION).so' |
| 3227 | ;; |
| 3228 | CYGWIN*) |
| 3229 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3230 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3231 | ;; |
| 3232 | SunOS*) |
| 3233 | LDLIBRARY='libpython$(VERSION).so' |
| 3234 | BLDLIBRARY='-Wl,-rpath,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3235 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3236 | ;; |
Martin v. Löwis | 1bc894b | 2002-07-30 20:19:58 +0000 | [diff] [blame] | 3237 | Linux*|GNU*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3238 | LDLIBRARY='libpython$(VERSION).so' |
| 3239 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3240 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3241 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3242 | ;; |
| 3243 | hp*|HP*) |
| 3244 | LDLIBRARY='libpython$(VERSION).sl' |
| 3245 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3246 | RUNSHARED=SHLIB_PATH=`pwd`:$SHLIB_PATH |
| 3247 | ;; |
| 3248 | OSF*) |
| 3249 | LDLIBRARY='libpython$(VERSION).so' |
| 3250 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 3251 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3252 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3253 | atheos*) |
| 3254 | LDLIBRARY='libpython$(VERSION).so' |
| 3255 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3256 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3257 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3258 | esac |
| 3259 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 3260 | case $MACHDEP in |
| 3261 | dguxR4) |
| 3262 | LDLIBRARY='libpython$(VERSION).so' |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3263 | BASECFLAGS="$BASECFLAGS -pic" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3264 | ;; |
| 3265 | esac |
| 3266 | fi |
| 3267 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3268 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3269 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3270 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3271 | if test -n "$ac_tool_prefix"; then |
| 3272 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3273 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3274 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3275 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3276 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3278 | else |
| 3279 | if test -n "$RANLIB"; then |
| 3280 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3281 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3283 | for as_dir in $PATH |
| 3284 | do |
| 3285 | IFS=$as_save_IFS |
| 3286 | test -z "$as_dir" && as_dir=. |
| 3287 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3288 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3289 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3291 | break 2 |
| 3292 | fi |
| 3293 | done |
| 3294 | done |
| 3295 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3296 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3297 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3298 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3299 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3300 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3301 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3302 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3303 | echo "$as_me:$LINENO: result: no" >&5 |
| 3304 | echo "${ECHO_T}no" >&6 |
| 3305 | fi |
| 3306 | |
| 3307 | fi |
| 3308 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3309 | ac_ct_RANLIB=$RANLIB |
| 3310 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3311 | set dummy ranlib; ac_word=$2 |
| 3312 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3313 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3314 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3316 | else |
| 3317 | if test -n "$ac_ct_RANLIB"; then |
| 3318 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3319 | else |
| 3320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3321 | for as_dir in $PATH |
| 3322 | do |
| 3323 | IFS=$as_save_IFS |
| 3324 | test -z "$as_dir" && as_dir=. |
| 3325 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3326 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3327 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3328 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3329 | break 2 |
| 3330 | fi |
| 3331 | done |
| 3332 | done |
| 3333 | |
| 3334 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3335 | fi |
| 3336 | fi |
| 3337 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3338 | if test -n "$ac_ct_RANLIB"; then |
| 3339 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3340 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3341 | else |
| 3342 | echo "$as_me:$LINENO: result: no" >&5 |
| 3343 | echo "${ECHO_T}no" >&6 |
| 3344 | fi |
| 3345 | |
| 3346 | RANLIB=$ac_ct_RANLIB |
| 3347 | else |
| 3348 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3349 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3350 | |
| 3351 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3352 | for ac_prog in ar aal |
| 3353 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3354 | # 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] | 3355 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3356 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3357 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3358 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3360 | else |
| 3361 | if test -n "$AR"; then |
| 3362 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3363 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3365 | for as_dir in $PATH |
| 3366 | do |
| 3367 | IFS=$as_save_IFS |
| 3368 | test -z "$as_dir" && as_dir=. |
| 3369 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3370 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3371 | ac_cv_prog_AR="$ac_prog" |
| 3372 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3373 | break 2 |
| 3374 | fi |
| 3375 | done |
| 3376 | done |
| 3377 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3378 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3379 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3380 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3381 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3382 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3383 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3384 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3385 | echo "$as_me:$LINENO: result: no" >&5 |
| 3386 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3387 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3388 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3389 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3390 | done |
| 3391 | test -n "$AR" || AR="ar" |
| 3392 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3393 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3394 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3395 | bsdos*|hp*|HP*) |
| 3396 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3397 | if test -z "$INSTALL" |
| 3398 | then |
| 3399 | INSTALL="${srcdir}/install-sh -c" |
| 3400 | fi |
| 3401 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3402 | ac_aux_dir= |
| 3403 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3404 | if test -f $ac_dir/install-sh; then |
| 3405 | ac_aux_dir=$ac_dir |
| 3406 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3407 | break |
| 3408 | elif test -f $ac_dir/install.sh; then |
| 3409 | ac_aux_dir=$ac_dir |
| 3410 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3411 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3412 | elif test -f $ac_dir/shtool; then |
| 3413 | ac_aux_dir=$ac_dir |
| 3414 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3415 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3416 | fi |
| 3417 | done |
| 3418 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3419 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3420 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3421 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3422 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3423 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3424 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3425 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3426 | |
| 3427 | # Find a good install program. We prefer a C program (faster), |
| 3428 | # so one script is as good as another. But avoid the broken or |
| 3429 | # incompatible versions: |
| 3430 | # SysV /etc/install, /usr/sbin/install |
| 3431 | # SunOS /usr/etc/install |
| 3432 | # IRIX /sbin/install |
| 3433 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3434 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3435 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3436 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3437 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3438 | # ./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] | 3439 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3440 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3441 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3442 | if test "${ac_cv_path_install+set}" = set; then |
| 3443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3444 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3446 | for as_dir in $PATH |
| 3447 | do |
| 3448 | IFS=$as_save_IFS |
| 3449 | test -z "$as_dir" && as_dir=. |
| 3450 | # Account for people who put trailing slashes in PATH elements. |
| 3451 | case $as_dir/ in |
| 3452 | ./ | .// | /cC/* | \ |
| 3453 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3454 | /usr/ucb/* ) ;; |
| 3455 | *) |
| 3456 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3457 | # Don't use installbsd from OSF since it installs stuff as root |
| 3458 | # by default. |
| 3459 | for ac_prog in ginstall scoinst install; do |
| 3460 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3461 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3462 | if test $ac_prog = install && |
| 3463 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3464 | # AIX install. It has an incompatible calling convention. |
| 3465 | : |
| 3466 | elif test $ac_prog = install && |
| 3467 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3468 | # program-specific install script used by HP pwplus--don't use. |
| 3469 | : |
| 3470 | else |
| 3471 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3472 | break 3 |
| 3473 | fi |
| 3474 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3475 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3476 | done |
| 3477 | ;; |
| 3478 | esac |
| 3479 | done |
| 3480 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3481 | |
| 3482 | fi |
| 3483 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3484 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3485 | else |
| 3486 | # As a last resort, use the slow shell script. We don't cache a |
| 3487 | # path for INSTALL within a source directory, because that will |
| 3488 | # break other packages using the cache if that directory is |
| 3489 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3490 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3491 | fi |
| 3492 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3493 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3494 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3495 | |
| 3496 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3497 | # It thinks the first close brace ends the variable substitution. |
| 3498 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3499 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3500 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3501 | |
| 3502 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3503 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3504 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3505 | # Not every filesystem supports hard links |
| 3506 | |
| 3507 | if test -z "$LN" ; then |
| 3508 | case $ac_sys_system in |
| 3509 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3510 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3511 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3512 | *) LN=ln;; |
| 3513 | esac |
| 3514 | fi |
| 3515 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3516 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3517 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3518 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3519 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3520 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3521 | if test "${with_pydebug+set}" = set; then |
| 3522 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3523 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3524 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3525 | then |
| 3526 | |
| 3527 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3528 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3529 | _ACEOF |
| 3530 | |
| 3531 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3532 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3533 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3534 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3535 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3536 | fi |
| 3537 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3538 | echo "$as_me:$LINENO: result: no" >&5 |
| 3539 | echo "${ECHO_T}no" >&6 |
| 3540 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3541 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3542 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 3543 | # merged with this chunk of code? |
| 3544 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3545 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3546 | # ------------------------ |
| 3547 | # (The following bit of code is complicated enough - please keep things |
| 3548 | # indented properly. Just pretend you're editing Python code. ;-) |
| 3549 | |
| 3550 | # There are two parallel sets of case statements below, one that checks to |
| 3551 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 3552 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 3553 | # user set OPT. |
| 3554 | |
| 3555 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 3556 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3557 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3558 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3559 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3560 | case $GCC in |
| 3561 | yes) |
| 3562 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3563 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3564 | if test "$Py_DEBUG" = 'true' ; then |
| 3565 | # Optimization messes up debuggers, so turn it off for |
| 3566 | # debug builds. |
| 3567 | OPT="-g -Wall -Wstrict-prototypes" |
| 3568 | else |
| 3569 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3570 | fi |
| 3571 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3572 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3573 | OPT="-O3 -Wall -Wstrict-prototypes" |
| 3574 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3575 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3576 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3577 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 3578 | ;; |
| 3579 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3580 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3581 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3582 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3583 | OPT="-O" |
| 3584 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3585 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3586 | |
| 3587 | # The current (beta) Monterey compiler dies with optimizations |
| 3588 | # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this? |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3589 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3590 | Monterey*) |
| 3591 | OPT="" |
| 3592 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3593 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3594 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3595 | fi |
| 3596 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3597 | |
| 3598 | # tweak BASECFLAGS based on compiler and platform |
| 3599 | case $GCC in |
| 3600 | yes) |
| 3601 | case $ac_sys_system in |
| 3602 | SCO_SV*) |
| 3603 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 3604 | ;; |
| 3605 | # is there any other compiler on Darwin besides gcc? |
| 3606 | Darwin*) |
| 3607 | BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp" |
| 3608 | ;; |
| 3609 | esac |
| 3610 | ;; |
| 3611 | |
| 3612 | *) |
| 3613 | case $ac_sys_system in |
| 3614 | OpenUNIX*|UnixWare*) |
| 3615 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 3616 | ;; |
| 3617 | SCO_SV*) |
| 3618 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 3619 | ;; |
| 3620 | esac |
| 3621 | ;; |
| 3622 | esac |
| 3623 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3624 | if test "$Py_DEBUG" = 'true'; then |
| 3625 | : |
| 3626 | else |
| 3627 | OPT="-DNDEBUG $OPT" |
| 3628 | fi |
| 3629 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3630 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3631 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3632 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3633 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3634 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3635 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3636 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3637 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3639 | else |
| 3640 | ac_save_cc="$CC" |
| 3641 | CC="$CC -OPT:Olimit=0" |
| 3642 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3643 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3644 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3645 | cat >conftest.$ac_ext <<_ACEOF |
| 3646 | #line $LINENO "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3647 | #include "confdefs.h" |
| 3648 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3649 | _ACEOF |
| 3650 | rm -f conftest$ac_exeext |
| 3651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3652 | (eval $ac_link) 2>&5 |
| 3653 | ac_status=$? |
| 3654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3655 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3657 | (eval $ac_try) 2>&5 |
| 3658 | ac_status=$? |
| 3659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3660 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3661 | ac_cv_opt_olimit_ok=yes |
| 3662 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3663 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3664 | echo "$as_me: failed program was:" >&5 |
| 3665 | cat conftest.$ac_ext >&5 |
| 3666 | ( exit $ac_status ) |
| 3667 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3668 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3669 | 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] | 3670 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3671 | CC="$ac_save_cc" |
| 3672 | fi |
| 3673 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3674 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3675 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3676 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3677 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3678 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 3679 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 3680 | # environment? |
| 3681 | Darwin*) |
| 3682 | ;; |
| 3683 | *) |
| 3684 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 3685 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3686 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3687 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3688 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3689 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3690 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3692 | else |
| 3693 | ac_save_cc="$CC" |
| 3694 | CC="$CC -Olimit 1500" |
| 3695 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3696 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3697 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3698 | cat >conftest.$ac_ext <<_ACEOF |
| 3699 | #line $LINENO "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3700 | #include "confdefs.h" |
| 3701 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3702 | _ACEOF |
| 3703 | rm -f conftest$ac_exeext |
| 3704 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3705 | (eval $ac_link) 2>&5 |
| 3706 | ac_status=$? |
| 3707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3708 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3710 | (eval $ac_try) 2>&5 |
| 3711 | ac_status=$? |
| 3712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3713 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3714 | ac_cv_olimit_ok=yes |
| 3715 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3716 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3717 | echo "$as_me: failed program was:" >&5 |
| 3718 | cat conftest.$ac_ext >&5 |
| 3719 | ( exit $ac_status ) |
| 3720 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 3721 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3722 | 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] | 3723 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3724 | CC="$ac_save_cc" |
| 3725 | fi |
| 3726 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3727 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 3728 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3729 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3730 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3731 | fi |
| 3732 | fi |
| 3733 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3734 | # On some compilers, pthreads are available without further options |
| 3735 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3736 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3737 | # So we have to see first whether pthreads are available without |
| 3738 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3739 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3740 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3741 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3743 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3744 | if test "$cross_compiling" = yes; then |
| 3745 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3746 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3747 | cat >conftest.$ac_ext <<_ACEOF |
| 3748 | #line $LINENO "configure" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3749 | #include "confdefs.h" |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3750 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3751 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3752 | |
| 3753 | void* routine(void* p){return NULL;} |
| 3754 | |
| 3755 | int main(){ |
| 3756 | pthread_t p; |
| 3757 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3758 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3759 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3760 | return 0; |
| 3761 | } |
| 3762 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3763 | _ACEOF |
| 3764 | rm -f conftest$ac_exeext |
| 3765 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3766 | (eval $ac_link) 2>&5 |
| 3767 | ac_status=$? |
| 3768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3769 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3771 | (eval $ac_try) 2>&5 |
| 3772 | ac_status=$? |
| 3773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3774 | (exit $ac_status); }; }; then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3775 | ac_cv_pthread_is_default=yes |
| 3776 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3777 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3778 | echo "$as_me: failed program was:" >&5 |
| 3779 | cat conftest.$ac_ext >&5 |
| 3780 | ( exit $ac_status ) |
| 3781 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3782 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3783 | 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] | 3784 | fi |
| 3785 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3786 | fi |
| 3787 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3788 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 3789 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3790 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3791 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3792 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3793 | then |
| 3794 | ac_cv_kpthread=no |
| 3795 | else |
| 3796 | # -Kpthread, if available, provides the right #defines |
| 3797 | # and linker options to make pthread_create available |
| 3798 | # Some compilers won't report that they do not support -Kpthread, |
| 3799 | # so we need to run a program to see whether it really made the |
| 3800 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3801 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 3802 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 3803 | if test "${ac_cv_kpthread+set}" = set; then |
| 3804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3805 | else |
| 3806 | ac_save_cc="$CC" |
| 3807 | CC="$CC -Kpthread" |
| 3808 | if test "$cross_compiling" = yes; then |
| 3809 | ac_cv_kpthread=no |
| 3810 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3811 | cat >conftest.$ac_ext <<_ACEOF |
| 3812 | #line $LINENO "configure" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3813 | #include "confdefs.h" |
| 3814 | |
| 3815 | #include <pthread.h> |
| 3816 | |
| 3817 | void* routine(void* p){return NULL;} |
| 3818 | |
| 3819 | int main(){ |
| 3820 | pthread_t p; |
| 3821 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3822 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3823 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3824 | return 0; |
| 3825 | } |
| 3826 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3827 | _ACEOF |
| 3828 | rm -f conftest$ac_exeext |
| 3829 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3830 | (eval $ac_link) 2>&5 |
| 3831 | ac_status=$? |
| 3832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3833 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3835 | (eval $ac_try) 2>&5 |
| 3836 | ac_status=$? |
| 3837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3838 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3839 | ac_cv_kpthread=yes |
| 3840 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3841 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3842 | echo "$as_me: failed program was:" >&5 |
| 3843 | cat conftest.$ac_ext >&5 |
| 3844 | ( exit $ac_status ) |
| 3845 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3846 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3847 | 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] | 3848 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3849 | CC="$ac_save_cc" |
| 3850 | fi |
| 3851 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3852 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 3853 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3854 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3855 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3856 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3857 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3858 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3859 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3860 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3862 | else |
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 | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3865 | #include "confdefs.h" |
| 3866 | #include <stdlib.h> |
| 3867 | #include <stdarg.h> |
| 3868 | #include <string.h> |
| 3869 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3870 | |
| 3871 | _ACEOF |
| 3872 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3873 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3874 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3875 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3876 | rm -f conftest.er1 |
| 3877 | cat conftest.err >&5 |
| 3878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3879 | (exit $ac_status); } >/dev/null; then |
| 3880 | if test -s conftest.err; then |
| 3881 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3882 | else |
| 3883 | ac_cpp_err= |
| 3884 | fi |
| 3885 | else |
| 3886 | ac_cpp_err=yes |
| 3887 | fi |
| 3888 | if test -z "$ac_cpp_err"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3889 | ac_cv_header_stdc=yes |
| 3890 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3891 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3892 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3893 | ac_cv_header_stdc=no |
| 3894 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3895 | rm -f conftest.err conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3896 | |
| 3897 | if test $ac_cv_header_stdc = yes; then |
| 3898 | # 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] | 3899 | cat >conftest.$ac_ext <<_ACEOF |
| 3900 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3901 | #include "confdefs.h" |
| 3902 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3903 | |
| 3904 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3905 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3906 | egrep "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3907 | : |
| 3908 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3909 | ac_cv_header_stdc=no |
| 3910 | fi |
| 3911 | rm -f conftest* |
| 3912 | |
| 3913 | fi |
| 3914 | |
| 3915 | if test $ac_cv_header_stdc = yes; then |
| 3916 | # 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] | 3917 | cat >conftest.$ac_ext <<_ACEOF |
| 3918 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3919 | #include "confdefs.h" |
| 3920 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3921 | |
| 3922 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3923 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3924 | egrep "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3925 | : |
| 3926 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3927 | ac_cv_header_stdc=no |
| 3928 | fi |
| 3929 | rm -f conftest* |
| 3930 | |
| 3931 | fi |
| 3932 | |
| 3933 | if test $ac_cv_header_stdc = yes; then |
| 3934 | # /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] | 3935 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3936 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3937 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3938 | cat >conftest.$ac_ext <<_ACEOF |
| 3939 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3940 | #include "confdefs.h" |
| 3941 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3942 | #if ((' ' & 0x0FF) == 0x020) |
| 3943 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3944 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3945 | #else |
| 3946 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 3947 | || ('j' <= (c) && (c) <= 'r') \ |
| 3948 | || ('s' <= (c) && (c) <= 'z')) |
| 3949 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3950 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3951 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3952 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3953 | int |
| 3954 | main () |
| 3955 | { |
| 3956 | int i; |
| 3957 | for (i = 0; i < 256; i++) |
| 3958 | if (XOR (islower (i), ISLOWER (i)) |
| 3959 | || toupper (i) != TOUPPER (i)) |
| 3960 | exit(2); |
| 3961 | exit (0); |
| 3962 | } |
| 3963 | _ACEOF |
| 3964 | rm -f conftest$ac_exeext |
| 3965 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3966 | (eval $ac_link) 2>&5 |
| 3967 | ac_status=$? |
| 3968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3969 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3971 | (eval $ac_try) 2>&5 |
| 3972 | ac_status=$? |
| 3973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3974 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3975 | : |
| 3976 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3977 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3978 | echo "$as_me: failed program was:" >&5 |
| 3979 | cat conftest.$ac_ext >&5 |
| 3980 | ( exit $ac_status ) |
| 3981 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3982 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3983 | 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] | 3984 | fi |
| 3985 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3986 | fi |
| 3987 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3988 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3989 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3990 | |
| 3991 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3992 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3993 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3994 | |
| 3995 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3996 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3997 | |
| 3998 | |
| 3999 | |
| 4000 | |
| 4001 | |
| 4002 | |
| 4003 | |
| 4004 | |
| 4005 | |
| 4006 | |
| 4007 | |
| 4008 | |
| 4009 | |
| 4010 | |
| 4011 | |
| 4012 | |
| 4013 | |
| 4014 | |
| 4015 | |
| 4016 | |
| 4017 | |
| 4018 | |
| 4019 | |
| 4020 | |
| 4021 | |
| 4022 | |
| 4023 | |
| 4024 | |
| 4025 | |
| 4026 | |
| 4027 | |
| 4028 | |
| 4029 | |
| 4030 | |
| 4031 | |
| 4032 | |
| 4033 | |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4034 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4035 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4036 | 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] | 4037 | libintl.h locale.h ncurses.h poll.h pthread.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4038 | signal.h stdarg.h stddef.h stdlib.h stropts.h termios.h thread.h \ |
| 4039 | unistd.h utime.h \ |
Skip Montanaro | 57454e5 | 2002-06-14 20:30:31 +0000 | [diff] [blame] | 4040 | 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] | 4041 | 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] | 4042 | sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \ |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4043 | sys/resource.h netpacket/packet.h sysexits.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4044 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4045 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4046 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4047 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4048 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4049 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4051 | fi |
| 4052 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4053 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4054 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4055 | # Is the header compilable? |
| 4056 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4057 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4058 | cat >conftest.$ac_ext <<_ACEOF |
| 4059 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4060 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4061 | $ac_includes_default |
| 4062 | #include <$ac_header> |
| 4063 | _ACEOF |
| 4064 | rm -f conftest.$ac_objext |
| 4065 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4066 | (eval $ac_compile) 2>&5 |
| 4067 | ac_status=$? |
| 4068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4069 | (exit $ac_status); } && |
| 4070 | { ac_try='test -s conftest.$ac_objext' |
| 4071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4072 | (eval $ac_try) 2>&5 |
| 4073 | ac_status=$? |
| 4074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4075 | (exit $ac_status); }; }; then |
| 4076 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4077 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4078 | echo "$as_me: failed program was:" >&5 |
| 4079 | cat conftest.$ac_ext >&5 |
| 4080 | ac_header_compiler=no |
| 4081 | fi |
| 4082 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4083 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4084 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4085 | |
| 4086 | # Is the header present? |
| 4087 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4088 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4089 | cat >conftest.$ac_ext <<_ACEOF |
| 4090 | #line $LINENO "configure" |
| 4091 | #include "confdefs.h" |
| 4092 | #include <$ac_header> |
| 4093 | _ACEOF |
| 4094 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4095 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4096 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4097 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4098 | rm -f conftest.er1 |
| 4099 | cat conftest.err >&5 |
| 4100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4101 | (exit $ac_status); } >/dev/null; then |
| 4102 | if test -s conftest.err; then |
| 4103 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4104 | else |
| 4105 | ac_cpp_err= |
| 4106 | fi |
| 4107 | else |
| 4108 | ac_cpp_err=yes |
| 4109 | fi |
| 4110 | if test -z "$ac_cpp_err"; then |
| 4111 | ac_header_preproc=yes |
| 4112 | else |
| 4113 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4114 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4115 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4116 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4117 | rm -f conftest.err conftest.$ac_ext |
| 4118 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4119 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4120 | |
| 4121 | # So? What about this header? |
| 4122 | case $ac_header_compiler:$ac_header_preproc in |
| 4123 | yes:no ) |
| 4124 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4125 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4126 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4127 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 4128 | no:yes ) |
| 4129 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4130 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4131 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4132 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4133 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4134 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 4135 | esac |
| 4136 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4137 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4138 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4140 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4141 | eval "$as_ac_Header=$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4142 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4143 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4144 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4145 | |
| 4146 | fi |
| 4147 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4148 | cat >>confdefs.h <<_ACEOF |
| 4149 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4150 | _ACEOF |
| 4151 | |
| 4152 | fi |
| 4153 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4154 | done |
| 4155 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4156 | |
| 4157 | |
| 4158 | |
| 4159 | |
| 4160 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4161 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4162 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4163 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4164 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4165 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4166 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4168 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4169 | cat >conftest.$ac_ext <<_ACEOF |
| 4170 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4171 | #include "confdefs.h" |
| 4172 | #include <sys/types.h> |
| 4173 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4174 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4175 | #ifdef F77_DUMMY_MAIN |
| 4176 | # ifdef __cplusplus |
| 4177 | extern "C" |
| 4178 | # endif |
| 4179 | int F77_DUMMY_MAIN() { return 1; } |
| 4180 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4181 | int |
| 4182 | main () |
| 4183 | { |
| 4184 | if ((DIR *) 0) |
| 4185 | return 0; |
| 4186 | ; |
| 4187 | return 0; |
| 4188 | } |
| 4189 | _ACEOF |
| 4190 | rm -f conftest.$ac_objext |
| 4191 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4192 | (eval $ac_compile) 2>&5 |
| 4193 | ac_status=$? |
| 4194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4195 | (exit $ac_status); } && |
| 4196 | { ac_try='test -s conftest.$ac_objext' |
| 4197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4198 | (eval $ac_try) 2>&5 |
| 4199 | ac_status=$? |
| 4200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4201 | (exit $ac_status); }; }; then |
| 4202 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4203 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4204 | echo "$as_me: failed program was:" >&5 |
| 4205 | cat conftest.$ac_ext >&5 |
| 4206 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4207 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4208 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4209 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4210 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4211 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4212 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4213 | cat >>confdefs.h <<_ACEOF |
| 4214 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4215 | _ACEOF |
| 4216 | |
| 4217 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4218 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4219 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4220 | done |
| 4221 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4222 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4223 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4224 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4225 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4227 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4228 | ac_func_search_save_LIBS=$LIBS |
| 4229 | ac_cv_search_opendir=no |
| 4230 | cat >conftest.$ac_ext <<_ACEOF |
| 4231 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4232 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4233 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4234 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4235 | #ifdef __cplusplus |
| 4236 | extern "C" |
| 4237 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4238 | /* 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] | 4239 | builtin and then its argument prototype would still apply. */ |
| 4240 | char opendir (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4241 | #ifdef F77_DUMMY_MAIN |
| 4242 | # ifdef __cplusplus |
| 4243 | extern "C" |
| 4244 | # endif |
| 4245 | int F77_DUMMY_MAIN() { return 1; } |
| 4246 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4247 | int |
| 4248 | main () |
| 4249 | { |
| 4250 | opendir (); |
| 4251 | ; |
| 4252 | return 0; |
| 4253 | } |
| 4254 | _ACEOF |
| 4255 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4256 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4257 | (eval $ac_link) 2>&5 |
| 4258 | ac_status=$? |
| 4259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4260 | (exit $ac_status); } && |
| 4261 | { ac_try='test -s conftest$ac_exeext' |
| 4262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4263 | (eval $ac_try) 2>&5 |
| 4264 | ac_status=$? |
| 4265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4266 | (exit $ac_status); }; }; then |
| 4267 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4268 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4269 | echo "$as_me: failed program was:" >&5 |
| 4270 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4271 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4272 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4273 | if test "$ac_cv_search_opendir" = no; then |
| 4274 | for ac_lib in dir; do |
| 4275 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4276 | cat >conftest.$ac_ext <<_ACEOF |
| 4277 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4278 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4279 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4280 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4281 | #ifdef __cplusplus |
| 4282 | extern "C" |
| 4283 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4284 | /* 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] | 4285 | builtin and then its argument prototype would still apply. */ |
| 4286 | char opendir (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4287 | #ifdef F77_DUMMY_MAIN |
| 4288 | # ifdef __cplusplus |
| 4289 | extern "C" |
| 4290 | # endif |
| 4291 | int F77_DUMMY_MAIN() { return 1; } |
| 4292 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4293 | int |
| 4294 | main () |
| 4295 | { |
| 4296 | opendir (); |
| 4297 | ; |
| 4298 | return 0; |
| 4299 | } |
| 4300 | _ACEOF |
| 4301 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4302 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4303 | (eval $ac_link) 2>&5 |
| 4304 | ac_status=$? |
| 4305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4306 | (exit $ac_status); } && |
| 4307 | { ac_try='test -s conftest$ac_exeext' |
| 4308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4309 | (eval $ac_try) 2>&5 |
| 4310 | ac_status=$? |
| 4311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4312 | (exit $ac_status); }; }; then |
| 4313 | ac_cv_search_opendir="-l$ac_lib" |
| 4314 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4315 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4316 | echo "$as_me: failed program was:" >&5 |
| 4317 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4318 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4319 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4320 | done |
| 4321 | fi |
| 4322 | LIBS=$ac_func_search_save_LIBS |
| 4323 | fi |
| 4324 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4325 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4326 | if test "$ac_cv_search_opendir" != no; then |
| 4327 | 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] | 4328 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4329 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4330 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4331 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4332 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4333 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4334 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4336 | else |
| 4337 | ac_func_search_save_LIBS=$LIBS |
| 4338 | ac_cv_search_opendir=no |
| 4339 | cat >conftest.$ac_ext <<_ACEOF |
| 4340 | #line $LINENO "configure" |
| 4341 | #include "confdefs.h" |
| 4342 | |
| 4343 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4344 | #ifdef __cplusplus |
| 4345 | extern "C" |
| 4346 | #endif |
| 4347 | /* We use char because int might match the return type of a gcc2 |
| 4348 | builtin and then its argument prototype would still apply. */ |
| 4349 | char opendir (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4350 | #ifdef F77_DUMMY_MAIN |
| 4351 | # ifdef __cplusplus |
| 4352 | extern "C" |
| 4353 | # endif |
| 4354 | int F77_DUMMY_MAIN() { return 1; } |
| 4355 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4356 | int |
| 4357 | main () |
| 4358 | { |
| 4359 | opendir (); |
| 4360 | ; |
| 4361 | return 0; |
| 4362 | } |
| 4363 | _ACEOF |
| 4364 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4365 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4366 | (eval $ac_link) 2>&5 |
| 4367 | ac_status=$? |
| 4368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4369 | (exit $ac_status); } && |
| 4370 | { ac_try='test -s conftest$ac_exeext' |
| 4371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4372 | (eval $ac_try) 2>&5 |
| 4373 | ac_status=$? |
| 4374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4375 | (exit $ac_status); }; }; then |
| 4376 | ac_cv_search_opendir="none required" |
| 4377 | else |
| 4378 | echo "$as_me: failed program was:" >&5 |
| 4379 | cat conftest.$ac_ext >&5 |
| 4380 | fi |
| 4381 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4382 | if test "$ac_cv_search_opendir" = no; then |
| 4383 | for ac_lib in x; do |
| 4384 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4385 | cat >conftest.$ac_ext <<_ACEOF |
| 4386 | #line $LINENO "configure" |
| 4387 | #include "confdefs.h" |
| 4388 | |
| 4389 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4390 | #ifdef __cplusplus |
| 4391 | extern "C" |
| 4392 | #endif |
| 4393 | /* We use char because int might match the return type of a gcc2 |
| 4394 | builtin and then its argument prototype would still apply. */ |
| 4395 | char opendir (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4396 | #ifdef F77_DUMMY_MAIN |
| 4397 | # ifdef __cplusplus |
| 4398 | extern "C" |
| 4399 | # endif |
| 4400 | int F77_DUMMY_MAIN() { return 1; } |
| 4401 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4402 | int |
| 4403 | main () |
| 4404 | { |
| 4405 | opendir (); |
| 4406 | ; |
| 4407 | return 0; |
| 4408 | } |
| 4409 | _ACEOF |
| 4410 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4412 | (eval $ac_link) 2>&5 |
| 4413 | ac_status=$? |
| 4414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4415 | (exit $ac_status); } && |
| 4416 | { ac_try='test -s conftest$ac_exeext' |
| 4417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4418 | (eval $ac_try) 2>&5 |
| 4419 | ac_status=$? |
| 4420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4421 | (exit $ac_status); }; }; then |
| 4422 | ac_cv_search_opendir="-l$ac_lib" |
| 4423 | break |
| 4424 | else |
| 4425 | echo "$as_me: failed program was:" >&5 |
| 4426 | cat conftest.$ac_ext >&5 |
| 4427 | fi |
| 4428 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4429 | done |
| 4430 | fi |
| 4431 | LIBS=$ac_func_search_save_LIBS |
| 4432 | fi |
| 4433 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4434 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4435 | if test "$ac_cv_search_opendir" != no; then |
| 4436 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 4437 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4438 | fi |
| 4439 | |
| 4440 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4441 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4442 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 4443 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 4444 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 4445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4446 | else |
| 4447 | cat >conftest.$ac_ext <<_ACEOF |
| 4448 | #line $LINENO "configure" |
| 4449 | #include "confdefs.h" |
| 4450 | #include <sys/types.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4451 | #ifdef F77_DUMMY_MAIN |
| 4452 | # ifdef __cplusplus |
| 4453 | extern "C" |
| 4454 | # endif |
| 4455 | int F77_DUMMY_MAIN() { return 1; } |
| 4456 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4457 | int |
| 4458 | main () |
| 4459 | { |
| 4460 | return makedev(0, 0); |
| 4461 | ; |
| 4462 | return 0; |
| 4463 | } |
| 4464 | _ACEOF |
| 4465 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4467 | (eval $ac_link) 2>&5 |
| 4468 | ac_status=$? |
| 4469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4470 | (exit $ac_status); } && |
| 4471 | { ac_try='test -s conftest$ac_exeext' |
| 4472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4473 | (eval $ac_try) 2>&5 |
| 4474 | ac_status=$? |
| 4475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4476 | (exit $ac_status); }; }; then |
| 4477 | ac_cv_header_sys_types_h_makedev=yes |
| 4478 | else |
| 4479 | echo "$as_me: failed program was:" >&5 |
| 4480 | cat conftest.$ac_ext >&5 |
| 4481 | ac_cv_header_sys_types_h_makedev=no |
| 4482 | fi |
| 4483 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4484 | |
| 4485 | fi |
| 4486 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 4487 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 4488 | |
| 4489 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 4490 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4491 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4492 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4493 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4495 | fi |
| 4496 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4497 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4498 | else |
| 4499 | # Is the header compilable? |
| 4500 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 4501 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 4502 | cat >conftest.$ac_ext <<_ACEOF |
| 4503 | #line $LINENO "configure" |
| 4504 | #include "confdefs.h" |
| 4505 | $ac_includes_default |
| 4506 | #include <sys/mkdev.h> |
| 4507 | _ACEOF |
| 4508 | rm -f conftest.$ac_objext |
| 4509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4510 | (eval $ac_compile) 2>&5 |
| 4511 | ac_status=$? |
| 4512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4513 | (exit $ac_status); } && |
| 4514 | { ac_try='test -s conftest.$ac_objext' |
| 4515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4516 | (eval $ac_try) 2>&5 |
| 4517 | ac_status=$? |
| 4518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4519 | (exit $ac_status); }; }; then |
| 4520 | ac_header_compiler=yes |
| 4521 | else |
| 4522 | echo "$as_me: failed program was:" >&5 |
| 4523 | cat conftest.$ac_ext >&5 |
| 4524 | ac_header_compiler=no |
| 4525 | fi |
| 4526 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4527 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4528 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4529 | |
| 4530 | # Is the header present? |
| 4531 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 4532 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 4533 | cat >conftest.$ac_ext <<_ACEOF |
| 4534 | #line $LINENO "configure" |
| 4535 | #include "confdefs.h" |
| 4536 | #include <sys/mkdev.h> |
| 4537 | _ACEOF |
| 4538 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4539 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4540 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4541 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4542 | rm -f conftest.er1 |
| 4543 | cat conftest.err >&5 |
| 4544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4545 | (exit $ac_status); } >/dev/null; then |
| 4546 | if test -s conftest.err; then |
| 4547 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4548 | else |
| 4549 | ac_cpp_err= |
| 4550 | fi |
| 4551 | else |
| 4552 | ac_cpp_err=yes |
| 4553 | fi |
| 4554 | if test -z "$ac_cpp_err"; then |
| 4555 | ac_header_preproc=yes |
| 4556 | else |
| 4557 | echo "$as_me: failed program was:" >&5 |
| 4558 | cat conftest.$ac_ext >&5 |
| 4559 | ac_header_preproc=no |
| 4560 | fi |
| 4561 | rm -f conftest.err conftest.$ac_ext |
| 4562 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4563 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4564 | |
| 4565 | # So? What about this header? |
| 4566 | case $ac_header_compiler:$ac_header_preproc in |
| 4567 | yes:no ) |
| 4568 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4569 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4570 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4571 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4572 | no:yes ) |
| 4573 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 4574 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 4575 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 4576 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 4577 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4578 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4579 | esac |
| 4580 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4581 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4582 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4584 | else |
| 4585 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 4586 | fi |
| 4587 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4588 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4589 | |
| 4590 | fi |
| 4591 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 4592 | |
| 4593 | cat >>confdefs.h <<\_ACEOF |
| 4594 | #define MAJOR_IN_MKDEV 1 |
| 4595 | _ACEOF |
| 4596 | |
| 4597 | fi |
| 4598 | |
| 4599 | |
| 4600 | |
| 4601 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 4602 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4603 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4604 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4605 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4607 | fi |
| 4608 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4609 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4610 | else |
| 4611 | # Is the header compilable? |
| 4612 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 4613 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 4614 | cat >conftest.$ac_ext <<_ACEOF |
| 4615 | #line $LINENO "configure" |
| 4616 | #include "confdefs.h" |
| 4617 | $ac_includes_default |
| 4618 | #include <sys/sysmacros.h> |
| 4619 | _ACEOF |
| 4620 | rm -f conftest.$ac_objext |
| 4621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4622 | (eval $ac_compile) 2>&5 |
| 4623 | ac_status=$? |
| 4624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4625 | (exit $ac_status); } && |
| 4626 | { ac_try='test -s conftest.$ac_objext' |
| 4627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4628 | (eval $ac_try) 2>&5 |
| 4629 | ac_status=$? |
| 4630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4631 | (exit $ac_status); }; }; then |
| 4632 | ac_header_compiler=yes |
| 4633 | else |
| 4634 | echo "$as_me: failed program was:" >&5 |
| 4635 | cat conftest.$ac_ext >&5 |
| 4636 | ac_header_compiler=no |
| 4637 | fi |
| 4638 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4639 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4640 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4641 | |
| 4642 | # Is the header present? |
| 4643 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 4644 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 4645 | cat >conftest.$ac_ext <<_ACEOF |
| 4646 | #line $LINENO "configure" |
| 4647 | #include "confdefs.h" |
| 4648 | #include <sys/sysmacros.h> |
| 4649 | _ACEOF |
| 4650 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4651 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4652 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4653 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4654 | rm -f conftest.er1 |
| 4655 | cat conftest.err >&5 |
| 4656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4657 | (exit $ac_status); } >/dev/null; then |
| 4658 | if test -s conftest.err; then |
| 4659 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4660 | else |
| 4661 | ac_cpp_err= |
| 4662 | fi |
| 4663 | else |
| 4664 | ac_cpp_err=yes |
| 4665 | fi |
| 4666 | if test -z "$ac_cpp_err"; then |
| 4667 | ac_header_preproc=yes |
| 4668 | else |
| 4669 | echo "$as_me: failed program was:" >&5 |
| 4670 | cat conftest.$ac_ext >&5 |
| 4671 | ac_header_preproc=no |
| 4672 | fi |
| 4673 | rm -f conftest.err conftest.$ac_ext |
| 4674 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4675 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4676 | |
| 4677 | # So? What about this header? |
| 4678 | case $ac_header_compiler:$ac_header_preproc in |
| 4679 | yes:no ) |
| 4680 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4681 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4682 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4683 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4684 | no:yes ) |
| 4685 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 4686 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 4687 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 4688 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 4689 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4690 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4691 | esac |
| 4692 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4693 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4694 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4696 | else |
| 4697 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 4698 | fi |
| 4699 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4700 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4701 | |
| 4702 | fi |
| 4703 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 4704 | |
| 4705 | cat >>confdefs.h <<\_ACEOF |
| 4706 | #define MAJOR_IN_SYSMACROS 1 |
| 4707 | _ACEOF |
| 4708 | |
| 4709 | fi |
| 4710 | |
| 4711 | |
| 4712 | fi |
| 4713 | fi |
| 4714 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4715 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4716 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4717 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4718 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 4719 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 4720 | cat >conftest.$ac_ext <<_ACEOF |
| 4721 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4722 | #include "confdefs.h" |
| 4723 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4724 | |
| 4725 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4726 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4727 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4728 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4729 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4730 | |
| 4731 | |
| 4732 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4733 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4734 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4735 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 4736 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4737 | fi |
| 4738 | rm -f conftest* |
| 4739 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4740 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 4741 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4742 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 4743 | # Check whether using makedev requires defining _OSF_SOURCE |
| 4744 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 4745 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 4746 | cat >conftest.$ac_ext <<_ACEOF |
| 4747 | #line $LINENO "configure" |
| 4748 | #include "confdefs.h" |
| 4749 | #include <sys/types.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4750 | #ifdef F77_DUMMY_MAIN |
| 4751 | # ifdef __cplusplus |
| 4752 | extern "C" |
| 4753 | # endif |
| 4754 | int F77_DUMMY_MAIN() { return 1; } |
| 4755 | #endif |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 4756 | int |
| 4757 | main () |
| 4758 | { |
| 4759 | makedev(0, 0) |
| 4760 | ; |
| 4761 | return 0; |
| 4762 | } |
| 4763 | _ACEOF |
| 4764 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4765 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4766 | (eval $ac_link) 2>&5 |
| 4767 | ac_status=$? |
| 4768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4769 | (exit $ac_status); } && |
| 4770 | { ac_try='test -s conftest$ac_exeext' |
| 4771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4772 | (eval $ac_try) 2>&5 |
| 4773 | ac_status=$? |
| 4774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4775 | (exit $ac_status); }; }; then |
| 4776 | ac_cv_has_makedev=yes |
| 4777 | else |
| 4778 | echo "$as_me: failed program was:" >&5 |
| 4779 | cat conftest.$ac_ext >&5 |
| 4780 | ac_cv_has_makedev=no |
| 4781 | fi |
| 4782 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4783 | if test "$ac_cv_has_makedev" = "no"; then |
| 4784 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 4785 | cat >conftest.$ac_ext <<_ACEOF |
| 4786 | #line $LINENO "configure" |
| 4787 | #include "confdefs.h" |
| 4788 | |
| 4789 | #define _OSF_SOURCE 1 |
| 4790 | #include <sys/types.h> |
| 4791 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4792 | #ifdef F77_DUMMY_MAIN |
| 4793 | # ifdef __cplusplus |
| 4794 | extern "C" |
| 4795 | # endif |
| 4796 | int F77_DUMMY_MAIN() { return 1; } |
| 4797 | #endif |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 4798 | int |
| 4799 | main () |
| 4800 | { |
| 4801 | makedev(0, 0) |
| 4802 | ; |
| 4803 | return 0; |
| 4804 | } |
| 4805 | _ACEOF |
| 4806 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4807 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4808 | (eval $ac_link) 2>&5 |
| 4809 | ac_status=$? |
| 4810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4811 | (exit $ac_status); } && |
| 4812 | { ac_try='test -s conftest$ac_exeext' |
| 4813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4814 | (eval $ac_try) 2>&5 |
| 4815 | ac_status=$? |
| 4816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4817 | (exit $ac_status); }; }; then |
| 4818 | ac_cv_has_makedev=yes |
| 4819 | else |
| 4820 | echo "$as_me: failed program was:" >&5 |
| 4821 | cat conftest.$ac_ext >&5 |
| 4822 | ac_cv_has_makedev=no |
| 4823 | fi |
| 4824 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4825 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4826 | |
| 4827 | cat >>confdefs.h <<\_ACEOF |
| 4828 | #define _OSF_SOURCE 1 |
| 4829 | _ACEOF |
| 4830 | |
| 4831 | fi |
| 4832 | fi |
| 4833 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 4834 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 4835 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4836 | |
| 4837 | cat >>confdefs.h <<\_ACEOF |
| 4838 | #define HAVE_MAKEDEV 1 |
| 4839 | _ACEOF |
| 4840 | |
| 4841 | fi |
| 4842 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 4843 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 4844 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 4845 | # defined, but the compiler does not support pragma redefine_extname, |
| 4846 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 4847 | # structures (such as rlimit64) without declaring them. As a |
| 4848 | # work-around, disable LFS on such configurations |
| 4849 | |
| 4850 | use_lfs=yes |
| 4851 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 4852 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 4853 | cat >conftest.$ac_ext <<_ACEOF |
| 4854 | #line $LINENO "configure" |
| 4855 | #include "confdefs.h" |
| 4856 | |
| 4857 | #define _LARGEFILE_SOURCE 1 |
| 4858 | #define _FILE_OFFSET_BITS 64 |
| 4859 | #include <sys/resource.h> |
| 4860 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4861 | #ifdef F77_DUMMY_MAIN |
| 4862 | # ifdef __cplusplus |
| 4863 | extern "C" |
| 4864 | # endif |
| 4865 | int F77_DUMMY_MAIN() { return 1; } |
| 4866 | #endif |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 4867 | int |
| 4868 | main () |
| 4869 | { |
| 4870 | struct rlimit foo; |
| 4871 | ; |
| 4872 | return 0; |
| 4873 | } |
| 4874 | _ACEOF |
| 4875 | rm -f conftest.$ac_objext |
| 4876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4877 | (eval $ac_compile) 2>&5 |
| 4878 | ac_status=$? |
| 4879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4880 | (exit $ac_status); } && |
| 4881 | { ac_try='test -s conftest.$ac_objext' |
| 4882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4883 | (eval $ac_try) 2>&5 |
| 4884 | ac_status=$? |
| 4885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4886 | (exit $ac_status); }; }; then |
| 4887 | sol_lfs_bug=no |
| 4888 | else |
| 4889 | echo "$as_me: failed program was:" >&5 |
| 4890 | cat conftest.$ac_ext >&5 |
| 4891 | sol_lfs_bug=yes |
| 4892 | fi |
| 4893 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4894 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 4895 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 4896 | if test "$sol_lfs_bug" = "yes"; then |
| 4897 | use_lfs=no |
| 4898 | fi |
| 4899 | |
| 4900 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4901 | # Two defines needed to enable largefile support on various platforms |
| 4902 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4904 | cat >>confdefs.h <<\_ACEOF |
| 4905 | #define _LARGEFILE_SOURCE 1 |
| 4906 | _ACEOF |
| 4907 | |
| 4908 | |
| 4909 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4910 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4911 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4912 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 4913 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4914 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4915 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 4916 | cat >> confdefs.h <<\EOF |
| 4917 | #if defined(SCO_DS) |
| 4918 | #undef _OFF_T |
| 4919 | #endif |
| 4920 | EOF |
| 4921 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4922 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4923 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 4924 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 4925 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 4926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4927 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4928 | cat >conftest.$ac_ext <<_ACEOF |
| 4929 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4930 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4931 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4932 | #ifdef F77_DUMMY_MAIN |
| 4933 | # ifdef __cplusplus |
| 4934 | extern "C" |
| 4935 | # endif |
| 4936 | int F77_DUMMY_MAIN() { return 1; } |
| 4937 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4938 | int |
| 4939 | main () |
| 4940 | { |
| 4941 | if ((mode_t *) 0) |
| 4942 | return 0; |
| 4943 | if (sizeof (mode_t)) |
| 4944 | return 0; |
| 4945 | ; |
| 4946 | return 0; |
| 4947 | } |
| 4948 | _ACEOF |
| 4949 | rm -f conftest.$ac_objext |
| 4950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4951 | (eval $ac_compile) 2>&5 |
| 4952 | ac_status=$? |
| 4953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4954 | (exit $ac_status); } && |
| 4955 | { ac_try='test -s conftest.$ac_objext' |
| 4956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4957 | (eval $ac_try) 2>&5 |
| 4958 | ac_status=$? |
| 4959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4960 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4961 | ac_cv_type_mode_t=yes |
| 4962 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4963 | echo "$as_me: failed program was:" >&5 |
| 4964 | cat conftest.$ac_ext >&5 |
| 4965 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4966 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4967 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4968 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4969 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 4970 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 4971 | if test $ac_cv_type_mode_t = yes; then |
| 4972 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4973 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4974 | |
| 4975 | cat >>confdefs.h <<_ACEOF |
| 4976 | #define mode_t int |
| 4977 | _ACEOF |
| 4978 | |
| 4979 | fi |
| 4980 | |
| 4981 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 4982 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 4983 | if test "${ac_cv_type_off_t+set}" = set; then |
| 4984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4985 | else |
| 4986 | cat >conftest.$ac_ext <<_ACEOF |
| 4987 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4988 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4989 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4990 | #ifdef F77_DUMMY_MAIN |
| 4991 | # ifdef __cplusplus |
| 4992 | extern "C" |
| 4993 | # endif |
| 4994 | int F77_DUMMY_MAIN() { return 1; } |
| 4995 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4996 | int |
| 4997 | main () |
| 4998 | { |
| 4999 | if ((off_t *) 0) |
| 5000 | return 0; |
| 5001 | if (sizeof (off_t)) |
| 5002 | return 0; |
| 5003 | ; |
| 5004 | return 0; |
| 5005 | } |
| 5006 | _ACEOF |
| 5007 | rm -f conftest.$ac_objext |
| 5008 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5009 | (eval $ac_compile) 2>&5 |
| 5010 | ac_status=$? |
| 5011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5012 | (exit $ac_status); } && |
| 5013 | { ac_try='test -s conftest.$ac_objext' |
| 5014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5015 | (eval $ac_try) 2>&5 |
| 5016 | ac_status=$? |
| 5017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5018 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5019 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5020 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5021 | echo "$as_me: failed program was:" >&5 |
| 5022 | cat conftest.$ac_ext >&5 |
| 5023 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5024 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5025 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5026 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5027 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5028 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 5029 | if test $ac_cv_type_off_t = yes; then |
| 5030 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5031 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5032 | |
| 5033 | cat >>confdefs.h <<_ACEOF |
| 5034 | #define off_t long |
| 5035 | _ACEOF |
| 5036 | |
| 5037 | fi |
| 5038 | |
| 5039 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 5040 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 5041 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 5042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5043 | else |
| 5044 | cat >conftest.$ac_ext <<_ACEOF |
| 5045 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5046 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5047 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5048 | #ifdef F77_DUMMY_MAIN |
| 5049 | # ifdef __cplusplus |
| 5050 | extern "C" |
| 5051 | # endif |
| 5052 | int F77_DUMMY_MAIN() { return 1; } |
| 5053 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5054 | int |
| 5055 | main () |
| 5056 | { |
| 5057 | if ((pid_t *) 0) |
| 5058 | return 0; |
| 5059 | if (sizeof (pid_t)) |
| 5060 | return 0; |
| 5061 | ; |
| 5062 | return 0; |
| 5063 | } |
| 5064 | _ACEOF |
| 5065 | rm -f conftest.$ac_objext |
| 5066 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5067 | (eval $ac_compile) 2>&5 |
| 5068 | ac_status=$? |
| 5069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5070 | (exit $ac_status); } && |
| 5071 | { ac_try='test -s conftest.$ac_objext' |
| 5072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5073 | (eval $ac_try) 2>&5 |
| 5074 | ac_status=$? |
| 5075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5076 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5077 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5078 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5079 | echo "$as_me: failed program was:" >&5 |
| 5080 | cat conftest.$ac_ext >&5 |
| 5081 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5082 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5083 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5084 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5085 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 5086 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 5087 | if test $ac_cv_type_pid_t = yes; then |
| 5088 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5089 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5090 | |
| 5091 | cat >>confdefs.h <<_ACEOF |
| 5092 | #define pid_t int |
| 5093 | _ACEOF |
| 5094 | |
| 5095 | fi |
| 5096 | |
| 5097 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 5098 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 5099 | if test "${ac_cv_type_signal+set}" = set; then |
| 5100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5101 | else |
| 5102 | cat >conftest.$ac_ext <<_ACEOF |
| 5103 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5104 | #include "confdefs.h" |
| 5105 | #include <sys/types.h> |
| 5106 | #include <signal.h> |
| 5107 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5108 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5109 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5110 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5111 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 5112 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5113 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5114 | #endif |
| 5115 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5116 | #ifdef F77_DUMMY_MAIN |
| 5117 | # ifdef __cplusplus |
| 5118 | extern "C" |
| 5119 | # endif |
| 5120 | int F77_DUMMY_MAIN() { return 1; } |
| 5121 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5122 | int |
| 5123 | main () |
| 5124 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5125 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5126 | ; |
| 5127 | return 0; |
| 5128 | } |
| 5129 | _ACEOF |
| 5130 | rm -f conftest.$ac_objext |
| 5131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5132 | (eval $ac_compile) 2>&5 |
| 5133 | ac_status=$? |
| 5134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5135 | (exit $ac_status); } && |
| 5136 | { ac_try='test -s conftest.$ac_objext' |
| 5137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5138 | (eval $ac_try) 2>&5 |
| 5139 | ac_status=$? |
| 5140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5141 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5142 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5143 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5144 | echo "$as_me: failed program was:" >&5 |
| 5145 | cat conftest.$ac_ext >&5 |
| 5146 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5147 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5148 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5149 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5150 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 5151 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5152 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5153 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5154 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5155 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5156 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5157 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5158 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5159 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 5160 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5162 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5163 | cat >conftest.$ac_ext <<_ACEOF |
| 5164 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5165 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5166 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5167 | #ifdef F77_DUMMY_MAIN |
| 5168 | # ifdef __cplusplus |
| 5169 | extern "C" |
| 5170 | # endif |
| 5171 | int F77_DUMMY_MAIN() { return 1; } |
| 5172 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5173 | int |
| 5174 | main () |
| 5175 | { |
| 5176 | if ((size_t *) 0) |
| 5177 | return 0; |
| 5178 | if (sizeof (size_t)) |
| 5179 | return 0; |
| 5180 | ; |
| 5181 | return 0; |
| 5182 | } |
| 5183 | _ACEOF |
| 5184 | rm -f conftest.$ac_objext |
| 5185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5186 | (eval $ac_compile) 2>&5 |
| 5187 | ac_status=$? |
| 5188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5189 | (exit $ac_status); } && |
| 5190 | { ac_try='test -s conftest.$ac_objext' |
| 5191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5192 | (eval $ac_try) 2>&5 |
| 5193 | ac_status=$? |
| 5194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5195 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5196 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5197 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5198 | echo "$as_me: failed program was:" >&5 |
| 5199 | cat conftest.$ac_ext >&5 |
| 5200 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5201 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5202 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5203 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5204 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5205 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 5206 | if test $ac_cv_type_size_t = yes; then |
| 5207 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5208 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5209 | |
| 5210 | cat >>confdefs.h <<_ACEOF |
| 5211 | #define size_t unsigned |
| 5212 | _ACEOF |
| 5213 | |
| 5214 | fi |
| 5215 | |
| 5216 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 5217 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 5218 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 5219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5220 | else |
| 5221 | cat >conftest.$ac_ext <<_ACEOF |
| 5222 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5223 | #include "confdefs.h" |
| 5224 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5225 | |
| 5226 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5227 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5228 | egrep "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5229 | ac_cv_type_uid_t=yes |
| 5230 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5231 | ac_cv_type_uid_t=no |
| 5232 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5233 | rm -f conftest* |
| 5234 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5235 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5236 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 5237 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5238 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5239 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5240 | cat >>confdefs.h <<\_ACEOF |
| 5241 | #define uid_t int |
| 5242 | _ACEOF |
| 5243 | |
| 5244 | |
| 5245 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5246 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5247 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5248 | |
| 5249 | fi |
| 5250 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5251 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5252 | # Sizes of various common basic types |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5253 | echo "$as_me:$LINENO: checking for int" >&5 |
| 5254 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 5255 | if test "${ac_cv_type_int+set}" = set; then |
| 5256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5257 | else |
| 5258 | cat >conftest.$ac_ext <<_ACEOF |
| 5259 | #line $LINENO "configure" |
| 5260 | #include "confdefs.h" |
| 5261 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5262 | #ifdef F77_DUMMY_MAIN |
| 5263 | # ifdef __cplusplus |
| 5264 | extern "C" |
| 5265 | # endif |
| 5266 | int F77_DUMMY_MAIN() { return 1; } |
| 5267 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5268 | int |
| 5269 | main () |
| 5270 | { |
| 5271 | if ((int *) 0) |
| 5272 | return 0; |
| 5273 | if (sizeof (int)) |
| 5274 | return 0; |
| 5275 | ; |
| 5276 | return 0; |
| 5277 | } |
| 5278 | _ACEOF |
| 5279 | rm -f conftest.$ac_objext |
| 5280 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5281 | (eval $ac_compile) 2>&5 |
| 5282 | ac_status=$? |
| 5283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5284 | (exit $ac_status); } && |
| 5285 | { ac_try='test -s conftest.$ac_objext' |
| 5286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5287 | (eval $ac_try) 2>&5 |
| 5288 | ac_status=$? |
| 5289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5290 | (exit $ac_status); }; }; then |
| 5291 | ac_cv_type_int=yes |
| 5292 | else |
| 5293 | echo "$as_me: failed program was:" >&5 |
| 5294 | cat conftest.$ac_ext >&5 |
| 5295 | ac_cv_type_int=no |
| 5296 | fi |
| 5297 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5298 | fi |
| 5299 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 5300 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 5301 | |
| 5302 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 5303 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 5304 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 5305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5306 | else |
| 5307 | if test "$ac_cv_type_int" = yes; then |
| 5308 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5309 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5310 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5311 | # This bug is HP SR number 8606223364. |
| 5312 | if test "$cross_compiling" = yes; then |
| 5313 | # Depending upon the size, compute the lo and hi bounds. |
| 5314 | cat >conftest.$ac_ext <<_ACEOF |
| 5315 | #line $LINENO "configure" |
| 5316 | #include "confdefs.h" |
| 5317 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5318 | #ifdef F77_DUMMY_MAIN |
| 5319 | # ifdef __cplusplus |
| 5320 | extern "C" |
| 5321 | # endif |
| 5322 | int F77_DUMMY_MAIN() { return 1; } |
| 5323 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5324 | int |
| 5325 | main () |
| 5326 | { |
| 5327 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 5328 | test_array [0] = 0 |
| 5329 | |
| 5330 | ; |
| 5331 | return 0; |
| 5332 | } |
| 5333 | _ACEOF |
| 5334 | rm -f conftest.$ac_objext |
| 5335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5336 | (eval $ac_compile) 2>&5 |
| 5337 | ac_status=$? |
| 5338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5339 | (exit $ac_status); } && |
| 5340 | { ac_try='test -s conftest.$ac_objext' |
| 5341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5342 | (eval $ac_try) 2>&5 |
| 5343 | ac_status=$? |
| 5344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5345 | (exit $ac_status); }; }; then |
| 5346 | ac_lo=0 ac_mid=0 |
| 5347 | while :; do |
| 5348 | cat >conftest.$ac_ext <<_ACEOF |
| 5349 | #line $LINENO "configure" |
| 5350 | #include "confdefs.h" |
| 5351 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5352 | #ifdef F77_DUMMY_MAIN |
| 5353 | # ifdef __cplusplus |
| 5354 | extern "C" |
| 5355 | # endif |
| 5356 | int F77_DUMMY_MAIN() { return 1; } |
| 5357 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5358 | int |
| 5359 | main () |
| 5360 | { |
| 5361 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5362 | test_array [0] = 0 |
| 5363 | |
| 5364 | ; |
| 5365 | return 0; |
| 5366 | } |
| 5367 | _ACEOF |
| 5368 | rm -f conftest.$ac_objext |
| 5369 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5370 | (eval $ac_compile) 2>&5 |
| 5371 | ac_status=$? |
| 5372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5373 | (exit $ac_status); } && |
| 5374 | { ac_try='test -s conftest.$ac_objext' |
| 5375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5376 | (eval $ac_try) 2>&5 |
| 5377 | ac_status=$? |
| 5378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5379 | (exit $ac_status); }; }; then |
| 5380 | ac_hi=$ac_mid; break |
| 5381 | else |
| 5382 | echo "$as_me: failed program was:" >&5 |
| 5383 | cat conftest.$ac_ext >&5 |
| 5384 | ac_lo=`expr $ac_mid + 1` |
| 5385 | if test $ac_lo -le $ac_mid; then |
| 5386 | ac_lo= ac_hi= |
| 5387 | break |
| 5388 | fi |
| 5389 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5390 | fi |
| 5391 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5392 | done |
| 5393 | else |
| 5394 | echo "$as_me: failed program was:" >&5 |
| 5395 | cat conftest.$ac_ext >&5 |
| 5396 | cat >conftest.$ac_ext <<_ACEOF |
| 5397 | #line $LINENO "configure" |
| 5398 | #include "confdefs.h" |
| 5399 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5400 | #ifdef F77_DUMMY_MAIN |
| 5401 | # ifdef __cplusplus |
| 5402 | extern "C" |
| 5403 | # endif |
| 5404 | int F77_DUMMY_MAIN() { return 1; } |
| 5405 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5406 | int |
| 5407 | main () |
| 5408 | { |
| 5409 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 5410 | test_array [0] = 0 |
| 5411 | |
| 5412 | ; |
| 5413 | return 0; |
| 5414 | } |
| 5415 | _ACEOF |
| 5416 | rm -f conftest.$ac_objext |
| 5417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5418 | (eval $ac_compile) 2>&5 |
| 5419 | ac_status=$? |
| 5420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5421 | (exit $ac_status); } && |
| 5422 | { ac_try='test -s conftest.$ac_objext' |
| 5423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5424 | (eval $ac_try) 2>&5 |
| 5425 | ac_status=$? |
| 5426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5427 | (exit $ac_status); }; }; then |
| 5428 | ac_hi=-1 ac_mid=-1 |
| 5429 | while :; do |
| 5430 | cat >conftest.$ac_ext <<_ACEOF |
| 5431 | #line $LINENO "configure" |
| 5432 | #include "confdefs.h" |
| 5433 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5434 | #ifdef F77_DUMMY_MAIN |
| 5435 | # ifdef __cplusplus |
| 5436 | extern "C" |
| 5437 | # endif |
| 5438 | int F77_DUMMY_MAIN() { return 1; } |
| 5439 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5440 | int |
| 5441 | main () |
| 5442 | { |
| 5443 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 5444 | test_array [0] = 0 |
| 5445 | |
| 5446 | ; |
| 5447 | return 0; |
| 5448 | } |
| 5449 | _ACEOF |
| 5450 | rm -f conftest.$ac_objext |
| 5451 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5452 | (eval $ac_compile) 2>&5 |
| 5453 | ac_status=$? |
| 5454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5455 | (exit $ac_status); } && |
| 5456 | { ac_try='test -s conftest.$ac_objext' |
| 5457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5458 | (eval $ac_try) 2>&5 |
| 5459 | ac_status=$? |
| 5460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5461 | (exit $ac_status); }; }; then |
| 5462 | ac_lo=$ac_mid; break |
| 5463 | else |
| 5464 | echo "$as_me: failed program was:" >&5 |
| 5465 | cat conftest.$ac_ext >&5 |
| 5466 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5467 | if test $ac_mid -le $ac_hi; then |
| 5468 | ac_lo= ac_hi= |
| 5469 | break |
| 5470 | fi |
| 5471 | ac_mid=`expr 2 '*' $ac_mid` |
| 5472 | fi |
| 5473 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5474 | done |
| 5475 | else |
| 5476 | echo "$as_me: failed program was:" >&5 |
| 5477 | cat conftest.$ac_ext >&5 |
| 5478 | ac_lo= ac_hi= |
| 5479 | fi |
| 5480 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5481 | fi |
| 5482 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5483 | # Binary search between lo and hi bounds. |
| 5484 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5485 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5486 | cat >conftest.$ac_ext <<_ACEOF |
| 5487 | #line $LINENO "configure" |
| 5488 | #include "confdefs.h" |
| 5489 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5490 | #ifdef F77_DUMMY_MAIN |
| 5491 | # ifdef __cplusplus |
| 5492 | extern "C" |
| 5493 | # endif |
| 5494 | int F77_DUMMY_MAIN() { return 1; } |
| 5495 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5496 | int |
| 5497 | main () |
| 5498 | { |
| 5499 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5500 | test_array [0] = 0 |
| 5501 | |
| 5502 | ; |
| 5503 | return 0; |
| 5504 | } |
| 5505 | _ACEOF |
| 5506 | rm -f conftest.$ac_objext |
| 5507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5508 | (eval $ac_compile) 2>&5 |
| 5509 | ac_status=$? |
| 5510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5511 | (exit $ac_status); } && |
| 5512 | { ac_try='test -s conftest.$ac_objext' |
| 5513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5514 | (eval $ac_try) 2>&5 |
| 5515 | ac_status=$? |
| 5516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5517 | (exit $ac_status); }; }; then |
| 5518 | ac_hi=$ac_mid |
| 5519 | else |
| 5520 | echo "$as_me: failed program was:" >&5 |
| 5521 | cat conftest.$ac_ext >&5 |
| 5522 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5523 | fi |
| 5524 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5525 | done |
| 5526 | case $ac_lo in |
| 5527 | ?*) ac_cv_sizeof_int=$ac_lo;; |
| 5528 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5529 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5530 | { (exit 1); exit 1; }; } ;; |
| 5531 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5532 | else |
| 5533 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5534 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5535 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5536 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5537 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5538 | cat >conftest.$ac_ext <<_ACEOF |
| 5539 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5540 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5541 | $ac_includes_default |
| 5542 | long longval () { return (long) (sizeof (int)); } |
| 5543 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5544 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5545 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5546 | #ifdef F77_DUMMY_MAIN |
| 5547 | # ifdef __cplusplus |
| 5548 | extern "C" |
| 5549 | # endif |
| 5550 | int F77_DUMMY_MAIN() { return 1; } |
| 5551 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5552 | int |
| 5553 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5554 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5555 | |
| 5556 | FILE *f = fopen ("conftest.val", "w"); |
| 5557 | if (! f) |
| 5558 | exit (1); |
| 5559 | if (((long) (sizeof (int))) < 0) |
| 5560 | { |
| 5561 | long i = longval (); |
| 5562 | if (i != ((long) (sizeof (int)))) |
| 5563 | exit (1); |
| 5564 | fprintf (f, "%ld\n", i); |
| 5565 | } |
| 5566 | else |
| 5567 | { |
| 5568 | unsigned long i = ulongval (); |
| 5569 | if (i != ((long) (sizeof (int)))) |
| 5570 | exit (1); |
| 5571 | fprintf (f, "%lu\n", i); |
| 5572 | } |
| 5573 | exit (ferror (f) || fclose (f) != 0); |
| 5574 | |
| 5575 | ; |
| 5576 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5577 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5578 | _ACEOF |
| 5579 | rm -f conftest$ac_exeext |
| 5580 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5581 | (eval $ac_link) 2>&5 |
| 5582 | ac_status=$? |
| 5583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5584 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5586 | (eval $ac_try) 2>&5 |
| 5587 | ac_status=$? |
| 5588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5589 | (exit $ac_status); }; }; then |
| 5590 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5591 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5592 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5593 | echo "$as_me: failed program was:" >&5 |
| 5594 | cat conftest.$ac_ext >&5 |
| 5595 | ( exit $ac_status ) |
| 5596 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5597 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5598 | { (exit 1); exit 1; }; } |
| 5599 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5600 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5601 | fi |
| 5602 | fi |
| 5603 | rm -f conftest.val |
| 5604 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5605 | ac_cv_sizeof_int=0 |
| 5606 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5607 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5608 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 5609 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 5610 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5611 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5612 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5613 | |
| 5614 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5615 | echo "$as_me:$LINENO: checking for long" >&5 |
| 5616 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 5617 | if test "${ac_cv_type_long+set}" = set; then |
| 5618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5619 | else |
| 5620 | cat >conftest.$ac_ext <<_ACEOF |
| 5621 | #line $LINENO "configure" |
| 5622 | #include "confdefs.h" |
| 5623 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5624 | #ifdef F77_DUMMY_MAIN |
| 5625 | # ifdef __cplusplus |
| 5626 | extern "C" |
| 5627 | # endif |
| 5628 | int F77_DUMMY_MAIN() { return 1; } |
| 5629 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5630 | int |
| 5631 | main () |
| 5632 | { |
| 5633 | if ((long *) 0) |
| 5634 | return 0; |
| 5635 | if (sizeof (long)) |
| 5636 | return 0; |
| 5637 | ; |
| 5638 | return 0; |
| 5639 | } |
| 5640 | _ACEOF |
| 5641 | rm -f conftest.$ac_objext |
| 5642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5643 | (eval $ac_compile) 2>&5 |
| 5644 | ac_status=$? |
| 5645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5646 | (exit $ac_status); } && |
| 5647 | { ac_try='test -s conftest.$ac_objext' |
| 5648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5649 | (eval $ac_try) 2>&5 |
| 5650 | ac_status=$? |
| 5651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5652 | (exit $ac_status); }; }; then |
| 5653 | ac_cv_type_long=yes |
| 5654 | else |
| 5655 | echo "$as_me: failed program was:" >&5 |
| 5656 | cat conftest.$ac_ext >&5 |
| 5657 | ac_cv_type_long=no |
| 5658 | fi |
| 5659 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5660 | fi |
| 5661 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 5662 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 5663 | |
| 5664 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 5665 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 5666 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 5667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5668 | else |
| 5669 | if test "$ac_cv_type_long" = yes; then |
| 5670 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5671 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5672 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5673 | # This bug is HP SR number 8606223364. |
| 5674 | if test "$cross_compiling" = yes; then |
| 5675 | # Depending upon the size, compute the lo and hi bounds. |
| 5676 | cat >conftest.$ac_ext <<_ACEOF |
| 5677 | #line $LINENO "configure" |
| 5678 | #include "confdefs.h" |
| 5679 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5680 | #ifdef F77_DUMMY_MAIN |
| 5681 | # ifdef __cplusplus |
| 5682 | extern "C" |
| 5683 | # endif |
| 5684 | int F77_DUMMY_MAIN() { return 1; } |
| 5685 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5686 | int |
| 5687 | main () |
| 5688 | { |
| 5689 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 5690 | test_array [0] = 0 |
| 5691 | |
| 5692 | ; |
| 5693 | return 0; |
| 5694 | } |
| 5695 | _ACEOF |
| 5696 | rm -f conftest.$ac_objext |
| 5697 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5698 | (eval $ac_compile) 2>&5 |
| 5699 | ac_status=$? |
| 5700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5701 | (exit $ac_status); } && |
| 5702 | { ac_try='test -s conftest.$ac_objext' |
| 5703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5704 | (eval $ac_try) 2>&5 |
| 5705 | ac_status=$? |
| 5706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5707 | (exit $ac_status); }; }; then |
| 5708 | ac_lo=0 ac_mid=0 |
| 5709 | while :; do |
| 5710 | cat >conftest.$ac_ext <<_ACEOF |
| 5711 | #line $LINENO "configure" |
| 5712 | #include "confdefs.h" |
| 5713 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5714 | #ifdef F77_DUMMY_MAIN |
| 5715 | # ifdef __cplusplus |
| 5716 | extern "C" |
| 5717 | # endif |
| 5718 | int F77_DUMMY_MAIN() { return 1; } |
| 5719 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5720 | int |
| 5721 | main () |
| 5722 | { |
| 5723 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5724 | test_array [0] = 0 |
| 5725 | |
| 5726 | ; |
| 5727 | return 0; |
| 5728 | } |
| 5729 | _ACEOF |
| 5730 | rm -f conftest.$ac_objext |
| 5731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5732 | (eval $ac_compile) 2>&5 |
| 5733 | ac_status=$? |
| 5734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5735 | (exit $ac_status); } && |
| 5736 | { ac_try='test -s conftest.$ac_objext' |
| 5737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5738 | (eval $ac_try) 2>&5 |
| 5739 | ac_status=$? |
| 5740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5741 | (exit $ac_status); }; }; then |
| 5742 | ac_hi=$ac_mid; break |
| 5743 | else |
| 5744 | echo "$as_me: failed program was:" >&5 |
| 5745 | cat conftest.$ac_ext >&5 |
| 5746 | ac_lo=`expr $ac_mid + 1` |
| 5747 | if test $ac_lo -le $ac_mid; then |
| 5748 | ac_lo= ac_hi= |
| 5749 | break |
| 5750 | fi |
| 5751 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5752 | fi |
| 5753 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5754 | done |
| 5755 | else |
| 5756 | echo "$as_me: failed program was:" >&5 |
| 5757 | cat conftest.$ac_ext >&5 |
| 5758 | cat >conftest.$ac_ext <<_ACEOF |
| 5759 | #line $LINENO "configure" |
| 5760 | #include "confdefs.h" |
| 5761 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5762 | #ifdef F77_DUMMY_MAIN |
| 5763 | # ifdef __cplusplus |
| 5764 | extern "C" |
| 5765 | # endif |
| 5766 | int F77_DUMMY_MAIN() { return 1; } |
| 5767 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5768 | int |
| 5769 | main () |
| 5770 | { |
| 5771 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 5772 | test_array [0] = 0 |
| 5773 | |
| 5774 | ; |
| 5775 | return 0; |
| 5776 | } |
| 5777 | _ACEOF |
| 5778 | rm -f conftest.$ac_objext |
| 5779 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5780 | (eval $ac_compile) 2>&5 |
| 5781 | ac_status=$? |
| 5782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5783 | (exit $ac_status); } && |
| 5784 | { ac_try='test -s conftest.$ac_objext' |
| 5785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5786 | (eval $ac_try) 2>&5 |
| 5787 | ac_status=$? |
| 5788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5789 | (exit $ac_status); }; }; then |
| 5790 | ac_hi=-1 ac_mid=-1 |
| 5791 | while :; do |
| 5792 | cat >conftest.$ac_ext <<_ACEOF |
| 5793 | #line $LINENO "configure" |
| 5794 | #include "confdefs.h" |
| 5795 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5796 | #ifdef F77_DUMMY_MAIN |
| 5797 | # ifdef __cplusplus |
| 5798 | extern "C" |
| 5799 | # endif |
| 5800 | int F77_DUMMY_MAIN() { return 1; } |
| 5801 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5802 | int |
| 5803 | main () |
| 5804 | { |
| 5805 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 5806 | test_array [0] = 0 |
| 5807 | |
| 5808 | ; |
| 5809 | return 0; |
| 5810 | } |
| 5811 | _ACEOF |
| 5812 | rm -f conftest.$ac_objext |
| 5813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5814 | (eval $ac_compile) 2>&5 |
| 5815 | ac_status=$? |
| 5816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5817 | (exit $ac_status); } && |
| 5818 | { ac_try='test -s conftest.$ac_objext' |
| 5819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5820 | (eval $ac_try) 2>&5 |
| 5821 | ac_status=$? |
| 5822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5823 | (exit $ac_status); }; }; then |
| 5824 | ac_lo=$ac_mid; break |
| 5825 | else |
| 5826 | echo "$as_me: failed program was:" >&5 |
| 5827 | cat conftest.$ac_ext >&5 |
| 5828 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5829 | if test $ac_mid -le $ac_hi; then |
| 5830 | ac_lo= ac_hi= |
| 5831 | break |
| 5832 | fi |
| 5833 | ac_mid=`expr 2 '*' $ac_mid` |
| 5834 | fi |
| 5835 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5836 | done |
| 5837 | else |
| 5838 | echo "$as_me: failed program was:" >&5 |
| 5839 | cat conftest.$ac_ext >&5 |
| 5840 | ac_lo= ac_hi= |
| 5841 | fi |
| 5842 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5843 | fi |
| 5844 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5845 | # Binary search between lo and hi bounds. |
| 5846 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5847 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5848 | cat >conftest.$ac_ext <<_ACEOF |
| 5849 | #line $LINENO "configure" |
| 5850 | #include "confdefs.h" |
| 5851 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5852 | #ifdef F77_DUMMY_MAIN |
| 5853 | # ifdef __cplusplus |
| 5854 | extern "C" |
| 5855 | # endif |
| 5856 | int F77_DUMMY_MAIN() { return 1; } |
| 5857 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5858 | int |
| 5859 | main () |
| 5860 | { |
| 5861 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5862 | test_array [0] = 0 |
| 5863 | |
| 5864 | ; |
| 5865 | return 0; |
| 5866 | } |
| 5867 | _ACEOF |
| 5868 | rm -f conftest.$ac_objext |
| 5869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5870 | (eval $ac_compile) 2>&5 |
| 5871 | ac_status=$? |
| 5872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5873 | (exit $ac_status); } && |
| 5874 | { ac_try='test -s conftest.$ac_objext' |
| 5875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5876 | (eval $ac_try) 2>&5 |
| 5877 | ac_status=$? |
| 5878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5879 | (exit $ac_status); }; }; then |
| 5880 | ac_hi=$ac_mid |
| 5881 | else |
| 5882 | echo "$as_me: failed program was:" >&5 |
| 5883 | cat conftest.$ac_ext >&5 |
| 5884 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5885 | fi |
| 5886 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5887 | done |
| 5888 | case $ac_lo in |
| 5889 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 5890 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5891 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5892 | { (exit 1); exit 1; }; } ;; |
| 5893 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5894 | else |
| 5895 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5896 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5897 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5898 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5899 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5900 | cat >conftest.$ac_ext <<_ACEOF |
| 5901 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5902 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5903 | $ac_includes_default |
| 5904 | long longval () { return (long) (sizeof (long)); } |
| 5905 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5906 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5907 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5908 | #ifdef F77_DUMMY_MAIN |
| 5909 | # ifdef __cplusplus |
| 5910 | extern "C" |
| 5911 | # endif |
| 5912 | int F77_DUMMY_MAIN() { return 1; } |
| 5913 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5914 | int |
| 5915 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5916 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5917 | |
| 5918 | FILE *f = fopen ("conftest.val", "w"); |
| 5919 | if (! f) |
| 5920 | exit (1); |
| 5921 | if (((long) (sizeof (long))) < 0) |
| 5922 | { |
| 5923 | long i = longval (); |
| 5924 | if (i != ((long) (sizeof (long)))) |
| 5925 | exit (1); |
| 5926 | fprintf (f, "%ld\n", i); |
| 5927 | } |
| 5928 | else |
| 5929 | { |
| 5930 | unsigned long i = ulongval (); |
| 5931 | if (i != ((long) (sizeof (long)))) |
| 5932 | exit (1); |
| 5933 | fprintf (f, "%lu\n", i); |
| 5934 | } |
| 5935 | exit (ferror (f) || fclose (f) != 0); |
| 5936 | |
| 5937 | ; |
| 5938 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5939 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5940 | _ACEOF |
| 5941 | rm -f conftest$ac_exeext |
| 5942 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5943 | (eval $ac_link) 2>&5 |
| 5944 | ac_status=$? |
| 5945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5946 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5948 | (eval $ac_try) 2>&5 |
| 5949 | ac_status=$? |
| 5950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5951 | (exit $ac_status); }; }; then |
| 5952 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5953 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5954 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5955 | echo "$as_me: failed program was:" >&5 |
| 5956 | cat conftest.$ac_ext >&5 |
| 5957 | ( exit $ac_status ) |
| 5958 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5959 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5960 | { (exit 1); exit 1; }; } |
| 5961 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5962 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5963 | fi |
| 5964 | fi |
| 5965 | rm -f conftest.val |
| 5966 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5967 | ac_cv_sizeof_long=0 |
| 5968 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5969 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5970 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 5971 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 5972 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5973 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5974 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5975 | |
| 5976 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5977 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 5978 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 5979 | if test "${ac_cv_type_void_p+set}" = set; then |
| 5980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5981 | else |
| 5982 | cat >conftest.$ac_ext <<_ACEOF |
| 5983 | #line $LINENO "configure" |
| 5984 | #include "confdefs.h" |
| 5985 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5986 | #ifdef F77_DUMMY_MAIN |
| 5987 | # ifdef __cplusplus |
| 5988 | extern "C" |
| 5989 | # endif |
| 5990 | int F77_DUMMY_MAIN() { return 1; } |
| 5991 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5992 | int |
| 5993 | main () |
| 5994 | { |
| 5995 | if ((void * *) 0) |
| 5996 | return 0; |
| 5997 | if (sizeof (void *)) |
| 5998 | return 0; |
| 5999 | ; |
| 6000 | return 0; |
| 6001 | } |
| 6002 | _ACEOF |
| 6003 | rm -f conftest.$ac_objext |
| 6004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6005 | (eval $ac_compile) 2>&5 |
| 6006 | ac_status=$? |
| 6007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6008 | (exit $ac_status); } && |
| 6009 | { ac_try='test -s conftest.$ac_objext' |
| 6010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6011 | (eval $ac_try) 2>&5 |
| 6012 | ac_status=$? |
| 6013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6014 | (exit $ac_status); }; }; then |
| 6015 | ac_cv_type_void_p=yes |
| 6016 | else |
| 6017 | echo "$as_me: failed program was:" >&5 |
| 6018 | cat conftest.$ac_ext >&5 |
| 6019 | ac_cv_type_void_p=no |
| 6020 | fi |
| 6021 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6022 | fi |
| 6023 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 6024 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 6025 | |
| 6026 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 6027 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 6028 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 6029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6030 | else |
| 6031 | if test "$ac_cv_type_void_p" = yes; then |
| 6032 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6033 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6034 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6035 | # This bug is HP SR number 8606223364. |
| 6036 | if test "$cross_compiling" = yes; then |
| 6037 | # Depending upon the size, compute the lo and hi bounds. |
| 6038 | cat >conftest.$ac_ext <<_ACEOF |
| 6039 | #line $LINENO "configure" |
| 6040 | #include "confdefs.h" |
| 6041 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6042 | #ifdef F77_DUMMY_MAIN |
| 6043 | # ifdef __cplusplus |
| 6044 | extern "C" |
| 6045 | # endif |
| 6046 | int F77_DUMMY_MAIN() { return 1; } |
| 6047 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6048 | int |
| 6049 | main () |
| 6050 | { |
| 6051 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 6052 | test_array [0] = 0 |
| 6053 | |
| 6054 | ; |
| 6055 | return 0; |
| 6056 | } |
| 6057 | _ACEOF |
| 6058 | rm -f conftest.$ac_objext |
| 6059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6060 | (eval $ac_compile) 2>&5 |
| 6061 | ac_status=$? |
| 6062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6063 | (exit $ac_status); } && |
| 6064 | { ac_try='test -s conftest.$ac_objext' |
| 6065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6066 | (eval $ac_try) 2>&5 |
| 6067 | ac_status=$? |
| 6068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6069 | (exit $ac_status); }; }; then |
| 6070 | ac_lo=0 ac_mid=0 |
| 6071 | while :; do |
| 6072 | cat >conftest.$ac_ext <<_ACEOF |
| 6073 | #line $LINENO "configure" |
| 6074 | #include "confdefs.h" |
| 6075 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6076 | #ifdef F77_DUMMY_MAIN |
| 6077 | # ifdef __cplusplus |
| 6078 | extern "C" |
| 6079 | # endif |
| 6080 | int F77_DUMMY_MAIN() { return 1; } |
| 6081 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6082 | int |
| 6083 | main () |
| 6084 | { |
| 6085 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6086 | test_array [0] = 0 |
| 6087 | |
| 6088 | ; |
| 6089 | return 0; |
| 6090 | } |
| 6091 | _ACEOF |
| 6092 | rm -f conftest.$ac_objext |
| 6093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6094 | (eval $ac_compile) 2>&5 |
| 6095 | ac_status=$? |
| 6096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6097 | (exit $ac_status); } && |
| 6098 | { ac_try='test -s conftest.$ac_objext' |
| 6099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6100 | (eval $ac_try) 2>&5 |
| 6101 | ac_status=$? |
| 6102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6103 | (exit $ac_status); }; }; then |
| 6104 | ac_hi=$ac_mid; break |
| 6105 | else |
| 6106 | echo "$as_me: failed program was:" >&5 |
| 6107 | cat conftest.$ac_ext >&5 |
| 6108 | ac_lo=`expr $ac_mid + 1` |
| 6109 | if test $ac_lo -le $ac_mid; then |
| 6110 | ac_lo= ac_hi= |
| 6111 | break |
| 6112 | fi |
| 6113 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6114 | fi |
| 6115 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6116 | done |
| 6117 | else |
| 6118 | echo "$as_me: failed program was:" >&5 |
| 6119 | cat conftest.$ac_ext >&5 |
| 6120 | cat >conftest.$ac_ext <<_ACEOF |
| 6121 | #line $LINENO "configure" |
| 6122 | #include "confdefs.h" |
| 6123 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6124 | #ifdef F77_DUMMY_MAIN |
| 6125 | # ifdef __cplusplus |
| 6126 | extern "C" |
| 6127 | # endif |
| 6128 | int F77_DUMMY_MAIN() { return 1; } |
| 6129 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6130 | int |
| 6131 | main () |
| 6132 | { |
| 6133 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 6134 | test_array [0] = 0 |
| 6135 | |
| 6136 | ; |
| 6137 | return 0; |
| 6138 | } |
| 6139 | _ACEOF |
| 6140 | rm -f conftest.$ac_objext |
| 6141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6142 | (eval $ac_compile) 2>&5 |
| 6143 | ac_status=$? |
| 6144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6145 | (exit $ac_status); } && |
| 6146 | { ac_try='test -s conftest.$ac_objext' |
| 6147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6148 | (eval $ac_try) 2>&5 |
| 6149 | ac_status=$? |
| 6150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6151 | (exit $ac_status); }; }; then |
| 6152 | ac_hi=-1 ac_mid=-1 |
| 6153 | while :; do |
| 6154 | cat >conftest.$ac_ext <<_ACEOF |
| 6155 | #line $LINENO "configure" |
| 6156 | #include "confdefs.h" |
| 6157 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6158 | #ifdef F77_DUMMY_MAIN |
| 6159 | # ifdef __cplusplus |
| 6160 | extern "C" |
| 6161 | # endif |
| 6162 | int F77_DUMMY_MAIN() { return 1; } |
| 6163 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6164 | int |
| 6165 | main () |
| 6166 | { |
| 6167 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 6168 | test_array [0] = 0 |
| 6169 | |
| 6170 | ; |
| 6171 | return 0; |
| 6172 | } |
| 6173 | _ACEOF |
| 6174 | rm -f conftest.$ac_objext |
| 6175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6176 | (eval $ac_compile) 2>&5 |
| 6177 | ac_status=$? |
| 6178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6179 | (exit $ac_status); } && |
| 6180 | { ac_try='test -s conftest.$ac_objext' |
| 6181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6182 | (eval $ac_try) 2>&5 |
| 6183 | ac_status=$? |
| 6184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6185 | (exit $ac_status); }; }; then |
| 6186 | ac_lo=$ac_mid; break |
| 6187 | else |
| 6188 | echo "$as_me: failed program was:" >&5 |
| 6189 | cat conftest.$ac_ext >&5 |
| 6190 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6191 | if test $ac_mid -le $ac_hi; then |
| 6192 | ac_lo= ac_hi= |
| 6193 | break |
| 6194 | fi |
| 6195 | ac_mid=`expr 2 '*' $ac_mid` |
| 6196 | fi |
| 6197 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6198 | done |
| 6199 | else |
| 6200 | echo "$as_me: failed program was:" >&5 |
| 6201 | cat conftest.$ac_ext >&5 |
| 6202 | ac_lo= ac_hi= |
| 6203 | fi |
| 6204 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6205 | fi |
| 6206 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6207 | # Binary search between lo and hi bounds. |
| 6208 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6209 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6210 | cat >conftest.$ac_ext <<_ACEOF |
| 6211 | #line $LINENO "configure" |
| 6212 | #include "confdefs.h" |
| 6213 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6214 | #ifdef F77_DUMMY_MAIN |
| 6215 | # ifdef __cplusplus |
| 6216 | extern "C" |
| 6217 | # endif |
| 6218 | int F77_DUMMY_MAIN() { return 1; } |
| 6219 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6220 | int |
| 6221 | main () |
| 6222 | { |
| 6223 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6224 | test_array [0] = 0 |
| 6225 | |
| 6226 | ; |
| 6227 | return 0; |
| 6228 | } |
| 6229 | _ACEOF |
| 6230 | rm -f conftest.$ac_objext |
| 6231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6232 | (eval $ac_compile) 2>&5 |
| 6233 | ac_status=$? |
| 6234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6235 | (exit $ac_status); } && |
| 6236 | { ac_try='test -s conftest.$ac_objext' |
| 6237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6238 | (eval $ac_try) 2>&5 |
| 6239 | ac_status=$? |
| 6240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6241 | (exit $ac_status); }; }; then |
| 6242 | ac_hi=$ac_mid |
| 6243 | else |
| 6244 | echo "$as_me: failed program was:" >&5 |
| 6245 | cat conftest.$ac_ext >&5 |
| 6246 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6247 | fi |
| 6248 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6249 | done |
| 6250 | case $ac_lo in |
| 6251 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
| 6252 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6253 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6254 | { (exit 1); exit 1; }; } ;; |
| 6255 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6256 | else |
| 6257 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6258 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6259 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6260 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6261 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6262 | cat >conftest.$ac_ext <<_ACEOF |
| 6263 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6264 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6265 | $ac_includes_default |
| 6266 | long longval () { return (long) (sizeof (void *)); } |
| 6267 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6268 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6269 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6270 | #ifdef F77_DUMMY_MAIN |
| 6271 | # ifdef __cplusplus |
| 6272 | extern "C" |
| 6273 | # endif |
| 6274 | int F77_DUMMY_MAIN() { return 1; } |
| 6275 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6276 | int |
| 6277 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6278 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6279 | |
| 6280 | FILE *f = fopen ("conftest.val", "w"); |
| 6281 | if (! f) |
| 6282 | exit (1); |
| 6283 | if (((long) (sizeof (void *))) < 0) |
| 6284 | { |
| 6285 | long i = longval (); |
| 6286 | if (i != ((long) (sizeof (void *)))) |
| 6287 | exit (1); |
| 6288 | fprintf (f, "%ld\n", i); |
| 6289 | } |
| 6290 | else |
| 6291 | { |
| 6292 | unsigned long i = ulongval (); |
| 6293 | if (i != ((long) (sizeof (void *)))) |
| 6294 | exit (1); |
| 6295 | fprintf (f, "%lu\n", i); |
| 6296 | } |
| 6297 | exit (ferror (f) || fclose (f) != 0); |
| 6298 | |
| 6299 | ; |
| 6300 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6301 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6302 | _ACEOF |
| 6303 | rm -f conftest$ac_exeext |
| 6304 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6305 | (eval $ac_link) 2>&5 |
| 6306 | ac_status=$? |
| 6307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6308 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6310 | (eval $ac_try) 2>&5 |
| 6311 | ac_status=$? |
| 6312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6313 | (exit $ac_status); }; }; then |
| 6314 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6315 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6316 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6317 | echo "$as_me: failed program was:" >&5 |
| 6318 | cat conftest.$ac_ext >&5 |
| 6319 | ( exit $ac_status ) |
| 6320 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6321 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6322 | { (exit 1); exit 1; }; } |
| 6323 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6324 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6325 | fi |
| 6326 | fi |
| 6327 | rm -f conftest.val |
| 6328 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6329 | ac_cv_sizeof_void_p=0 |
| 6330 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6331 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6332 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 6333 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 6334 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6335 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6336 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6337 | |
| 6338 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6339 | echo "$as_me:$LINENO: checking for char" >&5 |
| 6340 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 6341 | if test "${ac_cv_type_char+set}" = set; then |
| 6342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6343 | else |
| 6344 | cat >conftest.$ac_ext <<_ACEOF |
| 6345 | #line $LINENO "configure" |
| 6346 | #include "confdefs.h" |
| 6347 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6348 | #ifdef F77_DUMMY_MAIN |
| 6349 | # ifdef __cplusplus |
| 6350 | extern "C" |
| 6351 | # endif |
| 6352 | int F77_DUMMY_MAIN() { return 1; } |
| 6353 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6354 | int |
| 6355 | main () |
| 6356 | { |
| 6357 | if ((char *) 0) |
| 6358 | return 0; |
| 6359 | if (sizeof (char)) |
| 6360 | return 0; |
| 6361 | ; |
| 6362 | return 0; |
| 6363 | } |
| 6364 | _ACEOF |
| 6365 | rm -f conftest.$ac_objext |
| 6366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6367 | (eval $ac_compile) 2>&5 |
| 6368 | ac_status=$? |
| 6369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6370 | (exit $ac_status); } && |
| 6371 | { ac_try='test -s conftest.$ac_objext' |
| 6372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6373 | (eval $ac_try) 2>&5 |
| 6374 | ac_status=$? |
| 6375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6376 | (exit $ac_status); }; }; then |
| 6377 | ac_cv_type_char=yes |
| 6378 | else |
| 6379 | echo "$as_me: failed program was:" >&5 |
| 6380 | cat conftest.$ac_ext >&5 |
| 6381 | ac_cv_type_char=no |
| 6382 | fi |
| 6383 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6384 | fi |
| 6385 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 6386 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 6387 | |
| 6388 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 6389 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 6390 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 6391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6392 | else |
| 6393 | if test "$ac_cv_type_char" = yes; then |
| 6394 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6395 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6396 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6397 | # This bug is HP SR number 8606223364. |
| 6398 | if test "$cross_compiling" = yes; then |
| 6399 | # Depending upon the size, compute the lo and hi bounds. |
| 6400 | cat >conftest.$ac_ext <<_ACEOF |
| 6401 | #line $LINENO "configure" |
| 6402 | #include "confdefs.h" |
| 6403 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6404 | #ifdef F77_DUMMY_MAIN |
| 6405 | # ifdef __cplusplus |
| 6406 | extern "C" |
| 6407 | # endif |
| 6408 | int F77_DUMMY_MAIN() { return 1; } |
| 6409 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6410 | int |
| 6411 | main () |
| 6412 | { |
| 6413 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 6414 | test_array [0] = 0 |
| 6415 | |
| 6416 | ; |
| 6417 | return 0; |
| 6418 | } |
| 6419 | _ACEOF |
| 6420 | rm -f conftest.$ac_objext |
| 6421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6422 | (eval $ac_compile) 2>&5 |
| 6423 | ac_status=$? |
| 6424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6425 | (exit $ac_status); } && |
| 6426 | { ac_try='test -s conftest.$ac_objext' |
| 6427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6428 | (eval $ac_try) 2>&5 |
| 6429 | ac_status=$? |
| 6430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6431 | (exit $ac_status); }; }; then |
| 6432 | ac_lo=0 ac_mid=0 |
| 6433 | while :; do |
| 6434 | cat >conftest.$ac_ext <<_ACEOF |
| 6435 | #line $LINENO "configure" |
| 6436 | #include "confdefs.h" |
| 6437 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6438 | #ifdef F77_DUMMY_MAIN |
| 6439 | # ifdef __cplusplus |
| 6440 | extern "C" |
| 6441 | # endif |
| 6442 | int F77_DUMMY_MAIN() { return 1; } |
| 6443 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6444 | int |
| 6445 | main () |
| 6446 | { |
| 6447 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6448 | test_array [0] = 0 |
| 6449 | |
| 6450 | ; |
| 6451 | return 0; |
| 6452 | } |
| 6453 | _ACEOF |
| 6454 | rm -f conftest.$ac_objext |
| 6455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6456 | (eval $ac_compile) 2>&5 |
| 6457 | ac_status=$? |
| 6458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6459 | (exit $ac_status); } && |
| 6460 | { ac_try='test -s conftest.$ac_objext' |
| 6461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6462 | (eval $ac_try) 2>&5 |
| 6463 | ac_status=$? |
| 6464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6465 | (exit $ac_status); }; }; then |
| 6466 | ac_hi=$ac_mid; break |
| 6467 | else |
| 6468 | echo "$as_me: failed program was:" >&5 |
| 6469 | cat conftest.$ac_ext >&5 |
| 6470 | ac_lo=`expr $ac_mid + 1` |
| 6471 | if test $ac_lo -le $ac_mid; then |
| 6472 | ac_lo= ac_hi= |
| 6473 | break |
| 6474 | fi |
| 6475 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6476 | fi |
| 6477 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6478 | done |
| 6479 | else |
| 6480 | echo "$as_me: failed program was:" >&5 |
| 6481 | cat conftest.$ac_ext >&5 |
| 6482 | cat >conftest.$ac_ext <<_ACEOF |
| 6483 | #line $LINENO "configure" |
| 6484 | #include "confdefs.h" |
| 6485 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6486 | #ifdef F77_DUMMY_MAIN |
| 6487 | # ifdef __cplusplus |
| 6488 | extern "C" |
| 6489 | # endif |
| 6490 | int F77_DUMMY_MAIN() { return 1; } |
| 6491 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6492 | int |
| 6493 | main () |
| 6494 | { |
| 6495 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 6496 | test_array [0] = 0 |
| 6497 | |
| 6498 | ; |
| 6499 | return 0; |
| 6500 | } |
| 6501 | _ACEOF |
| 6502 | rm -f conftest.$ac_objext |
| 6503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6504 | (eval $ac_compile) 2>&5 |
| 6505 | ac_status=$? |
| 6506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6507 | (exit $ac_status); } && |
| 6508 | { ac_try='test -s conftest.$ac_objext' |
| 6509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6510 | (eval $ac_try) 2>&5 |
| 6511 | ac_status=$? |
| 6512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6513 | (exit $ac_status); }; }; then |
| 6514 | ac_hi=-1 ac_mid=-1 |
| 6515 | while :; do |
| 6516 | cat >conftest.$ac_ext <<_ACEOF |
| 6517 | #line $LINENO "configure" |
| 6518 | #include "confdefs.h" |
| 6519 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6520 | #ifdef F77_DUMMY_MAIN |
| 6521 | # ifdef __cplusplus |
| 6522 | extern "C" |
| 6523 | # endif |
| 6524 | int F77_DUMMY_MAIN() { return 1; } |
| 6525 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6526 | int |
| 6527 | main () |
| 6528 | { |
| 6529 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 6530 | test_array [0] = 0 |
| 6531 | |
| 6532 | ; |
| 6533 | return 0; |
| 6534 | } |
| 6535 | _ACEOF |
| 6536 | rm -f conftest.$ac_objext |
| 6537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6538 | (eval $ac_compile) 2>&5 |
| 6539 | ac_status=$? |
| 6540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6541 | (exit $ac_status); } && |
| 6542 | { ac_try='test -s conftest.$ac_objext' |
| 6543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6544 | (eval $ac_try) 2>&5 |
| 6545 | ac_status=$? |
| 6546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6547 | (exit $ac_status); }; }; then |
| 6548 | ac_lo=$ac_mid; break |
| 6549 | else |
| 6550 | echo "$as_me: failed program was:" >&5 |
| 6551 | cat conftest.$ac_ext >&5 |
| 6552 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6553 | if test $ac_mid -le $ac_hi; then |
| 6554 | ac_lo= ac_hi= |
| 6555 | break |
| 6556 | fi |
| 6557 | ac_mid=`expr 2 '*' $ac_mid` |
| 6558 | fi |
| 6559 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6560 | done |
| 6561 | else |
| 6562 | echo "$as_me: failed program was:" >&5 |
| 6563 | cat conftest.$ac_ext >&5 |
| 6564 | ac_lo= ac_hi= |
| 6565 | fi |
| 6566 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6567 | fi |
| 6568 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6569 | # Binary search between lo and hi bounds. |
| 6570 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6571 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6572 | cat >conftest.$ac_ext <<_ACEOF |
| 6573 | #line $LINENO "configure" |
| 6574 | #include "confdefs.h" |
| 6575 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6576 | #ifdef F77_DUMMY_MAIN |
| 6577 | # ifdef __cplusplus |
| 6578 | extern "C" |
| 6579 | # endif |
| 6580 | int F77_DUMMY_MAIN() { return 1; } |
| 6581 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6582 | int |
| 6583 | main () |
| 6584 | { |
| 6585 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6586 | test_array [0] = 0 |
| 6587 | |
| 6588 | ; |
| 6589 | return 0; |
| 6590 | } |
| 6591 | _ACEOF |
| 6592 | rm -f conftest.$ac_objext |
| 6593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6594 | (eval $ac_compile) 2>&5 |
| 6595 | ac_status=$? |
| 6596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6597 | (exit $ac_status); } && |
| 6598 | { ac_try='test -s conftest.$ac_objext' |
| 6599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6600 | (eval $ac_try) 2>&5 |
| 6601 | ac_status=$? |
| 6602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6603 | (exit $ac_status); }; }; then |
| 6604 | ac_hi=$ac_mid |
| 6605 | else |
| 6606 | echo "$as_me: failed program was:" >&5 |
| 6607 | cat conftest.$ac_ext >&5 |
| 6608 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6609 | fi |
| 6610 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6611 | done |
| 6612 | case $ac_lo in |
| 6613 | ?*) ac_cv_sizeof_char=$ac_lo;; |
| 6614 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6615 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6616 | { (exit 1); exit 1; }; } ;; |
| 6617 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6618 | else |
| 6619 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6620 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6621 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6622 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6623 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6624 | cat >conftest.$ac_ext <<_ACEOF |
| 6625 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6626 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6627 | $ac_includes_default |
| 6628 | long longval () { return (long) (sizeof (char)); } |
| 6629 | unsigned long ulongval () { return (long) (sizeof (char)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6630 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6631 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6632 | #ifdef F77_DUMMY_MAIN |
| 6633 | # ifdef __cplusplus |
| 6634 | extern "C" |
| 6635 | # endif |
| 6636 | int F77_DUMMY_MAIN() { return 1; } |
| 6637 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6638 | int |
| 6639 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6640 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6641 | |
| 6642 | FILE *f = fopen ("conftest.val", "w"); |
| 6643 | if (! f) |
| 6644 | exit (1); |
| 6645 | if (((long) (sizeof (char))) < 0) |
| 6646 | { |
| 6647 | long i = longval (); |
| 6648 | if (i != ((long) (sizeof (char)))) |
| 6649 | exit (1); |
| 6650 | fprintf (f, "%ld\n", i); |
| 6651 | } |
| 6652 | else |
| 6653 | { |
| 6654 | unsigned long i = ulongval (); |
| 6655 | if (i != ((long) (sizeof (char)))) |
| 6656 | exit (1); |
| 6657 | fprintf (f, "%lu\n", i); |
| 6658 | } |
| 6659 | exit (ferror (f) || fclose (f) != 0); |
| 6660 | |
| 6661 | ; |
| 6662 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6663 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6664 | _ACEOF |
| 6665 | rm -f conftest$ac_exeext |
| 6666 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6667 | (eval $ac_link) 2>&5 |
| 6668 | ac_status=$? |
| 6669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6670 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6672 | (eval $ac_try) 2>&5 |
| 6673 | ac_status=$? |
| 6674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6675 | (exit $ac_status); }; }; then |
| 6676 | ac_cv_sizeof_char=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6677 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6678 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6679 | echo "$as_me: failed program was:" >&5 |
| 6680 | cat conftest.$ac_ext >&5 |
| 6681 | ( exit $ac_status ) |
| 6682 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6683 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6684 | { (exit 1); exit 1; }; } |
| 6685 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6686 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6687 | fi |
| 6688 | fi |
| 6689 | rm -f conftest.val |
| 6690 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6691 | ac_cv_sizeof_char=0 |
| 6692 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6693 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6694 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 6695 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 6696 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6697 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6698 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6699 | |
| 6700 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6701 | echo "$as_me:$LINENO: checking for short" >&5 |
| 6702 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 6703 | if test "${ac_cv_type_short+set}" = set; then |
| 6704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6705 | else |
| 6706 | cat >conftest.$ac_ext <<_ACEOF |
| 6707 | #line $LINENO "configure" |
| 6708 | #include "confdefs.h" |
| 6709 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6710 | #ifdef F77_DUMMY_MAIN |
| 6711 | # ifdef __cplusplus |
| 6712 | extern "C" |
| 6713 | # endif |
| 6714 | int F77_DUMMY_MAIN() { return 1; } |
| 6715 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6716 | int |
| 6717 | main () |
| 6718 | { |
| 6719 | if ((short *) 0) |
| 6720 | return 0; |
| 6721 | if (sizeof (short)) |
| 6722 | return 0; |
| 6723 | ; |
| 6724 | return 0; |
| 6725 | } |
| 6726 | _ACEOF |
| 6727 | rm -f conftest.$ac_objext |
| 6728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6729 | (eval $ac_compile) 2>&5 |
| 6730 | ac_status=$? |
| 6731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6732 | (exit $ac_status); } && |
| 6733 | { ac_try='test -s conftest.$ac_objext' |
| 6734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6735 | (eval $ac_try) 2>&5 |
| 6736 | ac_status=$? |
| 6737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6738 | (exit $ac_status); }; }; then |
| 6739 | ac_cv_type_short=yes |
| 6740 | else |
| 6741 | echo "$as_me: failed program was:" >&5 |
| 6742 | cat conftest.$ac_ext >&5 |
| 6743 | ac_cv_type_short=no |
| 6744 | fi |
| 6745 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6746 | fi |
| 6747 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 6748 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 6749 | |
| 6750 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 6751 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 6752 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 6753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6754 | else |
| 6755 | if test "$ac_cv_type_short" = yes; then |
| 6756 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6757 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6758 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6759 | # This bug is HP SR number 8606223364. |
| 6760 | if test "$cross_compiling" = yes; then |
| 6761 | # Depending upon the size, compute the lo and hi bounds. |
| 6762 | cat >conftest.$ac_ext <<_ACEOF |
| 6763 | #line $LINENO "configure" |
| 6764 | #include "confdefs.h" |
| 6765 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6766 | #ifdef F77_DUMMY_MAIN |
| 6767 | # ifdef __cplusplus |
| 6768 | extern "C" |
| 6769 | # endif |
| 6770 | int F77_DUMMY_MAIN() { return 1; } |
| 6771 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6772 | int |
| 6773 | main () |
| 6774 | { |
| 6775 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 6776 | test_array [0] = 0 |
| 6777 | |
| 6778 | ; |
| 6779 | return 0; |
| 6780 | } |
| 6781 | _ACEOF |
| 6782 | rm -f conftest.$ac_objext |
| 6783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6784 | (eval $ac_compile) 2>&5 |
| 6785 | ac_status=$? |
| 6786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6787 | (exit $ac_status); } && |
| 6788 | { ac_try='test -s conftest.$ac_objext' |
| 6789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6790 | (eval $ac_try) 2>&5 |
| 6791 | ac_status=$? |
| 6792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6793 | (exit $ac_status); }; }; then |
| 6794 | ac_lo=0 ac_mid=0 |
| 6795 | while :; do |
| 6796 | cat >conftest.$ac_ext <<_ACEOF |
| 6797 | #line $LINENO "configure" |
| 6798 | #include "confdefs.h" |
| 6799 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6800 | #ifdef F77_DUMMY_MAIN |
| 6801 | # ifdef __cplusplus |
| 6802 | extern "C" |
| 6803 | # endif |
| 6804 | int F77_DUMMY_MAIN() { return 1; } |
| 6805 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6806 | int |
| 6807 | main () |
| 6808 | { |
| 6809 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6810 | test_array [0] = 0 |
| 6811 | |
| 6812 | ; |
| 6813 | return 0; |
| 6814 | } |
| 6815 | _ACEOF |
| 6816 | rm -f conftest.$ac_objext |
| 6817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6818 | (eval $ac_compile) 2>&5 |
| 6819 | ac_status=$? |
| 6820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6821 | (exit $ac_status); } && |
| 6822 | { ac_try='test -s conftest.$ac_objext' |
| 6823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6824 | (eval $ac_try) 2>&5 |
| 6825 | ac_status=$? |
| 6826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6827 | (exit $ac_status); }; }; then |
| 6828 | ac_hi=$ac_mid; break |
| 6829 | else |
| 6830 | echo "$as_me: failed program was:" >&5 |
| 6831 | cat conftest.$ac_ext >&5 |
| 6832 | ac_lo=`expr $ac_mid + 1` |
| 6833 | if test $ac_lo -le $ac_mid; then |
| 6834 | ac_lo= ac_hi= |
| 6835 | break |
| 6836 | fi |
| 6837 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6838 | fi |
| 6839 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6840 | done |
| 6841 | else |
| 6842 | echo "$as_me: failed program was:" >&5 |
| 6843 | cat conftest.$ac_ext >&5 |
| 6844 | cat >conftest.$ac_ext <<_ACEOF |
| 6845 | #line $LINENO "configure" |
| 6846 | #include "confdefs.h" |
| 6847 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6848 | #ifdef F77_DUMMY_MAIN |
| 6849 | # ifdef __cplusplus |
| 6850 | extern "C" |
| 6851 | # endif |
| 6852 | int F77_DUMMY_MAIN() { return 1; } |
| 6853 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6854 | int |
| 6855 | main () |
| 6856 | { |
| 6857 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 6858 | test_array [0] = 0 |
| 6859 | |
| 6860 | ; |
| 6861 | return 0; |
| 6862 | } |
| 6863 | _ACEOF |
| 6864 | rm -f conftest.$ac_objext |
| 6865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6866 | (eval $ac_compile) 2>&5 |
| 6867 | ac_status=$? |
| 6868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6869 | (exit $ac_status); } && |
| 6870 | { ac_try='test -s conftest.$ac_objext' |
| 6871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6872 | (eval $ac_try) 2>&5 |
| 6873 | ac_status=$? |
| 6874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6875 | (exit $ac_status); }; }; then |
| 6876 | ac_hi=-1 ac_mid=-1 |
| 6877 | while :; do |
| 6878 | cat >conftest.$ac_ext <<_ACEOF |
| 6879 | #line $LINENO "configure" |
| 6880 | #include "confdefs.h" |
| 6881 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6882 | #ifdef F77_DUMMY_MAIN |
| 6883 | # ifdef __cplusplus |
| 6884 | extern "C" |
| 6885 | # endif |
| 6886 | int F77_DUMMY_MAIN() { return 1; } |
| 6887 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6888 | int |
| 6889 | main () |
| 6890 | { |
| 6891 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 6892 | test_array [0] = 0 |
| 6893 | |
| 6894 | ; |
| 6895 | return 0; |
| 6896 | } |
| 6897 | _ACEOF |
| 6898 | rm -f conftest.$ac_objext |
| 6899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6900 | (eval $ac_compile) 2>&5 |
| 6901 | ac_status=$? |
| 6902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6903 | (exit $ac_status); } && |
| 6904 | { ac_try='test -s conftest.$ac_objext' |
| 6905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6906 | (eval $ac_try) 2>&5 |
| 6907 | ac_status=$? |
| 6908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6909 | (exit $ac_status); }; }; then |
| 6910 | ac_lo=$ac_mid; break |
| 6911 | else |
| 6912 | echo "$as_me: failed program was:" >&5 |
| 6913 | cat conftest.$ac_ext >&5 |
| 6914 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6915 | if test $ac_mid -le $ac_hi; then |
| 6916 | ac_lo= ac_hi= |
| 6917 | break |
| 6918 | fi |
| 6919 | ac_mid=`expr 2 '*' $ac_mid` |
| 6920 | fi |
| 6921 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6922 | done |
| 6923 | else |
| 6924 | echo "$as_me: failed program was:" >&5 |
| 6925 | cat conftest.$ac_ext >&5 |
| 6926 | ac_lo= ac_hi= |
| 6927 | fi |
| 6928 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6929 | fi |
| 6930 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6931 | # Binary search between lo and hi bounds. |
| 6932 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6933 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6934 | cat >conftest.$ac_ext <<_ACEOF |
| 6935 | #line $LINENO "configure" |
| 6936 | #include "confdefs.h" |
| 6937 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6938 | #ifdef F77_DUMMY_MAIN |
| 6939 | # ifdef __cplusplus |
| 6940 | extern "C" |
| 6941 | # endif |
| 6942 | int F77_DUMMY_MAIN() { return 1; } |
| 6943 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6944 | int |
| 6945 | main () |
| 6946 | { |
| 6947 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6948 | test_array [0] = 0 |
| 6949 | |
| 6950 | ; |
| 6951 | return 0; |
| 6952 | } |
| 6953 | _ACEOF |
| 6954 | rm -f conftest.$ac_objext |
| 6955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6956 | (eval $ac_compile) 2>&5 |
| 6957 | ac_status=$? |
| 6958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6959 | (exit $ac_status); } && |
| 6960 | { ac_try='test -s conftest.$ac_objext' |
| 6961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6962 | (eval $ac_try) 2>&5 |
| 6963 | ac_status=$? |
| 6964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6965 | (exit $ac_status); }; }; then |
| 6966 | ac_hi=$ac_mid |
| 6967 | else |
| 6968 | echo "$as_me: failed program was:" >&5 |
| 6969 | cat conftest.$ac_ext >&5 |
| 6970 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6971 | fi |
| 6972 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6973 | done |
| 6974 | case $ac_lo in |
| 6975 | ?*) ac_cv_sizeof_short=$ac_lo;; |
| 6976 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6977 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6978 | { (exit 1); exit 1; }; } ;; |
| 6979 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6980 | else |
| 6981 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6982 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6983 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6984 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6985 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6986 | cat >conftest.$ac_ext <<_ACEOF |
| 6987 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6988 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6989 | $ac_includes_default |
| 6990 | long longval () { return (long) (sizeof (short)); } |
| 6991 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6992 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6993 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6994 | #ifdef F77_DUMMY_MAIN |
| 6995 | # ifdef __cplusplus |
| 6996 | extern "C" |
| 6997 | # endif |
| 6998 | int F77_DUMMY_MAIN() { return 1; } |
| 6999 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7000 | int |
| 7001 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7002 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7003 | |
| 7004 | FILE *f = fopen ("conftest.val", "w"); |
| 7005 | if (! f) |
| 7006 | exit (1); |
| 7007 | if (((long) (sizeof (short))) < 0) |
| 7008 | { |
| 7009 | long i = longval (); |
| 7010 | if (i != ((long) (sizeof (short)))) |
| 7011 | exit (1); |
| 7012 | fprintf (f, "%ld\n", i); |
| 7013 | } |
| 7014 | else |
| 7015 | { |
| 7016 | unsigned long i = ulongval (); |
| 7017 | if (i != ((long) (sizeof (short)))) |
| 7018 | exit (1); |
| 7019 | fprintf (f, "%lu\n", i); |
| 7020 | } |
| 7021 | exit (ferror (f) || fclose (f) != 0); |
| 7022 | |
| 7023 | ; |
| 7024 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7025 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7026 | _ACEOF |
| 7027 | rm -f conftest$ac_exeext |
| 7028 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7029 | (eval $ac_link) 2>&5 |
| 7030 | ac_status=$? |
| 7031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7032 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7034 | (eval $ac_try) 2>&5 |
| 7035 | ac_status=$? |
| 7036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7037 | (exit $ac_status); }; }; then |
| 7038 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7039 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7040 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7041 | echo "$as_me: failed program was:" >&5 |
| 7042 | cat conftest.$ac_ext >&5 |
| 7043 | ( exit $ac_status ) |
| 7044 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 7045 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 7046 | { (exit 1); exit 1; }; } |
| 7047 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7048 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7049 | fi |
| 7050 | fi |
| 7051 | rm -f conftest.val |
| 7052 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7053 | ac_cv_sizeof_short=0 |
| 7054 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7055 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7056 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 7057 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 7058 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7059 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7060 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7061 | |
| 7062 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7063 | echo "$as_me:$LINENO: checking for float" >&5 |
| 7064 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 7065 | if test "${ac_cv_type_float+set}" = set; then |
| 7066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7067 | else |
| 7068 | cat >conftest.$ac_ext <<_ACEOF |
| 7069 | #line $LINENO "configure" |
| 7070 | #include "confdefs.h" |
| 7071 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7072 | #ifdef F77_DUMMY_MAIN |
| 7073 | # ifdef __cplusplus |
| 7074 | extern "C" |
| 7075 | # endif |
| 7076 | int F77_DUMMY_MAIN() { return 1; } |
| 7077 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7078 | int |
| 7079 | main () |
| 7080 | { |
| 7081 | if ((float *) 0) |
| 7082 | return 0; |
| 7083 | if (sizeof (float)) |
| 7084 | return 0; |
| 7085 | ; |
| 7086 | return 0; |
| 7087 | } |
| 7088 | _ACEOF |
| 7089 | rm -f conftest.$ac_objext |
| 7090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7091 | (eval $ac_compile) 2>&5 |
| 7092 | ac_status=$? |
| 7093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7094 | (exit $ac_status); } && |
| 7095 | { ac_try='test -s conftest.$ac_objext' |
| 7096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7097 | (eval $ac_try) 2>&5 |
| 7098 | ac_status=$? |
| 7099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7100 | (exit $ac_status); }; }; then |
| 7101 | ac_cv_type_float=yes |
| 7102 | else |
| 7103 | echo "$as_me: failed program was:" >&5 |
| 7104 | cat conftest.$ac_ext >&5 |
| 7105 | ac_cv_type_float=no |
| 7106 | fi |
| 7107 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7108 | fi |
| 7109 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 7110 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 7111 | |
| 7112 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 7113 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 7114 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 7115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7116 | else |
| 7117 | if test "$ac_cv_type_float" = yes; then |
| 7118 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7119 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7120 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7121 | # This bug is HP SR number 8606223364. |
| 7122 | if test "$cross_compiling" = yes; then |
| 7123 | # Depending upon the size, compute the lo and hi bounds. |
| 7124 | cat >conftest.$ac_ext <<_ACEOF |
| 7125 | #line $LINENO "configure" |
| 7126 | #include "confdefs.h" |
| 7127 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7128 | #ifdef F77_DUMMY_MAIN |
| 7129 | # ifdef __cplusplus |
| 7130 | extern "C" |
| 7131 | # endif |
| 7132 | int F77_DUMMY_MAIN() { return 1; } |
| 7133 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7134 | int |
| 7135 | main () |
| 7136 | { |
| 7137 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 7138 | test_array [0] = 0 |
| 7139 | |
| 7140 | ; |
| 7141 | return 0; |
| 7142 | } |
| 7143 | _ACEOF |
| 7144 | rm -f conftest.$ac_objext |
| 7145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7146 | (eval $ac_compile) 2>&5 |
| 7147 | ac_status=$? |
| 7148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7149 | (exit $ac_status); } && |
| 7150 | { ac_try='test -s conftest.$ac_objext' |
| 7151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7152 | (eval $ac_try) 2>&5 |
| 7153 | ac_status=$? |
| 7154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7155 | (exit $ac_status); }; }; then |
| 7156 | ac_lo=0 ac_mid=0 |
| 7157 | while :; do |
| 7158 | cat >conftest.$ac_ext <<_ACEOF |
| 7159 | #line $LINENO "configure" |
| 7160 | #include "confdefs.h" |
| 7161 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7162 | #ifdef F77_DUMMY_MAIN |
| 7163 | # ifdef __cplusplus |
| 7164 | extern "C" |
| 7165 | # endif |
| 7166 | int F77_DUMMY_MAIN() { return 1; } |
| 7167 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7168 | int |
| 7169 | main () |
| 7170 | { |
| 7171 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7172 | test_array [0] = 0 |
| 7173 | |
| 7174 | ; |
| 7175 | return 0; |
| 7176 | } |
| 7177 | _ACEOF |
| 7178 | rm -f conftest.$ac_objext |
| 7179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7180 | (eval $ac_compile) 2>&5 |
| 7181 | ac_status=$? |
| 7182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7183 | (exit $ac_status); } && |
| 7184 | { ac_try='test -s conftest.$ac_objext' |
| 7185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7186 | (eval $ac_try) 2>&5 |
| 7187 | ac_status=$? |
| 7188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7189 | (exit $ac_status); }; }; then |
| 7190 | ac_hi=$ac_mid; break |
| 7191 | else |
| 7192 | echo "$as_me: failed program was:" >&5 |
| 7193 | cat conftest.$ac_ext >&5 |
| 7194 | ac_lo=`expr $ac_mid + 1` |
| 7195 | if test $ac_lo -le $ac_mid; then |
| 7196 | ac_lo= ac_hi= |
| 7197 | break |
| 7198 | fi |
| 7199 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7200 | fi |
| 7201 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7202 | done |
| 7203 | else |
| 7204 | echo "$as_me: failed program was:" >&5 |
| 7205 | cat conftest.$ac_ext >&5 |
| 7206 | cat >conftest.$ac_ext <<_ACEOF |
| 7207 | #line $LINENO "configure" |
| 7208 | #include "confdefs.h" |
| 7209 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7210 | #ifdef F77_DUMMY_MAIN |
| 7211 | # ifdef __cplusplus |
| 7212 | extern "C" |
| 7213 | # endif |
| 7214 | int F77_DUMMY_MAIN() { return 1; } |
| 7215 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7216 | int |
| 7217 | main () |
| 7218 | { |
| 7219 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 7220 | test_array [0] = 0 |
| 7221 | |
| 7222 | ; |
| 7223 | return 0; |
| 7224 | } |
| 7225 | _ACEOF |
| 7226 | rm -f conftest.$ac_objext |
| 7227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7228 | (eval $ac_compile) 2>&5 |
| 7229 | ac_status=$? |
| 7230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7231 | (exit $ac_status); } && |
| 7232 | { ac_try='test -s conftest.$ac_objext' |
| 7233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7234 | (eval $ac_try) 2>&5 |
| 7235 | ac_status=$? |
| 7236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7237 | (exit $ac_status); }; }; then |
| 7238 | ac_hi=-1 ac_mid=-1 |
| 7239 | while :; do |
| 7240 | cat >conftest.$ac_ext <<_ACEOF |
| 7241 | #line $LINENO "configure" |
| 7242 | #include "confdefs.h" |
| 7243 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7244 | #ifdef F77_DUMMY_MAIN |
| 7245 | # ifdef __cplusplus |
| 7246 | extern "C" |
| 7247 | # endif |
| 7248 | int F77_DUMMY_MAIN() { return 1; } |
| 7249 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7250 | int |
| 7251 | main () |
| 7252 | { |
| 7253 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 7254 | test_array [0] = 0 |
| 7255 | |
| 7256 | ; |
| 7257 | return 0; |
| 7258 | } |
| 7259 | _ACEOF |
| 7260 | rm -f conftest.$ac_objext |
| 7261 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7262 | (eval $ac_compile) 2>&5 |
| 7263 | ac_status=$? |
| 7264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7265 | (exit $ac_status); } && |
| 7266 | { ac_try='test -s conftest.$ac_objext' |
| 7267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7268 | (eval $ac_try) 2>&5 |
| 7269 | ac_status=$? |
| 7270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7271 | (exit $ac_status); }; }; then |
| 7272 | ac_lo=$ac_mid; break |
| 7273 | else |
| 7274 | echo "$as_me: failed program was:" >&5 |
| 7275 | cat conftest.$ac_ext >&5 |
| 7276 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7277 | if test $ac_mid -le $ac_hi; then |
| 7278 | ac_lo= ac_hi= |
| 7279 | break |
| 7280 | fi |
| 7281 | ac_mid=`expr 2 '*' $ac_mid` |
| 7282 | fi |
| 7283 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7284 | done |
| 7285 | else |
| 7286 | echo "$as_me: failed program was:" >&5 |
| 7287 | cat conftest.$ac_ext >&5 |
| 7288 | ac_lo= ac_hi= |
| 7289 | fi |
| 7290 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7291 | fi |
| 7292 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7293 | # Binary search between lo and hi bounds. |
| 7294 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7295 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7296 | cat >conftest.$ac_ext <<_ACEOF |
| 7297 | #line $LINENO "configure" |
| 7298 | #include "confdefs.h" |
| 7299 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7300 | #ifdef F77_DUMMY_MAIN |
| 7301 | # ifdef __cplusplus |
| 7302 | extern "C" |
| 7303 | # endif |
| 7304 | int F77_DUMMY_MAIN() { return 1; } |
| 7305 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7306 | int |
| 7307 | main () |
| 7308 | { |
| 7309 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7310 | test_array [0] = 0 |
| 7311 | |
| 7312 | ; |
| 7313 | return 0; |
| 7314 | } |
| 7315 | _ACEOF |
| 7316 | rm -f conftest.$ac_objext |
| 7317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7318 | (eval $ac_compile) 2>&5 |
| 7319 | ac_status=$? |
| 7320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7321 | (exit $ac_status); } && |
| 7322 | { ac_try='test -s conftest.$ac_objext' |
| 7323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7324 | (eval $ac_try) 2>&5 |
| 7325 | ac_status=$? |
| 7326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7327 | (exit $ac_status); }; }; then |
| 7328 | ac_hi=$ac_mid |
| 7329 | else |
| 7330 | echo "$as_me: failed program was:" >&5 |
| 7331 | cat conftest.$ac_ext >&5 |
| 7332 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7333 | fi |
| 7334 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7335 | done |
| 7336 | case $ac_lo in |
| 7337 | ?*) ac_cv_sizeof_float=$ac_lo;; |
| 7338 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7339 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7340 | { (exit 1); exit 1; }; } ;; |
| 7341 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7342 | else |
| 7343 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7344 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7345 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7346 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7347 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7348 | cat >conftest.$ac_ext <<_ACEOF |
| 7349 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7350 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7351 | $ac_includes_default |
| 7352 | long longval () { return (long) (sizeof (float)); } |
| 7353 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7354 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7355 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7356 | #ifdef F77_DUMMY_MAIN |
| 7357 | # ifdef __cplusplus |
| 7358 | extern "C" |
| 7359 | # endif |
| 7360 | int F77_DUMMY_MAIN() { return 1; } |
| 7361 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7362 | int |
| 7363 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7364 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7365 | |
| 7366 | FILE *f = fopen ("conftest.val", "w"); |
| 7367 | if (! f) |
| 7368 | exit (1); |
| 7369 | if (((long) (sizeof (float))) < 0) |
| 7370 | { |
| 7371 | long i = longval (); |
| 7372 | if (i != ((long) (sizeof (float)))) |
| 7373 | exit (1); |
| 7374 | fprintf (f, "%ld\n", i); |
| 7375 | } |
| 7376 | else |
| 7377 | { |
| 7378 | unsigned long i = ulongval (); |
| 7379 | if (i != ((long) (sizeof (float)))) |
| 7380 | exit (1); |
| 7381 | fprintf (f, "%lu\n", i); |
| 7382 | } |
| 7383 | exit (ferror (f) || fclose (f) != 0); |
| 7384 | |
| 7385 | ; |
| 7386 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7387 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7388 | _ACEOF |
| 7389 | rm -f conftest$ac_exeext |
| 7390 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7391 | (eval $ac_link) 2>&5 |
| 7392 | ac_status=$? |
| 7393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7394 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7396 | (eval $ac_try) 2>&5 |
| 7397 | ac_status=$? |
| 7398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7399 | (exit $ac_status); }; }; then |
| 7400 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7401 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7402 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7403 | echo "$as_me: failed program was:" >&5 |
| 7404 | cat conftest.$ac_ext >&5 |
| 7405 | ( exit $ac_status ) |
| 7406 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7407 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7408 | { (exit 1); exit 1; }; } |
| 7409 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7410 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7411 | fi |
| 7412 | fi |
| 7413 | rm -f conftest.val |
| 7414 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7415 | ac_cv_sizeof_float=0 |
| 7416 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7417 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7418 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 7419 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 7420 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7421 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7422 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7423 | |
| 7424 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7425 | echo "$as_me:$LINENO: checking for double" >&5 |
| 7426 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 7427 | if test "${ac_cv_type_double+set}" = set; then |
| 7428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7429 | else |
| 7430 | cat >conftest.$ac_ext <<_ACEOF |
| 7431 | #line $LINENO "configure" |
| 7432 | #include "confdefs.h" |
| 7433 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7434 | #ifdef F77_DUMMY_MAIN |
| 7435 | # ifdef __cplusplus |
| 7436 | extern "C" |
| 7437 | # endif |
| 7438 | int F77_DUMMY_MAIN() { return 1; } |
| 7439 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7440 | int |
| 7441 | main () |
| 7442 | { |
| 7443 | if ((double *) 0) |
| 7444 | return 0; |
| 7445 | if (sizeof (double)) |
| 7446 | return 0; |
| 7447 | ; |
| 7448 | return 0; |
| 7449 | } |
| 7450 | _ACEOF |
| 7451 | rm -f conftest.$ac_objext |
| 7452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7453 | (eval $ac_compile) 2>&5 |
| 7454 | ac_status=$? |
| 7455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7456 | (exit $ac_status); } && |
| 7457 | { ac_try='test -s conftest.$ac_objext' |
| 7458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7459 | (eval $ac_try) 2>&5 |
| 7460 | ac_status=$? |
| 7461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7462 | (exit $ac_status); }; }; then |
| 7463 | ac_cv_type_double=yes |
| 7464 | else |
| 7465 | echo "$as_me: failed program was:" >&5 |
| 7466 | cat conftest.$ac_ext >&5 |
| 7467 | ac_cv_type_double=no |
| 7468 | fi |
| 7469 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7470 | fi |
| 7471 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 7472 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 7473 | |
| 7474 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 7475 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 7476 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 7477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7478 | else |
| 7479 | if test "$ac_cv_type_double" = yes; then |
| 7480 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7481 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7482 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7483 | # This bug is HP SR number 8606223364. |
| 7484 | if test "$cross_compiling" = yes; then |
| 7485 | # Depending upon the size, compute the lo and hi bounds. |
| 7486 | cat >conftest.$ac_ext <<_ACEOF |
| 7487 | #line $LINENO "configure" |
| 7488 | #include "confdefs.h" |
| 7489 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7490 | #ifdef F77_DUMMY_MAIN |
| 7491 | # ifdef __cplusplus |
| 7492 | extern "C" |
| 7493 | # endif |
| 7494 | int F77_DUMMY_MAIN() { return 1; } |
| 7495 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7496 | int |
| 7497 | main () |
| 7498 | { |
| 7499 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 7500 | test_array [0] = 0 |
| 7501 | |
| 7502 | ; |
| 7503 | return 0; |
| 7504 | } |
| 7505 | _ACEOF |
| 7506 | rm -f conftest.$ac_objext |
| 7507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7508 | (eval $ac_compile) 2>&5 |
| 7509 | ac_status=$? |
| 7510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7511 | (exit $ac_status); } && |
| 7512 | { ac_try='test -s conftest.$ac_objext' |
| 7513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7514 | (eval $ac_try) 2>&5 |
| 7515 | ac_status=$? |
| 7516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7517 | (exit $ac_status); }; }; then |
| 7518 | ac_lo=0 ac_mid=0 |
| 7519 | while :; do |
| 7520 | cat >conftest.$ac_ext <<_ACEOF |
| 7521 | #line $LINENO "configure" |
| 7522 | #include "confdefs.h" |
| 7523 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7524 | #ifdef F77_DUMMY_MAIN |
| 7525 | # ifdef __cplusplus |
| 7526 | extern "C" |
| 7527 | # endif |
| 7528 | int F77_DUMMY_MAIN() { return 1; } |
| 7529 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7530 | int |
| 7531 | main () |
| 7532 | { |
| 7533 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7534 | test_array [0] = 0 |
| 7535 | |
| 7536 | ; |
| 7537 | return 0; |
| 7538 | } |
| 7539 | _ACEOF |
| 7540 | rm -f conftest.$ac_objext |
| 7541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7542 | (eval $ac_compile) 2>&5 |
| 7543 | ac_status=$? |
| 7544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7545 | (exit $ac_status); } && |
| 7546 | { ac_try='test -s conftest.$ac_objext' |
| 7547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7548 | (eval $ac_try) 2>&5 |
| 7549 | ac_status=$? |
| 7550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7551 | (exit $ac_status); }; }; then |
| 7552 | ac_hi=$ac_mid; break |
| 7553 | else |
| 7554 | echo "$as_me: failed program was:" >&5 |
| 7555 | cat conftest.$ac_ext >&5 |
| 7556 | ac_lo=`expr $ac_mid + 1` |
| 7557 | if test $ac_lo -le $ac_mid; then |
| 7558 | ac_lo= ac_hi= |
| 7559 | break |
| 7560 | fi |
| 7561 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7562 | fi |
| 7563 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7564 | done |
| 7565 | else |
| 7566 | echo "$as_me: failed program was:" >&5 |
| 7567 | cat conftest.$ac_ext >&5 |
| 7568 | cat >conftest.$ac_ext <<_ACEOF |
| 7569 | #line $LINENO "configure" |
| 7570 | #include "confdefs.h" |
| 7571 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7572 | #ifdef F77_DUMMY_MAIN |
| 7573 | # ifdef __cplusplus |
| 7574 | extern "C" |
| 7575 | # endif |
| 7576 | int F77_DUMMY_MAIN() { return 1; } |
| 7577 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7578 | int |
| 7579 | main () |
| 7580 | { |
| 7581 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 7582 | test_array [0] = 0 |
| 7583 | |
| 7584 | ; |
| 7585 | return 0; |
| 7586 | } |
| 7587 | _ACEOF |
| 7588 | rm -f conftest.$ac_objext |
| 7589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7590 | (eval $ac_compile) 2>&5 |
| 7591 | ac_status=$? |
| 7592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7593 | (exit $ac_status); } && |
| 7594 | { ac_try='test -s conftest.$ac_objext' |
| 7595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7596 | (eval $ac_try) 2>&5 |
| 7597 | ac_status=$? |
| 7598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7599 | (exit $ac_status); }; }; then |
| 7600 | ac_hi=-1 ac_mid=-1 |
| 7601 | while :; do |
| 7602 | cat >conftest.$ac_ext <<_ACEOF |
| 7603 | #line $LINENO "configure" |
| 7604 | #include "confdefs.h" |
| 7605 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7606 | #ifdef F77_DUMMY_MAIN |
| 7607 | # ifdef __cplusplus |
| 7608 | extern "C" |
| 7609 | # endif |
| 7610 | int F77_DUMMY_MAIN() { return 1; } |
| 7611 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7612 | int |
| 7613 | main () |
| 7614 | { |
| 7615 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 7616 | test_array [0] = 0 |
| 7617 | |
| 7618 | ; |
| 7619 | return 0; |
| 7620 | } |
| 7621 | _ACEOF |
| 7622 | rm -f conftest.$ac_objext |
| 7623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7624 | (eval $ac_compile) 2>&5 |
| 7625 | ac_status=$? |
| 7626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7627 | (exit $ac_status); } && |
| 7628 | { ac_try='test -s conftest.$ac_objext' |
| 7629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7630 | (eval $ac_try) 2>&5 |
| 7631 | ac_status=$? |
| 7632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7633 | (exit $ac_status); }; }; then |
| 7634 | ac_lo=$ac_mid; break |
| 7635 | else |
| 7636 | echo "$as_me: failed program was:" >&5 |
| 7637 | cat conftest.$ac_ext >&5 |
| 7638 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7639 | if test $ac_mid -le $ac_hi; then |
| 7640 | ac_lo= ac_hi= |
| 7641 | break |
| 7642 | fi |
| 7643 | ac_mid=`expr 2 '*' $ac_mid` |
| 7644 | fi |
| 7645 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7646 | done |
| 7647 | else |
| 7648 | echo "$as_me: failed program was:" >&5 |
| 7649 | cat conftest.$ac_ext >&5 |
| 7650 | ac_lo= ac_hi= |
| 7651 | fi |
| 7652 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7653 | fi |
| 7654 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7655 | # Binary search between lo and hi bounds. |
| 7656 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7657 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7658 | cat >conftest.$ac_ext <<_ACEOF |
| 7659 | #line $LINENO "configure" |
| 7660 | #include "confdefs.h" |
| 7661 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7662 | #ifdef F77_DUMMY_MAIN |
| 7663 | # ifdef __cplusplus |
| 7664 | extern "C" |
| 7665 | # endif |
| 7666 | int F77_DUMMY_MAIN() { return 1; } |
| 7667 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7668 | int |
| 7669 | main () |
| 7670 | { |
| 7671 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7672 | test_array [0] = 0 |
| 7673 | |
| 7674 | ; |
| 7675 | return 0; |
| 7676 | } |
| 7677 | _ACEOF |
| 7678 | rm -f conftest.$ac_objext |
| 7679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7680 | (eval $ac_compile) 2>&5 |
| 7681 | ac_status=$? |
| 7682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7683 | (exit $ac_status); } && |
| 7684 | { ac_try='test -s conftest.$ac_objext' |
| 7685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7686 | (eval $ac_try) 2>&5 |
| 7687 | ac_status=$? |
| 7688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7689 | (exit $ac_status); }; }; then |
| 7690 | ac_hi=$ac_mid |
| 7691 | else |
| 7692 | echo "$as_me: failed program was:" >&5 |
| 7693 | cat conftest.$ac_ext >&5 |
| 7694 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7695 | fi |
| 7696 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7697 | done |
| 7698 | case $ac_lo in |
| 7699 | ?*) ac_cv_sizeof_double=$ac_lo;; |
| 7700 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7701 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7702 | { (exit 1); exit 1; }; } ;; |
| 7703 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7704 | else |
| 7705 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7706 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7707 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7708 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7709 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7710 | cat >conftest.$ac_ext <<_ACEOF |
| 7711 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7712 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7713 | $ac_includes_default |
| 7714 | long longval () { return (long) (sizeof (double)); } |
| 7715 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7716 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7717 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7718 | #ifdef F77_DUMMY_MAIN |
| 7719 | # ifdef __cplusplus |
| 7720 | extern "C" |
| 7721 | # endif |
| 7722 | int F77_DUMMY_MAIN() { return 1; } |
| 7723 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7724 | int |
| 7725 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7726 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7727 | |
| 7728 | FILE *f = fopen ("conftest.val", "w"); |
| 7729 | if (! f) |
| 7730 | exit (1); |
| 7731 | if (((long) (sizeof (double))) < 0) |
| 7732 | { |
| 7733 | long i = longval (); |
| 7734 | if (i != ((long) (sizeof (double)))) |
| 7735 | exit (1); |
| 7736 | fprintf (f, "%ld\n", i); |
| 7737 | } |
| 7738 | else |
| 7739 | { |
| 7740 | unsigned long i = ulongval (); |
| 7741 | if (i != ((long) (sizeof (double)))) |
| 7742 | exit (1); |
| 7743 | fprintf (f, "%lu\n", i); |
| 7744 | } |
| 7745 | exit (ferror (f) || fclose (f) != 0); |
| 7746 | |
| 7747 | ; |
| 7748 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7749 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7750 | _ACEOF |
| 7751 | rm -f conftest$ac_exeext |
| 7752 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7753 | (eval $ac_link) 2>&5 |
| 7754 | ac_status=$? |
| 7755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7756 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7758 | (eval $ac_try) 2>&5 |
| 7759 | ac_status=$? |
| 7760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7761 | (exit $ac_status); }; }; then |
| 7762 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7763 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7764 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7765 | echo "$as_me: failed program was:" >&5 |
| 7766 | cat conftest.$ac_ext >&5 |
| 7767 | ( exit $ac_status ) |
| 7768 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7769 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7770 | { (exit 1); exit 1; }; } |
| 7771 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7772 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7773 | fi |
| 7774 | fi |
| 7775 | rm -f conftest.val |
| 7776 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7777 | ac_cv_sizeof_double=0 |
| 7778 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7779 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7780 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 7781 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 7782 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7783 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7784 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7785 | |
| 7786 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7787 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 7788 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 7789 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 7790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7791 | else |
| 7792 | cat >conftest.$ac_ext <<_ACEOF |
| 7793 | #line $LINENO "configure" |
| 7794 | #include "confdefs.h" |
| 7795 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7796 | #ifdef F77_DUMMY_MAIN |
| 7797 | # ifdef __cplusplus |
| 7798 | extern "C" |
| 7799 | # endif |
| 7800 | int F77_DUMMY_MAIN() { return 1; } |
| 7801 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7802 | int |
| 7803 | main () |
| 7804 | { |
| 7805 | if ((fpos_t *) 0) |
| 7806 | return 0; |
| 7807 | if (sizeof (fpos_t)) |
| 7808 | return 0; |
| 7809 | ; |
| 7810 | return 0; |
| 7811 | } |
| 7812 | _ACEOF |
| 7813 | rm -f conftest.$ac_objext |
| 7814 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7815 | (eval $ac_compile) 2>&5 |
| 7816 | ac_status=$? |
| 7817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7818 | (exit $ac_status); } && |
| 7819 | { ac_try='test -s conftest.$ac_objext' |
| 7820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7821 | (eval $ac_try) 2>&5 |
| 7822 | ac_status=$? |
| 7823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7824 | (exit $ac_status); }; }; then |
| 7825 | ac_cv_type_fpos_t=yes |
| 7826 | else |
| 7827 | echo "$as_me: failed program was:" >&5 |
| 7828 | cat conftest.$ac_ext >&5 |
| 7829 | ac_cv_type_fpos_t=no |
| 7830 | fi |
| 7831 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7832 | fi |
| 7833 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 7834 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 7835 | |
| 7836 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 7837 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 7838 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 7839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7840 | else |
| 7841 | if test "$ac_cv_type_fpos_t" = yes; then |
| 7842 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7843 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7844 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7845 | # This bug is HP SR number 8606223364. |
| 7846 | if test "$cross_compiling" = yes; then |
| 7847 | # Depending upon the size, compute the lo and hi bounds. |
| 7848 | cat >conftest.$ac_ext <<_ACEOF |
| 7849 | #line $LINENO "configure" |
| 7850 | #include "confdefs.h" |
| 7851 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7852 | #ifdef F77_DUMMY_MAIN |
| 7853 | # ifdef __cplusplus |
| 7854 | extern "C" |
| 7855 | # endif |
| 7856 | int F77_DUMMY_MAIN() { return 1; } |
| 7857 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7858 | int |
| 7859 | main () |
| 7860 | { |
| 7861 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 7862 | test_array [0] = 0 |
| 7863 | |
| 7864 | ; |
| 7865 | return 0; |
| 7866 | } |
| 7867 | _ACEOF |
| 7868 | rm -f conftest.$ac_objext |
| 7869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7870 | (eval $ac_compile) 2>&5 |
| 7871 | ac_status=$? |
| 7872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7873 | (exit $ac_status); } && |
| 7874 | { ac_try='test -s conftest.$ac_objext' |
| 7875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7876 | (eval $ac_try) 2>&5 |
| 7877 | ac_status=$? |
| 7878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7879 | (exit $ac_status); }; }; then |
| 7880 | ac_lo=0 ac_mid=0 |
| 7881 | while :; do |
| 7882 | cat >conftest.$ac_ext <<_ACEOF |
| 7883 | #line $LINENO "configure" |
| 7884 | #include "confdefs.h" |
| 7885 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7886 | #ifdef F77_DUMMY_MAIN |
| 7887 | # ifdef __cplusplus |
| 7888 | extern "C" |
| 7889 | # endif |
| 7890 | int F77_DUMMY_MAIN() { return 1; } |
| 7891 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7892 | int |
| 7893 | main () |
| 7894 | { |
| 7895 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7896 | test_array [0] = 0 |
| 7897 | |
| 7898 | ; |
| 7899 | return 0; |
| 7900 | } |
| 7901 | _ACEOF |
| 7902 | rm -f conftest.$ac_objext |
| 7903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7904 | (eval $ac_compile) 2>&5 |
| 7905 | ac_status=$? |
| 7906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7907 | (exit $ac_status); } && |
| 7908 | { ac_try='test -s conftest.$ac_objext' |
| 7909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7910 | (eval $ac_try) 2>&5 |
| 7911 | ac_status=$? |
| 7912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7913 | (exit $ac_status); }; }; then |
| 7914 | ac_hi=$ac_mid; break |
| 7915 | else |
| 7916 | echo "$as_me: failed program was:" >&5 |
| 7917 | cat conftest.$ac_ext >&5 |
| 7918 | ac_lo=`expr $ac_mid + 1` |
| 7919 | if test $ac_lo -le $ac_mid; then |
| 7920 | ac_lo= ac_hi= |
| 7921 | break |
| 7922 | fi |
| 7923 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7924 | fi |
| 7925 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7926 | done |
| 7927 | else |
| 7928 | echo "$as_me: failed program was:" >&5 |
| 7929 | cat conftest.$ac_ext >&5 |
| 7930 | cat >conftest.$ac_ext <<_ACEOF |
| 7931 | #line $LINENO "configure" |
| 7932 | #include "confdefs.h" |
| 7933 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7934 | #ifdef F77_DUMMY_MAIN |
| 7935 | # ifdef __cplusplus |
| 7936 | extern "C" |
| 7937 | # endif |
| 7938 | int F77_DUMMY_MAIN() { return 1; } |
| 7939 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7940 | int |
| 7941 | main () |
| 7942 | { |
| 7943 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 7944 | test_array [0] = 0 |
| 7945 | |
| 7946 | ; |
| 7947 | return 0; |
| 7948 | } |
| 7949 | _ACEOF |
| 7950 | rm -f conftest.$ac_objext |
| 7951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7952 | (eval $ac_compile) 2>&5 |
| 7953 | ac_status=$? |
| 7954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7955 | (exit $ac_status); } && |
| 7956 | { ac_try='test -s conftest.$ac_objext' |
| 7957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7958 | (eval $ac_try) 2>&5 |
| 7959 | ac_status=$? |
| 7960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7961 | (exit $ac_status); }; }; then |
| 7962 | ac_hi=-1 ac_mid=-1 |
| 7963 | while :; do |
| 7964 | cat >conftest.$ac_ext <<_ACEOF |
| 7965 | #line $LINENO "configure" |
| 7966 | #include "confdefs.h" |
| 7967 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7968 | #ifdef F77_DUMMY_MAIN |
| 7969 | # ifdef __cplusplus |
| 7970 | extern "C" |
| 7971 | # endif |
| 7972 | int F77_DUMMY_MAIN() { return 1; } |
| 7973 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7974 | int |
| 7975 | main () |
| 7976 | { |
| 7977 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 7978 | test_array [0] = 0 |
| 7979 | |
| 7980 | ; |
| 7981 | return 0; |
| 7982 | } |
| 7983 | _ACEOF |
| 7984 | rm -f conftest.$ac_objext |
| 7985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7986 | (eval $ac_compile) 2>&5 |
| 7987 | ac_status=$? |
| 7988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7989 | (exit $ac_status); } && |
| 7990 | { ac_try='test -s conftest.$ac_objext' |
| 7991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7992 | (eval $ac_try) 2>&5 |
| 7993 | ac_status=$? |
| 7994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7995 | (exit $ac_status); }; }; then |
| 7996 | ac_lo=$ac_mid; break |
| 7997 | else |
| 7998 | echo "$as_me: failed program was:" >&5 |
| 7999 | cat conftest.$ac_ext >&5 |
| 8000 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8001 | if test $ac_mid -le $ac_hi; then |
| 8002 | ac_lo= ac_hi= |
| 8003 | break |
| 8004 | fi |
| 8005 | ac_mid=`expr 2 '*' $ac_mid` |
| 8006 | fi |
| 8007 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8008 | done |
| 8009 | else |
| 8010 | echo "$as_me: failed program was:" >&5 |
| 8011 | cat conftest.$ac_ext >&5 |
| 8012 | ac_lo= ac_hi= |
| 8013 | fi |
| 8014 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8015 | fi |
| 8016 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8017 | # Binary search between lo and hi bounds. |
| 8018 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8019 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8020 | cat >conftest.$ac_ext <<_ACEOF |
| 8021 | #line $LINENO "configure" |
| 8022 | #include "confdefs.h" |
| 8023 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8024 | #ifdef F77_DUMMY_MAIN |
| 8025 | # ifdef __cplusplus |
| 8026 | extern "C" |
| 8027 | # endif |
| 8028 | int F77_DUMMY_MAIN() { return 1; } |
| 8029 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8030 | int |
| 8031 | main () |
| 8032 | { |
| 8033 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8034 | test_array [0] = 0 |
| 8035 | |
| 8036 | ; |
| 8037 | return 0; |
| 8038 | } |
| 8039 | _ACEOF |
| 8040 | rm -f conftest.$ac_objext |
| 8041 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8042 | (eval $ac_compile) 2>&5 |
| 8043 | ac_status=$? |
| 8044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8045 | (exit $ac_status); } && |
| 8046 | { ac_try='test -s conftest.$ac_objext' |
| 8047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8048 | (eval $ac_try) 2>&5 |
| 8049 | ac_status=$? |
| 8050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8051 | (exit $ac_status); }; }; then |
| 8052 | ac_hi=$ac_mid |
| 8053 | else |
| 8054 | echo "$as_me: failed program was:" >&5 |
| 8055 | cat conftest.$ac_ext >&5 |
| 8056 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8057 | fi |
| 8058 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8059 | done |
| 8060 | case $ac_lo in |
| 8061 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
| 8062 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 8063 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 8064 | { (exit 1); exit 1; }; } ;; |
| 8065 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8066 | else |
| 8067 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8068 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8069 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8070 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8071 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8072 | cat >conftest.$ac_ext <<_ACEOF |
| 8073 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8074 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8075 | $ac_includes_default |
| 8076 | long longval () { return (long) (sizeof (fpos_t)); } |
| 8077 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8078 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8079 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8080 | #ifdef F77_DUMMY_MAIN |
| 8081 | # ifdef __cplusplus |
| 8082 | extern "C" |
| 8083 | # endif |
| 8084 | int F77_DUMMY_MAIN() { return 1; } |
| 8085 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8086 | int |
| 8087 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8088 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8089 | |
| 8090 | FILE *f = fopen ("conftest.val", "w"); |
| 8091 | if (! f) |
| 8092 | exit (1); |
| 8093 | if (((long) (sizeof (fpos_t))) < 0) |
| 8094 | { |
| 8095 | long i = longval (); |
| 8096 | if (i != ((long) (sizeof (fpos_t)))) |
| 8097 | exit (1); |
| 8098 | fprintf (f, "%ld\n", i); |
| 8099 | } |
| 8100 | else |
| 8101 | { |
| 8102 | unsigned long i = ulongval (); |
| 8103 | if (i != ((long) (sizeof (fpos_t)))) |
| 8104 | exit (1); |
| 8105 | fprintf (f, "%lu\n", i); |
| 8106 | } |
| 8107 | exit (ferror (f) || fclose (f) != 0); |
| 8108 | |
| 8109 | ; |
| 8110 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8111 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8112 | _ACEOF |
| 8113 | rm -f conftest$ac_exeext |
| 8114 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8115 | (eval $ac_link) 2>&5 |
| 8116 | ac_status=$? |
| 8117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8118 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8120 | (eval $ac_try) 2>&5 |
| 8121 | ac_status=$? |
| 8122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8123 | (exit $ac_status); }; }; then |
| 8124 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8125 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8126 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8127 | echo "$as_me: failed program was:" >&5 |
| 8128 | cat conftest.$ac_ext >&5 |
| 8129 | ( exit $ac_status ) |
| 8130 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 8131 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 8132 | { (exit 1); exit 1; }; } |
| 8133 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8134 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8135 | fi |
| 8136 | fi |
| 8137 | rm -f conftest.val |
| 8138 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8139 | ac_cv_sizeof_fpos_t=0 |
| 8140 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8141 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8142 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 8143 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 8144 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8145 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8146 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8147 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8148 | |
| 8149 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8150 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 8151 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8152 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8153 | cat >conftest.$ac_ext <<_ACEOF |
| 8154 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8155 | #include "confdefs.h" |
| 8156 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8157 | #ifdef F77_DUMMY_MAIN |
| 8158 | # ifdef __cplusplus |
| 8159 | extern "C" |
| 8160 | # endif |
| 8161 | int F77_DUMMY_MAIN() { return 1; } |
| 8162 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8163 | int |
| 8164 | main () |
| 8165 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8166 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8167 | ; |
| 8168 | return 0; |
| 8169 | } |
| 8170 | _ACEOF |
| 8171 | rm -f conftest.$ac_objext |
| 8172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8173 | (eval $ac_compile) 2>&5 |
| 8174 | ac_status=$? |
| 8175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8176 | (exit $ac_status); } && |
| 8177 | { ac_try='test -s conftest.$ac_objext' |
| 8178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8179 | (eval $ac_try) 2>&5 |
| 8180 | ac_status=$? |
| 8181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8182 | (exit $ac_status); }; }; then |
| 8183 | |
| 8184 | |
| 8185 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8186 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8187 | _ACEOF |
| 8188 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8189 | have_long_long=yes |
| 8190 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8191 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8192 | echo "$as_me: failed program was:" >&5 |
| 8193 | cat conftest.$ac_ext >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8194 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8195 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8196 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 8197 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8198 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8199 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 8200 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 8201 | if test "${ac_cv_type_long_long+set}" = set; then |
| 8202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8203 | else |
| 8204 | cat >conftest.$ac_ext <<_ACEOF |
| 8205 | #line $LINENO "configure" |
| 8206 | #include "confdefs.h" |
| 8207 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8208 | #ifdef F77_DUMMY_MAIN |
| 8209 | # ifdef __cplusplus |
| 8210 | extern "C" |
| 8211 | # endif |
| 8212 | int F77_DUMMY_MAIN() { return 1; } |
| 8213 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8214 | int |
| 8215 | main () |
| 8216 | { |
| 8217 | if ((long long *) 0) |
| 8218 | return 0; |
| 8219 | if (sizeof (long long)) |
| 8220 | return 0; |
| 8221 | ; |
| 8222 | return 0; |
| 8223 | } |
| 8224 | _ACEOF |
| 8225 | rm -f conftest.$ac_objext |
| 8226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8227 | (eval $ac_compile) 2>&5 |
| 8228 | ac_status=$? |
| 8229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8230 | (exit $ac_status); } && |
| 8231 | { ac_try='test -s conftest.$ac_objext' |
| 8232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8233 | (eval $ac_try) 2>&5 |
| 8234 | ac_status=$? |
| 8235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8236 | (exit $ac_status); }; }; then |
| 8237 | ac_cv_type_long_long=yes |
| 8238 | else |
| 8239 | echo "$as_me: failed program was:" >&5 |
| 8240 | cat conftest.$ac_ext >&5 |
| 8241 | ac_cv_type_long_long=no |
| 8242 | fi |
| 8243 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8244 | fi |
| 8245 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 8246 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 8247 | |
| 8248 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 8249 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 8250 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 8251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8252 | else |
| 8253 | if test "$ac_cv_type_long_long" = yes; then |
| 8254 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8255 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8256 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8257 | # This bug is HP SR number 8606223364. |
| 8258 | if test "$cross_compiling" = yes; then |
| 8259 | # Depending upon the size, compute the lo and hi bounds. |
| 8260 | cat >conftest.$ac_ext <<_ACEOF |
| 8261 | #line $LINENO "configure" |
| 8262 | #include "confdefs.h" |
| 8263 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8264 | #ifdef F77_DUMMY_MAIN |
| 8265 | # ifdef __cplusplus |
| 8266 | extern "C" |
| 8267 | # endif |
| 8268 | int F77_DUMMY_MAIN() { return 1; } |
| 8269 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8270 | int |
| 8271 | main () |
| 8272 | { |
| 8273 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 8274 | test_array [0] = 0 |
| 8275 | |
| 8276 | ; |
| 8277 | return 0; |
| 8278 | } |
| 8279 | _ACEOF |
| 8280 | rm -f conftest.$ac_objext |
| 8281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8282 | (eval $ac_compile) 2>&5 |
| 8283 | ac_status=$? |
| 8284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8285 | (exit $ac_status); } && |
| 8286 | { ac_try='test -s conftest.$ac_objext' |
| 8287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8288 | (eval $ac_try) 2>&5 |
| 8289 | ac_status=$? |
| 8290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8291 | (exit $ac_status); }; }; then |
| 8292 | ac_lo=0 ac_mid=0 |
| 8293 | while :; do |
| 8294 | cat >conftest.$ac_ext <<_ACEOF |
| 8295 | #line $LINENO "configure" |
| 8296 | #include "confdefs.h" |
| 8297 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8298 | #ifdef F77_DUMMY_MAIN |
| 8299 | # ifdef __cplusplus |
| 8300 | extern "C" |
| 8301 | # endif |
| 8302 | int F77_DUMMY_MAIN() { return 1; } |
| 8303 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8304 | int |
| 8305 | main () |
| 8306 | { |
| 8307 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8308 | test_array [0] = 0 |
| 8309 | |
| 8310 | ; |
| 8311 | return 0; |
| 8312 | } |
| 8313 | _ACEOF |
| 8314 | rm -f conftest.$ac_objext |
| 8315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8316 | (eval $ac_compile) 2>&5 |
| 8317 | ac_status=$? |
| 8318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8319 | (exit $ac_status); } && |
| 8320 | { ac_try='test -s conftest.$ac_objext' |
| 8321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8322 | (eval $ac_try) 2>&5 |
| 8323 | ac_status=$? |
| 8324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8325 | (exit $ac_status); }; }; then |
| 8326 | ac_hi=$ac_mid; break |
| 8327 | else |
| 8328 | echo "$as_me: failed program was:" >&5 |
| 8329 | cat conftest.$ac_ext >&5 |
| 8330 | ac_lo=`expr $ac_mid + 1` |
| 8331 | if test $ac_lo -le $ac_mid; then |
| 8332 | ac_lo= ac_hi= |
| 8333 | break |
| 8334 | fi |
| 8335 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8336 | fi |
| 8337 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8338 | done |
| 8339 | else |
| 8340 | echo "$as_me: failed program was:" >&5 |
| 8341 | cat conftest.$ac_ext >&5 |
| 8342 | cat >conftest.$ac_ext <<_ACEOF |
| 8343 | #line $LINENO "configure" |
| 8344 | #include "confdefs.h" |
| 8345 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8346 | #ifdef F77_DUMMY_MAIN |
| 8347 | # ifdef __cplusplus |
| 8348 | extern "C" |
| 8349 | # endif |
| 8350 | int F77_DUMMY_MAIN() { return 1; } |
| 8351 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8352 | int |
| 8353 | main () |
| 8354 | { |
| 8355 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 8356 | test_array [0] = 0 |
| 8357 | |
| 8358 | ; |
| 8359 | return 0; |
| 8360 | } |
| 8361 | _ACEOF |
| 8362 | rm -f conftest.$ac_objext |
| 8363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8364 | (eval $ac_compile) 2>&5 |
| 8365 | ac_status=$? |
| 8366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8367 | (exit $ac_status); } && |
| 8368 | { ac_try='test -s conftest.$ac_objext' |
| 8369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8370 | (eval $ac_try) 2>&5 |
| 8371 | ac_status=$? |
| 8372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8373 | (exit $ac_status); }; }; then |
| 8374 | ac_hi=-1 ac_mid=-1 |
| 8375 | while :; do |
| 8376 | cat >conftest.$ac_ext <<_ACEOF |
| 8377 | #line $LINENO "configure" |
| 8378 | #include "confdefs.h" |
| 8379 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8380 | #ifdef F77_DUMMY_MAIN |
| 8381 | # ifdef __cplusplus |
| 8382 | extern "C" |
| 8383 | # endif |
| 8384 | int F77_DUMMY_MAIN() { return 1; } |
| 8385 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8386 | int |
| 8387 | main () |
| 8388 | { |
| 8389 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 8390 | test_array [0] = 0 |
| 8391 | |
| 8392 | ; |
| 8393 | return 0; |
| 8394 | } |
| 8395 | _ACEOF |
| 8396 | rm -f conftest.$ac_objext |
| 8397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8398 | (eval $ac_compile) 2>&5 |
| 8399 | ac_status=$? |
| 8400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8401 | (exit $ac_status); } && |
| 8402 | { ac_try='test -s conftest.$ac_objext' |
| 8403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8404 | (eval $ac_try) 2>&5 |
| 8405 | ac_status=$? |
| 8406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8407 | (exit $ac_status); }; }; then |
| 8408 | ac_lo=$ac_mid; break |
| 8409 | else |
| 8410 | echo "$as_me: failed program was:" >&5 |
| 8411 | cat conftest.$ac_ext >&5 |
| 8412 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8413 | if test $ac_mid -le $ac_hi; then |
| 8414 | ac_lo= ac_hi= |
| 8415 | break |
| 8416 | fi |
| 8417 | ac_mid=`expr 2 '*' $ac_mid` |
| 8418 | fi |
| 8419 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8420 | done |
| 8421 | else |
| 8422 | echo "$as_me: failed program was:" >&5 |
| 8423 | cat conftest.$ac_ext >&5 |
| 8424 | ac_lo= ac_hi= |
| 8425 | fi |
| 8426 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8427 | fi |
| 8428 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8429 | # Binary search between lo and hi bounds. |
| 8430 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8431 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8432 | cat >conftest.$ac_ext <<_ACEOF |
| 8433 | #line $LINENO "configure" |
| 8434 | #include "confdefs.h" |
| 8435 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8436 | #ifdef F77_DUMMY_MAIN |
| 8437 | # ifdef __cplusplus |
| 8438 | extern "C" |
| 8439 | # endif |
| 8440 | int F77_DUMMY_MAIN() { return 1; } |
| 8441 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8442 | int |
| 8443 | main () |
| 8444 | { |
| 8445 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8446 | test_array [0] = 0 |
| 8447 | |
| 8448 | ; |
| 8449 | return 0; |
| 8450 | } |
| 8451 | _ACEOF |
| 8452 | rm -f conftest.$ac_objext |
| 8453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8454 | (eval $ac_compile) 2>&5 |
| 8455 | ac_status=$? |
| 8456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8457 | (exit $ac_status); } && |
| 8458 | { ac_try='test -s conftest.$ac_objext' |
| 8459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8460 | (eval $ac_try) 2>&5 |
| 8461 | ac_status=$? |
| 8462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8463 | (exit $ac_status); }; }; then |
| 8464 | ac_hi=$ac_mid |
| 8465 | else |
| 8466 | echo "$as_me: failed program was:" >&5 |
| 8467 | cat conftest.$ac_ext >&5 |
| 8468 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8469 | fi |
| 8470 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8471 | done |
| 8472 | case $ac_lo in |
| 8473 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
| 8474 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8475 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8476 | { (exit 1); exit 1; }; } ;; |
| 8477 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8478 | else |
| 8479 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8480 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8481 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8482 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8483 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8484 | cat >conftest.$ac_ext <<_ACEOF |
| 8485 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8486 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8487 | $ac_includes_default |
| 8488 | long longval () { return (long) (sizeof (long long)); } |
| 8489 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8490 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8491 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8492 | #ifdef F77_DUMMY_MAIN |
| 8493 | # ifdef __cplusplus |
| 8494 | extern "C" |
| 8495 | # endif |
| 8496 | int F77_DUMMY_MAIN() { return 1; } |
| 8497 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8498 | int |
| 8499 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8500 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8501 | |
| 8502 | FILE *f = fopen ("conftest.val", "w"); |
| 8503 | if (! f) |
| 8504 | exit (1); |
| 8505 | if (((long) (sizeof (long long))) < 0) |
| 8506 | { |
| 8507 | long i = longval (); |
| 8508 | if (i != ((long) (sizeof (long long)))) |
| 8509 | exit (1); |
| 8510 | fprintf (f, "%ld\n", i); |
| 8511 | } |
| 8512 | else |
| 8513 | { |
| 8514 | unsigned long i = ulongval (); |
| 8515 | if (i != ((long) (sizeof (long long)))) |
| 8516 | exit (1); |
| 8517 | fprintf (f, "%lu\n", i); |
| 8518 | } |
| 8519 | exit (ferror (f) || fclose (f) != 0); |
| 8520 | |
| 8521 | ; |
| 8522 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8523 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8524 | _ACEOF |
| 8525 | rm -f conftest$ac_exeext |
| 8526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8527 | (eval $ac_link) 2>&5 |
| 8528 | ac_status=$? |
| 8529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8530 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8532 | (eval $ac_try) 2>&5 |
| 8533 | ac_status=$? |
| 8534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8535 | (exit $ac_status); }; }; then |
| 8536 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8537 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8538 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8539 | echo "$as_me: failed program was:" >&5 |
| 8540 | cat conftest.$ac_ext >&5 |
| 8541 | ( exit $ac_status ) |
| 8542 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8543 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8544 | { (exit 1); exit 1; }; } |
| 8545 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8546 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8547 | fi |
| 8548 | fi |
| 8549 | rm -f conftest.val |
| 8550 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8551 | ac_cv_sizeof_long_long=0 |
| 8552 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8553 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8554 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 8555 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 8556 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8557 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8558 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8559 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8560 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8561 | fi |
| 8562 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8563 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 8564 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8565 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8566 | cat >conftest.$ac_ext <<_ACEOF |
| 8567 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8568 | #include "confdefs.h" |
| 8569 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8570 | #ifdef F77_DUMMY_MAIN |
| 8571 | # ifdef __cplusplus |
| 8572 | extern "C" |
| 8573 | # endif |
| 8574 | int F77_DUMMY_MAIN() { return 1; } |
| 8575 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8576 | int |
| 8577 | main () |
| 8578 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8579 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8580 | ; |
| 8581 | return 0; |
| 8582 | } |
| 8583 | _ACEOF |
| 8584 | rm -f conftest.$ac_objext |
| 8585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8586 | (eval $ac_compile) 2>&5 |
| 8587 | ac_status=$? |
| 8588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8589 | (exit $ac_status); } && |
| 8590 | { ac_try='test -s conftest.$ac_objext' |
| 8591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8592 | (eval $ac_try) 2>&5 |
| 8593 | ac_status=$? |
| 8594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8595 | (exit $ac_status); }; }; then |
| 8596 | |
| 8597 | |
| 8598 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8599 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8600 | _ACEOF |
| 8601 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8602 | have_uintptr_t=yes |
| 8603 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8604 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8605 | echo "$as_me: failed program was:" >&5 |
| 8606 | cat conftest.$ac_ext >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8607 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8608 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8609 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 8610 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8611 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8612 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 8613 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 8614 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 8615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8616 | else |
| 8617 | cat >conftest.$ac_ext <<_ACEOF |
| 8618 | #line $LINENO "configure" |
| 8619 | #include "confdefs.h" |
| 8620 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8621 | #ifdef F77_DUMMY_MAIN |
| 8622 | # ifdef __cplusplus |
| 8623 | extern "C" |
| 8624 | # endif |
| 8625 | int F77_DUMMY_MAIN() { return 1; } |
| 8626 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8627 | int |
| 8628 | main () |
| 8629 | { |
| 8630 | if ((uintptr_t *) 0) |
| 8631 | return 0; |
| 8632 | if (sizeof (uintptr_t)) |
| 8633 | return 0; |
| 8634 | ; |
| 8635 | return 0; |
| 8636 | } |
| 8637 | _ACEOF |
| 8638 | rm -f conftest.$ac_objext |
| 8639 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8640 | (eval $ac_compile) 2>&5 |
| 8641 | ac_status=$? |
| 8642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8643 | (exit $ac_status); } && |
| 8644 | { ac_try='test -s conftest.$ac_objext' |
| 8645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8646 | (eval $ac_try) 2>&5 |
| 8647 | ac_status=$? |
| 8648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8649 | (exit $ac_status); }; }; then |
| 8650 | ac_cv_type_uintptr_t=yes |
| 8651 | else |
| 8652 | echo "$as_me: failed program was:" >&5 |
| 8653 | cat conftest.$ac_ext >&5 |
| 8654 | ac_cv_type_uintptr_t=no |
| 8655 | fi |
| 8656 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8657 | fi |
| 8658 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 8659 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 8660 | |
| 8661 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 8662 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 8663 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 8664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8665 | else |
| 8666 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 8667 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8668 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8669 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8670 | # This bug is HP SR number 8606223364. |
| 8671 | if test "$cross_compiling" = yes; then |
| 8672 | # Depending upon the size, compute the lo and hi bounds. |
| 8673 | cat >conftest.$ac_ext <<_ACEOF |
| 8674 | #line $LINENO "configure" |
| 8675 | #include "confdefs.h" |
| 8676 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8677 | #ifdef F77_DUMMY_MAIN |
| 8678 | # ifdef __cplusplus |
| 8679 | extern "C" |
| 8680 | # endif |
| 8681 | int F77_DUMMY_MAIN() { return 1; } |
| 8682 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8683 | int |
| 8684 | main () |
| 8685 | { |
| 8686 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 8687 | test_array [0] = 0 |
| 8688 | |
| 8689 | ; |
| 8690 | return 0; |
| 8691 | } |
| 8692 | _ACEOF |
| 8693 | rm -f conftest.$ac_objext |
| 8694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8695 | (eval $ac_compile) 2>&5 |
| 8696 | ac_status=$? |
| 8697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8698 | (exit $ac_status); } && |
| 8699 | { ac_try='test -s conftest.$ac_objext' |
| 8700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8701 | (eval $ac_try) 2>&5 |
| 8702 | ac_status=$? |
| 8703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8704 | (exit $ac_status); }; }; then |
| 8705 | ac_lo=0 ac_mid=0 |
| 8706 | while :; do |
| 8707 | cat >conftest.$ac_ext <<_ACEOF |
| 8708 | #line $LINENO "configure" |
| 8709 | #include "confdefs.h" |
| 8710 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8711 | #ifdef F77_DUMMY_MAIN |
| 8712 | # ifdef __cplusplus |
| 8713 | extern "C" |
| 8714 | # endif |
| 8715 | int F77_DUMMY_MAIN() { return 1; } |
| 8716 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8717 | int |
| 8718 | main () |
| 8719 | { |
| 8720 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8721 | test_array [0] = 0 |
| 8722 | |
| 8723 | ; |
| 8724 | return 0; |
| 8725 | } |
| 8726 | _ACEOF |
| 8727 | rm -f conftest.$ac_objext |
| 8728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8729 | (eval $ac_compile) 2>&5 |
| 8730 | ac_status=$? |
| 8731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8732 | (exit $ac_status); } && |
| 8733 | { ac_try='test -s conftest.$ac_objext' |
| 8734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8735 | (eval $ac_try) 2>&5 |
| 8736 | ac_status=$? |
| 8737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8738 | (exit $ac_status); }; }; then |
| 8739 | ac_hi=$ac_mid; break |
| 8740 | else |
| 8741 | echo "$as_me: failed program was:" >&5 |
| 8742 | cat conftest.$ac_ext >&5 |
| 8743 | ac_lo=`expr $ac_mid + 1` |
| 8744 | if test $ac_lo -le $ac_mid; then |
| 8745 | ac_lo= ac_hi= |
| 8746 | break |
| 8747 | fi |
| 8748 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8749 | fi |
| 8750 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8751 | done |
| 8752 | else |
| 8753 | echo "$as_me: failed program was:" >&5 |
| 8754 | cat conftest.$ac_ext >&5 |
| 8755 | cat >conftest.$ac_ext <<_ACEOF |
| 8756 | #line $LINENO "configure" |
| 8757 | #include "confdefs.h" |
| 8758 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8759 | #ifdef F77_DUMMY_MAIN |
| 8760 | # ifdef __cplusplus |
| 8761 | extern "C" |
| 8762 | # endif |
| 8763 | int F77_DUMMY_MAIN() { return 1; } |
| 8764 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8765 | int |
| 8766 | main () |
| 8767 | { |
| 8768 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 8769 | test_array [0] = 0 |
| 8770 | |
| 8771 | ; |
| 8772 | return 0; |
| 8773 | } |
| 8774 | _ACEOF |
| 8775 | rm -f conftest.$ac_objext |
| 8776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8777 | (eval $ac_compile) 2>&5 |
| 8778 | ac_status=$? |
| 8779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8780 | (exit $ac_status); } && |
| 8781 | { ac_try='test -s conftest.$ac_objext' |
| 8782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8783 | (eval $ac_try) 2>&5 |
| 8784 | ac_status=$? |
| 8785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8786 | (exit $ac_status); }; }; then |
| 8787 | ac_hi=-1 ac_mid=-1 |
| 8788 | while :; do |
| 8789 | cat >conftest.$ac_ext <<_ACEOF |
| 8790 | #line $LINENO "configure" |
| 8791 | #include "confdefs.h" |
| 8792 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8793 | #ifdef F77_DUMMY_MAIN |
| 8794 | # ifdef __cplusplus |
| 8795 | extern "C" |
| 8796 | # endif |
| 8797 | int F77_DUMMY_MAIN() { return 1; } |
| 8798 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8799 | int |
| 8800 | main () |
| 8801 | { |
| 8802 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 8803 | test_array [0] = 0 |
| 8804 | |
| 8805 | ; |
| 8806 | return 0; |
| 8807 | } |
| 8808 | _ACEOF |
| 8809 | rm -f conftest.$ac_objext |
| 8810 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8811 | (eval $ac_compile) 2>&5 |
| 8812 | ac_status=$? |
| 8813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8814 | (exit $ac_status); } && |
| 8815 | { ac_try='test -s conftest.$ac_objext' |
| 8816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8817 | (eval $ac_try) 2>&5 |
| 8818 | ac_status=$? |
| 8819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8820 | (exit $ac_status); }; }; then |
| 8821 | ac_lo=$ac_mid; break |
| 8822 | else |
| 8823 | echo "$as_me: failed program was:" >&5 |
| 8824 | cat conftest.$ac_ext >&5 |
| 8825 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8826 | if test $ac_mid -le $ac_hi; then |
| 8827 | ac_lo= ac_hi= |
| 8828 | break |
| 8829 | fi |
| 8830 | ac_mid=`expr 2 '*' $ac_mid` |
| 8831 | fi |
| 8832 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8833 | done |
| 8834 | else |
| 8835 | echo "$as_me: failed program was:" >&5 |
| 8836 | cat conftest.$ac_ext >&5 |
| 8837 | ac_lo= ac_hi= |
| 8838 | fi |
| 8839 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8840 | fi |
| 8841 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8842 | # Binary search between lo and hi bounds. |
| 8843 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8844 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8845 | cat >conftest.$ac_ext <<_ACEOF |
| 8846 | #line $LINENO "configure" |
| 8847 | #include "confdefs.h" |
| 8848 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8849 | #ifdef F77_DUMMY_MAIN |
| 8850 | # ifdef __cplusplus |
| 8851 | extern "C" |
| 8852 | # endif |
| 8853 | int F77_DUMMY_MAIN() { return 1; } |
| 8854 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8855 | int |
| 8856 | main () |
| 8857 | { |
| 8858 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8859 | test_array [0] = 0 |
| 8860 | |
| 8861 | ; |
| 8862 | return 0; |
| 8863 | } |
| 8864 | _ACEOF |
| 8865 | rm -f conftest.$ac_objext |
| 8866 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8867 | (eval $ac_compile) 2>&5 |
| 8868 | ac_status=$? |
| 8869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8870 | (exit $ac_status); } && |
| 8871 | { ac_try='test -s conftest.$ac_objext' |
| 8872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8873 | (eval $ac_try) 2>&5 |
| 8874 | ac_status=$? |
| 8875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8876 | (exit $ac_status); }; }; then |
| 8877 | ac_hi=$ac_mid |
| 8878 | else |
| 8879 | echo "$as_me: failed program was:" >&5 |
| 8880 | cat conftest.$ac_ext >&5 |
| 8881 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8882 | fi |
| 8883 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8884 | done |
| 8885 | case $ac_lo in |
| 8886 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
| 8887 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8888 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8889 | { (exit 1); exit 1; }; } ;; |
| 8890 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8891 | else |
| 8892 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8893 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8894 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8895 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8896 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8897 | cat >conftest.$ac_ext <<_ACEOF |
| 8898 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8899 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8900 | $ac_includes_default |
| 8901 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 8902 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8903 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8904 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8905 | #ifdef F77_DUMMY_MAIN |
| 8906 | # ifdef __cplusplus |
| 8907 | extern "C" |
| 8908 | # endif |
| 8909 | int F77_DUMMY_MAIN() { return 1; } |
| 8910 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8911 | int |
| 8912 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8913 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8914 | |
| 8915 | FILE *f = fopen ("conftest.val", "w"); |
| 8916 | if (! f) |
| 8917 | exit (1); |
| 8918 | if (((long) (sizeof (uintptr_t))) < 0) |
| 8919 | { |
| 8920 | long i = longval (); |
| 8921 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8922 | exit (1); |
| 8923 | fprintf (f, "%ld\n", i); |
| 8924 | } |
| 8925 | else |
| 8926 | { |
| 8927 | unsigned long i = ulongval (); |
| 8928 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8929 | exit (1); |
| 8930 | fprintf (f, "%lu\n", i); |
| 8931 | } |
| 8932 | exit (ferror (f) || fclose (f) != 0); |
| 8933 | |
| 8934 | ; |
| 8935 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8936 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8937 | _ACEOF |
| 8938 | rm -f conftest$ac_exeext |
| 8939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8940 | (eval $ac_link) 2>&5 |
| 8941 | ac_status=$? |
| 8942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8943 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8945 | (eval $ac_try) 2>&5 |
| 8946 | ac_status=$? |
| 8947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8948 | (exit $ac_status); }; }; then |
| 8949 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8950 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8951 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8952 | echo "$as_me: failed program was:" >&5 |
| 8953 | cat conftest.$ac_ext >&5 |
| 8954 | ( exit $ac_status ) |
| 8955 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8956 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8957 | { (exit 1); exit 1; }; } |
| 8958 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8959 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8960 | fi |
| 8961 | fi |
| 8962 | rm -f conftest.val |
| 8963 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8964 | ac_cv_sizeof_uintptr_t=0 |
| 8965 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8966 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8967 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 8968 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 8969 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8970 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8971 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8972 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8973 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8974 | fi |
| 8975 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8976 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8977 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 8978 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 8979 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 8980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8981 | else |
| 8982 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8983 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8984 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8985 | cat >conftest.$ac_ext <<_ACEOF |
| 8986 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8987 | #include "confdefs.h" |
| 8988 | #include <stdio.h> |
| 8989 | #include <sys/types.h> |
| 8990 | main() |
| 8991 | { |
| 8992 | FILE *f=fopen("conftestval", "w"); |
| 8993 | if (!f) exit(1); |
| 8994 | fprintf(f, "%d\n", sizeof(off_t)); |
| 8995 | exit(0); |
| 8996 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8997 | _ACEOF |
| 8998 | rm -f conftest$ac_exeext |
| 8999 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9000 | (eval $ac_link) 2>&5 |
| 9001 | ac_status=$? |
| 9002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9003 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9005 | (eval $ac_try) 2>&5 |
| 9006 | ac_status=$? |
| 9007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9008 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9009 | ac_cv_sizeof_off_t=`cat conftestval` |
| 9010 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9011 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9012 | echo "$as_me: failed program was:" >&5 |
| 9013 | cat conftest.$ac_ext >&5 |
| 9014 | ( exit $ac_status ) |
| 9015 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9016 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9017 | 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] | 9018 | fi |
| 9019 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9020 | fi |
| 9021 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9022 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 9023 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 9024 | |
| 9025 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9026 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9027 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9028 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9029 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9030 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 9031 | 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] | 9032 | if test "$have_long_long" = yes -a \ |
| 9033 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 9034 | "$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] | 9035 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9036 | cat >>confdefs.h <<\_ACEOF |
| 9037 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 9038 | _ACEOF |
| 9039 | |
| 9040 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9041 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9042 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9043 | echo "$as_me:$LINENO: result: no" >&5 |
| 9044 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9045 | fi |
| 9046 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9047 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9048 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 9049 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 9050 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 9051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9052 | else |
| 9053 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9054 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9055 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9056 | cat >conftest.$ac_ext <<_ACEOF |
| 9057 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9058 | #include "confdefs.h" |
| 9059 | #include <stdio.h> |
| 9060 | #include <time.h> |
| 9061 | main() |
| 9062 | { |
| 9063 | FILE *f=fopen("conftestval", "w"); |
| 9064 | if (!f) exit(1); |
| 9065 | fprintf(f, "%d\n", sizeof(time_t)); |
| 9066 | exit(0); |
| 9067 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9068 | _ACEOF |
| 9069 | rm -f conftest$ac_exeext |
| 9070 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9071 | (eval $ac_link) 2>&5 |
| 9072 | ac_status=$? |
| 9073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9074 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9076 | (eval $ac_try) 2>&5 |
| 9077 | ac_status=$? |
| 9078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9079 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9080 | ac_cv_sizeof_time_t=`cat conftestval` |
| 9081 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9082 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9083 | echo "$as_me: failed program was:" >&5 |
| 9084 | cat conftest.$ac_ext >&5 |
| 9085 | ( exit $ac_status ) |
| 9086 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9087 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9088 | 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] | 9089 | fi |
| 9090 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9091 | fi |
| 9092 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9093 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 9094 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 9095 | |
| 9096 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9097 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9098 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9099 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9100 | |
| 9101 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9102 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9103 | ac_save_cc="$CC" |
| 9104 | if test "$ac_cv_kpthread" = "yes" |
| 9105 | then CC="$CC -Kpthread" |
| 9106 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9107 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 9108 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9109 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9110 | cat >conftest.$ac_ext <<_ACEOF |
| 9111 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9112 | #include "confdefs.h" |
| 9113 | #include <pthread.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9114 | #ifdef F77_DUMMY_MAIN |
| 9115 | # ifdef __cplusplus |
| 9116 | extern "C" |
| 9117 | # endif |
| 9118 | int F77_DUMMY_MAIN() { return 1; } |
| 9119 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9120 | int |
| 9121 | main () |
| 9122 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 9123 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9124 | ; |
| 9125 | return 0; |
| 9126 | } |
| 9127 | _ACEOF |
| 9128 | rm -f conftest.$ac_objext |
| 9129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9130 | (eval $ac_compile) 2>&5 |
| 9131 | ac_status=$? |
| 9132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9133 | (exit $ac_status); } && |
| 9134 | { ac_try='test -s conftest.$ac_objext' |
| 9135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9136 | (eval $ac_try) 2>&5 |
| 9137 | ac_status=$? |
| 9138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9139 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9140 | have_pthread_t=yes |
| 9141 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9142 | echo "$as_me: failed program was:" >&5 |
| 9143 | cat conftest.$ac_ext >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9144 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9145 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9146 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 9147 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9148 | if test "$have_pthread_t" = yes ; then |
| 9149 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9150 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 9151 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 9152 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 9153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9154 | else |
| 9155 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9156 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9157 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9158 | cat >conftest.$ac_ext <<_ACEOF |
| 9159 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9160 | #include "confdefs.h" |
| 9161 | #include <stdio.h> |
| 9162 | #include <pthread.h> |
| 9163 | main() |
| 9164 | { |
| 9165 | FILE *f=fopen("conftestval", "w"); |
| 9166 | if (!f) exit(1); |
| 9167 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 9168 | exit(0); |
| 9169 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9170 | _ACEOF |
| 9171 | rm -f conftest$ac_exeext |
| 9172 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9173 | (eval $ac_link) 2>&5 |
| 9174 | ac_status=$? |
| 9175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9176 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9178 | (eval $ac_try) 2>&5 |
| 9179 | ac_status=$? |
| 9180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9181 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9182 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 9183 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9184 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9185 | echo "$as_me: failed program was:" >&5 |
| 9186 | cat conftest.$ac_ext >&5 |
| 9187 | ( exit $ac_status ) |
| 9188 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9189 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9190 | 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] | 9191 | fi |
| 9192 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9193 | fi |
| 9194 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9195 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 9196 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 9197 | |
| 9198 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9199 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9200 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9201 | |
| 9202 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9203 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9204 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9205 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 9206 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9207 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 9208 | if test "${enable_toolbox_glue+set}" = set; then |
| 9209 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9210 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9211 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9212 | |
| 9213 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9214 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9215 | case $ac_sys_system/$ac_sys_release in |
| 9216 | Darwin/*) |
| 9217 | enable_toolbox_glue="yes";; |
| 9218 | *) |
| 9219 | enable_toolbox_glue="no";; |
| 9220 | esac |
| 9221 | fi |
| 9222 | case "$enable_toolbox_glue" in |
| 9223 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 9224 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9225 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9226 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9227 | |
| 9228 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9229 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9230 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9231 | |
| 9232 | ;; |
| 9233 | *) |
| 9234 | extra_frameworks="" |
| 9235 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9236 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9237 | ;; |
| 9238 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9239 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 9240 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9241 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9242 | |
| 9243 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9244 | Darwin/1.3*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9245 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9246 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9247 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 9248 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 9249 | Darwin/*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9250 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9251 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9252 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 9253 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9254 | esac |
| 9255 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9256 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 9257 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9258 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9259 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9260 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9261 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9262 | # in the build location. |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9263 | LDFLAGS="$LDFLAGS -Wl,-F." |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9264 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9265 | cat >>confdefs.h <<\_ACEOF |
| 9266 | #define WITH_NEXT_FRAMEWORK 1 |
| 9267 | _ACEOF |
| 9268 | |
| 9269 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9270 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9271 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9272 | echo "$as_me:$LINENO: result: no" >&5 |
| 9273 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9274 | fi |
| 9275 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9276 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 9277 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9278 | case $ac_sys_system/$ac_sys_release in |
| 9279 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9280 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9281 | cat >>confdefs.h <<\_ACEOF |
| 9282 | #define WITH_DYLD 1 |
| 9283 | _ACEOF |
| 9284 | |
| 9285 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 9286 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9287 | ;; |
| 9288 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9289 | echo "$as_me:$LINENO: result: no" >&5 |
| 9290 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9291 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9292 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9293 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9294 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9295 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9296 | |
| 9297 | |
| 9298 | |
| 9299 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9300 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9301 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9302 | echo "$as_me:$LINENO: checking SO" >&5 |
| 9303 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9304 | if test -z "$SO" |
| 9305 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9306 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9307 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9308 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9309 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9310 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9311 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9312 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 9313 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9314 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 9315 | # -- "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] | 9316 | # (Shared libraries in this instance are shared modules to be loaded into |
| 9317 | # 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] | 9318 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 9319 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9320 | if test -z "$LDSHARED" |
| 9321 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9322 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9323 | AIX*) |
| 9324 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9325 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9326 | ;; |
| 9327 | BeOS*) |
| 9328 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9329 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9330 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9331 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 9332 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9333 | SunOS/4*) LDSHARED="ld";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9334 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9335 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 9336 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 9337 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9338 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9339 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 9340 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 9341 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9342 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9343 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9344 | if test "$enable_framework" ; then |
| 9345 | # Link against the framework. All externals should be defined. |
| 9346 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 9347 | else |
| 9348 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9349 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9350 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9351 | Darwin/*) |
| 9352 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9353 | if test "$enable_framework" ; then |
| 9354 | # Link against the framework. All externals should be defined. |
| 9355 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 9356 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9357 | # No framework, use the Python app as bundle-loader |
| 9358 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 9359 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/$(PYTHON)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9360 | fi ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 9361 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 9362 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 9363 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9364 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9365 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9366 | then |
| 9367 | LDSHARED="cc -shared ${LDFLAGS}" |
| 9368 | else |
| 9369 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 9370 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9371 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9372 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9373 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 9374 | then LDSHARED='$(CC) -shared' |
| 9375 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9376 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 9377 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9378 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9379 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9380 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9381 | *) LDSHARED="ld";; |
| 9382 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9383 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9384 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 9385 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9386 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9387 | # 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] | 9388 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9389 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 9390 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9391 | if test -z "$CCSHARED" |
| 9392 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9393 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9394 | SunOS*) if test "$GCC" = yes; |
| 9395 | then CCSHARED="-fPIC"; |
| 9396 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9397 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9398 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9399 | else CCSHARED="+z"; |
| 9400 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9401 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9402 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 9403 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9404 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9405 | if test "$GCC" = "yes" |
| 9406 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9407 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9408 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9409 | SCO_SV*) |
| 9410 | if test "$GCC" = "yes" |
| 9411 | then CCSHARED="-fPIC" |
| 9412 | else CCSHARED="-Kpic -belf" |
| 9413 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9414 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9415 | IRIX*/6*) case $CC in |
| 9416 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 9417 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9418 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9419 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9420 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9421 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9422 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 9423 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9424 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9425 | # 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] | 9426 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 9427 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9428 | if test -z "$LINKFORSHARED" |
| 9429 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9430 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9431 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9432 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9433 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 9434 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9435 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9436 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9437 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9438 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9439 | # -u __dummy makes the linker aware of the objc runtime |
| 9440 | # in System.framework; otherwise, __objcInit (referenced in |
| 9441 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 9442 | # loading of any modules which reference it in System.framework. |
| 9443 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 9444 | # not used by the core itself but which needs to be in the core so |
| 9445 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 0780e47 | 2003-01-20 10:47:48 +0000 | [diff] [blame] | 9446 | # -prebind causes the executable to assume dynamic libraries are at their |
| 9447 | # preferred address, which speeds up startup. We specify it here |
| 9448 | # in stead of in LDFLAGS because it does not seem to work for bundle |
| 9449 | # plugins (as of OSX 10.2). |
| 9450 | LINKFORSHARED="$extra_undefs -framework System -prebind" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9451 | if test "$enable_framework" |
| 9452 | then |
| 9453 | LINKFORSHARED="$LINKFORSHARED -framework Python" |
| 9454 | fi |
| 9455 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9456 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9457 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9458 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9459 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9460 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 9461 | then |
| 9462 | LINKFORSHARED="-Wl,--export-dynamic" |
| 9463 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9464 | SunOS/5*) case $CC in |
| 9465 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9466 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9467 | then |
| 9468 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9469 | fi;; |
| 9470 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9471 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9472 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9473 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 9474 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9475 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9476 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9477 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 9478 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9479 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 9480 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9481 | case $ac_sys_system in |
| 9482 | CYGWIN*) |
| 9483 | # Cygwin needs CCSHARED when building extension DLLs |
| 9484 | # but not when building the interpreter DLL. |
| 9485 | CFLAGSFORSHARED='';; |
| 9486 | *) |
| 9487 | CFLAGSFORSHARED='$(CCSHARED)' |
| 9488 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9489 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9490 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 9491 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9492 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9493 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 9494 | # library (with --enable-shared). |
| 9495 | # 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] | 9496 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 9497 | # if it is not required, since it creates a dependency of the shared library |
| 9498 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 9499 | # don't need to link LIBS explicitly. The default should be only changed |
| 9500 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9501 | |
| 9502 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 9503 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 9504 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9505 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9506 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9507 | esac |
| 9508 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 9509 | echo "${ECHO_T}$SHLIBS" >&6 |
| 9510 | |
| 9511 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9512 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9513 | |
| 9514 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9515 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 9516 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9518 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9519 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9520 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9521 | cat >conftest.$ac_ext <<_ACEOF |
| 9522 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9523 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9524 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9525 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9526 | #ifdef __cplusplus |
| 9527 | extern "C" |
| 9528 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9529 | /* 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] | 9530 | builtin and then its argument prototype would still apply. */ |
| 9531 | char dlopen (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9532 | #ifdef F77_DUMMY_MAIN |
| 9533 | # ifdef __cplusplus |
| 9534 | extern "C" |
| 9535 | # endif |
| 9536 | int F77_DUMMY_MAIN() { return 1; } |
| 9537 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9538 | int |
| 9539 | main () |
| 9540 | { |
| 9541 | dlopen (); |
| 9542 | ; |
| 9543 | return 0; |
| 9544 | } |
| 9545 | _ACEOF |
| 9546 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9547 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9548 | (eval $ac_link) 2>&5 |
| 9549 | ac_status=$? |
| 9550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9551 | (exit $ac_status); } && |
| 9552 | { ac_try='test -s conftest$ac_exeext' |
| 9553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9554 | (eval $ac_try) 2>&5 |
| 9555 | ac_status=$? |
| 9556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9557 | (exit $ac_status); }; }; then |
| 9558 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9559 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9560 | echo "$as_me: failed program was:" >&5 |
| 9561 | cat conftest.$ac_ext >&5 |
| 9562 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9563 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9564 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9565 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9566 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9567 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9568 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 9569 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9570 | cat >>confdefs.h <<_ACEOF |
| 9571 | #define HAVE_LIBDL 1 |
| 9572 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9573 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9574 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9575 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9576 | fi |
| 9577 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9578 | |
| 9579 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9580 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 9581 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9583 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9584 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9585 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9586 | cat >conftest.$ac_ext <<_ACEOF |
| 9587 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9588 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9589 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9590 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9591 | #ifdef __cplusplus |
| 9592 | extern "C" |
| 9593 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9594 | /* 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] | 9595 | builtin and then its argument prototype would still apply. */ |
| 9596 | char shl_load (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9597 | #ifdef F77_DUMMY_MAIN |
| 9598 | # ifdef __cplusplus |
| 9599 | extern "C" |
| 9600 | # endif |
| 9601 | int F77_DUMMY_MAIN() { return 1; } |
| 9602 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9603 | int |
| 9604 | main () |
| 9605 | { |
| 9606 | shl_load (); |
| 9607 | ; |
| 9608 | return 0; |
| 9609 | } |
| 9610 | _ACEOF |
| 9611 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9612 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9613 | (eval $ac_link) 2>&5 |
| 9614 | ac_status=$? |
| 9615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9616 | (exit $ac_status); } && |
| 9617 | { ac_try='test -s conftest$ac_exeext' |
| 9618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9619 | (eval $ac_try) 2>&5 |
| 9620 | ac_status=$? |
| 9621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9622 | (exit $ac_status); }; }; then |
| 9623 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9624 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9625 | echo "$as_me: failed program was:" >&5 |
| 9626 | cat conftest.$ac_ext >&5 |
| 9627 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9628 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9629 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9630 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9631 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9632 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9633 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 9634 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9635 | cat >>confdefs.h <<_ACEOF |
| 9636 | #define HAVE_LIBDLD 1 |
| 9637 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9638 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9639 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9640 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9641 | fi |
| 9642 | # Dynamic linking for HP-UX |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9643 | echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 9644 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 9645 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9647 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9648 | ac_func_search_save_LIBS=$LIBS |
| 9649 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9650 | cat >conftest.$ac_ext <<_ACEOF |
| 9651 | #line $LINENO "configure" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9652 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9653 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9654 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9655 | #ifdef __cplusplus |
| 9656 | extern "C" |
| 9657 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9658 | /* 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] | 9659 | builtin and then its argument prototype would still apply. */ |
| 9660 | char sem_init (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9661 | #ifdef F77_DUMMY_MAIN |
| 9662 | # ifdef __cplusplus |
| 9663 | extern "C" |
| 9664 | # endif |
| 9665 | int F77_DUMMY_MAIN() { return 1; } |
| 9666 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9667 | int |
| 9668 | main () |
| 9669 | { |
| 9670 | sem_init (); |
| 9671 | ; |
| 9672 | return 0; |
| 9673 | } |
| 9674 | _ACEOF |
| 9675 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9676 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9677 | (eval $ac_link) 2>&5 |
| 9678 | ac_status=$? |
| 9679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9680 | (exit $ac_status); } && |
| 9681 | { ac_try='test -s conftest$ac_exeext' |
| 9682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9683 | (eval $ac_try) 2>&5 |
| 9684 | ac_status=$? |
| 9685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9686 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9687 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9688 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9689 | echo "$as_me: failed program was:" >&5 |
| 9690 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9691 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9692 | 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] | 9693 | if test "$ac_cv_search_sem_init" = no; then |
| 9694 | for ac_lib in rt posix4; do |
| 9695 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9696 | cat >conftest.$ac_ext <<_ACEOF |
| 9697 | #line $LINENO "configure" |
| 9698 | #include "confdefs.h" |
| 9699 | |
| 9700 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9701 | #ifdef __cplusplus |
| 9702 | extern "C" |
| 9703 | #endif |
| 9704 | /* We use char because int might match the return type of a gcc2 |
| 9705 | builtin and then its argument prototype would still apply. */ |
| 9706 | char sem_init (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9707 | #ifdef F77_DUMMY_MAIN |
| 9708 | # ifdef __cplusplus |
| 9709 | extern "C" |
| 9710 | # endif |
| 9711 | int F77_DUMMY_MAIN() { return 1; } |
| 9712 | #endif |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9713 | int |
| 9714 | main () |
| 9715 | { |
| 9716 | sem_init (); |
| 9717 | ; |
| 9718 | return 0; |
| 9719 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9720 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9721 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9723 | (eval $ac_link) 2>&5 |
| 9724 | ac_status=$? |
| 9725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9726 | (exit $ac_status); } && |
| 9727 | { ac_try='test -s conftest$ac_exeext' |
| 9728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9729 | (eval $ac_try) 2>&5 |
| 9730 | ac_status=$? |
| 9731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9732 | (exit $ac_status); }; }; then |
| 9733 | ac_cv_search_sem_init="-l$ac_lib" |
| 9734 | break |
| 9735 | else |
| 9736 | echo "$as_me: failed program was:" >&5 |
| 9737 | cat conftest.$ac_ext >&5 |
| 9738 | fi |
| 9739 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9740 | done |
| 9741 | fi |
| 9742 | LIBS=$ac_func_search_save_LIBS |
| 9743 | fi |
| 9744 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 9745 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 9746 | if test "$ac_cv_search_sem_init" != no; then |
| 9747 | 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] | 9748 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9749 | fi |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9750 | # 'Real Time' functions on Solaris, |
| 9751 | # posix4 on Solaris 2.6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9752 | |
| 9753 | # checks for system dependent C++ extensions support |
| 9754 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9755 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 9756 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 9757 | cat >conftest.$ac_ext <<_ACEOF |
| 9758 | #line $LINENO "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9759 | #include "confdefs.h" |
| 9760 | #include "/usr/lpp/xlC/include/load.h" |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9761 | #ifdef F77_DUMMY_MAIN |
| 9762 | # ifdef __cplusplus |
| 9763 | extern "C" |
| 9764 | # endif |
| 9765 | int F77_DUMMY_MAIN() { return 1; } |
| 9766 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9767 | int |
| 9768 | main () |
| 9769 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9770 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9771 | ; |
| 9772 | return 0; |
| 9773 | } |
| 9774 | _ACEOF |
| 9775 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9776 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9777 | (eval $ac_link) 2>&5 |
| 9778 | ac_status=$? |
| 9779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9780 | (exit $ac_status); } && |
| 9781 | { ac_try='test -s conftest$ac_exeext' |
| 9782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9783 | (eval $ac_try) 2>&5 |
| 9784 | ac_status=$? |
| 9785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9786 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9787 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9788 | cat >>confdefs.h <<\_ACEOF |
| 9789 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 9790 | _ACEOF |
| 9791 | |
| 9792 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9793 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +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 | echo "$as_me:$LINENO: result: no" >&5 |
| 9798 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9799 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9800 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9801 | *) ;; |
| 9802 | esac |
| 9803 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9804 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Martin v. Löwis | e117258 | 2002-11-13 08:51:19 +0000 | [diff] [blame] | 9805 | # However on SGI IRIX 4, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9806 | # BeOS' sockets are stashed in libnet. |
| 9807 | case "$ac_sys_system" in |
| 9808 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9809 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9810 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 9811 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 9812 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 9813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9814 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9815 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9816 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9817 | cat >conftest.$ac_ext <<_ACEOF |
| 9818 | #line $LINENO "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9819 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9820 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9821 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9822 | #ifdef __cplusplus |
| 9823 | extern "C" |
| 9824 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9825 | /* 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] | 9826 | builtin and then its argument prototype would still apply. */ |
| 9827 | char t_open (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9828 | #ifdef F77_DUMMY_MAIN |
| 9829 | # ifdef __cplusplus |
| 9830 | extern "C" |
| 9831 | # endif |
| 9832 | int F77_DUMMY_MAIN() { return 1; } |
| 9833 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9834 | int |
| 9835 | main () |
| 9836 | { |
| 9837 | t_open (); |
| 9838 | ; |
| 9839 | return 0; |
| 9840 | } |
| 9841 | _ACEOF |
| 9842 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9844 | (eval $ac_link) 2>&5 |
| 9845 | ac_status=$? |
| 9846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9847 | (exit $ac_status); } && |
| 9848 | { ac_try='test -s conftest$ac_exeext' |
| 9849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9850 | (eval $ac_try) 2>&5 |
| 9851 | ac_status=$? |
| 9852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9853 | (exit $ac_status); }; }; then |
| 9854 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9855 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9856 | echo "$as_me: failed program was:" >&5 |
| 9857 | cat conftest.$ac_ext >&5 |
| 9858 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9859 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9860 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9861 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9862 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9863 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 9864 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 9865 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9866 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9867 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9868 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9869 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 9870 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 9871 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 9872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9873 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9874 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9875 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9876 | cat >conftest.$ac_ext <<_ACEOF |
| 9877 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9878 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9879 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9880 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9881 | #ifdef __cplusplus |
| 9882 | extern "C" |
| 9883 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9884 | /* 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] | 9885 | builtin and then its argument prototype would still apply. */ |
| 9886 | char socket (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9887 | #ifdef F77_DUMMY_MAIN |
| 9888 | # ifdef __cplusplus |
| 9889 | extern "C" |
| 9890 | # endif |
| 9891 | int F77_DUMMY_MAIN() { return 1; } |
| 9892 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9893 | int |
| 9894 | main () |
| 9895 | { |
| 9896 | socket (); |
| 9897 | ; |
| 9898 | return 0; |
| 9899 | } |
| 9900 | _ACEOF |
| 9901 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9902 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9903 | (eval $ac_link) 2>&5 |
| 9904 | ac_status=$? |
| 9905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9906 | (exit $ac_status); } && |
| 9907 | { ac_try='test -s conftest$ac_exeext' |
| 9908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9909 | (eval $ac_try) 2>&5 |
| 9910 | ac_status=$? |
| 9911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9912 | (exit $ac_status); }; }; then |
| 9913 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9914 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9915 | echo "$as_me: failed program was:" >&5 |
| 9916 | cat conftest.$ac_ext >&5 |
| 9917 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9918 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9919 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9920 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9921 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9922 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 9923 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 9924 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9925 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9926 | fi |
| 9927 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 9928 | ;; |
| 9929 | esac |
| 9930 | case "$ac_sys_system" in |
| 9931 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9932 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 9933 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 9934 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 9935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9936 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9937 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9938 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9939 | cat >conftest.$ac_ext <<_ACEOF |
| 9940 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9941 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9942 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9943 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9944 | #ifdef __cplusplus |
| 9945 | extern "C" |
| 9946 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9947 | /* 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] | 9948 | builtin and then its argument prototype would still apply. */ |
| 9949 | char socket (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9950 | #ifdef F77_DUMMY_MAIN |
| 9951 | # ifdef __cplusplus |
| 9952 | extern "C" |
| 9953 | # endif |
| 9954 | int F77_DUMMY_MAIN() { return 1; } |
| 9955 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9956 | int |
| 9957 | main () |
| 9958 | { |
| 9959 | socket (); |
| 9960 | ; |
| 9961 | return 0; |
| 9962 | } |
| 9963 | _ACEOF |
| 9964 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9965 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9966 | (eval $ac_link) 2>&5 |
| 9967 | ac_status=$? |
| 9968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9969 | (exit $ac_status); } && |
| 9970 | { ac_try='test -s conftest$ac_exeext' |
| 9971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9972 | (eval $ac_try) 2>&5 |
| 9973 | ac_status=$? |
| 9974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9975 | (exit $ac_status); }; }; then |
| 9976 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9977 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9978 | echo "$as_me: failed program was:" >&5 |
| 9979 | cat conftest.$ac_ext >&5 |
| 9980 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9981 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9982 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9983 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9984 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9985 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 9986 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 9987 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9988 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9989 | fi |
| 9990 | # BeOS |
| 9991 | ;; |
| 9992 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9993 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9994 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 9995 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 9996 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9997 | # Check whether --with-libs or --without-libs was given. |
| 9998 | if test "${with_libs+set}" = set; then |
| 9999 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10000 | |
| 10001 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 10002 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 10003 | LIBS="$withval $LIBS" |
| 10004 | |
| 10005 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10006 | echo "$as_me:$LINENO: result: no" >&5 |
| 10007 | echo "${ECHO_T}no" >&6 |
| 10008 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10009 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10010 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10011 | |
| 10012 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10013 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 10014 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 10015 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10016 | # Check whether --with-signal-module or --without-signal-module was given. |
| 10017 | if test "${with_signal_module+set}" = set; then |
| 10018 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10019 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10020 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10021 | |
| 10022 | if test -z "$with_signal_module" |
| 10023 | then with_signal_module="yes" |
| 10024 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10025 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 10026 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10027 | |
| 10028 | if test "${with_signal_module}" = "yes"; then |
| 10029 | USE_SIGNAL_MODULE="" |
| 10030 | SIGNAL_OBJS="" |
| 10031 | else |
| 10032 | USE_SIGNAL_MODULE="#" |
| 10033 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 10034 | fi |
| 10035 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 10036 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10037 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10038 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10039 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10040 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 10041 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 10042 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10043 | |
| 10044 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 10045 | if test "${with_dec_threads+set}" = set; then |
| 10046 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10047 | |
| 10048 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 10049 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10050 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10051 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10052 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10053 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10054 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10055 | echo "$as_me:$LINENO: result: no" >&5 |
| 10056 | echo "${ECHO_T}no" >&6 |
| 10057 | fi; |
| 10058 | |
| 10059 | # Templates for things AC_DEFINEd more than once. |
| 10060 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10061 | |
| 10062 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10063 | |
| 10064 | |
| 10065 | |
| 10066 | |
| 10067 | |
| 10068 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 10069 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 10070 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10071 | # Check whether --with-threads or --without-threads was given. |
| 10072 | if test "${with_threads+set}" = set; then |
| 10073 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10074 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10075 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10076 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10077 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10078 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10079 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10080 | if test "${with_thread+set}" = set; then |
| 10081 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10082 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10083 | fi; |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10084 | |
| 10085 | if test -z "$with_threads" |
| 10086 | then with_threads="yes" |
| 10087 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10088 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 10089 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10090 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10091 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10092 | if test "$with_threads" = "no" |
| 10093 | then |
| 10094 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10095 | elif test "$ac_cv_pthread_is_default" = yes |
| 10096 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10097 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10098 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10099 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10100 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10101 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10102 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10103 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10104 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10105 | |
| 10106 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10107 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10108 | elif test "$ac_cv_kpthread" = "yes" |
| 10109 | then |
| 10110 | CC="$CC -Kpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10111 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10112 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10113 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10114 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10115 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10116 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10117 | else |
| 10118 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 10119 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 10120 | fi |
| 10121 | if test ! -z "$withval" -a -d "$withval" |
| 10122 | then LDFLAGS="$LDFLAGS -L$withval" |
| 10123 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10124 | |
| 10125 | # According to the POSIX spec, a pthreads implementation must |
| 10126 | # 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] | 10127 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 10128 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 10129 | cat >conftest.$ac_ext <<_ACEOF |
| 10130 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10131 | #include "confdefs.h" |
| 10132 | #include <unistd.h> |
| 10133 | #ifdef _POSIX_THREADS |
| 10134 | yes |
| 10135 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10136 | |
| 10137 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10138 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10139 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10140 | unistd_defines_pthreads=yes |
| 10141 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10142 | unistd_defines_pthreads=no |
| 10143 | fi |
| 10144 | rm -f conftest* |
| 10145 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10146 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 10147 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10148 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10149 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10150 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10151 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10152 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10153 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10154 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10155 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10156 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10158 | fi |
| 10159 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10160 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10161 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10162 | # Is the header compilable? |
| 10163 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 10164 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 10165 | cat >conftest.$ac_ext <<_ACEOF |
| 10166 | #line $LINENO "configure" |
| 10167 | #include "confdefs.h" |
| 10168 | $ac_includes_default |
| 10169 | #include <cthreads.h> |
| 10170 | _ACEOF |
| 10171 | rm -f conftest.$ac_objext |
| 10172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10173 | (eval $ac_compile) 2>&5 |
| 10174 | ac_status=$? |
| 10175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10176 | (exit $ac_status); } && |
| 10177 | { ac_try='test -s conftest.$ac_objext' |
| 10178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10179 | (eval $ac_try) 2>&5 |
| 10180 | ac_status=$? |
| 10181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10182 | (exit $ac_status); }; }; then |
| 10183 | ac_header_compiler=yes |
| 10184 | else |
| 10185 | echo "$as_me: failed program was:" >&5 |
| 10186 | cat conftest.$ac_ext >&5 |
| 10187 | ac_header_compiler=no |
| 10188 | fi |
| 10189 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10190 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10191 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10192 | |
| 10193 | # Is the header present? |
| 10194 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 10195 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 10196 | cat >conftest.$ac_ext <<_ACEOF |
| 10197 | #line $LINENO "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10198 | #include "confdefs.h" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10199 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10200 | _ACEOF |
| 10201 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10202 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10203 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10204 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10205 | rm -f conftest.er1 |
| 10206 | cat conftest.err >&5 |
| 10207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10208 | (exit $ac_status); } >/dev/null; then |
| 10209 | if test -s conftest.err; then |
| 10210 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10211 | else |
| 10212 | ac_cpp_err= |
| 10213 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10214 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10215 | ac_cpp_err=yes |
| 10216 | fi |
| 10217 | if test -z "$ac_cpp_err"; then |
| 10218 | ac_header_preproc=yes |
| 10219 | else |
| 10220 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10221 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10222 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10223 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10224 | rm -f conftest.err conftest.$ac_ext |
| 10225 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10226 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10227 | |
| 10228 | # So? What about this header? |
| 10229 | case $ac_header_compiler:$ac_header_preproc in |
| 10230 | yes:no ) |
| 10231 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10232 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10233 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10234 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10235 | no:yes ) |
| 10236 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 10237 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 10238 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 10239 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10240 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10241 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10242 | esac |
| 10243 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10244 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10245 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10247 | else |
| 10248 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10249 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10250 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10251 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 10252 | |
| 10253 | fi |
| 10254 | if test $ac_cv_header_cthreads_h = yes; then |
| 10255 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10256 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10257 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10258 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10259 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10260 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10261 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10262 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10263 | |
| 10264 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10265 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10266 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10267 | |
| 10268 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10269 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10270 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10271 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10272 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10273 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10274 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10275 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10277 | fi |
| 10278 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10279 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10280 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10281 | # Is the header compilable? |
| 10282 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 10283 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 10284 | cat >conftest.$ac_ext <<_ACEOF |
| 10285 | #line $LINENO "configure" |
| 10286 | #include "confdefs.h" |
| 10287 | $ac_includes_default |
| 10288 | #include <mach/cthreads.h> |
| 10289 | _ACEOF |
| 10290 | rm -f conftest.$ac_objext |
| 10291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10292 | (eval $ac_compile) 2>&5 |
| 10293 | ac_status=$? |
| 10294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10295 | (exit $ac_status); } && |
| 10296 | { ac_try='test -s conftest.$ac_objext' |
| 10297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10298 | (eval $ac_try) 2>&5 |
| 10299 | ac_status=$? |
| 10300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10301 | (exit $ac_status); }; }; then |
| 10302 | ac_header_compiler=yes |
| 10303 | else |
| 10304 | echo "$as_me: failed program was:" >&5 |
| 10305 | cat conftest.$ac_ext >&5 |
| 10306 | ac_header_compiler=no |
| 10307 | fi |
| 10308 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10309 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10310 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10311 | |
| 10312 | # Is the header present? |
| 10313 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 10314 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 10315 | cat >conftest.$ac_ext <<_ACEOF |
| 10316 | #line $LINENO "configure" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10317 | #include "confdefs.h" |
| 10318 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10319 | _ACEOF |
| 10320 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10321 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10322 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10323 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10324 | rm -f conftest.er1 |
| 10325 | cat conftest.err >&5 |
| 10326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10327 | (exit $ac_status); } >/dev/null; then |
| 10328 | if test -s conftest.err; then |
| 10329 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10330 | else |
| 10331 | ac_cpp_err= |
| 10332 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10333 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10334 | ac_cpp_err=yes |
| 10335 | fi |
| 10336 | if test -z "$ac_cpp_err"; then |
| 10337 | ac_header_preproc=yes |
| 10338 | else |
| 10339 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10340 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10341 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10342 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10343 | rm -f conftest.err conftest.$ac_ext |
| 10344 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10345 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10346 | |
| 10347 | # So? What about this header? |
| 10348 | case $ac_header_compiler:$ac_header_preproc in |
| 10349 | yes:no ) |
| 10350 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10351 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10352 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10353 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10354 | no:yes ) |
| 10355 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 10356 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 10357 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 10358 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10359 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10360 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10361 | esac |
| 10362 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10363 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10364 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10366 | else |
| 10367 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10368 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10369 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10370 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 10371 | |
| 10372 | fi |
| 10373 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 10374 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10375 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10376 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10377 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10378 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10379 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10380 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10381 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10382 | |
| 10383 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10384 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10385 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10386 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10387 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10388 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10389 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10390 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 10391 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 10392 | |
| 10393 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10394 | if test "${with_pth+set}" = set; then |
| 10395 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10396 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10397 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10398 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10399 | #define WITH_THREAD 1 |
| 10400 | _ACEOF |
| 10401 | |
| 10402 | |
| 10403 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10404 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10405 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10406 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10407 | LIBS="-lpth $LIBS" |
| 10408 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10409 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10410 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10411 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10412 | |
| 10413 | # Just looking for pthread_create in libpthread is not enough: |
| 10414 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 10415 | # So we really have to include pthread.h, and then link. |
| 10416 | _libs=$LIBS |
| 10417 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10418 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 10419 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 10420 | cat >conftest.$ac_ext <<_ACEOF |
| 10421 | #line $LINENO "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10422 | #include "confdefs.h" |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10423 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10424 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10425 | void * start_routine (void *arg) { exit (0); } |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +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 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10432 | int |
| 10433 | main () |
| 10434 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10435 | |
| 10436 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10437 | ; |
| 10438 | return 0; |
| 10439 | } |
| 10440 | _ACEOF |
| 10441 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10442 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10443 | (eval $ac_link) 2>&5 |
| 10444 | ac_status=$? |
| 10445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10446 | (exit $ac_status); } && |
| 10447 | { ac_try='test -s conftest$ac_exeext' |
| 10448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10449 | (eval $ac_try) 2>&5 |
| 10450 | ac_status=$? |
| 10451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10452 | (exit $ac_status); }; }; then |
| 10453 | |
| 10454 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10455 | echo "${ECHO_T}yes" >&6 |
| 10456 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10457 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10458 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10459 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10460 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10461 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10462 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10463 | echo "$as_me: failed program was:" >&5 |
| 10464 | cat conftest.$ac_ext >&5 |
| 10465 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10466 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10467 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 10468 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 10469 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 10470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10471 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10472 | cat >conftest.$ac_ext <<_ACEOF |
| 10473 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10474 | #include "confdefs.h" |
| 10475 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10476 | which can conflict with char pthread_detach (); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10477 | #include <assert.h> |
| 10478 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10479 | #ifdef __cplusplus |
| 10480 | extern "C" |
| 10481 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10482 | /* 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] | 10483 | builtin and then its argument prototype would still apply. */ |
| 10484 | char pthread_detach (); |
| 10485 | char (*f) (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10486 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10487 | #ifdef F77_DUMMY_MAIN |
| 10488 | # ifdef __cplusplus |
| 10489 | extern "C" |
| 10490 | # endif |
| 10491 | int F77_DUMMY_MAIN() { return 1; } |
| 10492 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10493 | int |
| 10494 | main () |
| 10495 | { |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10496 | /* The GNU C library defines this for functions which it implements |
| 10497 | to always fail with ENOSYS. Some functions are actually named |
| 10498 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 10499 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10500 | choke me |
| 10501 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10502 | f = pthread_detach; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10503 | #endif |
| 10504 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10505 | ; |
| 10506 | return 0; |
| 10507 | } |
| 10508 | _ACEOF |
| 10509 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10511 | (eval $ac_link) 2>&5 |
| 10512 | ac_status=$? |
| 10513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10514 | (exit $ac_status); } && |
| 10515 | { ac_try='test -s conftest$ac_exeext' |
| 10516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10517 | (eval $ac_try) 2>&5 |
| 10518 | ac_status=$? |
| 10519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10520 | (exit $ac_status); }; }; then |
| 10521 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10522 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10523 | echo "$as_me: failed program was:" >&5 |
| 10524 | cat conftest.$ac_ext >&5 |
| 10525 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10526 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10527 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10528 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10529 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 10530 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 10531 | if test $ac_cv_func_pthread_detach = yes; then |
| 10532 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10533 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10534 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10535 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10536 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10537 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10538 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10539 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10540 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10541 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10542 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10543 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10545 | fi |
| 10546 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10547 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10548 | else |
| 10549 | # Is the header compilable? |
| 10550 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 10551 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 10552 | cat >conftest.$ac_ext <<_ACEOF |
| 10553 | #line $LINENO "configure" |
| 10554 | #include "confdefs.h" |
| 10555 | $ac_includes_default |
| 10556 | #include <atheos/threads.h> |
| 10557 | _ACEOF |
| 10558 | rm -f conftest.$ac_objext |
| 10559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10560 | (eval $ac_compile) 2>&5 |
| 10561 | ac_status=$? |
| 10562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10563 | (exit $ac_status); } && |
| 10564 | { ac_try='test -s conftest.$ac_objext' |
| 10565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10566 | (eval $ac_try) 2>&5 |
| 10567 | ac_status=$? |
| 10568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10569 | (exit $ac_status); }; }; then |
| 10570 | ac_header_compiler=yes |
| 10571 | else |
| 10572 | echo "$as_me: failed program was:" >&5 |
| 10573 | cat conftest.$ac_ext >&5 |
| 10574 | ac_header_compiler=no |
| 10575 | fi |
| 10576 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10577 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10578 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10579 | |
| 10580 | # Is the header present? |
| 10581 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 10582 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 10583 | cat >conftest.$ac_ext <<_ACEOF |
| 10584 | #line $LINENO "configure" |
| 10585 | #include "confdefs.h" |
| 10586 | #include <atheos/threads.h> |
| 10587 | _ACEOF |
| 10588 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10589 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10590 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10591 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10592 | rm -f conftest.er1 |
| 10593 | cat conftest.err >&5 |
| 10594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10595 | (exit $ac_status); } >/dev/null; then |
| 10596 | if test -s conftest.err; then |
| 10597 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10598 | else |
| 10599 | ac_cpp_err= |
| 10600 | fi |
| 10601 | else |
| 10602 | ac_cpp_err=yes |
| 10603 | fi |
| 10604 | if test -z "$ac_cpp_err"; then |
| 10605 | ac_header_preproc=yes |
| 10606 | else |
| 10607 | echo "$as_me: failed program was:" >&5 |
| 10608 | cat conftest.$ac_ext >&5 |
| 10609 | ac_header_preproc=no |
| 10610 | fi |
| 10611 | rm -f conftest.err conftest.$ac_ext |
| 10612 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10613 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10614 | |
| 10615 | # So? What about this header? |
| 10616 | case $ac_header_compiler:$ac_header_preproc in |
| 10617 | yes:no ) |
| 10618 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10619 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10620 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10621 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10622 | no:yes ) |
| 10623 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 10624 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 10625 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 10626 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 10627 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10628 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10629 | esac |
| 10630 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10631 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10632 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10634 | else |
| 10635 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 10636 | fi |
| 10637 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10638 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10639 | |
| 10640 | fi |
| 10641 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 10642 | cat >>confdefs.h <<\_ACEOF |
| 10643 | #define WITH_THREAD 1 |
| 10644 | _ACEOF |
| 10645 | |
| 10646 | |
| 10647 | cat >>confdefs.h <<\_ACEOF |
| 10648 | #define ATHEOS_THREADS 1 |
| 10649 | _ACEOF |
| 10650 | |
| 10651 | THREADOBJ="Python/thread.o" |
| 10652 | else |
| 10653 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10654 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10655 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10656 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10657 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10659 | fi |
| 10660 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10661 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10662 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10663 | # Is the header compilable? |
| 10664 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 10665 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 10666 | cat >conftest.$ac_ext <<_ACEOF |
| 10667 | #line $LINENO "configure" |
| 10668 | #include "confdefs.h" |
| 10669 | $ac_includes_default |
| 10670 | #include <kernel/OS.h> |
| 10671 | _ACEOF |
| 10672 | rm -f conftest.$ac_objext |
| 10673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10674 | (eval $ac_compile) 2>&5 |
| 10675 | ac_status=$? |
| 10676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10677 | (exit $ac_status); } && |
| 10678 | { ac_try='test -s conftest.$ac_objext' |
| 10679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10680 | (eval $ac_try) 2>&5 |
| 10681 | ac_status=$? |
| 10682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10683 | (exit $ac_status); }; }; then |
| 10684 | ac_header_compiler=yes |
| 10685 | else |
| 10686 | echo "$as_me: failed program was:" >&5 |
| 10687 | cat conftest.$ac_ext >&5 |
| 10688 | ac_header_compiler=no |
| 10689 | fi |
| 10690 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10691 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10692 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10693 | |
| 10694 | # Is the header present? |
| 10695 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 10696 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 10697 | cat >conftest.$ac_ext <<_ACEOF |
| 10698 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10699 | #include "confdefs.h" |
| 10700 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10701 | _ACEOF |
| 10702 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10703 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10704 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10705 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10706 | rm -f conftest.er1 |
| 10707 | cat conftest.err >&5 |
| 10708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10709 | (exit $ac_status); } >/dev/null; then |
| 10710 | if test -s conftest.err; then |
| 10711 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10712 | else |
| 10713 | ac_cpp_err= |
| 10714 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10715 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10716 | ac_cpp_err=yes |
| 10717 | fi |
| 10718 | if test -z "$ac_cpp_err"; then |
| 10719 | ac_header_preproc=yes |
| 10720 | else |
| 10721 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10722 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10723 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10724 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10725 | rm -f conftest.err conftest.$ac_ext |
| 10726 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10727 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10728 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10729 | # So? What about this header? |
| 10730 | case $ac_header_compiler:$ac_header_preproc in |
| 10731 | yes:no ) |
| 10732 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10733 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10734 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10735 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10736 | no:yes ) |
| 10737 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 10738 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 10739 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 10740 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 10741 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10742 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10743 | esac |
| 10744 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10745 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10746 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10748 | else |
| 10749 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 10750 | fi |
| 10751 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10752 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 10753 | |
| 10754 | fi |
| 10755 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 10756 | cat >>confdefs.h <<\_ACEOF |
| 10757 | #define WITH_THREAD 1 |
| 10758 | _ACEOF |
| 10759 | |
| 10760 | |
| 10761 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10762 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10763 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10764 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10765 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10766 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10767 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10768 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 10769 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 10770 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 10771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10772 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10773 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10774 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10775 | cat >conftest.$ac_ext <<_ACEOF |
| 10776 | #line $LINENO "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10777 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10778 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10779 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10780 | #ifdef __cplusplus |
| 10781 | extern "C" |
| 10782 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10783 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10784 | builtin and then its argument prototype would still apply. */ |
| 10785 | char pthread_create (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10786 | #ifdef F77_DUMMY_MAIN |
| 10787 | # ifdef __cplusplus |
| 10788 | extern "C" |
| 10789 | # endif |
| 10790 | int F77_DUMMY_MAIN() { return 1; } |
| 10791 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10792 | int |
| 10793 | main () |
| 10794 | { |
| 10795 | pthread_create (); |
| 10796 | ; |
| 10797 | return 0; |
| 10798 | } |
| 10799 | _ACEOF |
| 10800 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10802 | (eval $ac_link) 2>&5 |
| 10803 | ac_status=$? |
| 10804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10805 | (exit $ac_status); } && |
| 10806 | { ac_try='test -s conftest$ac_exeext' |
| 10807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10808 | (eval $ac_try) 2>&5 |
| 10809 | ac_status=$? |
| 10810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10811 | (exit $ac_status); }; }; then |
| 10812 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10813 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10814 | echo "$as_me: failed program was:" >&5 |
| 10815 | cat conftest.$ac_ext >&5 |
| 10816 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10817 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10818 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10819 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10820 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10821 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 10822 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 10823 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 10824 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10825 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10826 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10827 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10828 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10829 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10830 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10831 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10832 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10833 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 10834 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 10835 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 10836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10837 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10838 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10839 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10840 | cat >conftest.$ac_ext <<_ACEOF |
| 10841 | #line $LINENO "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10842 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10843 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10844 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10845 | #ifdef __cplusplus |
| 10846 | extern "C" |
| 10847 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10848 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10849 | builtin and then its argument prototype would still apply. */ |
| 10850 | char pthread_create (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10851 | #ifdef F77_DUMMY_MAIN |
| 10852 | # ifdef __cplusplus |
| 10853 | extern "C" |
| 10854 | # endif |
| 10855 | int F77_DUMMY_MAIN() { return 1; } |
| 10856 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10857 | int |
| 10858 | main () |
| 10859 | { |
| 10860 | pthread_create (); |
| 10861 | ; |
| 10862 | return 0; |
| 10863 | } |
| 10864 | _ACEOF |
| 10865 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10867 | (eval $ac_link) 2>&5 |
| 10868 | ac_status=$? |
| 10869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10870 | (exit $ac_status); } && |
| 10871 | { ac_try='test -s conftest$ac_exeext' |
| 10872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10873 | (eval $ac_try) 2>&5 |
| 10874 | ac_status=$? |
| 10875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10876 | (exit $ac_status); }; }; then |
| 10877 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10878 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10879 | echo "$as_me: failed program was:" >&5 |
| 10880 | cat conftest.$ac_ext >&5 |
| 10881 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10882 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10883 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10884 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10885 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10886 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 10887 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 10888 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 10889 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10890 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10891 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10892 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10893 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10894 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10895 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10896 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10897 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10898 | echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5 |
| 10899 | echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6 |
| 10900 | if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then |
| 10901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10902 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10903 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10904 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10905 | cat >conftest.$ac_ext <<_ACEOF |
| 10906 | #line $LINENO "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10907 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10908 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10909 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10910 | #ifdef __cplusplus |
| 10911 | extern "C" |
| 10912 | #endif |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10913 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10914 | builtin and then its argument prototype would still apply. */ |
| 10915 | char __d6_pthread_create (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10916 | #ifdef F77_DUMMY_MAIN |
| 10917 | # ifdef __cplusplus |
| 10918 | extern "C" |
| 10919 | # endif |
| 10920 | int F77_DUMMY_MAIN() { return 1; } |
| 10921 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10922 | int |
| 10923 | main () |
| 10924 | { |
| 10925 | __d6_pthread_create (); |
| 10926 | ; |
| 10927 | return 0; |
| 10928 | } |
| 10929 | _ACEOF |
| 10930 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10931 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10932 | (eval $ac_link) 2>&5 |
| 10933 | ac_status=$? |
| 10934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10935 | (exit $ac_status); } && |
| 10936 | { ac_try='test -s conftest$ac_exeext' |
| 10937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10938 | (eval $ac_try) 2>&5 |
| 10939 | ac_status=$? |
| 10940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10941 | (exit $ac_status); }; }; then |
| 10942 | ac_cv_lib_thread___d6_pthread_create=yes |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10943 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10944 | echo "$as_me: failed program was:" >&5 |
| 10945 | cat conftest.$ac_ext >&5 |
| 10946 | ac_cv_lib_thread___d6_pthread_create=no |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10947 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10948 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10949 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10950 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10951 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5 |
| 10952 | echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6 |
| 10953 | if test $ac_cv_lib_thread___d6_pthread_create = yes; then |
| 10954 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10955 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10956 | _ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10957 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 10958 | echo Systems with __d6_pthread_create are not supported anymore. |
| 10959 | echo See README |
| 10960 | exit 1 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10961 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10962 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10963 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10964 | else |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10965 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10966 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 10967 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 10968 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 10969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10970 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10971 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10972 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10973 | cat >conftest.$ac_ext <<_ACEOF |
| 10974 | #line $LINENO "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10975 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10976 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10977 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10978 | #ifdef __cplusplus |
| 10979 | extern "C" |
| 10980 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10981 | /* 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] | 10982 | builtin and then its argument prototype would still apply. */ |
| 10983 | char __pthread_create_system (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10984 | #ifdef F77_DUMMY_MAIN |
| 10985 | # ifdef __cplusplus |
| 10986 | extern "C" |
| 10987 | # endif |
| 10988 | int F77_DUMMY_MAIN() { return 1; } |
| 10989 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10990 | int |
| 10991 | main () |
| 10992 | { |
| 10993 | __pthread_create_system (); |
| 10994 | ; |
| 10995 | return 0; |
| 10996 | } |
| 10997 | _ACEOF |
| 10998 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10999 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11000 | (eval $ac_link) 2>&5 |
| 11001 | ac_status=$? |
| 11002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11003 | (exit $ac_status); } && |
| 11004 | { ac_try='test -s conftest$ac_exeext' |
| 11005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11006 | (eval $ac_try) 2>&5 |
| 11007 | ac_status=$? |
| 11008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11009 | (exit $ac_status); }; }; then |
| 11010 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11011 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11012 | echo "$as_me: failed program was:" >&5 |
| 11013 | cat conftest.$ac_ext >&5 |
| 11014 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11015 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11016 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11017 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11018 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11019 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 11020 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 11021 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 11022 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11023 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11024 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11025 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11026 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11027 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11028 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11029 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11030 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11031 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 11032 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 11033 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 11034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11035 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11036 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11037 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11038 | cat >conftest.$ac_ext <<_ACEOF |
| 11039 | #line $LINENO "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11040 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11041 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11042 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11043 | #ifdef __cplusplus |
| 11044 | extern "C" |
| 11045 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11046 | /* 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] | 11047 | builtin and then its argument prototype would still apply. */ |
| 11048 | char pthread_create (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11049 | #ifdef F77_DUMMY_MAIN |
| 11050 | # ifdef __cplusplus |
| 11051 | extern "C" |
| 11052 | # endif |
| 11053 | int F77_DUMMY_MAIN() { return 1; } |
| 11054 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11055 | int |
| 11056 | main () |
| 11057 | { |
| 11058 | pthread_create (); |
| 11059 | ; |
| 11060 | return 0; |
| 11061 | } |
| 11062 | _ACEOF |
| 11063 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11064 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11065 | (eval $ac_link) 2>&5 |
| 11066 | ac_status=$? |
| 11067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11068 | (exit $ac_status); } && |
| 11069 | { ac_try='test -s conftest$ac_exeext' |
| 11070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11071 | (eval $ac_try) 2>&5 |
| 11072 | ac_status=$? |
| 11073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11074 | (exit $ac_status); }; }; then |
| 11075 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11076 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11077 | echo "$as_me: failed program was:" >&5 |
| 11078 | cat conftest.$ac_ext >&5 |
| 11079 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11080 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11081 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11082 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11083 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11084 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 11085 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 11086 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 11087 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11088 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11089 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11090 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11091 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11092 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11093 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11094 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 11095 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11096 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 11097 | fi |
| 11098 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11099 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11100 | fi |
| 11101 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 11102 | fi |
| 11103 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11104 | fi |
| 11105 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11106 | fi |
| 11107 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11108 | fi |
| 11109 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11110 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11111 | fi |
| 11112 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11113 | |
| 11114 | fi |
| 11115 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11116 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11117 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11118 | fi; |
| 11119 | fi |
| 11120 | |
| 11121 | |
| 11122 | fi |
| 11123 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11124 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11125 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11126 | if test "$posix_threads" = "yes"; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11127 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11128 | |
| 11129 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11130 | #define _POSIX_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11131 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11132 | |
| 11133 | fi |
| 11134 | |
Martin v. Löwis | dfc33fd | 2003-01-21 10:14:41 +0000 | [diff] [blame] | 11135 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 11136 | case $ac_sys_system/$ac_sys_release in |
| 11137 | SunOS/5.8) |
| 11138 | cat >>confdefs.h <<\_ACEOF |
| 11139 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 11140 | _ACEOF |
| 11141 | ;; |
| 11142 | esac |
| 11143 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11144 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 11145 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 11146 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 11147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11148 | else |
| 11149 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 11150 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11151 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11152 | cat >conftest.$ac_ext <<_ACEOF |
| 11153 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11154 | #include "confdefs.h" |
| 11155 | #include <pthread.h> |
| 11156 | void *foo(void *parm) { |
| 11157 | return NULL; |
| 11158 | } |
| 11159 | main() { |
| 11160 | pthread_attr_t attr; |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 11161 | pthread_t id; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11162 | if (pthread_attr_init(&attr)) exit(-1); |
| 11163 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 11164 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11165 | exit(0); |
| 11166 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11167 | _ACEOF |
| 11168 | rm -f conftest$ac_exeext |
| 11169 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11170 | (eval $ac_link) 2>&5 |
| 11171 | ac_status=$? |
| 11172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11173 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11175 | (eval $ac_try) 2>&5 |
| 11176 | ac_status=$? |
| 11177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11178 | (exit $ac_status); }; }; then |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11179 | ac_cv_pthread_system_supported=yes |
| 11180 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11181 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11182 | echo "$as_me: failed program was:" >&5 |
| 11183 | cat conftest.$ac_ext >&5 |
| 11184 | ( exit $ac_status ) |
| 11185 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11186 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11187 | 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] | 11188 | fi |
| 11189 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11190 | fi |
| 11191 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11192 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 11193 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11194 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11195 | |
| 11196 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11197 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11198 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11199 | |
| 11200 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11201 | |
| 11202 | for ac_func in pthread_sigmask |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11203 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11204 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11205 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11206 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11207 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11209 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11210 | cat >conftest.$ac_ext <<_ACEOF |
| 11211 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11212 | #include "confdefs.h" |
| 11213 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11214 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11215 | #include <assert.h> |
| 11216 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11217 | #ifdef __cplusplus |
| 11218 | extern "C" |
| 11219 | #endif |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11220 | /* 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] | 11221 | builtin and then its argument prototype would still apply. */ |
| 11222 | char $ac_func (); |
| 11223 | char (*f) (); |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11224 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11225 | #ifdef F77_DUMMY_MAIN |
| 11226 | # ifdef __cplusplus |
| 11227 | extern "C" |
| 11228 | # endif |
| 11229 | int F77_DUMMY_MAIN() { return 1; } |
| 11230 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11231 | int |
| 11232 | main () |
| 11233 | { |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11234 | /* The GNU C library defines this for functions which it implements |
| 11235 | to always fail with ENOSYS. Some functions are actually named |
| 11236 | something starting with __ and the normal name is an alias. */ |
| 11237 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11238 | choke me |
| 11239 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11240 | f = $ac_func; |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11241 | #endif |
| 11242 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11243 | ; |
| 11244 | return 0; |
| 11245 | } |
| 11246 | _ACEOF |
| 11247 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11248 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11249 | (eval $ac_link) 2>&5 |
| 11250 | ac_status=$? |
| 11251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11252 | (exit $ac_status); } && |
| 11253 | { ac_try='test -s conftest$ac_exeext' |
| 11254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11255 | (eval $ac_try) 2>&5 |
| 11256 | ac_status=$? |
| 11257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11258 | (exit $ac_status); }; }; then |
| 11259 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11260 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11261 | echo "$as_me: failed program was:" >&5 |
| 11262 | cat conftest.$ac_ext >&5 |
| 11263 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11264 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11265 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11266 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11267 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11268 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11269 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11270 | cat >>confdefs.h <<_ACEOF |
| 11271 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11272 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11273 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11274 | fi |
| 11275 | done |
| 11276 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11277 | fi |
| 11278 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11279 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 11280 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 11281 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 11282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11283 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11284 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11285 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11286 | cat >conftest.$ac_ext <<_ACEOF |
| 11287 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11288 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11289 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11290 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11291 | #ifdef __cplusplus |
| 11292 | extern "C" |
| 11293 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11294 | /* 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] | 11295 | builtin and then its argument prototype would still apply. */ |
| 11296 | char usconfig (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11297 | #ifdef F77_DUMMY_MAIN |
| 11298 | # ifdef __cplusplus |
| 11299 | extern "C" |
| 11300 | # endif |
| 11301 | int F77_DUMMY_MAIN() { return 1; } |
| 11302 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11303 | int |
| 11304 | main () |
| 11305 | { |
| 11306 | usconfig (); |
| 11307 | ; |
| 11308 | return 0; |
| 11309 | } |
| 11310 | _ACEOF |
| 11311 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11312 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11313 | (eval $ac_link) 2>&5 |
| 11314 | ac_status=$? |
| 11315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11316 | (exit $ac_status); } && |
| 11317 | { ac_try='test -s conftest$ac_exeext' |
| 11318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11319 | (eval $ac_try) 2>&5 |
| 11320 | ac_status=$? |
| 11321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11322 | (exit $ac_status); }; }; then |
| 11323 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11324 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11325 | echo "$as_me: failed program was:" >&5 |
| 11326 | cat conftest.$ac_ext >&5 |
| 11327 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11328 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11329 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11330 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11331 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11332 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 11333 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 11334 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 11335 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11336 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11337 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11338 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11339 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11340 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11341 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11342 | fi |
| 11343 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11344 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 11345 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11346 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 11347 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 11348 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 11349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11350 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11351 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11352 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11353 | cat >conftest.$ac_ext <<_ACEOF |
| 11354 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11355 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11356 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11357 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11358 | #ifdef __cplusplus |
| 11359 | extern "C" |
| 11360 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11361 | /* 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] | 11362 | builtin and then its argument prototype would still apply. */ |
| 11363 | char thr_create (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11364 | #ifdef F77_DUMMY_MAIN |
| 11365 | # ifdef __cplusplus |
| 11366 | extern "C" |
| 11367 | # endif |
| 11368 | int F77_DUMMY_MAIN() { return 1; } |
| 11369 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11370 | int |
| 11371 | main () |
| 11372 | { |
| 11373 | thr_create (); |
| 11374 | ; |
| 11375 | return 0; |
| 11376 | } |
| 11377 | _ACEOF |
| 11378 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11379 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11380 | (eval $ac_link) 2>&5 |
| 11381 | ac_status=$? |
| 11382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11383 | (exit $ac_status); } && |
| 11384 | { ac_try='test -s conftest$ac_exeext' |
| 11385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11386 | (eval $ac_try) 2>&5 |
| 11387 | ac_status=$? |
| 11388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11389 | (exit $ac_status); }; }; then |
| 11390 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11391 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11392 | echo "$as_me: failed program was:" >&5 |
| 11393 | cat conftest.$ac_ext >&5 |
| 11394 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11395 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11396 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11397 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11398 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11399 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 11400 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 11401 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 11402 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11403 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11404 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11405 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11406 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11407 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11408 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11409 | fi |
| 11410 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11411 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11412 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11413 | if test "$USE_THREAD_MODULE" != "#" |
| 11414 | then |
| 11415 | # If the above checks didn't disable threads, (at least) OSF1 |
| 11416 | # needs this '-threads' argument during linking. |
| 11417 | case $ac_sys_system in |
| 11418 | OSF1) LDLAST=-threads;; |
| 11419 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 11420 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11421 | |
| 11422 | if test "$posix_threads" = yes -a \ |
| 11423 | "$ac_sys_system" = "SunOS" -a \ |
| 11424 | "$ac_sys_release" = "5.6"; then |
| 11425 | |
| 11426 | cat >>confdefs.h <<\_ACEOF |
| 11427 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 11428 | _ACEOF |
| 11429 | |
| 11430 | fi |
| 11431 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11432 | fi |
| 11433 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11434 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11435 | |
| 11436 | |
| 11437 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 11438 | 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] | 11439 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 11440 | if test "${enable_ipv6+set}" = set; then |
| 11441 | enableval="$enable_ipv6" |
| 11442 | case "$enableval" in |
| 11443 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11444 | echo "$as_me:$LINENO: result: no" >&5 |
| 11445 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11446 | ipv6=no |
| 11447 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11448 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 11449 | echo "${ECHO_T}yes" >&6 |
| 11450 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11451 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11452 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11453 | |
| 11454 | ipv6=yes |
| 11455 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11456 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11457 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11458 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11459 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11460 | echo "$as_me:$LINENO: result: no" >&5 |
| 11461 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11462 | ipv6=no |
| 11463 | |
| 11464 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11465 | cat >conftest.$ac_ext <<_ACEOF |
| 11466 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11467 | #include "confdefs.h" |
| 11468 | /* AF_INET6 available check */ |
| 11469 | #include <sys/types.h> |
| 11470 | #include <sys/socket.h> |
| 11471 | main() |
| 11472 | { |
| 11473 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 11474 | exit(1); |
| 11475 | else |
| 11476 | exit(0); |
| 11477 | } |
| 11478 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11479 | _ACEOF |
| 11480 | rm -f conftest$ac_exeext |
| 11481 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11482 | (eval $ac_link) 2>&5 |
| 11483 | ac_status=$? |
| 11484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11485 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11487 | (eval $ac_try) 2>&5 |
| 11488 | ac_status=$? |
| 11489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11490 | (exit $ac_status); }; }; then |
| 11491 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11492 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11493 | ipv6=yes |
| 11494 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11495 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11496 | echo "$as_me: failed program was:" >&5 |
| 11497 | cat conftest.$ac_ext >&5 |
| 11498 | ( exit $ac_status ) |
| 11499 | echo "$as_me:$LINENO: result: no" >&5 |
| 11500 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11501 | ipv6=no |
| 11502 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11503 | 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] | 11504 | fi |
| 11505 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11506 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11507 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 11508 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 11509 | cat >conftest.$ac_ext <<_ACEOF |
| 11510 | #line $LINENO "configure" |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11511 | #include "confdefs.h" |
| 11512 | #include <sys/types.h> |
| 11513 | #include <netinet/in.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11514 | #ifdef F77_DUMMY_MAIN |
| 11515 | # ifdef __cplusplus |
| 11516 | extern "C" |
| 11517 | # endif |
| 11518 | int F77_DUMMY_MAIN() { return 1; } |
| 11519 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11520 | int |
| 11521 | main () |
| 11522 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11523 | struct sockaddr_in6 x; |
| 11524 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11525 | ; |
| 11526 | return 0; |
| 11527 | } |
| 11528 | _ACEOF |
| 11529 | rm -f conftest.$ac_objext |
| 11530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11531 | (eval $ac_compile) 2>&5 |
| 11532 | ac_status=$? |
| 11533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11534 | (exit $ac_status); } && |
| 11535 | { ac_try='test -s conftest.$ac_objext' |
| 11536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11537 | (eval $ac_try) 2>&5 |
| 11538 | ac_status=$? |
| 11539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11540 | (exit $ac_status); }; }; then |
| 11541 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11542 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11543 | ipv6=yes |
| 11544 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11545 | echo "$as_me: failed program was:" >&5 |
| 11546 | cat conftest.$ac_ext >&5 |
| 11547 | echo "$as_me:$LINENO: result: no" >&5 |
| 11548 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11549 | ipv6=no |
| 11550 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11551 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11552 | fi |
| 11553 | |
| 11554 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11555 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11556 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11557 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11558 | |
| 11559 | fi |
| 11560 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11561 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11562 | |
| 11563 | ipv6type=unknown |
| 11564 | ipv6lib=none |
| 11565 | ipv6trylibc=no |
| 11566 | |
| 11567 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11568 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 11569 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 11570 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 11571 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11572 | case $i in |
| 11573 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11574 | cat >conftest.$ac_ext <<_ACEOF |
| 11575 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11576 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11577 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11578 | #include <netinet/in.h> |
| 11579 | #ifdef IPV6_INRIA_VERSION |
| 11580 | yes |
| 11581 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11582 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11583 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11584 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11585 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11586 | fi |
| 11587 | rm -f conftest* |
| 11588 | |
| 11589 | ;; |
| 11590 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11591 | cat >conftest.$ac_ext <<_ACEOF |
| 11592 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11593 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11594 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11595 | #include <netinet/in.h> |
| 11596 | #ifdef __KAME__ |
| 11597 | yes |
| 11598 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11599 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11600 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11601 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11602 | ipv6type=$i; |
| 11603 | ipv6lib=inet6 |
| 11604 | ipv6libdir=/usr/local/v6/lib |
| 11605 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11606 | fi |
| 11607 | rm -f conftest* |
| 11608 | |
| 11609 | ;; |
| 11610 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11611 | cat >conftest.$ac_ext <<_ACEOF |
| 11612 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11613 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11614 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11615 | #include <features.h> |
| 11616 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 11617 | yes |
| 11618 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11619 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11620 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11621 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11622 | ipv6type=$i; |
| 11623 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11624 | fi |
| 11625 | rm -f conftest* |
| 11626 | |
| 11627 | ;; |
| 11628 | linux-inet6) |
| 11629 | if test -d /usr/inet6; then |
| 11630 | ipv6type=$i |
| 11631 | ipv6lib=inet6 |
| 11632 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11633 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11634 | fi |
| 11635 | ;; |
| 11636 | solaris) |
| 11637 | if test -f /etc/netconfig; then |
| 11638 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 11639 | ipv6type=$i |
| 11640 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11641 | fi |
| 11642 | fi |
| 11643 | ;; |
| 11644 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11645 | cat >conftest.$ac_ext <<_ACEOF |
| 11646 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11647 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11648 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11649 | #include <sys/param.h> |
| 11650 | #ifdef _TOSHIBA_INET6 |
| 11651 | yes |
| 11652 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11653 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11654 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11655 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11656 | ipv6type=$i; |
| 11657 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11658 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11659 | fi |
| 11660 | rm -f conftest* |
| 11661 | |
| 11662 | ;; |
| 11663 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11664 | cat >conftest.$ac_ext <<_ACEOF |
| 11665 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11666 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11667 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11668 | #include </usr/local/v6/include/sys/v6config.h> |
| 11669 | #ifdef __V6D__ |
| 11670 | yes |
| 11671 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11672 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11673 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11674 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11675 | ipv6type=$i; |
| 11676 | ipv6lib=v6; |
| 11677 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11678 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11679 | fi |
| 11680 | rm -f conftest* |
| 11681 | |
| 11682 | ;; |
| 11683 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11684 | cat >conftest.$ac_ext <<_ACEOF |
| 11685 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11686 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11687 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11688 | #include <sys/param.h> |
| 11689 | #ifdef _ZETA_MINAMI_INET6 |
| 11690 | yes |
| 11691 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11692 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11693 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11694 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11695 | ipv6type=$i; |
| 11696 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11697 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11698 | fi |
| 11699 | rm -f conftest* |
| 11700 | |
| 11701 | ;; |
| 11702 | esac |
| 11703 | if test "$ipv6type" != "unknown"; then |
| 11704 | break |
| 11705 | fi |
| 11706 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11707 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 11708 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11709 | fi |
| 11710 | |
| 11711 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 11712 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 11713 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 11714 | echo "using lib$ipv6lib" |
| 11715 | else |
| 11716 | if test $ipv6trylibc = "yes"; then |
| 11717 | echo "using libc" |
| 11718 | else |
| 11719 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 11720 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 11721 | echo 'ipv6 kit and compile beforehand.' |
| 11722 | exit 1 |
| 11723 | fi |
| 11724 | fi |
| 11725 | fi |
| 11726 | |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11727 | # Check for universal newline support |
Guido van Rossum | 402905e | 2002-08-15 13:56:35 +0000 | [diff] [blame] | 11728 | echo "$as_me:$LINENO: checking for --with-universal-newlines" >&5 |
| 11729 | echo $ECHO_N "checking for --with-universal-newlines... $ECHO_C" >&6 |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11730 | |
| 11731 | # Check whether --with-universal-newlines or --without-universal-newlines was given. |
| 11732 | if test "${with_universal_newlines+set}" = set; then |
| 11733 | withval="$with_universal_newlines" |
| 11734 | |
| 11735 | fi; |
| 11736 | |
| 11737 | if test -z "$with_universal_newlines" |
| 11738 | then with_universal_newlines="yes" |
| 11739 | fi |
Martin v. Löwis | 7e4cfcb | 2002-12-19 16:21:49 +0000 | [diff] [blame] | 11740 | if test "$with_universal_newlines" = "no" |
Martin v. Löwis | 03d00d5 | 2002-12-19 19:03:31 +0000 | [diff] [blame] | 11741 | then |
Martin v. Löwis | 7e4cfcb | 2002-12-19 16:21:49 +0000 | [diff] [blame] | 11742 | echo --without-universal-newlines is unsupported, see README |
| 11743 | exit 1 |
Martin v. Löwis | 03d00d5 | 2002-12-19 19:03:31 +0000 | [diff] [blame] | 11744 | else |
Martin v. Löwis | e8aea58 | 2002-04-16 05:51:02 +0000 | [diff] [blame] | 11745 | |
| 11746 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11747 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 11748 | _ACEOF |
| 11749 | |
| 11750 | fi |
| 11751 | echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 |
| 11752 | echo "${ECHO_T}$with_universal_newlines" >&6 |
| 11753 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11754 | # Check for --with-doc-strings |
| 11755 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 11756 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 11757 | |
| 11758 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 11759 | if test "${with_doc_strings+set}" = set; then |
| 11760 | withval="$with_doc_strings" |
| 11761 | |
| 11762 | fi; |
| 11763 | |
| 11764 | if test -z "$with_doc_strings" |
| 11765 | then with_doc_strings="yes" |
| 11766 | fi |
| 11767 | if test "$with_doc_strings" != "no" |
| 11768 | then |
| 11769 | |
| 11770 | cat >>confdefs.h <<\_ACEOF |
| 11771 | #define WITH_DOC_STRINGS 1 |
| 11772 | _ACEOF |
| 11773 | |
| 11774 | fi |
| 11775 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 11776 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 11777 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11778 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11779 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 11780 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 11781 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11782 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 11783 | if test "${with_pymalloc+set}" = set; then |
| 11784 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11785 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11786 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11787 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11788 | if test -z "$with_pymalloc" |
| 11789 | then with_pymalloc="yes" |
| 11790 | fi |
| 11791 | if test "$with_pymalloc" != "no" |
| 11792 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11793 | |
| 11794 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11795 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11796 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11797 | |
| 11798 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11799 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 11800 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11801 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11802 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11803 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 11804 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 11805 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11806 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 11807 | if test "${with_wctype_functions+set}" = set; then |
| 11808 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11809 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11810 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11811 | then |
| 11812 | |
| 11813 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11814 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11815 | _ACEOF |
| 11816 | |
| 11817 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11818 | echo "${ECHO_T}yes" >&6 |
| 11819 | else echo "$as_me:$LINENO: result: no" >&5 |
| 11820 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11821 | fi |
| 11822 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11823 | echo "$as_me:$LINENO: result: no" >&5 |
| 11824 | echo "${ECHO_T}no" >&6 |
| 11825 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11826 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11827 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11828 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11829 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11830 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11831 | echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5 |
| 11832 | echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6 |
| 11833 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11834 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11835 | if test "${with_sgi_dl+set}" = set; then |
| 11836 | withval="$with_sgi_dl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11837 | |
| 11838 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11839 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 9ef3376 | 2002-12-02 22:23:56 +0000 | [diff] [blame] | 11840 | echo --with-sgi-dl is unsupported, see README |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 11841 | exit 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11842 | |
| 11843 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11844 | #define WITH_SGI_DL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11845 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11846 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11847 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11848 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 11849 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 11850 | then LDFLAGS="$LDFLAGS -L$dldir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11851 | else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5 |
| 11852 | echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;} |
| 11853 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11854 | fi |
| 11855 | DLINCLDIR=${dldir} |
| 11856 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11857 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11858 | echo "$as_me:$LINENO: result: no" >&5 |
| 11859 | echo "${ECHO_T}no" >&6 |
| 11860 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11861 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11862 | echo "$as_me:$LINENO: checking for --with-dl-dld" >&5 |
| 11863 | echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11864 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11865 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11866 | if test "${with_dl_dld+set}" = set; then |
| 11867 | withval="$with_dl_dld" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11868 | |
| 11869 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11870 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 9ef3376 | 2002-12-02 22:23:56 +0000 | [diff] [blame] | 11871 | echo --with-dl-dld is unsupported, see README |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 11872 | exit 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11873 | |
| 11874 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11875 | #define WITH_DL_DLD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11876 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11877 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11878 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11879 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 11880 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 11881 | 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] | 11882 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11883 | else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&5 |
| 11884 | echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&2;} |
| 11885 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11886 | fi |
| 11887 | DLINCLDIR=${dldir} |
| 11888 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11889 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11890 | echo "$as_me:$LINENO: result: no" >&5 |
| 11891 | echo "${ECHO_T}no" >&6 |
| 11892 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11893 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11894 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 11895 | # 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] | 11896 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11897 | for ac_func in dlopen |
| 11898 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11899 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11900 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11901 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11902 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11904 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11905 | cat >conftest.$ac_ext <<_ACEOF |
| 11906 | #line $LINENO "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11907 | #include "confdefs.h" |
| 11908 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11909 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11910 | #include <assert.h> |
| 11911 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11912 | #ifdef __cplusplus |
| 11913 | extern "C" |
| 11914 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11915 | /* 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] | 11916 | builtin and then its argument prototype would still apply. */ |
| 11917 | char $ac_func (); |
| 11918 | char (*f) (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11919 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11920 | #ifdef F77_DUMMY_MAIN |
| 11921 | # ifdef __cplusplus |
| 11922 | extern "C" |
| 11923 | # endif |
| 11924 | int F77_DUMMY_MAIN() { return 1; } |
| 11925 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11926 | int |
| 11927 | main () |
| 11928 | { |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11929 | /* The GNU C library defines this for functions which it implements |
| 11930 | to always fail with ENOSYS. Some functions are actually named |
| 11931 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11932 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11933 | choke me |
| 11934 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11935 | f = $ac_func; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11936 | #endif |
| 11937 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11938 | ; |
| 11939 | return 0; |
| 11940 | } |
| 11941 | _ACEOF |
| 11942 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11944 | (eval $ac_link) 2>&5 |
| 11945 | ac_status=$? |
| 11946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11947 | (exit $ac_status); } && |
| 11948 | { ac_try='test -s conftest$ac_exeext' |
| 11949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11950 | (eval $ac_try) 2>&5 |
| 11951 | ac_status=$? |
| 11952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11953 | (exit $ac_status); }; }; then |
| 11954 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11955 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11956 | echo "$as_me: failed program was:" >&5 |
| 11957 | cat conftest.$ac_ext >&5 |
| 11958 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11959 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11960 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11961 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11962 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11963 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11964 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11965 | cat >>confdefs.h <<_ACEOF |
| 11966 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11967 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11968 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11969 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11970 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11971 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11972 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11973 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 11974 | # loading of modules. |
| 11975 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11976 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 11977 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11978 | if test -z "$DYNLOADFILE" |
| 11979 | then |
| 11980 | case $ac_sys_system/$ac_sys_release in |
| 11981 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 11982 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 11983 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11984 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11985 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11986 | *) |
| 11987 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 11988 | # out any dynamic loading |
| 11989 | if test "$ac_cv_func_dlopen" = yes |
| 11990 | then DYNLOADFILE="dynload_shlib.o" |
| 11991 | else DYNLOADFILE="dynload_stub.o" |
| 11992 | fi |
| 11993 | ;; |
| 11994 | esac |
| 11995 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11996 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 11997 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11998 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 11999 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12000 | |
| 12001 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12002 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12003 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12004 | |
| 12005 | fi |
| 12006 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12007 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 12008 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12009 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12010 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 12011 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12012 | if test -z "$MACHDEP_OBJS" |
| 12013 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12014 | MACHDEP_OBJS=$extra_machdep_objs |
| 12015 | else |
| 12016 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12017 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12018 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 12019 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12020 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12021 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12022 | |
| 12023 | |
| 12024 | |
| 12025 | |
| 12026 | |
| 12027 | |
| 12028 | |
| 12029 | |
| 12030 | |
| 12031 | |
| 12032 | |
| 12033 | |
| 12034 | |
| 12035 | |
| 12036 | |
| 12037 | |
| 12038 | |
| 12039 | |
| 12040 | |
| 12041 | |
| 12042 | |
| 12043 | |
| 12044 | |
| 12045 | |
| 12046 | |
| 12047 | |
| 12048 | |
| 12049 | |
| 12050 | |
| 12051 | |
| 12052 | |
| 12053 | |
| 12054 | |
| 12055 | |
| 12056 | |
| 12057 | |
| 12058 | |
| 12059 | |
| 12060 | |
| 12061 | |
| 12062 | |
| 12063 | |
| 12064 | |
| 12065 | |
| 12066 | |
| 12067 | |
| 12068 | |
| 12069 | |
| 12070 | |
| 12071 | |
| 12072 | |
| 12073 | |
| 12074 | |
| 12075 | |
| 12076 | |
| 12077 | |
| 12078 | |
| 12079 | |
| 12080 | |
| 12081 | |
| 12082 | |
| 12083 | |
| 12084 | |
| 12085 | |
| 12086 | |
| 12087 | |
| 12088 | |
| 12089 | |
| 12090 | |
| 12091 | |
| 12092 | |
| 12093 | |
| 12094 | |
Martin v. Löwis | 9c36c29 | 2002-12-21 18:34:06 +0000 | [diff] [blame] | 12095 | |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 12096 | |
Neal Norwitz | 10b214c | 2003-02-13 02:11:10 +0000 | [diff] [blame] | 12097 | |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 12098 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12099 | for ac_func in alarm chown clock confstr ctermid execv \ |
Fred Drake | 6b3cc52 | 2002-04-15 19:20:27 +0000 | [diff] [blame] | 12100 | fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 12101 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
| 12102 | getpriority getpwent getwd \ |
Neal Norwitz | 10b214c | 2003-02-13 02:11:10 +0000 | [diff] [blame] | 12103 | hstrerror inet_aton inet_pton kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 12104 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 12105 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12106 | select setegid seteuid setgid \ |
Martin v. Löwis | 791bfda | 2001-07-24 06:33:08 +0000 | [diff] [blame] | 12107 | setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12108 | sigaction siginterrupt sigrelse strftime strptime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 12109 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 12110 | truncate uname unsetenv utimes waitpid wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12111 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12112 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12113 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12114 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12115 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12117 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12118 | cat >conftest.$ac_ext <<_ACEOF |
| 12119 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12120 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12121 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12122 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12123 | #include <assert.h> |
| 12124 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12125 | #ifdef __cplusplus |
| 12126 | extern "C" |
| 12127 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12128 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12129 | builtin and then its argument prototype would still apply. */ |
| 12130 | char $ac_func (); |
| 12131 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12132 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12133 | #ifdef F77_DUMMY_MAIN |
| 12134 | # ifdef __cplusplus |
| 12135 | extern "C" |
| 12136 | # endif |
| 12137 | int F77_DUMMY_MAIN() { return 1; } |
| 12138 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12139 | int |
| 12140 | main () |
| 12141 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12142 | /* The GNU C library defines this for functions which it implements |
| 12143 | to always fail with ENOSYS. Some functions are actually named |
| 12144 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12145 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12146 | choke me |
| 12147 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12148 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12149 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12151 | ; |
| 12152 | return 0; |
| 12153 | } |
| 12154 | _ACEOF |
| 12155 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12156 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12157 | (eval $ac_link) 2>&5 |
| 12158 | ac_status=$? |
| 12159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12160 | (exit $ac_status); } && |
| 12161 | { ac_try='test -s conftest$ac_exeext' |
| 12162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12163 | (eval $ac_try) 2>&5 |
| 12164 | ac_status=$? |
| 12165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12166 | (exit $ac_status); }; }; then |
| 12167 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12168 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12169 | echo "$as_me: failed program was:" >&5 |
| 12170 | cat conftest.$ac_ext >&5 |
| 12171 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12172 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12173 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12174 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12175 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12176 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12177 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12178 | cat >>confdefs.h <<_ACEOF |
| 12179 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12180 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12181 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12182 | fi |
| 12183 | done |
| 12184 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12185 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12186 | # For some functions, having a definition is not sufficient, since |
| 12187 | # we want to take their address. |
| 12188 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 12189 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 12190 | cat >conftest.$ac_ext <<_ACEOF |
| 12191 | #line $LINENO "configure" |
| 12192 | #include "confdefs.h" |
| 12193 | #include <unistd.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12194 | #ifdef F77_DUMMY_MAIN |
| 12195 | # ifdef __cplusplus |
| 12196 | extern "C" |
| 12197 | # endif |
| 12198 | int F77_DUMMY_MAIN() { return 1; } |
| 12199 | #endif |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12200 | int |
| 12201 | main () |
| 12202 | { |
| 12203 | void *x=chroot |
| 12204 | ; |
| 12205 | return 0; |
| 12206 | } |
| 12207 | _ACEOF |
| 12208 | rm -f conftest.$ac_objext |
| 12209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12210 | (eval $ac_compile) 2>&5 |
| 12211 | ac_status=$? |
| 12212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12213 | (exit $ac_status); } && |
| 12214 | { ac_try='test -s conftest.$ac_objext' |
| 12215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12216 | (eval $ac_try) 2>&5 |
| 12217 | ac_status=$? |
| 12218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12219 | (exit $ac_status); }; }; then |
| 12220 | |
| 12221 | cat >>confdefs.h <<\_ACEOF |
| 12222 | #define HAVE_CHROOT 1 |
| 12223 | _ACEOF |
| 12224 | |
| 12225 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12226 | echo "${ECHO_T}yes" >&6 |
| 12227 | else |
| 12228 | echo "$as_me: failed program was:" >&5 |
| 12229 | cat conftest.$ac_ext >&5 |
| 12230 | echo "$as_me:$LINENO: result: no" >&5 |
| 12231 | echo "${ECHO_T}no" >&6 |
| 12232 | |
| 12233 | fi |
| 12234 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12235 | echo "$as_me:$LINENO: checking for link" >&5 |
| 12236 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 12237 | cat >conftest.$ac_ext <<_ACEOF |
| 12238 | #line $LINENO "configure" |
| 12239 | #include "confdefs.h" |
| 12240 | #include <unistd.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12241 | #ifdef F77_DUMMY_MAIN |
| 12242 | # ifdef __cplusplus |
| 12243 | extern "C" |
| 12244 | # endif |
| 12245 | int F77_DUMMY_MAIN() { return 1; } |
| 12246 | #endif |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12247 | int |
| 12248 | main () |
| 12249 | { |
| 12250 | void *x=link |
| 12251 | ; |
| 12252 | return 0; |
| 12253 | } |
| 12254 | _ACEOF |
| 12255 | rm -f conftest.$ac_objext |
| 12256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12257 | (eval $ac_compile) 2>&5 |
| 12258 | ac_status=$? |
| 12259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12260 | (exit $ac_status); } && |
| 12261 | { ac_try='test -s conftest.$ac_objext' |
| 12262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12263 | (eval $ac_try) 2>&5 |
| 12264 | ac_status=$? |
| 12265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12266 | (exit $ac_status); }; }; then |
| 12267 | |
| 12268 | cat >>confdefs.h <<\_ACEOF |
| 12269 | #define HAVE_LINK 1 |
| 12270 | _ACEOF |
| 12271 | |
| 12272 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12273 | echo "${ECHO_T}yes" >&6 |
| 12274 | else |
| 12275 | echo "$as_me: failed program was:" >&5 |
| 12276 | cat conftest.$ac_ext >&5 |
| 12277 | echo "$as_me:$LINENO: result: no" >&5 |
| 12278 | echo "${ECHO_T}no" >&6 |
| 12279 | |
| 12280 | fi |
| 12281 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12282 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 12283 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 12284 | cat >conftest.$ac_ext <<_ACEOF |
| 12285 | #line $LINENO "configure" |
| 12286 | #include "confdefs.h" |
| 12287 | #include <unistd.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12288 | #ifdef F77_DUMMY_MAIN |
| 12289 | # ifdef __cplusplus |
| 12290 | extern "C" |
| 12291 | # endif |
| 12292 | int F77_DUMMY_MAIN() { return 1; } |
| 12293 | #endif |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12294 | int |
| 12295 | main () |
| 12296 | { |
| 12297 | void *x=symlink |
| 12298 | ; |
| 12299 | return 0; |
| 12300 | } |
| 12301 | _ACEOF |
| 12302 | rm -f conftest.$ac_objext |
| 12303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12304 | (eval $ac_compile) 2>&5 |
| 12305 | ac_status=$? |
| 12306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12307 | (exit $ac_status); } && |
| 12308 | { ac_try='test -s conftest.$ac_objext' |
| 12309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12310 | (eval $ac_try) 2>&5 |
| 12311 | ac_status=$? |
| 12312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12313 | (exit $ac_status); }; }; then |
| 12314 | |
| 12315 | cat >>confdefs.h <<\_ACEOF |
| 12316 | #define HAVE_SYMLINK 1 |
| 12317 | _ACEOF |
| 12318 | |
| 12319 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12320 | echo "${ECHO_T}yes" >&6 |
| 12321 | else |
| 12322 | echo "$as_me: failed program was:" >&5 |
| 12323 | cat conftest.$ac_ext >&5 |
| 12324 | echo "$as_me:$LINENO: result: no" >&5 |
| 12325 | echo "${ECHO_T}no" >&6 |
| 12326 | |
| 12327 | fi |
| 12328 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12329 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12330 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 12331 | # functions ctermid_r, setgroups in the library, but no prototype |
| 12332 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 12333 | # address to avoid compiler warnings and potential miscompilations |
| 12334 | # because of the missing prototypes. |
| 12335 | |
| 12336 | echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 12337 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6 |
| 12338 | cat >conftest.$ac_ext <<_ACEOF |
| 12339 | #line $LINENO "configure" |
| 12340 | #include "confdefs.h" |
| 12341 | |
| 12342 | #include "confdefs.h" |
| 12343 | #include <stdio.h> |
| 12344 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12345 | #ifdef F77_DUMMY_MAIN |
| 12346 | # ifdef __cplusplus |
| 12347 | extern "C" |
| 12348 | # endif |
| 12349 | int F77_DUMMY_MAIN() { return 1; } |
| 12350 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12351 | int |
| 12352 | main () |
| 12353 | { |
| 12354 | void* p = ctermid_r |
| 12355 | ; |
| 12356 | return 0; |
| 12357 | } |
| 12358 | _ACEOF |
| 12359 | rm -f conftest.$ac_objext |
| 12360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12361 | (eval $ac_compile) 2>&5 |
| 12362 | ac_status=$? |
| 12363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12364 | (exit $ac_status); } && |
| 12365 | { ac_try='test -s conftest.$ac_objext' |
| 12366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12367 | (eval $ac_try) 2>&5 |
| 12368 | ac_status=$? |
| 12369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12370 | (exit $ac_status); }; }; then |
| 12371 | |
| 12372 | cat >>confdefs.h <<\_ACEOF |
| 12373 | #define HAVE_CTERMID_R 1 |
| 12374 | _ACEOF |
| 12375 | |
| 12376 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12377 | echo "${ECHO_T}yes" >&6 |
| 12378 | else |
| 12379 | echo "$as_me: failed program was:" >&5 |
| 12380 | cat conftest.$ac_ext >&5 |
| 12381 | echo "$as_me:$LINENO: result: no" >&5 |
| 12382 | echo "${ECHO_T}no" >&6 |
| 12383 | |
| 12384 | fi |
| 12385 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12386 | |
| 12387 | echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 12388 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 |
| 12389 | cat >conftest.$ac_ext <<_ACEOF |
| 12390 | #line $LINENO "configure" |
| 12391 | #include "confdefs.h" |
| 12392 | |
| 12393 | #include "confdefs.h" |
| 12394 | #include <unistd.h.h> |
| 12395 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12396 | #ifdef F77_DUMMY_MAIN |
| 12397 | # ifdef __cplusplus |
| 12398 | extern "C" |
| 12399 | # endif |
| 12400 | int F77_DUMMY_MAIN() { return 1; } |
| 12401 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12402 | int |
| 12403 | main () |
| 12404 | { |
| 12405 | void* p = setgroups |
| 12406 | ; |
| 12407 | return 0; |
| 12408 | } |
| 12409 | _ACEOF |
| 12410 | rm -f conftest.$ac_objext |
| 12411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12412 | (eval $ac_compile) 2>&5 |
| 12413 | ac_status=$? |
| 12414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12415 | (exit $ac_status); } && |
| 12416 | { ac_try='test -s conftest.$ac_objext' |
| 12417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12418 | (eval $ac_try) 2>&5 |
| 12419 | ac_status=$? |
| 12420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12421 | (exit $ac_status); }; }; then |
| 12422 | |
| 12423 | cat >>confdefs.h <<\_ACEOF |
| 12424 | #define HAVE_SETGROUPS 1 |
| 12425 | _ACEOF |
| 12426 | |
| 12427 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12428 | echo "${ECHO_T}yes" >&6 |
| 12429 | else |
| 12430 | echo "$as_me: failed program was:" >&5 |
| 12431 | cat conftest.$ac_ext >&5 |
| 12432 | echo "$as_me:$LINENO: result: no" >&5 |
| 12433 | echo "${ECHO_T}no" >&6 |
| 12434 | |
| 12435 | fi |
| 12436 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12437 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12438 | # check for openpty and forkpty |
| 12439 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12440 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12441 | for ac_func in openpty |
| 12442 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12443 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12444 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12445 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12446 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12448 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12449 | cat >conftest.$ac_ext <<_ACEOF |
| 12450 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12451 | #include "confdefs.h" |
| 12452 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12453 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12454 | #include <assert.h> |
| 12455 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12456 | #ifdef __cplusplus |
| 12457 | extern "C" |
| 12458 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12459 | /* 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] | 12460 | builtin and then its argument prototype would still apply. */ |
| 12461 | char $ac_func (); |
| 12462 | char (*f) (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12463 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12464 | #ifdef F77_DUMMY_MAIN |
| 12465 | # ifdef __cplusplus |
| 12466 | extern "C" |
| 12467 | # endif |
| 12468 | int F77_DUMMY_MAIN() { return 1; } |
| 12469 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12470 | int |
| 12471 | main () |
| 12472 | { |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12473 | /* The GNU C library defines this for functions which it implements |
| 12474 | to always fail with ENOSYS. Some functions are actually named |
| 12475 | something starting with __ and the normal name is an alias. */ |
| 12476 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12477 | choke me |
| 12478 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12479 | f = $ac_func; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12480 | #endif |
| 12481 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12482 | ; |
| 12483 | return 0; |
| 12484 | } |
| 12485 | _ACEOF |
| 12486 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12488 | (eval $ac_link) 2>&5 |
| 12489 | ac_status=$? |
| 12490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12491 | (exit $ac_status); } && |
| 12492 | { ac_try='test -s conftest$ac_exeext' |
| 12493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12494 | (eval $ac_try) 2>&5 |
| 12495 | ac_status=$? |
| 12496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12497 | (exit $ac_status); }; }; then |
| 12498 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12499 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12500 | echo "$as_me: failed program was:" >&5 |
| 12501 | cat conftest.$ac_ext >&5 |
| 12502 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12503 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12504 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12505 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12506 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12507 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12508 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12509 | cat >>confdefs.h <<_ACEOF |
| 12510 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12511 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12512 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12513 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12514 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 12515 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 12516 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 12517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12518 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12519 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12520 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12521 | cat >conftest.$ac_ext <<_ACEOF |
| 12522 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12523 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12524 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12525 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12526 | #ifdef __cplusplus |
| 12527 | extern "C" |
| 12528 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12529 | /* 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] | 12530 | builtin and then its argument prototype would still apply. */ |
| 12531 | char openpty (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12532 | #ifdef F77_DUMMY_MAIN |
| 12533 | # ifdef __cplusplus |
| 12534 | extern "C" |
| 12535 | # endif |
| 12536 | int F77_DUMMY_MAIN() { return 1; } |
| 12537 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12538 | int |
| 12539 | main () |
| 12540 | { |
| 12541 | openpty (); |
| 12542 | ; |
| 12543 | return 0; |
| 12544 | } |
| 12545 | _ACEOF |
| 12546 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12547 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12548 | (eval $ac_link) 2>&5 |
| 12549 | ac_status=$? |
| 12550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12551 | (exit $ac_status); } && |
| 12552 | { ac_try='test -s conftest$ac_exeext' |
| 12553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12554 | (eval $ac_try) 2>&5 |
| 12555 | ac_status=$? |
| 12556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12557 | (exit $ac_status); }; }; then |
| 12558 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12559 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12560 | echo "$as_me: failed program was:" >&5 |
| 12561 | cat conftest.$ac_ext >&5 |
| 12562 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12563 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12564 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12565 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12566 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12567 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 12568 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 12569 | if test $ac_cv_lib_util_openpty = yes; then |
| 12570 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12571 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12572 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12573 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12574 | fi |
| 12575 | |
| 12576 | fi |
| 12577 | done |
| 12578 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12579 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12580 | for ac_func in forkpty |
| 12581 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12582 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12583 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12584 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12585 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12587 | else |
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" |
| 12591 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12592 | which can conflict with char $ac_func (); below. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12593 | #include <assert.h> |
| 12594 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12595 | #ifdef __cplusplus |
| 12596 | extern "C" |
| 12597 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12598 | /* 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] | 12599 | builtin and then its argument prototype would still apply. */ |
| 12600 | char $ac_func (); |
| 12601 | char (*f) (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12602 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12603 | #ifdef F77_DUMMY_MAIN |
| 12604 | # ifdef __cplusplus |
| 12605 | extern "C" |
| 12606 | # endif |
| 12607 | int F77_DUMMY_MAIN() { return 1; } |
| 12608 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12609 | int |
| 12610 | main () |
| 12611 | { |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12612 | /* The GNU C library defines this for functions which it implements |
| 12613 | to always fail with ENOSYS. Some functions are actually named |
| 12614 | something starting with __ and the normal name is an alias. */ |
| 12615 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12616 | choke me |
| 12617 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12618 | f = $ac_func; |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12619 | #endif |
| 12620 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12621 | ; |
| 12622 | return 0; |
| 12623 | } |
| 12624 | _ACEOF |
| 12625 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12626 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12627 | (eval $ac_link) 2>&5 |
| 12628 | ac_status=$? |
| 12629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12630 | (exit $ac_status); } && |
| 12631 | { ac_try='test -s conftest$ac_exeext' |
| 12632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12633 | (eval $ac_try) 2>&5 |
| 12634 | ac_status=$? |
| 12635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12636 | (exit $ac_status); }; }; then |
| 12637 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12638 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12639 | echo "$as_me: failed program was:" >&5 |
| 12640 | cat conftest.$ac_ext >&5 |
| 12641 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12642 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12643 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12644 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12645 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12646 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12647 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12648 | cat >>confdefs.h <<_ACEOF |
| 12649 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12650 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12651 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12652 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12653 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 12654 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 12655 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 12656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12657 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12658 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12659 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12660 | cat >conftest.$ac_ext <<_ACEOF |
| 12661 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12662 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12663 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12664 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12665 | #ifdef __cplusplus |
| 12666 | extern "C" |
| 12667 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12668 | /* 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] | 12669 | builtin and then its argument prototype would still apply. */ |
| 12670 | char forkpty (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12671 | #ifdef F77_DUMMY_MAIN |
| 12672 | # ifdef __cplusplus |
| 12673 | extern "C" |
| 12674 | # endif |
| 12675 | int F77_DUMMY_MAIN() { return 1; } |
| 12676 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12677 | int |
| 12678 | main () |
| 12679 | { |
| 12680 | forkpty (); |
| 12681 | ; |
| 12682 | return 0; |
| 12683 | } |
| 12684 | _ACEOF |
| 12685 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12686 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12687 | (eval $ac_link) 2>&5 |
| 12688 | ac_status=$? |
| 12689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12690 | (exit $ac_status); } && |
| 12691 | { ac_try='test -s conftest$ac_exeext' |
| 12692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12693 | (eval $ac_try) 2>&5 |
| 12694 | ac_status=$? |
| 12695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12696 | (exit $ac_status); }; }; then |
| 12697 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12698 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12699 | echo "$as_me: failed program was:" >&5 |
| 12700 | cat conftest.$ac_ext >&5 |
| 12701 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12702 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12703 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12704 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12705 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12706 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 12707 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 12708 | if test $ac_cv_lib_util_forkpty = yes; then |
| 12709 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12710 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12711 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12712 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12713 | fi |
| 12714 | |
| 12715 | fi |
| 12716 | done |
| 12717 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12718 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12719 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12720 | |
| 12721 | |
| 12722 | |
| 12723 | |
| 12724 | |
| 12725 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12726 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 12727 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12728 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12729 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12730 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12731 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12733 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12734 | cat >conftest.$ac_ext <<_ACEOF |
| 12735 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12736 | #include "confdefs.h" |
| 12737 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12738 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12739 | #include <assert.h> |
| 12740 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12741 | #ifdef __cplusplus |
| 12742 | extern "C" |
| 12743 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12744 | /* 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] | 12745 | builtin and then its argument prototype would still apply. */ |
| 12746 | char $ac_func (); |
| 12747 | char (*f) (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12748 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12749 | #ifdef F77_DUMMY_MAIN |
| 12750 | # ifdef __cplusplus |
| 12751 | extern "C" |
| 12752 | # endif |
| 12753 | int F77_DUMMY_MAIN() { return 1; } |
| 12754 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12755 | int |
| 12756 | main () |
| 12757 | { |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12758 | /* The GNU C library defines this for functions which it implements |
| 12759 | to always fail with ENOSYS. Some functions are actually named |
| 12760 | something starting with __ and the normal name is an alias. */ |
| 12761 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12762 | choke me |
| 12763 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12764 | f = $ac_func; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12765 | #endif |
| 12766 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12767 | ; |
| 12768 | return 0; |
| 12769 | } |
| 12770 | _ACEOF |
| 12771 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12772 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12773 | (eval $ac_link) 2>&5 |
| 12774 | ac_status=$? |
| 12775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12776 | (exit $ac_status); } && |
| 12777 | { ac_try='test -s conftest$ac_exeext' |
| 12778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12779 | (eval $ac_try) 2>&5 |
| 12780 | ac_status=$? |
| 12781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12782 | (exit $ac_status); }; }; then |
| 12783 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12784 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12785 | echo "$as_me: failed program was:" >&5 |
| 12786 | cat conftest.$ac_ext >&5 |
| 12787 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12788 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12789 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12790 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12791 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12792 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12793 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12794 | cat >>confdefs.h <<_ACEOF |
| 12795 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12796 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12797 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12798 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12799 | done |
| 12800 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12801 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12802 | |
| 12803 | |
| 12804 | |
| 12805 | |
| 12806 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12807 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12808 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12809 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12810 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12811 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12812 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12814 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12815 | cat >conftest.$ac_ext <<_ACEOF |
| 12816 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12817 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12818 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12819 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12820 | #include <assert.h> |
| 12821 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12822 | #ifdef __cplusplus |
| 12823 | extern "C" |
| 12824 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12825 | /* 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] | 12826 | builtin and then its argument prototype would still apply. */ |
| 12827 | char $ac_func (); |
| 12828 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12829 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12830 | #ifdef F77_DUMMY_MAIN |
| 12831 | # ifdef __cplusplus |
| 12832 | extern "C" |
| 12833 | # endif |
| 12834 | int F77_DUMMY_MAIN() { return 1; } |
| 12835 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12836 | int |
| 12837 | main () |
| 12838 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12839 | /* The GNU C library defines this for functions which it implements |
| 12840 | to always fail with ENOSYS. Some functions are actually named |
| 12841 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12842 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12843 | choke me |
| 12844 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12845 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12846 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12847 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12848 | ; |
| 12849 | return 0; |
| 12850 | } |
| 12851 | _ACEOF |
| 12852 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12853 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12854 | (eval $ac_link) 2>&5 |
| 12855 | ac_status=$? |
| 12856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12857 | (exit $ac_status); } && |
| 12858 | { ac_try='test -s conftest$ac_exeext' |
| 12859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12860 | (eval $ac_try) 2>&5 |
| 12861 | ac_status=$? |
| 12862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12863 | (exit $ac_status); }; }; then |
| 12864 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12865 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12866 | echo "$as_me: failed program was:" >&5 |
| 12867 | cat conftest.$ac_ext >&5 |
| 12868 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12869 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12870 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12871 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12872 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12873 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12874 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12875 | cat >>confdefs.h <<_ACEOF |
| 12876 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12877 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12878 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12879 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12880 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12881 | fi |
| 12882 | done |
| 12883 | |
| 12884 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12885 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12886 | for ac_func in getpgrp |
| 12887 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12888 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12889 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12890 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12891 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12893 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12894 | cat >conftest.$ac_ext <<_ACEOF |
| 12895 | #line $LINENO "configure" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12896 | #include "confdefs.h" |
| 12897 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12898 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12899 | #include <assert.h> |
| 12900 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12901 | #ifdef __cplusplus |
| 12902 | extern "C" |
| 12903 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12904 | /* 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] | 12905 | builtin and then its argument prototype would still apply. */ |
| 12906 | char $ac_func (); |
| 12907 | char (*f) (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12908 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12909 | #ifdef F77_DUMMY_MAIN |
| 12910 | # ifdef __cplusplus |
| 12911 | extern "C" |
| 12912 | # endif |
| 12913 | int F77_DUMMY_MAIN() { return 1; } |
| 12914 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12915 | int |
| 12916 | main () |
| 12917 | { |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12918 | /* The GNU C library defines this for functions which it implements |
| 12919 | to always fail with ENOSYS. Some functions are actually named |
| 12920 | something starting with __ and the normal name is an alias. */ |
| 12921 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12922 | choke me |
| 12923 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12924 | f = $ac_func; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12925 | #endif |
| 12926 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12927 | ; |
| 12928 | return 0; |
| 12929 | } |
| 12930 | _ACEOF |
| 12931 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12932 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12933 | (eval $ac_link) 2>&5 |
| 12934 | ac_status=$? |
| 12935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12936 | (exit $ac_status); } && |
| 12937 | { ac_try='test -s conftest$ac_exeext' |
| 12938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12939 | (eval $ac_try) 2>&5 |
| 12940 | ac_status=$? |
| 12941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12942 | (exit $ac_status); }; }; then |
| 12943 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12944 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12945 | echo "$as_me: failed program was:" >&5 |
| 12946 | cat conftest.$ac_ext >&5 |
| 12947 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12948 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12949 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12950 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12951 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12952 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12953 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12954 | cat >>confdefs.h <<_ACEOF |
| 12955 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12956 | _ACEOF |
| 12957 | cat >conftest.$ac_ext <<_ACEOF |
| 12958 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12959 | #include "confdefs.h" |
| 12960 | #include <unistd.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12961 | #ifdef F77_DUMMY_MAIN |
| 12962 | # ifdef __cplusplus |
| 12963 | extern "C" |
| 12964 | # endif |
| 12965 | int F77_DUMMY_MAIN() { return 1; } |
| 12966 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12967 | int |
| 12968 | main () |
| 12969 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12970 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12971 | ; |
| 12972 | return 0; |
| 12973 | } |
| 12974 | _ACEOF |
| 12975 | rm -f conftest.$ac_objext |
| 12976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12977 | (eval $ac_compile) 2>&5 |
| 12978 | ac_status=$? |
| 12979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12980 | (exit $ac_status); } && |
| 12981 | { ac_try='test -s conftest.$ac_objext' |
| 12982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12983 | (eval $ac_try) 2>&5 |
| 12984 | ac_status=$? |
| 12985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12986 | (exit $ac_status); }; }; then |
| 12987 | |
| 12988 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12989 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12990 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12991 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12992 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 12993 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12994 | echo "$as_me: failed program was:" >&5 |
| 12995 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12996 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12997 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12998 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12999 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13000 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13001 | |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 13002 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
| 13003 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 |
| 13004 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13006 | else |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 13007 | if test "$cross_compiling" = yes; then |
| 13008 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 |
| 13009 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} |
| 13010 | { (exit 1); exit 1; }; } |
| 13011 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13012 | cat >conftest.$ac_ext <<_ACEOF |
| 13013 | #line $LINENO "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13014 | #include "confdefs.h" |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 13015 | #if HAVE_UNISTD_H |
| 13016 | # include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13017 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13018 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13019 | #ifdef F77_DUMMY_MAIN |
| 13020 | # ifdef __cplusplus |
| 13021 | extern "C" |
| 13022 | # endif |
| 13023 | int F77_DUMMY_MAIN() { return 1; } |
| 13024 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13025 | int |
| 13026 | main () |
| 13027 | { |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 13028 | /* If this system has a BSD-style setpgrp which takes arguments, |
| 13029 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case |
| 13030 | exit successfully. */ |
| 13031 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13032 | ; |
| 13033 | return 0; |
| 13034 | } |
| 13035 | _ACEOF |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 13036 | rm -f conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13038 | (eval $ac_link) 2>&5 |
| 13039 | ac_status=$? |
| 13040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 13041 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13043 | (eval $ac_try) 2>&5 |
| 13044 | ac_status=$? |
| 13045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13046 | (exit $ac_status); }; }; then |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 13047 | ac_cv_func_setpgrp_void=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13048 | else |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 13049 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13050 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13051 | cat conftest.$ac_ext >&5 |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 13052 | ( exit $ac_status ) |
| 13053 | ac_cv_func_setpgrp_void=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13054 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13055 | 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] | 13056 | fi |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 13057 | fi |
| 13058 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
| 13059 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 |
| 13060 | if test $ac_cv_func_setpgrp_void = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13061 | |
| 13062 | cat >>confdefs.h <<\_ACEOF |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 13063 | #define SETPGRP_VOID 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13064 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13065 | |
| 13066 | fi |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13067 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13068 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13069 | for ac_func in gettimeofday |
| 13070 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13071 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13072 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13073 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13074 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13076 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13077 | cat >conftest.$ac_ext <<_ACEOF |
| 13078 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13079 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13080 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13081 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13082 | #include <assert.h> |
| 13083 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13084 | #ifdef __cplusplus |
| 13085 | extern "C" |
| 13086 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13087 | /* 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] | 13088 | builtin and then its argument prototype would still apply. */ |
| 13089 | char $ac_func (); |
| 13090 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13091 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13092 | #ifdef F77_DUMMY_MAIN |
| 13093 | # ifdef __cplusplus |
| 13094 | extern "C" |
| 13095 | # endif |
| 13096 | int F77_DUMMY_MAIN() { return 1; } |
| 13097 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13098 | int |
| 13099 | main () |
| 13100 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13101 | /* The GNU C library defines this for functions which it implements |
| 13102 | to always fail with ENOSYS. Some functions are actually named |
| 13103 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13104 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13105 | choke me |
| 13106 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13107 | f = $ac_func; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13108 | #endif |
| 13109 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13110 | ; |
| 13111 | return 0; |
| 13112 | } |
| 13113 | _ACEOF |
| 13114 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13115 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13116 | (eval $ac_link) 2>&5 |
| 13117 | ac_status=$? |
| 13118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13119 | (exit $ac_status); } && |
| 13120 | { ac_try='test -s conftest$ac_exeext' |
| 13121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13122 | (eval $ac_try) 2>&5 |
| 13123 | ac_status=$? |
| 13124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13125 | (exit $ac_status); }; }; then |
| 13126 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13127 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13128 | echo "$as_me: failed program was:" >&5 |
| 13129 | cat conftest.$ac_ext >&5 |
| 13130 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13131 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13132 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13133 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13134 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13135 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13136 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13137 | cat >>confdefs.h <<_ACEOF |
| 13138 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13139 | _ACEOF |
| 13140 | cat >conftest.$ac_ext <<_ACEOF |
| 13141 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13142 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13143 | #include <sys/time.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13144 | #ifdef F77_DUMMY_MAIN |
| 13145 | # ifdef __cplusplus |
| 13146 | extern "C" |
| 13147 | # endif |
| 13148 | int F77_DUMMY_MAIN() { return 1; } |
| 13149 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13150 | int |
| 13151 | main () |
| 13152 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13153 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13154 | ; |
| 13155 | return 0; |
| 13156 | } |
| 13157 | _ACEOF |
| 13158 | rm -f conftest.$ac_objext |
| 13159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13160 | (eval $ac_compile) 2>&5 |
| 13161 | ac_status=$? |
| 13162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13163 | (exit $ac_status); } && |
| 13164 | { ac_try='test -s conftest.$ac_objext' |
| 13165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13166 | (eval $ac_try) 2>&5 |
| 13167 | ac_status=$? |
| 13168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13169 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13170 | : |
| 13171 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13172 | echo "$as_me: failed program was:" >&5 |
| 13173 | cat conftest.$ac_ext >&5 |
| 13174 | |
| 13175 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13176 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13177 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13178 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13179 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13180 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13181 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13182 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13183 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13184 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13185 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13186 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13187 | echo "$as_me:$LINENO: checking for major" >&5 |
| 13188 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 13189 | cat >conftest.$ac_ext <<_ACEOF |
| 13190 | #line $LINENO "configure" |
| 13191 | #include "confdefs.h" |
| 13192 | |
| 13193 | #if defined(MAJOR_IN_MKDEV) |
| 13194 | #include <sys/mkdev.h> |
| 13195 | #elif defined(MAJOR_IN_SYSMACROS) |
| 13196 | #include <sys/sysmacros.h> |
| 13197 | #else |
| 13198 | #include <sys/types.h> |
| 13199 | #endif |
| 13200 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13201 | #ifdef F77_DUMMY_MAIN |
| 13202 | # ifdef __cplusplus |
| 13203 | extern "C" |
| 13204 | # endif |
| 13205 | int F77_DUMMY_MAIN() { return 1; } |
| 13206 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13207 | int |
| 13208 | main () |
| 13209 | { |
| 13210 | |
| 13211 | makedev(major(0),minor(0)); |
| 13212 | |
| 13213 | ; |
| 13214 | return 0; |
| 13215 | } |
| 13216 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 13217 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13218 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13219 | (eval $ac_link) 2>&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13220 | ac_status=$? |
| 13221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13222 | (exit $ac_status); } && |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 13223 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13225 | (eval $ac_try) 2>&5 |
| 13226 | ac_status=$? |
| 13227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13228 | (exit $ac_status); }; }; then |
| 13229 | |
| 13230 | |
| 13231 | cat >>confdefs.h <<\_ACEOF |
| 13232 | #define HAVE_DEVICE_MACROS 1 |
| 13233 | _ACEOF |
| 13234 | |
| 13235 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13236 | echo "${ECHO_T}yes" >&6 |
| 13237 | |
| 13238 | else |
| 13239 | echo "$as_me: failed program was:" >&5 |
| 13240 | cat conftest.$ac_ext >&5 |
| 13241 | |
| 13242 | echo "$as_me:$LINENO: result: no" >&5 |
| 13243 | echo "${ECHO_T}no" >&6 |
| 13244 | |
| 13245 | fi |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 13246 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13247 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13248 | # 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] | 13249 | # for [no]getaddrinfo in netdb.h. |
| 13250 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 13251 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 13252 | cat >conftest.$ac_ext <<_ACEOF |
| 13253 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13254 | #include "confdefs.h" |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13255 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 13256 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13257 | #include <sys/socket.h> |
| 13258 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 13259 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13260 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13261 | #ifdef F77_DUMMY_MAIN |
| 13262 | # ifdef __cplusplus |
| 13263 | extern "C" |
| 13264 | # endif |
| 13265 | int F77_DUMMY_MAIN() { return 1; } |
| 13266 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13267 | int |
| 13268 | main () |
| 13269 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13270 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13271 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13272 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13273 | ; |
| 13274 | return 0; |
| 13275 | } |
| 13276 | _ACEOF |
| 13277 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13279 | (eval $ac_link) 2>&5 |
| 13280 | ac_status=$? |
| 13281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13282 | (exit $ac_status); } && |
| 13283 | { ac_try='test -s conftest$ac_exeext' |
| 13284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13285 | (eval $ac_try) 2>&5 |
| 13286 | ac_status=$? |
| 13287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13288 | (exit $ac_status); }; }; then |
| 13289 | |
| 13290 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13291 | echo "${ECHO_T}yes" >&6 |
| 13292 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 13293 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13294 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13295 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 13296 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13297 | buggygetaddrinfo=yes |
| 13298 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13299 | cat >conftest.$ac_ext <<_ACEOF |
| 13300 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13301 | #include "confdefs.h" |
| 13302 | |
| 13303 | #include <sys/types.h> |
| 13304 | #include <netdb.h> |
| 13305 | #include <string.h> |
| 13306 | #include <sys/socket.h> |
| 13307 | #include <netinet/in.h> |
| 13308 | |
| 13309 | main() |
| 13310 | { |
| 13311 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 13312 | struct addrinfo hints, *ai, *aitop; |
| 13313 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 13314 | |
| 13315 | for (passive = 0; passive <= 1; passive++) { |
| 13316 | memset(&hints, 0, sizeof(hints)); |
| 13317 | hints.ai_family = AF_UNSPEC; |
| 13318 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 13319 | hints.ai_socktype = SOCK_STREAM; |
| 13320 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 13321 | (void)gai_strerror(gaierr); |
| 13322 | goto bad; |
| 13323 | } |
| 13324 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 13325 | if (ai->ai_addr == NULL || |
| 13326 | ai->ai_addrlen == 0 || |
| 13327 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 13328 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 13329 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 13330 | goto bad; |
| 13331 | } |
| 13332 | switch (ai->ai_family) { |
| 13333 | case AF_INET: |
| 13334 | if (strcmp(strport, "54321") != 0) { |
| 13335 | goto bad; |
| 13336 | } |
| 13337 | if (passive) { |
| 13338 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 13339 | goto bad; |
| 13340 | } |
| 13341 | } else { |
| 13342 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 13343 | goto bad; |
| 13344 | } |
| 13345 | } |
| 13346 | inet4++; |
| 13347 | break; |
| 13348 | case AF_INET6: |
| 13349 | if (strcmp(strport, "54321") != 0) { |
| 13350 | goto bad; |
| 13351 | } |
| 13352 | if (passive) { |
| 13353 | if (strcmp(straddr, "::") != 0) { |
| 13354 | goto bad; |
| 13355 | } |
| 13356 | } else { |
| 13357 | if (strcmp(straddr, "::1") != 0) { |
| 13358 | goto bad; |
| 13359 | } |
| 13360 | } |
| 13361 | inet6++; |
| 13362 | break; |
| 13363 | case AF_UNSPEC: |
| 13364 | goto bad; |
| 13365 | break; |
| 13366 | default: |
| 13367 | /* another family support? */ |
| 13368 | break; |
| 13369 | } |
| 13370 | } |
| 13371 | } |
| 13372 | |
| 13373 | if (!(inet4 == 0 || inet4 == 2)) |
| 13374 | goto bad; |
| 13375 | if (!(inet6 == 0 || inet6 == 2)) |
| 13376 | goto bad; |
| 13377 | |
| 13378 | if (aitop) |
| 13379 | freeaddrinfo(aitop); |
| 13380 | exit(0); |
| 13381 | |
| 13382 | bad: |
| 13383 | if (aitop) |
| 13384 | freeaddrinfo(aitop); |
| 13385 | exit(1); |
| 13386 | } |
| 13387 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13388 | _ACEOF |
| 13389 | rm -f conftest$ac_exeext |
| 13390 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13391 | (eval $ac_link) 2>&5 |
| 13392 | ac_status=$? |
| 13393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13394 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13396 | (eval $ac_try) 2>&5 |
| 13397 | ac_status=$? |
| 13398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13399 | (exit $ac_status); }; }; then |
| 13400 | echo "$as_me:$LINENO: result: good" >&5 |
| 13401 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13402 | buggygetaddrinfo=no |
| 13403 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13404 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13405 | echo "$as_me: failed program was:" >&5 |
| 13406 | cat conftest.$ac_ext >&5 |
| 13407 | ( exit $ac_status ) |
| 13408 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 13409 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13410 | buggygetaddrinfo=yes |
| 13411 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13412 | 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] | 13413 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13414 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13415 | echo "$as_me: failed program was:" >&5 |
| 13416 | cat conftest.$ac_ext >&5 |
| 13417 | |
| 13418 | echo "$as_me:$LINENO: result: no" >&5 |
| 13419 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13420 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13421 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13422 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13423 | 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] | 13424 | |
| 13425 | if test "$buggygetaddrinfo" = "yes"; then |
| 13426 | if test "$ipv6" = "yes"; then |
| 13427 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 13428 | echo ' or you can specify "--disable-ipv6"'. |
| 13429 | exit 1 |
| 13430 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13431 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13432 | |
| 13433 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13434 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13435 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13436 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13437 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13438 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13439 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13440 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13441 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13442 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13443 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13444 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13446 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13447 | cat >conftest.$ac_ext <<_ACEOF |
| 13448 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13449 | #include "confdefs.h" |
| 13450 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13451 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13452 | #include <assert.h> |
| 13453 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13454 | #ifdef __cplusplus |
| 13455 | extern "C" |
| 13456 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13457 | /* 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] | 13458 | builtin and then its argument prototype would still apply. */ |
| 13459 | char $ac_func (); |
| 13460 | char (*f) (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13461 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13462 | #ifdef F77_DUMMY_MAIN |
| 13463 | # ifdef __cplusplus |
| 13464 | extern "C" |
| 13465 | # endif |
| 13466 | int F77_DUMMY_MAIN() { return 1; } |
| 13467 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13468 | int |
| 13469 | main () |
| 13470 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13471 | /* The GNU C library defines this for functions which it implements |
| 13472 | to always fail with ENOSYS. Some functions are actually named |
| 13473 | something starting with __ and the normal name is an alias. */ |
| 13474 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13475 | choke me |
| 13476 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13477 | f = $ac_func; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13478 | #endif |
| 13479 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13480 | ; |
| 13481 | return 0; |
| 13482 | } |
| 13483 | _ACEOF |
| 13484 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13485 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13486 | (eval $ac_link) 2>&5 |
| 13487 | ac_status=$? |
| 13488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13489 | (exit $ac_status); } && |
| 13490 | { ac_try='test -s conftest$ac_exeext' |
| 13491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13492 | (eval $ac_try) 2>&5 |
| 13493 | ac_status=$? |
| 13494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13495 | (exit $ac_status); }; }; then |
| 13496 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13497 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13498 | echo "$as_me: failed program was:" >&5 |
| 13499 | cat conftest.$ac_ext >&5 |
| 13500 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13501 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13502 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13503 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13504 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13505 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13506 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13507 | cat >>confdefs.h <<_ACEOF |
| 13508 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13509 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13510 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13511 | fi |
| 13512 | done |
| 13513 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13514 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13515 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13516 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 13517 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 13518 | if test "${ac_cv_header_time+set}" = set; then |
| 13519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13520 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13521 | cat >conftest.$ac_ext <<_ACEOF |
| 13522 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13523 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13524 | #include <sys/types.h> |
| 13525 | #include <sys/time.h> |
| 13526 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13527 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13528 | #ifdef F77_DUMMY_MAIN |
| 13529 | # ifdef __cplusplus |
| 13530 | extern "C" |
| 13531 | # endif |
| 13532 | int F77_DUMMY_MAIN() { return 1; } |
| 13533 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13534 | int |
| 13535 | main () |
| 13536 | { |
| 13537 | if ((struct tm *) 0) |
| 13538 | return 0; |
| 13539 | ; |
| 13540 | return 0; |
| 13541 | } |
| 13542 | _ACEOF |
| 13543 | rm -f conftest.$ac_objext |
| 13544 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13545 | (eval $ac_compile) 2>&5 |
| 13546 | ac_status=$? |
| 13547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13548 | (exit $ac_status); } && |
| 13549 | { ac_try='test -s conftest.$ac_objext' |
| 13550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13551 | (eval $ac_try) 2>&5 |
| 13552 | ac_status=$? |
| 13553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13554 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13555 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13556 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13557 | echo "$as_me: failed program was:" >&5 |
| 13558 | cat conftest.$ac_ext >&5 |
| 13559 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13560 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13561 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13562 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13563 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 13564 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13565 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13566 | |
| 13567 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13568 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13569 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13570 | |
| 13571 | fi |
| 13572 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13573 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 13574 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 13575 | if test "${ac_cv_struct_tm+set}" = set; then |
| 13576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13577 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13578 | cat >conftest.$ac_ext <<_ACEOF |
| 13579 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13580 | #include "confdefs.h" |
| 13581 | #include <sys/types.h> |
| 13582 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13583 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13584 | #ifdef F77_DUMMY_MAIN |
| 13585 | # ifdef __cplusplus |
| 13586 | extern "C" |
| 13587 | # endif |
| 13588 | int F77_DUMMY_MAIN() { return 1; } |
| 13589 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13590 | int |
| 13591 | main () |
| 13592 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13593 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13594 | ; |
| 13595 | return 0; |
| 13596 | } |
| 13597 | _ACEOF |
| 13598 | rm -f conftest.$ac_objext |
| 13599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13600 | (eval $ac_compile) 2>&5 |
| 13601 | ac_status=$? |
| 13602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13603 | (exit $ac_status); } && |
| 13604 | { ac_try='test -s conftest.$ac_objext' |
| 13605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13606 | (eval $ac_try) 2>&5 |
| 13607 | ac_status=$? |
| 13608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13609 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13610 | ac_cv_struct_tm=time.h |
| 13611 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13612 | echo "$as_me: failed program was:" >&5 |
| 13613 | cat conftest.$ac_ext >&5 |
| 13614 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13615 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13616 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13617 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13618 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 13619 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13620 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13621 | |
| 13622 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13623 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13624 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13625 | |
| 13626 | fi |
| 13627 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13628 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 13629 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 13630 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 13631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13632 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13633 | cat >conftest.$ac_ext <<_ACEOF |
| 13634 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13635 | #include "confdefs.h" |
| 13636 | #include <sys/types.h> |
| 13637 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13638 | |
| 13639 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13640 | #ifdef F77_DUMMY_MAIN |
| 13641 | # ifdef __cplusplus |
| 13642 | extern "C" |
| 13643 | # endif |
| 13644 | int F77_DUMMY_MAIN() { return 1; } |
| 13645 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13646 | int |
| 13647 | main () |
| 13648 | { |
| 13649 | static struct tm ac_aggr; |
| 13650 | if (ac_aggr.tm_zone) |
| 13651 | return 0; |
| 13652 | ; |
| 13653 | return 0; |
| 13654 | } |
| 13655 | _ACEOF |
| 13656 | rm -f conftest.$ac_objext |
| 13657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13658 | (eval $ac_compile) 2>&5 |
| 13659 | ac_status=$? |
| 13660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13661 | (exit $ac_status); } && |
| 13662 | { ac_try='test -s conftest.$ac_objext' |
| 13663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13664 | (eval $ac_try) 2>&5 |
| 13665 | ac_status=$? |
| 13666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13667 | (exit $ac_status); }; }; then |
| 13668 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13669 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13670 | echo "$as_me: failed program was:" >&5 |
| 13671 | cat conftest.$ac_ext >&5 |
| 13672 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13673 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13674 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13675 | fi |
| 13676 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 13677 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 13678 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 13679 | |
| 13680 | cat >>confdefs.h <<_ACEOF |
| 13681 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 13682 | _ACEOF |
| 13683 | |
| 13684 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13685 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13686 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13687 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 13688 | |
| 13689 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13690 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13691 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13692 | |
| 13693 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13694 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 13695 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 13696 | if test "${ac_cv_var_tzname+set}" = set; then |
| 13697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13698 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13699 | cat >conftest.$ac_ext <<_ACEOF |
| 13700 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13701 | #include "confdefs.h" |
| 13702 | #include <time.h> |
| 13703 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13704 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13705 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13706 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13707 | #ifdef F77_DUMMY_MAIN |
| 13708 | # ifdef __cplusplus |
| 13709 | extern "C" |
| 13710 | # endif |
| 13711 | int F77_DUMMY_MAIN() { return 1; } |
| 13712 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13713 | int |
| 13714 | main () |
| 13715 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13716 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13717 | ; |
| 13718 | return 0; |
| 13719 | } |
| 13720 | _ACEOF |
| 13721 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13723 | (eval $ac_link) 2>&5 |
| 13724 | ac_status=$? |
| 13725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13726 | (exit $ac_status); } && |
| 13727 | { ac_try='test -s conftest$ac_exeext' |
| 13728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13729 | (eval $ac_try) 2>&5 |
| 13730 | ac_status=$? |
| 13731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13732 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13733 | ac_cv_var_tzname=yes |
| 13734 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13735 | echo "$as_me: failed program was:" >&5 |
| 13736 | cat conftest.$ac_ext >&5 |
| 13737 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13738 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13739 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13740 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13741 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 13742 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13743 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13744 | |
| 13745 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13746 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13747 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13748 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13749 | fi |
| 13750 | fi |
| 13751 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13752 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 13753 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 13754 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 13755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13756 | else |
| 13757 | cat >conftest.$ac_ext <<_ACEOF |
| 13758 | #line $LINENO "configure" |
| 13759 | #include "confdefs.h" |
| 13760 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13761 | #ifdef F77_DUMMY_MAIN |
| 13762 | # ifdef __cplusplus |
| 13763 | extern "C" |
| 13764 | # endif |
| 13765 | int F77_DUMMY_MAIN() { return 1; } |
| 13766 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13767 | int |
| 13768 | main () |
| 13769 | { |
| 13770 | static struct stat ac_aggr; |
| 13771 | if (ac_aggr.st_rdev) |
| 13772 | return 0; |
| 13773 | ; |
| 13774 | return 0; |
| 13775 | } |
| 13776 | _ACEOF |
| 13777 | rm -f conftest.$ac_objext |
| 13778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13779 | (eval $ac_compile) 2>&5 |
| 13780 | ac_status=$? |
| 13781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13782 | (exit $ac_status); } && |
| 13783 | { ac_try='test -s conftest.$ac_objext' |
| 13784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13785 | (eval $ac_try) 2>&5 |
| 13786 | ac_status=$? |
| 13787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13788 | (exit $ac_status); }; }; then |
| 13789 | ac_cv_member_struct_stat_st_rdev=yes |
| 13790 | else |
| 13791 | echo "$as_me: failed program was:" >&5 |
| 13792 | cat conftest.$ac_ext >&5 |
| 13793 | ac_cv_member_struct_stat_st_rdev=no |
| 13794 | fi |
| 13795 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13796 | fi |
| 13797 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 13798 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 13799 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 13800 | |
| 13801 | cat >>confdefs.h <<_ACEOF |
| 13802 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 13803 | _ACEOF |
| 13804 | |
| 13805 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13806 | fi |
| 13807 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13808 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 13809 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 13810 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 13811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13812 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13813 | cat >conftest.$ac_ext <<_ACEOF |
| 13814 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13815 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13816 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13817 | #ifdef F77_DUMMY_MAIN |
| 13818 | # ifdef __cplusplus |
| 13819 | extern "C" |
| 13820 | # endif |
| 13821 | int F77_DUMMY_MAIN() { return 1; } |
| 13822 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13823 | int |
| 13824 | main () |
| 13825 | { |
| 13826 | static struct stat ac_aggr; |
| 13827 | if (ac_aggr.st_blksize) |
| 13828 | return 0; |
| 13829 | ; |
| 13830 | return 0; |
| 13831 | } |
| 13832 | _ACEOF |
| 13833 | rm -f conftest.$ac_objext |
| 13834 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13835 | (eval $ac_compile) 2>&5 |
| 13836 | ac_status=$? |
| 13837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13838 | (exit $ac_status); } && |
| 13839 | { ac_try='test -s conftest.$ac_objext' |
| 13840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13841 | (eval $ac_try) 2>&5 |
| 13842 | ac_status=$? |
| 13843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13844 | (exit $ac_status); }; }; then |
| 13845 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13846 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13847 | echo "$as_me: failed program was:" >&5 |
| 13848 | cat conftest.$ac_ext >&5 |
| 13849 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13850 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13851 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13852 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13853 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 13854 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 13855 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13856 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13857 | cat >>confdefs.h <<_ACEOF |
| 13858 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 13859 | _ACEOF |
| 13860 | |
| 13861 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13862 | fi |
| 13863 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13864 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 13865 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 13866 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 13867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13868 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13869 | cat >conftest.$ac_ext <<_ACEOF |
| 13870 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13871 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13872 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13873 | #ifdef F77_DUMMY_MAIN |
| 13874 | # ifdef __cplusplus |
| 13875 | extern "C" |
| 13876 | # endif |
| 13877 | int F77_DUMMY_MAIN() { return 1; } |
| 13878 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13879 | int |
| 13880 | main () |
| 13881 | { |
| 13882 | static struct stat ac_aggr; |
| 13883 | if (ac_aggr.st_blocks) |
| 13884 | return 0; |
| 13885 | ; |
| 13886 | return 0; |
| 13887 | } |
| 13888 | _ACEOF |
| 13889 | rm -f conftest.$ac_objext |
| 13890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13891 | (eval $ac_compile) 2>&5 |
| 13892 | ac_status=$? |
| 13893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13894 | (exit $ac_status); } && |
| 13895 | { ac_try='test -s conftest.$ac_objext' |
| 13896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13897 | (eval $ac_try) 2>&5 |
| 13898 | ac_status=$? |
| 13899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13900 | (exit $ac_status); }; }; then |
| 13901 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13902 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13903 | echo "$as_me: failed program was:" >&5 |
| 13904 | cat conftest.$ac_ext >&5 |
| 13905 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13906 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13907 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13908 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13909 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 13910 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 13911 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13912 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13913 | cat >>confdefs.h <<_ACEOF |
| 13914 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 13915 | _ACEOF |
| 13916 | |
| 13917 | |
| 13918 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13919 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13920 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13921 | |
| 13922 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13923 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13924 | fi |
| 13925 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13926 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13927 | |
| 13928 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 13929 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 13930 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 13931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13932 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13933 | cat >conftest.$ac_ext <<_ACEOF |
| 13934 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13935 | #include "confdefs.h" |
| 13936 | #include <time.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13937 | #ifdef F77_DUMMY_MAIN |
| 13938 | # ifdef __cplusplus |
| 13939 | extern "C" |
| 13940 | # endif |
| 13941 | int F77_DUMMY_MAIN() { return 1; } |
| 13942 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13943 | int |
| 13944 | main () |
| 13945 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13946 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13947 | ; |
| 13948 | return 0; |
| 13949 | } |
| 13950 | _ACEOF |
| 13951 | rm -f conftest.$ac_objext |
| 13952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13953 | (eval $ac_compile) 2>&5 |
| 13954 | ac_status=$? |
| 13955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13956 | (exit $ac_status); } && |
| 13957 | { ac_try='test -s conftest.$ac_objext' |
| 13958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13959 | (eval $ac_try) 2>&5 |
| 13960 | ac_status=$? |
| 13961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13962 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13963 | ac_cv_header_time_altzone=yes |
| 13964 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13965 | echo "$as_me: failed program was:" >&5 |
| 13966 | cat conftest.$ac_ext >&5 |
| 13967 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13968 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13969 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13970 | fi |
| 13971 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13972 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 13973 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13974 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13975 | |
| 13976 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13977 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13978 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13979 | |
| 13980 | fi |
| 13981 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13982 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13983 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 13984 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 13985 | cat >conftest.$ac_ext <<_ACEOF |
| 13986 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13987 | #include "confdefs.h" |
| 13988 | |
| 13989 | #include <sys/types.h> |
| 13990 | #include <sys/select.h> |
| 13991 | #include <sys/time.h> |
| 13992 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13993 | #ifdef F77_DUMMY_MAIN |
| 13994 | # ifdef __cplusplus |
| 13995 | extern "C" |
| 13996 | # endif |
| 13997 | int F77_DUMMY_MAIN() { return 1; } |
| 13998 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13999 | int |
| 14000 | main () |
| 14001 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14002 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14003 | ; |
| 14004 | return 0; |
| 14005 | } |
| 14006 | _ACEOF |
| 14007 | rm -f conftest.$ac_objext |
| 14008 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14009 | (eval $ac_compile) 2>&5 |
| 14010 | ac_status=$? |
| 14011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14012 | (exit $ac_status); } && |
| 14013 | { ac_try='test -s conftest.$ac_objext' |
| 14014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14015 | (eval $ac_try) 2>&5 |
| 14016 | ac_status=$? |
| 14017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14018 | (exit $ac_status); }; }; then |
| 14019 | |
| 14020 | |
| 14021 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14022 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14023 | _ACEOF |
| 14024 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14025 | was_it_defined=yes |
| 14026 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14027 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14028 | echo "$as_me: failed program was:" >&5 |
| 14029 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14030 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14031 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14032 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 14033 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14034 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14035 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 14036 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 14037 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 14038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14039 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14040 | cat >conftest.$ac_ext <<_ACEOF |
| 14041 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14042 | #include "confdefs.h" |
| 14043 | |
| 14044 | # include <netdb.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14045 | #ifdef F77_DUMMY_MAIN |
| 14046 | # ifdef __cplusplus |
| 14047 | extern "C" |
| 14048 | # endif |
| 14049 | int F77_DUMMY_MAIN() { return 1; } |
| 14050 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14051 | int |
| 14052 | main () |
| 14053 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14054 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14055 | ; |
| 14056 | return 0; |
| 14057 | } |
| 14058 | _ACEOF |
| 14059 | rm -f conftest.$ac_objext |
| 14060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14061 | (eval $ac_compile) 2>&5 |
| 14062 | ac_status=$? |
| 14063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14064 | (exit $ac_status); } && |
| 14065 | { ac_try='test -s conftest.$ac_objext' |
| 14066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14067 | (eval $ac_try) 2>&5 |
| 14068 | ac_status=$? |
| 14069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14070 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14071 | ac_cv_struct_addrinfo=yes |
| 14072 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14073 | echo "$as_me: failed program was:" >&5 |
| 14074 | cat conftest.$ac_ext >&5 |
| 14075 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14076 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14077 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14078 | fi |
| 14079 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14080 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 14081 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14082 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14083 | |
| 14084 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14085 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14086 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14087 | |
| 14088 | fi |
| 14089 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14090 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 14091 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 14092 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 14093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14094 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14095 | cat >conftest.$ac_ext <<_ACEOF |
| 14096 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14097 | #include "confdefs.h" |
| 14098 | |
| 14099 | # include <sys/types.h> |
| 14100 | # include <sys/socket.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14101 | #ifdef F77_DUMMY_MAIN |
| 14102 | # ifdef __cplusplus |
| 14103 | extern "C" |
| 14104 | # endif |
| 14105 | int F77_DUMMY_MAIN() { return 1; } |
| 14106 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14107 | int |
| 14108 | main () |
| 14109 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14110 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14111 | ; |
| 14112 | return 0; |
| 14113 | } |
| 14114 | _ACEOF |
| 14115 | rm -f conftest.$ac_objext |
| 14116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14117 | (eval $ac_compile) 2>&5 |
| 14118 | ac_status=$? |
| 14119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14120 | (exit $ac_status); } && |
| 14121 | { ac_try='test -s conftest.$ac_objext' |
| 14122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14123 | (eval $ac_try) 2>&5 |
| 14124 | ac_status=$? |
| 14125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14126 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14127 | ac_cv_struct_sockaddr_storage=yes |
| 14128 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14129 | echo "$as_me: failed program was:" >&5 |
| 14130 | cat conftest.$ac_ext >&5 |
| 14131 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14132 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14133 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14134 | fi |
| 14135 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14136 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 14137 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14138 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14139 | |
| 14140 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14141 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14142 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14143 | |
| 14144 | fi |
| 14145 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14146 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14147 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14148 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14149 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 14150 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 14151 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 14152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14153 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14154 | cat >conftest.$ac_ext <<_ACEOF |
| 14155 | #line $LINENO "configure" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14156 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14157 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14158 | #ifdef F77_DUMMY_MAIN |
| 14159 | # ifdef __cplusplus |
| 14160 | extern "C" |
| 14161 | # endif |
| 14162 | int F77_DUMMY_MAIN() { return 1; } |
| 14163 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14164 | int |
| 14165 | main () |
| 14166 | { |
| 14167 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 14168 | test_array [0] = 0 |
| 14169 | |
| 14170 | ; |
| 14171 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14172 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14173 | _ACEOF |
| 14174 | rm -f conftest.$ac_objext |
| 14175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14176 | (eval $ac_compile) 2>&5 |
| 14177 | ac_status=$? |
| 14178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14179 | (exit $ac_status); } && |
| 14180 | { ac_try='test -s conftest.$ac_objext' |
| 14181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14182 | (eval $ac_try) 2>&5 |
| 14183 | ac_status=$? |
| 14184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14185 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14186 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14187 | else |
| 14188 | echo "$as_me: failed program was:" >&5 |
| 14189 | cat conftest.$ac_ext >&5 |
| 14190 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14191 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14192 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14193 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14194 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 14195 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14196 | 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] | 14197 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14198 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14199 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14200 | |
| 14201 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14202 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14203 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 14204 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 14205 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 14206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14207 | else |
| 14208 | ac_cv_prog_cc_stdc=no |
| 14209 | ac_save_CC=$CC |
| 14210 | cat >conftest.$ac_ext <<_ACEOF |
| 14211 | #line $LINENO "configure" |
| 14212 | #include "confdefs.h" |
| 14213 | #include <stdarg.h> |
| 14214 | #include <stdio.h> |
| 14215 | #include <sys/types.h> |
| 14216 | #include <sys/stat.h> |
| 14217 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 14218 | struct buf { int x; }; |
| 14219 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 14220 | static char *e (p, i) |
| 14221 | char **p; |
| 14222 | int i; |
| 14223 | { |
| 14224 | return p[i]; |
| 14225 | } |
| 14226 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 14227 | { |
| 14228 | char *s; |
| 14229 | va_list v; |
| 14230 | va_start (v,p); |
| 14231 | s = g (p, va_arg (v,int)); |
| 14232 | va_end (v); |
| 14233 | return s; |
| 14234 | } |
| 14235 | int test (int i, double x); |
| 14236 | struct s1 {int (*f) (int a);}; |
| 14237 | struct s2 {int (*f) (double a);}; |
| 14238 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 14239 | int argc; |
| 14240 | char **argv; |
| 14241 | #ifdef F77_DUMMY_MAIN |
| 14242 | # ifdef __cplusplus |
| 14243 | extern "C" |
| 14244 | # endif |
| 14245 | int F77_DUMMY_MAIN() { return 1; } |
| 14246 | #endif |
| 14247 | int |
| 14248 | main () |
| 14249 | { |
| 14250 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 14251 | ; |
| 14252 | return 0; |
| 14253 | } |
| 14254 | _ACEOF |
| 14255 | # Don't try gcc -ansi; that turns off useful extensions and |
| 14256 | # breaks some systems' header files. |
| 14257 | # AIX -qlanglvl=ansi |
| 14258 | # Ultrix and OSF/1 -std1 |
| 14259 | # HP-UX 10.20 and later -Ae |
| 14260 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 14261 | # SVR4 -Xc -D__EXTENSIONS__ |
| 14262 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 14263 | do |
| 14264 | CC="$ac_save_CC $ac_arg" |
| 14265 | rm -f conftest.$ac_objext |
| 14266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14267 | (eval $ac_compile) 2>&5 |
| 14268 | ac_status=$? |
| 14269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14270 | (exit $ac_status); } && |
| 14271 | { ac_try='test -s conftest.$ac_objext' |
| 14272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14273 | (eval $ac_try) 2>&5 |
| 14274 | ac_status=$? |
| 14275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14276 | (exit $ac_status); }; }; then |
| 14277 | ac_cv_prog_cc_stdc=$ac_arg |
| 14278 | break |
| 14279 | else |
| 14280 | echo "$as_me: failed program was:" >&5 |
| 14281 | cat conftest.$ac_ext >&5 |
| 14282 | fi |
| 14283 | rm -f conftest.$ac_objext |
| 14284 | done |
| 14285 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 14286 | CC=$ac_save_CC |
| 14287 | |
| 14288 | fi |
| 14289 | |
| 14290 | case "x$ac_cv_prog_cc_stdc" in |
| 14291 | x|xno) |
| 14292 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 14293 | echo "${ECHO_T}none needed" >&6 ;; |
| 14294 | *) |
| 14295 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 14296 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 14297 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 14298 | esac |
| 14299 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14300 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 14301 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 14302 | if test "${ac_cv_c_const+set}" = set; then |
| 14303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14304 | else |
| 14305 | cat >conftest.$ac_ext <<_ACEOF |
| 14306 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14307 | #include "confdefs.h" |
| 14308 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14309 | #ifdef F77_DUMMY_MAIN |
| 14310 | # ifdef __cplusplus |
| 14311 | extern "C" |
| 14312 | # endif |
| 14313 | int F77_DUMMY_MAIN() { return 1; } |
| 14314 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14315 | int |
| 14316 | main () |
| 14317 | { |
| 14318 | /* FIXME: Include the comments suggested by Paul. */ |
| 14319 | #ifndef __cplusplus |
| 14320 | /* Ultrix mips cc rejects this. */ |
| 14321 | typedef int charset[2]; |
| 14322 | const charset x; |
| 14323 | /* SunOS 4.1.1 cc rejects this. */ |
| 14324 | char const *const *ccp; |
| 14325 | char **p; |
| 14326 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 14327 | struct point {int x, y;}; |
| 14328 | static struct point const zero = {0,0}; |
| 14329 | /* AIX XL C 1.02.0.0 rejects this. |
| 14330 | It does not let you subtract one const X* pointer from another in |
| 14331 | an arm of an if-expression whose if-part is not a constant |
| 14332 | expression */ |
| 14333 | const char *g = "string"; |
| 14334 | ccp = &g + (g ? g-g : 0); |
| 14335 | /* HPUX 7.0 cc rejects these. */ |
| 14336 | ++ccp; |
| 14337 | p = (char**) ccp; |
| 14338 | ccp = (char const *const *) p; |
| 14339 | { /* SCO 3.2v4 cc rejects this. */ |
| 14340 | char *t; |
| 14341 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14342 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14343 | *t++ = 0; |
| 14344 | } |
| 14345 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 14346 | int x[] = {25, 17}; |
| 14347 | const int *foo = &x[0]; |
| 14348 | ++foo; |
| 14349 | } |
| 14350 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 14351 | typedef const int *iptr; |
| 14352 | iptr p = 0; |
| 14353 | ++p; |
| 14354 | } |
| 14355 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 14356 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 14357 | struct s { int j; const int *ap[3]; }; |
| 14358 | struct s *b; b->j = 5; |
| 14359 | } |
| 14360 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 14361 | const int foo = 10; |
| 14362 | } |
| 14363 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14364 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14365 | ; |
| 14366 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14367 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14368 | _ACEOF |
| 14369 | rm -f conftest.$ac_objext |
| 14370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14371 | (eval $ac_compile) 2>&5 |
| 14372 | ac_status=$? |
| 14373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14374 | (exit $ac_status); } && |
| 14375 | { ac_try='test -s conftest.$ac_objext' |
| 14376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14377 | (eval $ac_try) 2>&5 |
| 14378 | ac_status=$? |
| 14379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14380 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14381 | ac_cv_c_const=yes |
| 14382 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14383 | echo "$as_me: failed program was:" >&5 |
| 14384 | cat conftest.$ac_ext >&5 |
| 14385 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14386 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14387 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14388 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14389 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 14390 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14391 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14392 | |
| 14393 | cat >>confdefs.h <<\_ACEOF |
| 14394 | #define const |
| 14395 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14396 | |
| 14397 | fi |
| 14398 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14399 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14400 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14401 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 14402 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 14403 | cat >conftest.$ac_ext <<_ACEOF |
| 14404 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14405 | #include "confdefs.h" |
| 14406 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14407 | #ifdef F77_DUMMY_MAIN |
| 14408 | # ifdef __cplusplus |
| 14409 | extern "C" |
| 14410 | # endif |
| 14411 | int F77_DUMMY_MAIN() { return 1; } |
| 14412 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14413 | int |
| 14414 | main () |
| 14415 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14416 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14417 | ; |
| 14418 | return 0; |
| 14419 | } |
| 14420 | _ACEOF |
| 14421 | rm -f conftest.$ac_objext |
| 14422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14423 | (eval $ac_compile) 2>&5 |
| 14424 | ac_status=$? |
| 14425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14426 | (exit $ac_status); } && |
| 14427 | { ac_try='test -s conftest.$ac_objext' |
| 14428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14429 | (eval $ac_try) 2>&5 |
| 14430 | ac_status=$? |
| 14431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14432 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14433 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14434 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14435 | echo "$as_me: failed program was:" >&5 |
| 14436 | cat conftest.$ac_ext >&5 |
| 14437 | |
| 14438 | cat >>confdefs.h <<\_ACEOF |
| 14439 | #define volatile |
| 14440 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14441 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14442 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14443 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14444 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14445 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14446 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14447 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14448 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14449 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 14450 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 14451 | cat >conftest.$ac_ext <<_ACEOF |
| 14452 | #line $LINENO "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 14453 | #include "confdefs.h" |
| 14454 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14455 | #ifdef F77_DUMMY_MAIN |
| 14456 | # ifdef __cplusplus |
| 14457 | extern "C" |
| 14458 | # endif |
| 14459 | int F77_DUMMY_MAIN() { return 1; } |
| 14460 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14461 | int |
| 14462 | main () |
| 14463 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14464 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14465 | ; |
| 14466 | return 0; |
| 14467 | } |
| 14468 | _ACEOF |
| 14469 | rm -f conftest.$ac_objext |
| 14470 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14471 | (eval $ac_compile) 2>&5 |
| 14472 | ac_status=$? |
| 14473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14474 | (exit $ac_status); } && |
| 14475 | { ac_try='test -s conftest.$ac_objext' |
| 14476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14477 | (eval $ac_try) 2>&5 |
| 14478 | ac_status=$? |
| 14479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14480 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14481 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 14482 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14483 | echo "$as_me: failed program was:" >&5 |
| 14484 | cat conftest.$ac_ext >&5 |
| 14485 | |
| 14486 | cat >>confdefs.h <<\_ACEOF |
| 14487 | #define signed |
| 14488 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14489 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14490 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14491 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14492 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14493 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14494 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14495 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14496 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14497 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 14498 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 14499 | cat >conftest.$ac_ext <<_ACEOF |
| 14500 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14501 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14502 | int foo(int x) { return 0; } |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14503 | #ifdef F77_DUMMY_MAIN |
| 14504 | # ifdef __cplusplus |
| 14505 | extern "C" |
| 14506 | # endif |
| 14507 | int F77_DUMMY_MAIN() { return 1; } |
| 14508 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14509 | int |
| 14510 | main () |
| 14511 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14512 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14513 | ; |
| 14514 | return 0; |
| 14515 | } |
| 14516 | _ACEOF |
| 14517 | rm -f conftest.$ac_objext |
| 14518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14519 | (eval $ac_compile) 2>&5 |
| 14520 | ac_status=$? |
| 14521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14522 | (exit $ac_status); } && |
| 14523 | { ac_try='test -s conftest.$ac_objext' |
| 14524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14525 | (eval $ac_try) 2>&5 |
| 14526 | ac_status=$? |
| 14527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14528 | (exit $ac_status); }; }; then |
| 14529 | |
| 14530 | |
| 14531 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14532 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14533 | _ACEOF |
| 14534 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14535 | have_prototypes=yes |
| 14536 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14537 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14538 | echo "$as_me: failed program was:" >&5 |
| 14539 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14540 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14541 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14542 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 14543 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14544 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14545 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14546 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 14547 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 14548 | cat >conftest.$ac_ext <<_ACEOF |
| 14549 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14550 | #include "confdefs.h" |
| 14551 | |
| 14552 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 14553 | int foo(int x, ...) { |
| 14554 | va_list va; |
| 14555 | va_start(va, x); |
| 14556 | va_arg(va, int); |
| 14557 | va_arg(va, char *); |
| 14558 | va_arg(va, double); |
| 14559 | return 0; |
| 14560 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14561 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14562 | #ifdef F77_DUMMY_MAIN |
| 14563 | # ifdef __cplusplus |
| 14564 | extern "C" |
| 14565 | # endif |
| 14566 | int F77_DUMMY_MAIN() { return 1; } |
| 14567 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14568 | int |
| 14569 | main () |
| 14570 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 14571 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14572 | ; |
| 14573 | return 0; |
| 14574 | } |
| 14575 | _ACEOF |
| 14576 | rm -f conftest.$ac_objext |
| 14577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14578 | (eval $ac_compile) 2>&5 |
| 14579 | ac_status=$? |
| 14580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14581 | (exit $ac_status); } && |
| 14582 | { ac_try='test -s conftest.$ac_objext' |
| 14583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14584 | (eval $ac_try) 2>&5 |
| 14585 | ac_status=$? |
| 14586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14587 | (exit $ac_status); }; }; then |
| 14588 | |
| 14589 | |
| 14590 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14591 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14592 | _ACEOF |
| 14593 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14594 | works=yes |
| 14595 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14596 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14597 | echo "$as_me: failed program was:" >&5 |
| 14598 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14599 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14600 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14601 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14602 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14603 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14604 | if test "$have_prototypes" = yes; then |
| 14605 | bad_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14606 | echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5 |
| 14607 | echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6 |
| 14608 | cat >conftest.$ac_ext <<_ACEOF |
| 14609 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14610 | #include "confdefs.h" |
| 14611 | #include <unistd.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14612 | #ifdef F77_DUMMY_MAIN |
| 14613 | # ifdef __cplusplus |
| 14614 | extern "C" |
| 14615 | # endif |
| 14616 | int F77_DUMMY_MAIN() { return 1; } |
| 14617 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14618 | int |
| 14619 | main () |
| 14620 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14621 | char **t;execve("@",t,t); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14622 | ; |
| 14623 | return 0; |
| 14624 | } |
| 14625 | _ACEOF |
| 14626 | rm -f conftest.$ac_objext |
| 14627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14628 | (eval $ac_compile) 2>&5 |
| 14629 | ac_status=$? |
| 14630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14631 | (exit $ac_status); } && |
| 14632 | { ac_try='test -s conftest.$ac_objext' |
| 14633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14634 | (eval $ac_try) 2>&5 |
| 14635 | ac_status=$? |
| 14636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14637 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14638 | : |
| 14639 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14640 | echo "$as_me: failed program was:" >&5 |
| 14641 | cat conftest.$ac_ext >&5 |
| 14642 | |
| 14643 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14644 | #define BAD_EXEC_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14645 | _ACEOF |
| 14646 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14647 | bad_prototypes=yes |
| 14648 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14649 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14650 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14651 | echo "$as_me:$LINENO: result: $bad_prototypes" >&5 |
| 14652 | echo "${ECHO_T}$bad_prototypes" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14653 | fi |
| 14654 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14655 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14656 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 14657 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 14658 | cat >conftest.$ac_ext <<_ACEOF |
| 14659 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14660 | #include "confdefs.h" |
| 14661 | #include <sys/types.h> |
| 14662 | #include <sys/socket.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14663 | #ifdef F77_DUMMY_MAIN |
| 14664 | # ifdef __cplusplus |
| 14665 | extern "C" |
| 14666 | # endif |
| 14667 | int F77_DUMMY_MAIN() { return 1; } |
| 14668 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14669 | int |
| 14670 | main () |
| 14671 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14672 | struct sockaddr x; |
| 14673 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14674 | ; |
| 14675 | return 0; |
| 14676 | } |
| 14677 | _ACEOF |
| 14678 | rm -f conftest.$ac_objext |
| 14679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14680 | (eval $ac_compile) 2>&5 |
| 14681 | ac_status=$? |
| 14682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14683 | (exit $ac_status); } && |
| 14684 | { ac_try='test -s conftest.$ac_objext' |
| 14685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14686 | (eval $ac_try) 2>&5 |
| 14687 | ac_status=$? |
| 14688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14689 | (exit $ac_status); }; }; then |
| 14690 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14691 | echo "${ECHO_T}yes" >&6 |
| 14692 | |
| 14693 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14694 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14695 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14696 | |
| 14697 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14698 | echo "$as_me: failed program was:" >&5 |
| 14699 | cat conftest.$ac_ext >&5 |
| 14700 | echo "$as_me:$LINENO: result: no" >&5 |
| 14701 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14702 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14703 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14704 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14705 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14706 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 14707 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 14708 | cat >conftest.$ac_ext <<_ACEOF |
| 14709 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14710 | #include "confdefs.h" |
| 14711 | |
| 14712 | #ifdef HAVE_STDARG_PROTOTYPES |
| 14713 | #include <stdarg.h> |
| 14714 | #else |
| 14715 | #include <varargs.h> |
| 14716 | #endif |
| 14717 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14718 | #ifdef F77_DUMMY_MAIN |
| 14719 | # ifdef __cplusplus |
| 14720 | extern "C" |
| 14721 | # endif |
| 14722 | int F77_DUMMY_MAIN() { return 1; } |
| 14723 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14724 | int |
| 14725 | main () |
| 14726 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14727 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14728 | ; |
| 14729 | return 0; |
| 14730 | } |
| 14731 | _ACEOF |
| 14732 | rm -f conftest.$ac_objext |
| 14733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14734 | (eval $ac_compile) 2>&5 |
| 14735 | ac_status=$? |
| 14736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14737 | (exit $ac_status); } && |
| 14738 | { ac_try='test -s conftest.$ac_objext' |
| 14739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14740 | (eval $ac_try) 2>&5 |
| 14741 | ac_status=$? |
| 14742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14743 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14744 | : |
| 14745 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14746 | echo "$as_me: failed program was:" >&5 |
| 14747 | cat conftest.$ac_ext >&5 |
| 14748 | |
| 14749 | |
| 14750 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14751 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14752 | _ACEOF |
| 14753 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14754 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14755 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14756 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14757 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14758 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 14759 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14760 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14761 | # 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] | 14762 | |
| 14763 | |
| 14764 | |
| 14765 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 14766 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 14767 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 14768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14769 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14770 | cat >conftest.$ac_ext <<_ACEOF |
| 14771 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14772 | #include "confdefs.h" |
| 14773 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14774 | which can conflict with char gethostbyname_r (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14775 | #include <assert.h> |
| 14776 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14777 | #ifdef __cplusplus |
| 14778 | extern "C" |
| 14779 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14780 | /* 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] | 14781 | builtin and then its argument prototype would still apply. */ |
| 14782 | char gethostbyname_r (); |
| 14783 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14784 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14785 | #ifdef F77_DUMMY_MAIN |
| 14786 | # ifdef __cplusplus |
| 14787 | extern "C" |
| 14788 | # endif |
| 14789 | int F77_DUMMY_MAIN() { return 1; } |
| 14790 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14791 | int |
| 14792 | main () |
| 14793 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14794 | /* The GNU C library defines this for functions which it implements |
| 14795 | to always fail with ENOSYS. Some functions are actually named |
| 14796 | something starting with __ and the normal name is an alias. */ |
| 14797 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 14798 | choke me |
| 14799 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14800 | f = gethostbyname_r; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14801 | #endif |
| 14802 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14803 | ; |
| 14804 | return 0; |
| 14805 | } |
| 14806 | _ACEOF |
| 14807 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14808 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14809 | (eval $ac_link) 2>&5 |
| 14810 | ac_status=$? |
| 14811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14812 | (exit $ac_status); } && |
| 14813 | { ac_try='test -s conftest$ac_exeext' |
| 14814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14815 | (eval $ac_try) 2>&5 |
| 14816 | ac_status=$? |
| 14817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14818 | (exit $ac_status); }; }; then |
| 14819 | ac_cv_func_gethostbyname_r=yes |
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 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14824 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14825 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14826 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14827 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 14828 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 14829 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14830 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14831 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14832 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14833 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14834 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14835 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 14836 | 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] | 14837 | OLD_CFLAGS=$CFLAGS |
| 14838 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14839 | cat >conftest.$ac_ext <<_ACEOF |
| 14840 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14841 | #include "confdefs.h" |
| 14842 | |
| 14843 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14844 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14845 | #ifdef F77_DUMMY_MAIN |
| 14846 | # ifdef __cplusplus |
| 14847 | extern "C" |
| 14848 | # endif |
| 14849 | int F77_DUMMY_MAIN() { return 1; } |
| 14850 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14851 | int |
| 14852 | main () |
| 14853 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14854 | |
| 14855 | char *name; |
| 14856 | struct hostent *he, *res; |
| 14857 | char buffer[2048]; |
| 14858 | int buflen = 2048; |
| 14859 | int h_errnop; |
| 14860 | |
| 14861 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14862 | |
| 14863 | ; |
| 14864 | return 0; |
| 14865 | } |
| 14866 | _ACEOF |
| 14867 | rm -f conftest.$ac_objext |
| 14868 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14869 | (eval $ac_compile) 2>&5 |
| 14870 | ac_status=$? |
| 14871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14872 | (exit $ac_status); } && |
| 14873 | { ac_try='test -s conftest.$ac_objext' |
| 14874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14875 | (eval $ac_try) 2>&5 |
| 14876 | ac_status=$? |
| 14877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14878 | (exit $ac_status); }; }; then |
| 14879 | |
| 14880 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14881 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14882 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14883 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14884 | |
| 14885 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14886 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14887 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14888 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14889 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14890 | echo "${ECHO_T}yes" >&6 |
| 14891 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14892 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14893 | echo "$as_me: failed program was:" >&5 |
| 14894 | cat conftest.$ac_ext >&5 |
| 14895 | |
| 14896 | echo "$as_me:$LINENO: result: no" >&5 |
| 14897 | echo "${ECHO_T}no" >&6 |
| 14898 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 14899 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 14900 | cat >conftest.$ac_ext <<_ACEOF |
| 14901 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14902 | #include "confdefs.h" |
| 14903 | |
| 14904 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14905 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14906 | #ifdef F77_DUMMY_MAIN |
| 14907 | # ifdef __cplusplus |
| 14908 | extern "C" |
| 14909 | # endif |
| 14910 | int F77_DUMMY_MAIN() { return 1; } |
| 14911 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14912 | int |
| 14913 | main () |
| 14914 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14915 | |
| 14916 | char *name; |
| 14917 | struct hostent *he; |
| 14918 | char buffer[2048]; |
| 14919 | int buflen = 2048; |
| 14920 | int h_errnop; |
| 14921 | |
| 14922 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14923 | |
| 14924 | ; |
| 14925 | return 0; |
| 14926 | } |
| 14927 | _ACEOF |
| 14928 | rm -f conftest.$ac_objext |
| 14929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14930 | (eval $ac_compile) 2>&5 |
| 14931 | ac_status=$? |
| 14932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14933 | (exit $ac_status); } && |
| 14934 | { ac_try='test -s conftest.$ac_objext' |
| 14935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14936 | (eval $ac_try) 2>&5 |
| 14937 | ac_status=$? |
| 14938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14939 | (exit $ac_status); }; }; then |
| 14940 | |
| 14941 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14942 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14943 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14944 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14945 | |
| 14946 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14947 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14948 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14949 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14950 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14951 | echo "${ECHO_T}yes" >&6 |
| 14952 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14953 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14954 | echo "$as_me: failed program was:" >&5 |
| 14955 | cat conftest.$ac_ext >&5 |
| 14956 | |
| 14957 | echo "$as_me:$LINENO: result: no" >&5 |
| 14958 | echo "${ECHO_T}no" >&6 |
| 14959 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 14960 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 14961 | cat >conftest.$ac_ext <<_ACEOF |
| 14962 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14963 | #include "confdefs.h" |
| 14964 | |
| 14965 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14966 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14967 | #ifdef F77_DUMMY_MAIN |
| 14968 | # ifdef __cplusplus |
| 14969 | extern "C" |
| 14970 | # endif |
| 14971 | int F77_DUMMY_MAIN() { return 1; } |
| 14972 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14973 | int |
| 14974 | main () |
| 14975 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14976 | |
| 14977 | char *name; |
| 14978 | struct hostent *he; |
| 14979 | struct hostent_data data; |
| 14980 | |
| 14981 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14982 | |
| 14983 | ; |
| 14984 | return 0; |
| 14985 | } |
| 14986 | _ACEOF |
| 14987 | rm -f conftest.$ac_objext |
| 14988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14989 | (eval $ac_compile) 2>&5 |
| 14990 | ac_status=$? |
| 14991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14992 | (exit $ac_status); } && |
| 14993 | { ac_try='test -s conftest.$ac_objext' |
| 14994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14995 | (eval $ac_try) 2>&5 |
| 14996 | ac_status=$? |
| 14997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14998 | (exit $ac_status); }; }; then |
| 14999 | |
| 15000 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15001 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15002 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15003 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15004 | |
| 15005 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15006 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15007 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15008 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15009 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15010 | echo "${ECHO_T}yes" >&6 |
| 15011 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15012 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15013 | echo "$as_me: failed program was:" >&5 |
| 15014 | cat conftest.$ac_ext >&5 |
| 15015 | |
| 15016 | echo "$as_me:$LINENO: result: no" >&5 |
| 15017 | echo "${ECHO_T}no" >&6 |
| 15018 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15019 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15020 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15021 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +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_ext |
| 15024 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15025 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15026 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15027 | CFLAGS=$OLD_CFLAGS |
| 15028 | |
| 15029 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15030 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15031 | |
| 15032 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15033 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15034 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15035 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15036 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15037 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15039 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15040 | cat >conftest.$ac_ext <<_ACEOF |
| 15041 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15042 | #include "confdefs.h" |
| 15043 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15044 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15045 | #include <assert.h> |
| 15046 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15047 | #ifdef __cplusplus |
| 15048 | extern "C" |
| 15049 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15050 | /* 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] | 15051 | builtin and then its argument prototype would still apply. */ |
| 15052 | char $ac_func (); |
| 15053 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15054 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15055 | #ifdef F77_DUMMY_MAIN |
| 15056 | # ifdef __cplusplus |
| 15057 | extern "C" |
| 15058 | # endif |
| 15059 | int F77_DUMMY_MAIN() { return 1; } |
| 15060 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15061 | int |
| 15062 | main () |
| 15063 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15064 | /* The GNU C library defines this for functions which it implements |
| 15065 | to always fail with ENOSYS. Some functions are actually named |
| 15066 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15067 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15068 | choke me |
| 15069 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15070 | f = $ac_func; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15071 | #endif |
| 15072 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15073 | ; |
| 15074 | return 0; |
| 15075 | } |
| 15076 | _ACEOF |
| 15077 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15078 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15079 | (eval $ac_link) 2>&5 |
| 15080 | ac_status=$? |
| 15081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15082 | (exit $ac_status); } && |
| 15083 | { ac_try='test -s conftest$ac_exeext' |
| 15084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15085 | (eval $ac_try) 2>&5 |
| 15086 | ac_status=$? |
| 15087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15088 | (exit $ac_status); }; }; then |
| 15089 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15090 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15091 | echo "$as_me: failed program was:" >&5 |
| 15092 | cat conftest.$ac_ext >&5 |
| 15093 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15094 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15095 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15096 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15097 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15098 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15099 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15100 | cat >>confdefs.h <<_ACEOF |
| 15101 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15102 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15103 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15104 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15105 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15106 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15107 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15108 | fi |
| 15109 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15110 | |
| 15111 | |
| 15112 | |
| 15113 | |
| 15114 | |
| 15115 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15116 | # checks for system services |
| 15117 | # (none yet) |
| 15118 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15119 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15120 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 15121 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 15122 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 15123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15124 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15125 | cat >conftest.$ac_ext <<_ACEOF |
| 15126 | #line $LINENO "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15127 | #include "confdefs.h" |
| 15128 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15129 | which can conflict with char __fpu_control (); below. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15130 | #include <assert.h> |
| 15131 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15132 | #ifdef __cplusplus |
| 15133 | extern "C" |
| 15134 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15135 | /* 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] | 15136 | builtin and then its argument prototype would still apply. */ |
| 15137 | char __fpu_control (); |
| 15138 | char (*f) (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15139 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15140 | #ifdef F77_DUMMY_MAIN |
| 15141 | # ifdef __cplusplus |
| 15142 | extern "C" |
| 15143 | # endif |
| 15144 | int F77_DUMMY_MAIN() { return 1; } |
| 15145 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15146 | int |
| 15147 | main () |
| 15148 | { |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15149 | /* The GNU C library defines this for functions which it implements |
| 15150 | to always fail with ENOSYS. Some functions are actually named |
| 15151 | something starting with __ and the normal name is an alias. */ |
| 15152 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 15153 | choke me |
| 15154 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15155 | f = __fpu_control; |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15156 | #endif |
| 15157 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15158 | ; |
| 15159 | return 0; |
| 15160 | } |
| 15161 | _ACEOF |
| 15162 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15163 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15164 | (eval $ac_link) 2>&5 |
| 15165 | ac_status=$? |
| 15166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15167 | (exit $ac_status); } && |
| 15168 | { ac_try='test -s conftest$ac_exeext' |
| 15169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15170 | (eval $ac_try) 2>&5 |
| 15171 | ac_status=$? |
| 15172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15173 | (exit $ac_status); }; }; then |
| 15174 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15175 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15176 | echo "$as_me: failed program was:" >&5 |
| 15177 | cat conftest.$ac_ext >&5 |
| 15178 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15179 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15180 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15181 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15182 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 15183 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 15184 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15185 | : |
| 15186 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15187 | |
| 15188 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 15189 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 15190 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 15191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15192 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15193 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15194 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15195 | cat >conftest.$ac_ext <<_ACEOF |
| 15196 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15197 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15198 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15199 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15200 | #ifdef __cplusplus |
| 15201 | extern "C" |
| 15202 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15203 | /* 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] | 15204 | builtin and then its argument prototype would still apply. */ |
| 15205 | char __fpu_control (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15206 | #ifdef F77_DUMMY_MAIN |
| 15207 | # ifdef __cplusplus |
| 15208 | extern "C" |
| 15209 | # endif |
| 15210 | int F77_DUMMY_MAIN() { return 1; } |
| 15211 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15212 | int |
| 15213 | main () |
| 15214 | { |
| 15215 | __fpu_control (); |
| 15216 | ; |
| 15217 | return 0; |
| 15218 | } |
| 15219 | _ACEOF |
| 15220 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15221 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15222 | (eval $ac_link) 2>&5 |
| 15223 | ac_status=$? |
| 15224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15225 | (exit $ac_status); } && |
| 15226 | { ac_try='test -s conftest$ac_exeext' |
| 15227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15228 | (eval $ac_try) 2>&5 |
| 15229 | ac_status=$? |
| 15230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15231 | (exit $ac_status); }; }; then |
| 15232 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15233 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15234 | echo "$as_me: failed program was:" >&5 |
| 15235 | cat conftest.$ac_ext >&5 |
| 15236 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15237 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15238 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15239 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15240 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15241 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 15242 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 15243 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 15244 | cat >>confdefs.h <<_ACEOF |
| 15245 | #define HAVE_LIBIEEE 1 |
| 15246 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15247 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15248 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15249 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15250 | fi |
| 15251 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15252 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15253 | fi |
| 15254 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15255 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15256 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15257 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 15258 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 15259 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15260 | # Check whether --with-fpectl or --without-fpectl was given. |
| 15261 | if test "${with_fpectl+set}" = set; then |
| 15262 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15263 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15264 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15265 | then |
| 15266 | |
| 15267 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15268 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15269 | _ACEOF |
| 15270 | |
| 15271 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15272 | echo "${ECHO_T}yes" >&6 |
| 15273 | else echo "$as_me:$LINENO: result: no" >&5 |
| 15274 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15275 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15276 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15277 | echo "$as_me:$LINENO: result: no" >&5 |
| 15278 | echo "${ECHO_T}no" >&6 |
| 15279 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15280 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15281 | # check for --with-libm=... |
| 15282 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 15283 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 15284 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15285 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 15286 | *) LIBM=-lm |
| 15287 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15288 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 15289 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 15290 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15291 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15292 | if test "${with_libm+set}" = set; then |
| 15293 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15294 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15295 | if test "$withval" = no |
| 15296 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15297 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 15298 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15299 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15300 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15301 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 15302 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 15303 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 15304 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 15305 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15306 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15307 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15308 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 15309 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 15310 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15311 | |
| 15312 | # check for --with-libc=... |
| 15313 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15314 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 15315 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 15316 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15317 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15318 | if test "${with_libc+set}" = set; then |
| 15319 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15320 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15321 | if test "$withval" = no |
| 15322 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15323 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 15324 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15325 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15326 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15327 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 15328 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 15329 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 15330 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 15331 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15332 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15333 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15334 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 15335 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 15336 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15337 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15338 | # check for hypot() in math library |
| 15339 | LIBS_SAVE=$LIBS |
| 15340 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15341 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15342 | for ac_func in hypot |
| 15343 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15344 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15345 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15346 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15347 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15349 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15350 | cat >conftest.$ac_ext <<_ACEOF |
| 15351 | #line $LINENO "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15352 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15353 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15354 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15355 | #include <assert.h> |
| 15356 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15357 | #ifdef __cplusplus |
| 15358 | extern "C" |
| 15359 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15360 | /* 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] | 15361 | builtin and then its argument prototype would still apply. */ |
| 15362 | char $ac_func (); |
| 15363 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15364 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15365 | #ifdef F77_DUMMY_MAIN |
| 15366 | # ifdef __cplusplus |
| 15367 | extern "C" |
| 15368 | # endif |
| 15369 | int F77_DUMMY_MAIN() { return 1; } |
| 15370 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15371 | int |
| 15372 | main () |
| 15373 | { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15374 | /* The GNU C library defines this for functions which it implements |
| 15375 | to always fail with ENOSYS. Some functions are actually named |
| 15376 | something starting with __ and the normal name is an alias. */ |
| 15377 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15378 | choke me |
| 15379 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15380 | f = $ac_func; |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15381 | #endif |
| 15382 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15383 | ; |
| 15384 | return 0; |
| 15385 | } |
| 15386 | _ACEOF |
| 15387 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15389 | (eval $ac_link) 2>&5 |
| 15390 | ac_status=$? |
| 15391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15392 | (exit $ac_status); } && |
| 15393 | { ac_try='test -s conftest$ac_exeext' |
| 15394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15395 | (eval $ac_try) 2>&5 |
| 15396 | ac_status=$? |
| 15397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15398 | (exit $ac_status); }; }; then |
| 15399 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15400 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15401 | echo "$as_me: failed program was:" >&5 |
| 15402 | cat conftest.$ac_ext >&5 |
| 15403 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15404 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15405 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15406 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15407 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15408 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15409 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15410 | cat >>confdefs.h <<_ACEOF |
| 15411 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15412 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15413 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15414 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15415 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15416 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15417 | done |
| 15418 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15419 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15420 | LIBS=$LIBS_SAVE |
| 15421 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15422 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15423 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15424 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 15425 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 15426 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15428 | fi |
| 15429 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 15430 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15431 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15432 | # Is the header compilable? |
| 15433 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 15434 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 15435 | cat >conftest.$ac_ext <<_ACEOF |
| 15436 | #line $LINENO "configure" |
| 15437 | #include "confdefs.h" |
| 15438 | $ac_includes_default |
| 15439 | #include <wchar.h> |
| 15440 | _ACEOF |
| 15441 | rm -f conftest.$ac_objext |
| 15442 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15443 | (eval $ac_compile) 2>&5 |
| 15444 | ac_status=$? |
| 15445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15446 | (exit $ac_status); } && |
| 15447 | { ac_try='test -s conftest.$ac_objext' |
| 15448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15449 | (eval $ac_try) 2>&5 |
| 15450 | ac_status=$? |
| 15451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15452 | (exit $ac_status); }; }; then |
| 15453 | ac_header_compiler=yes |
| 15454 | else |
| 15455 | echo "$as_me: failed program was:" >&5 |
| 15456 | cat conftest.$ac_ext >&5 |
| 15457 | ac_header_compiler=no |
| 15458 | fi |
| 15459 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15460 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15461 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15462 | |
| 15463 | # Is the header present? |
| 15464 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 15465 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 15466 | cat >conftest.$ac_ext <<_ACEOF |
| 15467 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15468 | #include "confdefs.h" |
| 15469 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15470 | _ACEOF |
| 15471 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15472 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15473 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15474 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15475 | rm -f conftest.er1 |
| 15476 | cat conftest.err >&5 |
| 15477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15478 | (exit $ac_status); } >/dev/null; then |
| 15479 | if test -s conftest.err; then |
| 15480 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15481 | else |
| 15482 | ac_cpp_err= |
| 15483 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15484 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15485 | ac_cpp_err=yes |
| 15486 | fi |
| 15487 | if test -z "$ac_cpp_err"; then |
| 15488 | ac_header_preproc=yes |
| 15489 | else |
| 15490 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15491 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15492 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15493 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15494 | rm -f conftest.err conftest.$ac_ext |
| 15495 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15496 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15497 | |
| 15498 | # So? What about this header? |
| 15499 | case $ac_header_compiler:$ac_header_preproc in |
| 15500 | yes:no ) |
| 15501 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15502 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15503 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 15504 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 15505 | no:yes ) |
| 15506 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 15507 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 15508 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 15509 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 15510 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 15511 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 15512 | esac |
| 15513 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 15514 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 15515 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15517 | else |
| 15518 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15519 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15520 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 15521 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 15522 | |
| 15523 | fi |
| 15524 | if test $ac_cv_header_wchar_h = yes; then |
| 15525 | |
| 15526 | |
| 15527 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15528 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15529 | _ACEOF |
| 15530 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15531 | wchar_h="yes" |
| 15532 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15533 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15534 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15535 | |
| 15536 | fi |
| 15537 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15538 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15539 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15540 | # determine wchar_t size |
| 15541 | if test "$wchar_h" = yes |
| 15542 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15543 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 15544 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 15545 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 15546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15547 | else |
| 15548 | cat >conftest.$ac_ext <<_ACEOF |
| 15549 | #line $LINENO "configure" |
| 15550 | #include "confdefs.h" |
| 15551 | #include <wchar.h> |
| 15552 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15553 | #ifdef F77_DUMMY_MAIN |
| 15554 | # ifdef __cplusplus |
| 15555 | extern "C" |
| 15556 | # endif |
| 15557 | int F77_DUMMY_MAIN() { return 1; } |
| 15558 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15559 | int |
| 15560 | main () |
| 15561 | { |
| 15562 | if ((wchar_t *) 0) |
| 15563 | return 0; |
| 15564 | if (sizeof (wchar_t)) |
| 15565 | return 0; |
| 15566 | ; |
| 15567 | return 0; |
| 15568 | } |
| 15569 | _ACEOF |
| 15570 | rm -f conftest.$ac_objext |
| 15571 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15572 | (eval $ac_compile) 2>&5 |
| 15573 | ac_status=$? |
| 15574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15575 | (exit $ac_status); } && |
| 15576 | { ac_try='test -s conftest.$ac_objext' |
| 15577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15578 | (eval $ac_try) 2>&5 |
| 15579 | ac_status=$? |
| 15580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15581 | (exit $ac_status); }; }; then |
| 15582 | ac_cv_type_wchar_t=yes |
| 15583 | else |
| 15584 | echo "$as_me: failed program was:" >&5 |
| 15585 | cat conftest.$ac_ext >&5 |
| 15586 | ac_cv_type_wchar_t=no |
| 15587 | fi |
| 15588 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15589 | fi |
| 15590 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 15591 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 15592 | |
| 15593 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 15594 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 15595 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 15596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15597 | else |
| 15598 | if test "$ac_cv_type_wchar_t" = yes; then |
| 15599 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 15600 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 15601 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 15602 | # This bug is HP SR number 8606223364. |
| 15603 | if test "$cross_compiling" = yes; then |
| 15604 | # Depending upon the size, compute the lo and hi bounds. |
| 15605 | cat >conftest.$ac_ext <<_ACEOF |
| 15606 | #line $LINENO "configure" |
| 15607 | #include "confdefs.h" |
| 15608 | #include <wchar.h> |
| 15609 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15610 | #ifdef F77_DUMMY_MAIN |
| 15611 | # ifdef __cplusplus |
| 15612 | extern "C" |
| 15613 | # endif |
| 15614 | int F77_DUMMY_MAIN() { return 1; } |
| 15615 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15616 | int |
| 15617 | main () |
| 15618 | { |
| 15619 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 15620 | test_array [0] = 0 |
| 15621 | |
| 15622 | ; |
| 15623 | return 0; |
| 15624 | } |
| 15625 | _ACEOF |
| 15626 | rm -f conftest.$ac_objext |
| 15627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15628 | (eval $ac_compile) 2>&5 |
| 15629 | ac_status=$? |
| 15630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15631 | (exit $ac_status); } && |
| 15632 | { ac_try='test -s conftest.$ac_objext' |
| 15633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15634 | (eval $ac_try) 2>&5 |
| 15635 | ac_status=$? |
| 15636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15637 | (exit $ac_status); }; }; then |
| 15638 | ac_lo=0 ac_mid=0 |
| 15639 | while :; do |
| 15640 | cat >conftest.$ac_ext <<_ACEOF |
| 15641 | #line $LINENO "configure" |
| 15642 | #include "confdefs.h" |
| 15643 | #include <wchar.h> |
| 15644 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15645 | #ifdef F77_DUMMY_MAIN |
| 15646 | # ifdef __cplusplus |
| 15647 | extern "C" |
| 15648 | # endif |
| 15649 | int F77_DUMMY_MAIN() { return 1; } |
| 15650 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15651 | int |
| 15652 | main () |
| 15653 | { |
| 15654 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 15655 | test_array [0] = 0 |
| 15656 | |
| 15657 | ; |
| 15658 | return 0; |
| 15659 | } |
| 15660 | _ACEOF |
| 15661 | rm -f conftest.$ac_objext |
| 15662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15663 | (eval $ac_compile) 2>&5 |
| 15664 | ac_status=$? |
| 15665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15666 | (exit $ac_status); } && |
| 15667 | { ac_try='test -s conftest.$ac_objext' |
| 15668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15669 | (eval $ac_try) 2>&5 |
| 15670 | ac_status=$? |
| 15671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15672 | (exit $ac_status); }; }; then |
| 15673 | ac_hi=$ac_mid; break |
| 15674 | else |
| 15675 | echo "$as_me: failed program was:" >&5 |
| 15676 | cat conftest.$ac_ext >&5 |
| 15677 | ac_lo=`expr $ac_mid + 1` |
| 15678 | if test $ac_lo -le $ac_mid; then |
| 15679 | ac_lo= ac_hi= |
| 15680 | break |
| 15681 | fi |
| 15682 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 15683 | fi |
| 15684 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15685 | done |
| 15686 | else |
| 15687 | echo "$as_me: failed program was:" >&5 |
| 15688 | cat conftest.$ac_ext >&5 |
| 15689 | cat >conftest.$ac_ext <<_ACEOF |
| 15690 | #line $LINENO "configure" |
| 15691 | #include "confdefs.h" |
| 15692 | #include <wchar.h> |
| 15693 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15694 | #ifdef F77_DUMMY_MAIN |
| 15695 | # ifdef __cplusplus |
| 15696 | extern "C" |
| 15697 | # endif |
| 15698 | int F77_DUMMY_MAIN() { return 1; } |
| 15699 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15700 | int |
| 15701 | main () |
| 15702 | { |
| 15703 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 15704 | test_array [0] = 0 |
| 15705 | |
| 15706 | ; |
| 15707 | return 0; |
| 15708 | } |
| 15709 | _ACEOF |
| 15710 | rm -f conftest.$ac_objext |
| 15711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15712 | (eval $ac_compile) 2>&5 |
| 15713 | ac_status=$? |
| 15714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15715 | (exit $ac_status); } && |
| 15716 | { ac_try='test -s conftest.$ac_objext' |
| 15717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15718 | (eval $ac_try) 2>&5 |
| 15719 | ac_status=$? |
| 15720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15721 | (exit $ac_status); }; }; then |
| 15722 | ac_hi=-1 ac_mid=-1 |
| 15723 | while :; do |
| 15724 | cat >conftest.$ac_ext <<_ACEOF |
| 15725 | #line $LINENO "configure" |
| 15726 | #include "confdefs.h" |
| 15727 | #include <wchar.h> |
| 15728 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15729 | #ifdef F77_DUMMY_MAIN |
| 15730 | # ifdef __cplusplus |
| 15731 | extern "C" |
| 15732 | # endif |
| 15733 | int F77_DUMMY_MAIN() { return 1; } |
| 15734 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15735 | int |
| 15736 | main () |
| 15737 | { |
| 15738 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 15739 | test_array [0] = 0 |
| 15740 | |
| 15741 | ; |
| 15742 | return 0; |
| 15743 | } |
| 15744 | _ACEOF |
| 15745 | rm -f conftest.$ac_objext |
| 15746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15747 | (eval $ac_compile) 2>&5 |
| 15748 | ac_status=$? |
| 15749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15750 | (exit $ac_status); } && |
| 15751 | { ac_try='test -s conftest.$ac_objext' |
| 15752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15753 | (eval $ac_try) 2>&5 |
| 15754 | ac_status=$? |
| 15755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15756 | (exit $ac_status); }; }; then |
| 15757 | ac_lo=$ac_mid; break |
| 15758 | else |
| 15759 | echo "$as_me: failed program was:" >&5 |
| 15760 | cat conftest.$ac_ext >&5 |
| 15761 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 15762 | if test $ac_mid -le $ac_hi; then |
| 15763 | ac_lo= ac_hi= |
| 15764 | break |
| 15765 | fi |
| 15766 | ac_mid=`expr 2 '*' $ac_mid` |
| 15767 | fi |
| 15768 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15769 | done |
| 15770 | else |
| 15771 | echo "$as_me: failed program was:" >&5 |
| 15772 | cat conftest.$ac_ext >&5 |
| 15773 | ac_lo= ac_hi= |
| 15774 | fi |
| 15775 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15776 | fi |
| 15777 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15778 | # Binary search between lo and hi bounds. |
| 15779 | while test "x$ac_lo" != "x$ac_hi"; do |
| 15780 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 15781 | cat >conftest.$ac_ext <<_ACEOF |
| 15782 | #line $LINENO "configure" |
| 15783 | #include "confdefs.h" |
| 15784 | #include <wchar.h> |
| 15785 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15786 | #ifdef F77_DUMMY_MAIN |
| 15787 | # ifdef __cplusplus |
| 15788 | extern "C" |
| 15789 | # endif |
| 15790 | int F77_DUMMY_MAIN() { return 1; } |
| 15791 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15792 | int |
| 15793 | main () |
| 15794 | { |
| 15795 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 15796 | test_array [0] = 0 |
| 15797 | |
| 15798 | ; |
| 15799 | return 0; |
| 15800 | } |
| 15801 | _ACEOF |
| 15802 | rm -f conftest.$ac_objext |
| 15803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15804 | (eval $ac_compile) 2>&5 |
| 15805 | ac_status=$? |
| 15806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15807 | (exit $ac_status); } && |
| 15808 | { ac_try='test -s conftest.$ac_objext' |
| 15809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15810 | (eval $ac_try) 2>&5 |
| 15811 | ac_status=$? |
| 15812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15813 | (exit $ac_status); }; }; then |
| 15814 | ac_hi=$ac_mid |
| 15815 | else |
| 15816 | echo "$as_me: failed program was:" >&5 |
| 15817 | cat conftest.$ac_ext >&5 |
| 15818 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 15819 | fi |
| 15820 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15821 | done |
| 15822 | case $ac_lo in |
| 15823 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
| 15824 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 15825 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 15826 | { (exit 1); exit 1; }; } ;; |
| 15827 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15828 | else |
| 15829 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15830 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 15831 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 15832 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15833 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15834 | cat >conftest.$ac_ext <<_ACEOF |
| 15835 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15836 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15837 | #include <wchar.h> |
| 15838 | |
| 15839 | long longval () { return (long) (sizeof (wchar_t)); } |
| 15840 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15841 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15842 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15843 | #ifdef F77_DUMMY_MAIN |
| 15844 | # ifdef __cplusplus |
| 15845 | extern "C" |
| 15846 | # endif |
| 15847 | int F77_DUMMY_MAIN() { return 1; } |
| 15848 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15849 | int |
| 15850 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15851 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15852 | |
| 15853 | FILE *f = fopen ("conftest.val", "w"); |
| 15854 | if (! f) |
| 15855 | exit (1); |
| 15856 | if (((long) (sizeof (wchar_t))) < 0) |
| 15857 | { |
| 15858 | long i = longval (); |
| 15859 | if (i != ((long) (sizeof (wchar_t)))) |
| 15860 | exit (1); |
| 15861 | fprintf (f, "%ld\n", i); |
| 15862 | } |
| 15863 | else |
| 15864 | { |
| 15865 | unsigned long i = ulongval (); |
| 15866 | if (i != ((long) (sizeof (wchar_t)))) |
| 15867 | exit (1); |
| 15868 | fprintf (f, "%lu\n", i); |
| 15869 | } |
| 15870 | exit (ferror (f) || fclose (f) != 0); |
| 15871 | |
| 15872 | ; |
| 15873 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15874 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15875 | _ACEOF |
| 15876 | rm -f conftest$ac_exeext |
| 15877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15878 | (eval $ac_link) 2>&5 |
| 15879 | ac_status=$? |
| 15880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15881 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15883 | (eval $ac_try) 2>&5 |
| 15884 | ac_status=$? |
| 15885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15886 | (exit $ac_status); }; }; then |
| 15887 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15888 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15889 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15890 | echo "$as_me: failed program was:" >&5 |
| 15891 | cat conftest.$ac_ext >&5 |
| 15892 | ( exit $ac_status ) |
| 15893 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 15894 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 15895 | { (exit 1); exit 1; }; } |
| 15896 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15897 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15898 | fi |
| 15899 | fi |
| 15900 | rm -f conftest.val |
| 15901 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15902 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15903 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15904 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15905 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 15906 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 15907 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15908 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15909 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15910 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15911 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15912 | fi |
| 15913 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15914 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 15915 | 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] | 15916 | # Check whether --enable-unicode or --disable-unicode was given. |
| 15917 | if test "${enable_unicode+set}" = set; then |
| 15918 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15919 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15920 | else |
| 15921 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15922 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15923 | |
| 15924 | if test $enable_unicode = yes |
| 15925 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 15926 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
| 15927 | enable_unicode="ucs2" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15928 | fi |
| 15929 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15930 | |
| 15931 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15932 | case "$enable_unicode" in |
| 15933 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15934 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15935 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15936 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15937 | |
| 15938 | ;; |
| 15939 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15940 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15941 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15942 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15943 | |
| 15944 | ;; |
| 15945 | esac |
| 15946 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15947 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15948 | |
| 15949 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15950 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15951 | if test "$enable_unicode" = "no" |
| 15952 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15953 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15954 | echo "$as_me:$LINENO: result: not used" >&5 |
| 15955 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15956 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15957 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15958 | |
| 15959 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15960 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15961 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15962 | |
| 15963 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" |
| 15964 | then |
| 15965 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15967 | cat >>confdefs.h <<\_ACEOF |
| 15968 | #define HAVE_USABLE_WCHAR_T 1 |
| 15969 | _ACEOF |
| 15970 | |
| 15971 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15972 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15973 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15974 | |
| 15975 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 15976 | then |
| 15977 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15978 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15979 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15980 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15981 | |
| 15982 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 15983 | then |
| 15984 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15985 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15986 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15987 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15988 | |
| 15989 | else |
| 15990 | PY_UNICODE_TYPE="no type found" |
| 15991 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15992 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 15993 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15994 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15995 | |
| 15996 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15997 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 15998 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 15999 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 16000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16001 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16002 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 16003 | cat >conftest.$ac_ext <<_ACEOF |
| 16004 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16005 | #include "confdefs.h" |
| 16006 | #include <sys/types.h> |
| 16007 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16008 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16009 | #ifdef F77_DUMMY_MAIN |
| 16010 | # ifdef __cplusplus |
| 16011 | extern "C" |
| 16012 | # endif |
| 16013 | int F77_DUMMY_MAIN() { return 1; } |
| 16014 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16015 | int |
| 16016 | main () |
| 16017 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16018 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 16019 | bogus endian macros |
| 16020 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16021 | |
| 16022 | ; |
| 16023 | return 0; |
| 16024 | } |
| 16025 | _ACEOF |
| 16026 | rm -f conftest.$ac_objext |
| 16027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16028 | (eval $ac_compile) 2>&5 |
| 16029 | ac_status=$? |
| 16030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16031 | (exit $ac_status); } && |
| 16032 | { ac_try='test -s conftest.$ac_objext' |
| 16033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16034 | (eval $ac_try) 2>&5 |
| 16035 | ac_status=$? |
| 16036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16037 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16038 | # 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] | 16039 | cat >conftest.$ac_ext <<_ACEOF |
| 16040 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16041 | #include "confdefs.h" |
| 16042 | #include <sys/types.h> |
| 16043 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16044 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16045 | #ifdef F77_DUMMY_MAIN |
| 16046 | # ifdef __cplusplus |
| 16047 | extern "C" |
| 16048 | # endif |
| 16049 | int F77_DUMMY_MAIN() { return 1; } |
| 16050 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16051 | int |
| 16052 | main () |
| 16053 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16054 | #if BYTE_ORDER != BIG_ENDIAN |
| 16055 | not big endian |
| 16056 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16057 | |
| 16058 | ; |
| 16059 | return 0; |
| 16060 | } |
| 16061 | _ACEOF |
| 16062 | rm -f conftest.$ac_objext |
| 16063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16064 | (eval $ac_compile) 2>&5 |
| 16065 | ac_status=$? |
| 16066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16067 | (exit $ac_status); } && |
| 16068 | { ac_try='test -s conftest.$ac_objext' |
| 16069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16070 | (eval $ac_try) 2>&5 |
| 16071 | ac_status=$? |
| 16072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16073 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16074 | ac_cv_c_bigendian=yes |
| 16075 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16076 | echo "$as_me: failed program was:" >&5 |
| 16077 | cat conftest.$ac_ext >&5 |
| 16078 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16079 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16080 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16081 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16082 | echo "$as_me: failed program was:" >&5 |
| 16083 | cat conftest.$ac_ext >&5 |
| 16084 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16085 | if test "$cross_compiling" = yes; then |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16086 | # try to guess the endianess by grep'ing values into an object file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16087 | ac_cv_c_bigendian=unknown |
| 16088 | cat >conftest.$ac_ext <<_ACEOF |
| 16089 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16090 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16091 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 16092 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 16093 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 16094 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 16095 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 16096 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16097 | #ifdef F77_DUMMY_MAIN |
| 16098 | # ifdef __cplusplus |
| 16099 | extern "C" |
| 16100 | # endif |
| 16101 | int F77_DUMMY_MAIN() { return 1; } |
| 16102 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16103 | int |
| 16104 | main () |
| 16105 | { |
| 16106 | _ascii (); _ebcdic (); |
| 16107 | ; |
| 16108 | return 0; |
| 16109 | } |
| 16110 | _ACEOF |
| 16111 | rm -f conftest.$ac_objext |
| 16112 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16113 | (eval $ac_compile) 2>&5 |
| 16114 | ac_status=$? |
| 16115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16116 | (exit $ac_status); } && |
| 16117 | { ac_try='test -s conftest.$ac_objext' |
| 16118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16119 | (eval $ac_try) 2>&5 |
| 16120 | ac_status=$? |
| 16121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16122 | (exit $ac_status); }; }; then |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16123 | if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16124 | ac_cv_c_bigendian=yes |
| 16125 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16126 | if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16127 | if test "$ac_cv_c_bigendian" = unknown; then |
| 16128 | ac_cv_c_bigendian=no |
| 16129 | else |
| 16130 | # finding both strings is unlikely to happen, but who knows? |
| 16131 | ac_cv_c_bigendian=unknown |
| 16132 | fi |
| 16133 | fi |
| 16134 | else |
| 16135 | echo "$as_me: failed program was:" >&5 |
| 16136 | cat conftest.$ac_ext >&5 |
| 16137 | fi |
| 16138 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16139 | else |
| 16140 | cat >conftest.$ac_ext <<_ACEOF |
| 16141 | #line $LINENO "configure" |
| 16142 | #include "confdefs.h" |
| 16143 | int |
| 16144 | main () |
| 16145 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16146 | /* Are we little or big endian? From Harbison&Steele. */ |
| 16147 | union |
| 16148 | { |
| 16149 | long l; |
| 16150 | char c[sizeof (long)]; |
| 16151 | } u; |
| 16152 | u.l = 1; |
| 16153 | exit (u.c[sizeof (long) - 1] == 1); |
| 16154 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16155 | _ACEOF |
| 16156 | rm -f conftest$ac_exeext |
| 16157 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16158 | (eval $ac_link) 2>&5 |
| 16159 | ac_status=$? |
| 16160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16161 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16163 | (eval $ac_try) 2>&5 |
| 16164 | ac_status=$? |
| 16165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16166 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16167 | ac_cv_c_bigendian=no |
| 16168 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16169 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16170 | echo "$as_me: failed program was:" >&5 |
| 16171 | cat conftest.$ac_ext >&5 |
| 16172 | ( exit $ac_status ) |
| 16173 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16174 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16175 | 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] | 16176 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16177 | fi |
| 16178 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16179 | fi |
| 16180 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 16181 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 16182 | case $ac_cv_c_bigendian in |
| 16183 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16184 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16185 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16186 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16187 | _ACEOF |
| 16188 | ;; |
| 16189 | no) |
| 16190 | ;; |
| 16191 | *) |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16192 | { { echo "$as_me:$LINENO: error: unknown endianess |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16193 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16194 | echo "$as_me: error: unknown endianess |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16195 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 16196 | { (exit 1); exit 1; }; } ;; |
| 16197 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16198 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16199 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16200 | # Check whether right shifting a negative integer extends the sign bit |
| 16201 | # 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] | 16202 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 16203 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 16204 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 16205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16206 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16207 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16208 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 16209 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16210 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16211 | cat >conftest.$ac_ext <<_ACEOF |
| 16212 | #line $LINENO "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16213 | #include "confdefs.h" |
| 16214 | |
| 16215 | int main() |
| 16216 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16217 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16218 | } |
| 16219 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16220 | _ACEOF |
| 16221 | rm -f conftest$ac_exeext |
| 16222 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16223 | (eval $ac_link) 2>&5 |
| 16224 | ac_status=$? |
| 16225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16226 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16228 | (eval $ac_try) 2>&5 |
| 16229 | ac_status=$? |
| 16230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16231 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16232 | ac_cv_rshift_extends_sign=yes |
| 16233 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16234 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16235 | echo "$as_me: failed program was:" >&5 |
| 16236 | cat conftest.$ac_ext >&5 |
| 16237 | ( exit $ac_status ) |
| 16238 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16239 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16240 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16241 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16242 | fi |
| 16243 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16244 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 16245 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16246 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16247 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16248 | |
| 16249 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16250 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16251 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16252 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16253 | fi |
| 16254 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16255 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16256 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 16257 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 16258 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 16259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16260 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16261 | |
| 16262 | cat >conftest.$ac_ext <<_ACEOF |
| 16263 | #line $LINENO "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16264 | #include "confdefs.h" |
| 16265 | #include <stdio.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16266 | #ifdef F77_DUMMY_MAIN |
| 16267 | # ifdef __cplusplus |
| 16268 | extern "C" |
| 16269 | # endif |
| 16270 | int F77_DUMMY_MAIN() { return 1; } |
| 16271 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16272 | int |
| 16273 | main () |
| 16274 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16275 | |
| 16276 | FILE *f = fopen("/dev/null", "r"); |
| 16277 | flockfile(f); |
| 16278 | getc_unlocked(f); |
| 16279 | funlockfile(f); |
| 16280 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16281 | ; |
| 16282 | return 0; |
| 16283 | } |
| 16284 | _ACEOF |
| 16285 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16286 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16287 | (eval $ac_link) 2>&5 |
| 16288 | ac_status=$? |
| 16289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16290 | (exit $ac_status); } && |
| 16291 | { ac_try='test -s conftest$ac_exeext' |
| 16292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16293 | (eval $ac_try) 2>&5 |
| 16294 | ac_status=$? |
| 16295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16296 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16297 | ac_cv_have_getc_unlocked=yes |
| 16298 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16299 | echo "$as_me: failed program was:" >&5 |
| 16300 | cat conftest.$ac_ext >&5 |
| 16301 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16302 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16303 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16304 | fi |
| 16305 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16306 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 16307 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16308 | if test "$ac_cv_have_getc_unlocked" = yes |
| 16309 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16310 | |
| 16311 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16312 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16313 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16314 | |
| 16315 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16316 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 16317 | # check for readline 2.2 |
| 16318 | cat >conftest.$ac_ext <<_ACEOF |
| 16319 | #line $LINENO "configure" |
| 16320 | #include "confdefs.h" |
| 16321 | #include <readline/readline.h> |
| 16322 | _ACEOF |
| 16323 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 16324 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 16325 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16326 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 16327 | rm -f conftest.er1 |
| 16328 | cat conftest.err >&5 |
| 16329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16330 | (exit $ac_status); } >/dev/null; then |
| 16331 | if test -s conftest.err; then |
| 16332 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16333 | else |
| 16334 | ac_cpp_err= |
| 16335 | fi |
| 16336 | else |
| 16337 | ac_cpp_err=yes |
| 16338 | fi |
| 16339 | if test -z "$ac_cpp_err"; then |
| 16340 | have_readline=yes |
| 16341 | else |
| 16342 | echo "$as_me: failed program was:" >&5 |
| 16343 | cat conftest.$ac_ext >&5 |
| 16344 | have_readline=no |
| 16345 | fi |
| 16346 | rm -f conftest.err conftest.$ac_ext |
| 16347 | if test $have_readline = yes |
| 16348 | then |
| 16349 | cat >conftest.$ac_ext <<_ACEOF |
| 16350 | #line $LINENO "configure" |
| 16351 | #include "confdefs.h" |
| 16352 | #include <readline/readline.h> |
| 16353 | |
| 16354 | _ACEOF |
| 16355 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16356 | egrep "extern int rl_completion_append_character;" >/dev/null 2>&1; then |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 16357 | |
| 16358 | cat >>confdefs.h <<\_ACEOF |
| 16359 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 16360 | _ACEOF |
| 16361 | |
| 16362 | fi |
| 16363 | rm -f conftest* |
| 16364 | |
| 16365 | fi |
| 16366 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16367 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16368 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 16369 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 16370 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 16371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16372 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16373 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16374 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16375 | cat >conftest.$ac_ext <<_ACEOF |
| 16376 | #line $LINENO "configure" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16377 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16378 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16379 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16380 | #ifdef __cplusplus |
| 16381 | extern "C" |
| 16382 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16383 | /* 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] | 16384 | builtin and then its argument prototype would still apply. */ |
| 16385 | char rl_pre_input_hook (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16386 | #ifdef F77_DUMMY_MAIN |
| 16387 | # ifdef __cplusplus |
| 16388 | extern "C" |
| 16389 | # endif |
| 16390 | int F77_DUMMY_MAIN() { return 1; } |
| 16391 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16392 | int |
| 16393 | main () |
| 16394 | { |
| 16395 | rl_pre_input_hook (); |
| 16396 | ; |
| 16397 | return 0; |
| 16398 | } |
| 16399 | _ACEOF |
| 16400 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16402 | (eval $ac_link) 2>&5 |
| 16403 | ac_status=$? |
| 16404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16405 | (exit $ac_status); } && |
| 16406 | { ac_try='test -s conftest$ac_exeext' |
| 16407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16408 | (eval $ac_try) 2>&5 |
| 16409 | ac_status=$? |
| 16410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16411 | (exit $ac_status); }; }; then |
| 16412 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16413 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16414 | echo "$as_me: failed program was:" >&5 |
| 16415 | cat conftest.$ac_ext >&5 |
| 16416 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16417 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16418 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16419 | LIBS=$ac_check_lib_save_LIBS |
| 16420 | fi |
| 16421 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 16422 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 16423 | 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] | 16424 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16425 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16426 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16427 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16428 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16429 | fi |
| 16430 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16431 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16432 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16433 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 16434 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 16435 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 16436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16437 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16438 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16439 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16440 | cat >conftest.$ac_ext <<_ACEOF |
| 16441 | #line $LINENO "configure" |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16442 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16443 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16444 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16445 | #ifdef __cplusplus |
| 16446 | extern "C" |
| 16447 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16448 | /* 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] | 16449 | builtin and then its argument prototype would still apply. */ |
| 16450 | char rl_completion_matches (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16451 | #ifdef F77_DUMMY_MAIN |
| 16452 | # ifdef __cplusplus |
| 16453 | extern "C" |
| 16454 | # endif |
| 16455 | int F77_DUMMY_MAIN() { return 1; } |
| 16456 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16457 | int |
| 16458 | main () |
| 16459 | { |
| 16460 | rl_completion_matches (); |
| 16461 | ; |
| 16462 | return 0; |
| 16463 | } |
| 16464 | _ACEOF |
| 16465 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16467 | (eval $ac_link) 2>&5 |
| 16468 | ac_status=$? |
| 16469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16470 | (exit $ac_status); } && |
| 16471 | { ac_try='test -s conftest$ac_exeext' |
| 16472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16473 | (eval $ac_try) 2>&5 |
| 16474 | ac_status=$? |
| 16475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16476 | (exit $ac_status); }; }; then |
| 16477 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16478 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16479 | echo "$as_me: failed program was:" >&5 |
| 16480 | cat conftest.$ac_ext >&5 |
| 16481 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16482 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16483 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16484 | LIBS=$ac_check_lib_save_LIBS |
| 16485 | fi |
| 16486 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 16487 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 16488 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16489 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16490 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16491 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16492 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16493 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16494 | fi |
| 16495 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16496 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16497 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 16498 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 16499 | if test "${ac_cv_broken_nice+set}" = set; then |
| 16500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16501 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16502 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16503 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 16504 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16505 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16506 | cat >conftest.$ac_ext <<_ACEOF |
| 16507 | #line $LINENO "configure" |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16508 | #include "confdefs.h" |
| 16509 | |
| 16510 | int main() |
| 16511 | { |
| 16512 | int val1 = nice(1); |
| 16513 | if (val1 != -1 && val1 == nice(2)) |
| 16514 | exit(0); |
| 16515 | exit(1); |
| 16516 | } |
| 16517 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16518 | _ACEOF |
| 16519 | rm -f conftest$ac_exeext |
| 16520 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16521 | (eval $ac_link) 2>&5 |
| 16522 | ac_status=$? |
| 16523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16524 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16526 | (eval $ac_try) 2>&5 |
| 16527 | ac_status=$? |
| 16528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16529 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16530 | ac_cv_broken_nice=yes |
| 16531 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16532 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16533 | echo "$as_me: failed program was:" >&5 |
| 16534 | cat conftest.$ac_ext >&5 |
| 16535 | ( exit $ac_status ) |
| 16536 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16537 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16538 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16539 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16540 | fi |
| 16541 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16542 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 16543 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16544 | if test "$ac_cv_broken_nice" = yes |
| 16545 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16546 | |
| 16547 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16548 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16549 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16550 | |
| 16551 | fi |
| 16552 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16553 | # Look for subsecond timestamps in struct stat |
| 16554 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 16555 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 16556 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 16557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16558 | else |
| 16559 | cat >conftest.$ac_ext <<_ACEOF |
| 16560 | #line $LINENO "configure" |
| 16561 | #include "confdefs.h" |
| 16562 | #include <sys/stat.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16563 | #ifdef F77_DUMMY_MAIN |
| 16564 | # ifdef __cplusplus |
| 16565 | extern "C" |
| 16566 | # endif |
| 16567 | int F77_DUMMY_MAIN() { return 1; } |
| 16568 | #endif |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16569 | int |
| 16570 | main () |
| 16571 | { |
| 16572 | |
| 16573 | struct stat st; |
| 16574 | st.st_mtim.tv_nsec = 1; |
| 16575 | |
| 16576 | ; |
| 16577 | return 0; |
| 16578 | } |
| 16579 | _ACEOF |
| 16580 | rm -f conftest.$ac_objext |
| 16581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16582 | (eval $ac_compile) 2>&5 |
| 16583 | ac_status=$? |
| 16584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16585 | (exit $ac_status); } && |
| 16586 | { ac_try='test -s conftest.$ac_objext' |
| 16587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16588 | (eval $ac_try) 2>&5 |
| 16589 | ac_status=$? |
| 16590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16591 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 16592 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16593 | else |
| 16594 | echo "$as_me: failed program was:" >&5 |
| 16595 | cat conftest.$ac_ext >&5 |
| 16596 | ac_cv_stat_tv_nsec=no |
| 16597 | fi |
| 16598 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16599 | fi |
| 16600 | |
| 16601 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 16602 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 16603 | if test "$ac_cv_stat_tv_nsec" = yes |
| 16604 | then |
| 16605 | |
| 16606 | cat >>confdefs.h <<\_ACEOF |
| 16607 | #define HAVE_STAT_TV_NSEC 1 |
| 16608 | _ACEOF |
| 16609 | |
| 16610 | fi |
| 16611 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16612 | # 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] | 16613 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 16614 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 16615 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 16616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16617 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16618 | cat >conftest.$ac_ext <<_ACEOF |
| 16619 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16620 | #include "confdefs.h" |
| 16621 | #include <curses.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16622 | #ifdef F77_DUMMY_MAIN |
| 16623 | # ifdef __cplusplus |
| 16624 | extern "C" |
| 16625 | # endif |
| 16626 | int F77_DUMMY_MAIN() { return 1; } |
| 16627 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16628 | int |
| 16629 | main () |
| 16630 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16631 | |
| 16632 | int rtn; |
| 16633 | rtn = mvwdelch(0,0,0); |
| 16634 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16635 | ; |
| 16636 | return 0; |
| 16637 | } |
| 16638 | _ACEOF |
| 16639 | rm -f conftest.$ac_objext |
| 16640 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16641 | (eval $ac_compile) 2>&5 |
| 16642 | ac_status=$? |
| 16643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16644 | (exit $ac_status); } && |
| 16645 | { ac_try='test -s conftest.$ac_objext' |
| 16646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16647 | (eval $ac_try) 2>&5 |
| 16648 | ac_status=$? |
| 16649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16650 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16651 | ac_cv_mvwdelch_is_expression=yes |
| 16652 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16653 | echo "$as_me: failed program was:" >&5 |
| 16654 | cat conftest.$ac_ext >&5 |
| 16655 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16656 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16657 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16658 | fi |
| 16659 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16660 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 16661 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16662 | |
| 16663 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 16664 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16665 | |
| 16666 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16667 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16668 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16669 | |
| 16670 | fi |
| 16671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16672 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 16673 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 16674 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 16675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16676 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16677 | cat >conftest.$ac_ext <<_ACEOF |
| 16678 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16679 | #include "confdefs.h" |
| 16680 | #include <curses.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16681 | #ifdef F77_DUMMY_MAIN |
| 16682 | # ifdef __cplusplus |
| 16683 | extern "C" |
| 16684 | # endif |
| 16685 | int F77_DUMMY_MAIN() { return 1; } |
| 16686 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16687 | int |
| 16688 | main () |
| 16689 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16690 | |
| 16691 | WINDOW *w; |
| 16692 | w->_flags = 0; |
| 16693 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16694 | ; |
| 16695 | return 0; |
| 16696 | } |
| 16697 | _ACEOF |
| 16698 | rm -f conftest.$ac_objext |
| 16699 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16700 | (eval $ac_compile) 2>&5 |
| 16701 | ac_status=$? |
| 16702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16703 | (exit $ac_status); } && |
| 16704 | { ac_try='test -s conftest.$ac_objext' |
| 16705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16706 | (eval $ac_try) 2>&5 |
| 16707 | ac_status=$? |
| 16708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16709 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16710 | ac_cv_window_has_flags=yes |
| 16711 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16712 | echo "$as_me: failed program was:" >&5 |
| 16713 | cat conftest.$ac_ext >&5 |
| 16714 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16715 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16716 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16717 | fi |
| 16718 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16719 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 16720 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16721 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16722 | |
| 16723 | if test "$ac_cv_window_has_flags" = yes |
| 16724 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16725 | |
| 16726 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16727 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16728 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16729 | |
| 16730 | fi |
| 16731 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 16732 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 16733 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
| 16734 | |
| 16735 | if test -e /dev/ptmx |
| 16736 | then |
| 16737 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16738 | echo "${ECHO_T}yes" >&6 |
| 16739 | |
| 16740 | cat >>confdefs.h <<\_ACEOF |
| 16741 | #define HAVE_DEV_PTMX 1 |
| 16742 | _ACEOF |
| 16743 | |
| 16744 | else |
| 16745 | echo "$as_me:$LINENO: result: no" >&5 |
| 16746 | echo "${ECHO_T}no" >&6 |
| 16747 | fi |
| 16748 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16749 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 16750 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 16751 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 16752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16753 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16754 | cat >conftest.$ac_ext <<_ACEOF |
| 16755 | #line $LINENO "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16756 | #include "confdefs.h" |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 16757 | |
| 16758 | #ifdef HAVE_SYS_TYPES_H |
| 16759 | #include <sys/types.h> |
| 16760 | #endif |
| 16761 | #ifdef HAVE_SYS_SOCKET_H |
| 16762 | #include <sys/socket.h> |
| 16763 | #endif |
| 16764 | |
| 16765 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16766 | #ifdef F77_DUMMY_MAIN |
| 16767 | # ifdef __cplusplus |
| 16768 | extern "C" |
| 16769 | # endif |
| 16770 | int F77_DUMMY_MAIN() { return 1; } |
| 16771 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16772 | int |
| 16773 | main () |
| 16774 | { |
| 16775 | if ((socklen_t *) 0) |
| 16776 | return 0; |
| 16777 | if (sizeof (socklen_t)) |
| 16778 | return 0; |
| 16779 | ; |
| 16780 | return 0; |
| 16781 | } |
| 16782 | _ACEOF |
| 16783 | rm -f conftest.$ac_objext |
| 16784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16785 | (eval $ac_compile) 2>&5 |
| 16786 | ac_status=$? |
| 16787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16788 | (exit $ac_status); } && |
| 16789 | { ac_try='test -s conftest.$ac_objext' |
| 16790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16791 | (eval $ac_try) 2>&5 |
| 16792 | ac_status=$? |
| 16793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16794 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16795 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16796 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16797 | echo "$as_me: failed program was:" >&5 |
| 16798 | cat conftest.$ac_ext >&5 |
| 16799 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16800 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16801 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16802 | fi |
| 16803 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 16804 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 16805 | if test $ac_cv_type_socklen_t = yes; then |
| 16806 | : |
| 16807 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16808 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 16809 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16810 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16811 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16812 | |
| 16813 | fi |
| 16814 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16815 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16816 | |
| 16817 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 16818 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 16819 | do |
| 16820 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 16821 | done |
| 16822 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16823 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 16824 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16825 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 16826 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16827 | for dir in $SRCDIRS; do |
| 16828 | if test ! -d $dir; then |
| 16829 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 16830 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16831 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16832 | echo "$as_me:$LINENO: result: done" >&5 |
| 16833 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 16834 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16835 | # generate output files |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16836 | 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] | 16837 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16838 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16839 | # This file is a shell script that caches the results of configure |
| 16840 | # 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] | 16841 | # scripts and configure runs, see configure's option --config-cache. |
| 16842 | # It is not useful on other systems. If it contains results you don't |
| 16843 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16844 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16845 | # config.status only pays attention to the cache file if you give it |
| 16846 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16847 | # |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16848 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16849 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 16850 | # following values. |
| 16851 | |
| 16852 | _ACEOF |
| 16853 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16854 | # The following way of writing the cache mishandles newlines in values, |
| 16855 | # but we know of no workaround that is simple, portable, and efficient. |
| 16856 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16857 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 16858 | # 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] | 16859 | { |
| 16860 | (set) 2>&1 | |
| 16861 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 16862 | *ac_space=\ *) |
| 16863 | # `set' does not quote correctly, so add quotes (double-quote |
| 16864 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 16865 | sed -n \ |
| 16866 | "s/'/'\\\\''/g; |
| 16867 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 16868 | ;; |
| 16869 | *) |
| 16870 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 16871 | sed -n \ |
| 16872 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 16873 | ;; |
| 16874 | esac; |
| 16875 | } | |
| 16876 | sed ' |
| 16877 | t clear |
| 16878 | : clear |
| 16879 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 16880 | t end |
| 16881 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 16882 | : end' >>confcache |
| 16883 | if cmp -s $cache_file confcache; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16884 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16885 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 16886 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16887 | else |
| 16888 | echo "not updating unwritable cache $cache_file" |
| 16889 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16890 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16891 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16892 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16893 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 16894 | # Let make expand exec_prefix. |
| 16895 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16896 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16897 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 16898 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 16899 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16900 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16901 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16902 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 16903 | s/:*\$(srcdir):*/:/; |
| 16904 | s/:*\${srcdir}:*/:/; |
| 16905 | s/:*@srcdir@:*/:/; |
| 16906 | s/^\([^=]*=[ ]*\):*/\1/; |
| 16907 | s/:*$//; |
| 16908 | s/^[^=]*=[ ]*$//; |
| 16909 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16910 | fi |
| 16911 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16912 | DEFS=-DHAVE_CONFIG_H |
| 16913 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16914 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16915 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16916 | ac_clean_files_save=$ac_clean_files |
| 16917 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 16918 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 16919 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16920 | cat >$CONFIG_STATUS <<_ACEOF |
| 16921 | #! $SHELL |
| 16922 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16923 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16924 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16925 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16926 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16927 | debug=false |
| 16928 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 16929 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16930 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16931 | cat >>$CONFIG_STATUS <<\_ACEOF |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16932 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16933 | ## --------------------- ## |
| 16934 | ## M4sh Initialization. ## |
| 16935 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16937 | # Be Bourne compatible |
| 16938 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16939 | emulate sh |
| 16940 | NULLCMD=: |
| 16941 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 16942 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16943 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16944 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16945 | # NLS nuisances. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16946 | # Support unset when possible. |
| 16947 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 16948 | as_unset=unset |
| 16949 | else |
| 16950 | as_unset=false |
| 16951 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16952 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16953 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 16954 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 16955 | { LANG=C; export LANG; } |
| 16956 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 16957 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 16958 | { LC_ALL=C; export LC_ALL; } |
| 16959 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 16960 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 16961 | { LC_TIME=C; export LC_TIME; } |
| 16962 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 16963 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 16964 | { LC_CTYPE=C; export LC_CTYPE; } |
| 16965 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 16966 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 16967 | { LANGUAGE=C; export LANGUAGE; } |
| 16968 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 16969 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 16970 | { LC_COLLATE=C; export LC_COLLATE; } |
| 16971 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 16972 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 16973 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 16974 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 16975 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 16976 | { LC_MESSAGES=C; export LC_MESSAGES; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16977 | |
| 16978 | |
| 16979 | # Name of the executable. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16980 | as_me=`(basename "$0") 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16981 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 16982 | X"$0" : 'X\(//\)$' \| \ |
| 16983 | X"$0" : 'X\(/\)$' \| \ |
| 16984 | . : '\(.\)' 2>/dev/null || |
| 16985 | echo X/"$0" | |
| 16986 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 16987 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 16988 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 16989 | s/.*/./; q'` |
| 16990 | |
| 16991 | # PATH needs CR, and LINENO needs CR and PATH. |
| 16992 | # Avoid depending upon Character Ranges. |
| 16993 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16994 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16995 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16996 | as_cr_digits='0123456789' |
| 16997 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16998 | |
| 16999 | # The user is always right. |
| 17000 | if test "${PATH_SEPARATOR+set}" != set; then |
| 17001 | echo "#! /bin/sh" >conftest.sh |
| 17002 | echo "exit 0" >>conftest.sh |
| 17003 | chmod +x conftest.sh |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17004 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17005 | PATH_SEPARATOR=';' |
| 17006 | else |
| 17007 | PATH_SEPARATOR=: |
| 17008 | fi |
| 17009 | rm -f conftest.sh |
| 17010 | fi |
| 17011 | |
| 17012 | |
| 17013 | as_lineno_1=$LINENO |
| 17014 | as_lineno_2=$LINENO |
| 17015 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 17016 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 17017 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 17018 | # Find who we are. Look in the path if we contain no path at all |
| 17019 | # relative or not. |
| 17020 | case $0 in |
| 17021 | *[\\/]* ) as_myself=$0 ;; |
| 17022 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17023 | for as_dir in $PATH |
| 17024 | do |
| 17025 | IFS=$as_save_IFS |
| 17026 | test -z "$as_dir" && as_dir=. |
| 17027 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 17028 | done |
| 17029 | |
| 17030 | ;; |
| 17031 | esac |
| 17032 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 17033 | # in which case we are not to be found in the path. |
| 17034 | if test "x$as_myself" = x; then |
| 17035 | as_myself=$0 |
| 17036 | fi |
| 17037 | if test ! -f "$as_myself"; then |
| 17038 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 17039 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 17040 | { (exit 1); exit 1; }; } |
| 17041 | fi |
| 17042 | case $CONFIG_SHELL in |
| 17043 | '') |
| 17044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17045 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 17046 | do |
| 17047 | IFS=$as_save_IFS |
| 17048 | test -z "$as_dir" && as_dir=. |
| 17049 | for as_base in sh bash ksh sh5; do |
| 17050 | case $as_dir in |
| 17051 | /*) |
| 17052 | if ("$as_dir/$as_base" -c ' |
| 17053 | as_lineno_1=$LINENO |
| 17054 | as_lineno_2=$LINENO |
| 17055 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 17056 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 17057 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 17058 | CONFIG_SHELL=$as_dir/$as_base |
| 17059 | export CONFIG_SHELL |
| 17060 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 17061 | fi;; |
| 17062 | esac |
| 17063 | done |
| 17064 | done |
| 17065 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17066 | esac |
| 17067 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17068 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 17069 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 17070 | # line-number line before each line; the second 'sed' does the real |
| 17071 | # work. The second script uses 'N' to pair each line-number line |
| 17072 | # with the numbered line, and appends trailing '-' during |
| 17073 | # substitution so that $LINENO is not a special case at line end. |
| 17074 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 17075 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 17076 | sed '=' <$as_myself | |
| 17077 | sed ' |
| 17078 | N |
| 17079 | s,$,-, |
| 17080 | : loop |
| 17081 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 17082 | t loop |
| 17083 | s,-$,, |
| 17084 | s,^['$as_cr_digits']*\n,, |
| 17085 | ' >$as_me.lineno && |
| 17086 | chmod +x $as_me.lineno || |
| 17087 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 17088 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 17089 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17090 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17091 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 17092 | # (the dirname of $[0] is not the place where we might find the |
| 17093 | # original and so on. Autoconf is especially sensible to this). |
| 17094 | . ./$as_me.lineno |
| 17095 | # Exit status is that of the last command. |
| 17096 | exit |
| 17097 | } |
| 17098 | |
| 17099 | |
| 17100 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 17101 | *c*,-n*) ECHO_N= ECHO_C=' |
| 17102 | ' ECHO_T=' ' ;; |
| 17103 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 17104 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 17105 | esac |
| 17106 | |
| 17107 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 17108 | as_expr=expr |
| 17109 | else |
| 17110 | as_expr=false |
| 17111 | fi |
| 17112 | |
| 17113 | rm -f conf$$ conf$$.exe conf$$.file |
| 17114 | echo >conf$$.file |
| 17115 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 17116 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 17117 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 17118 | if test -f conf$$.exe; then |
| 17119 | # Don't use ln at all; we don't have any links |
| 17120 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17121 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17122 | as_ln_s='ln -s' |
| 17123 | fi |
| 17124 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 17125 | as_ln_s=ln |
| 17126 | else |
| 17127 | as_ln_s='cp -p' |
| 17128 | fi |
| 17129 | rm -f conf$$ conf$$.exe conf$$.file |
| 17130 | |
| 17131 | as_executable_p="test -f" |
| 17132 | |
| 17133 | # Sed expression to map a string onto a valid CPP name. |
| 17134 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 17135 | |
| 17136 | # Sed expression to map a string onto a valid variable name. |
| 17137 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 17138 | |
| 17139 | |
| 17140 | # IFS |
| 17141 | # We need space, tab and new line, in precisely that order. |
| 17142 | as_nl=' |
| 17143 | ' |
| 17144 | IFS=" $as_nl" |
| 17145 | |
| 17146 | # CDPATH. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17147 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17148 | |
| 17149 | exec 6>&1 |
| 17150 | |
| 17151 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 17152 | # report actual input values of CONFIG_FILES etc. instead of their |
| 17153 | # values after options handling. Logging --version etc. is OK. |
| 17154 | exec 5>>config.log |
| 17155 | { |
| 17156 | echo |
| 17157 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 17158 | ## Running $as_me. ## |
| 17159 | _ASBOX |
| 17160 | } >&5 |
| 17161 | cat >&5 <<_CSEOF |
| 17162 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 17163 | This file was extended by python $as_me 2.3, which was |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17164 | generated by GNU Autoconf 2.53. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17165 | |
| 17166 | CONFIG_FILES = $CONFIG_FILES |
| 17167 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 17168 | CONFIG_LINKS = $CONFIG_LINKS |
| 17169 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 17170 | $ $0 $@ |
| 17171 | |
| 17172 | _CSEOF |
| 17173 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 17174 | echo >&5 |
| 17175 | _ACEOF |
| 17176 | |
| 17177 | # Files that config.status was made for. |
| 17178 | if test -n "$ac_config_files"; then |
| 17179 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 17180 | fi |
| 17181 | |
| 17182 | if test -n "$ac_config_headers"; then |
| 17183 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 17184 | fi |
| 17185 | |
| 17186 | if test -n "$ac_config_links"; then |
| 17187 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 17188 | fi |
| 17189 | |
| 17190 | if test -n "$ac_config_commands"; then |
| 17191 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 17192 | fi |
| 17193 | |
| 17194 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17195 | |
| 17196 | ac_cs_usage="\ |
| 17197 | \`$as_me' instantiates files from templates according to the |
| 17198 | current configuration. |
| 17199 | |
| 17200 | Usage: $0 [OPTIONS] [FILE]... |
| 17201 | |
| 17202 | -h, --help print this help, then exit |
| 17203 | -V, --version print version number, then exit |
| 17204 | -d, --debug don't remove temporary files |
| 17205 | --recheck update $as_me by reconfiguring in the same conditions |
| 17206 | --file=FILE[:TEMPLATE] |
| 17207 | instantiate the configuration file FILE |
| 17208 | --header=FILE[:TEMPLATE] |
| 17209 | instantiate the configuration header FILE |
| 17210 | |
| 17211 | Configuration files: |
| 17212 | $config_files |
| 17213 | |
| 17214 | Configuration headers: |
| 17215 | $config_headers |
| 17216 | |
| 17217 | Report bugs to <bug-autoconf@gnu.org>." |
| 17218 | _ACEOF |
| 17219 | |
| 17220 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17221 | ac_cs_version="\\ |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 17222 | python config.status 2.3 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17223 | configured by $0, generated by GNU Autoconf 2.53, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17224 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 17225 | |
| 17226 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 17227 | Free Software Foundation, Inc. |
| 17228 | This config.status script is free software; the Free Software Foundation |
| 17229 | gives unlimited permission to copy, distribute and modify it." |
| 17230 | srcdir=$srcdir |
| 17231 | INSTALL="$INSTALL" |
| 17232 | _ACEOF |
| 17233 | |
| 17234 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17235 | # If no file are specified by the user, then we need to provide default |
| 17236 | # value. By we need to know if files were specified by the user. |
| 17237 | ac_need_defaults=: |
| 17238 | while test $# != 0 |
| 17239 | do |
| 17240 | case $1 in |
| 17241 | --*=*) |
| 17242 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 17243 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17244 | shift |
| 17245 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 17246 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17247 | ;; |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17248 | -*);; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17249 | *) # This is not an option, so the user has probably given explicit |
| 17250 | # arguments. |
| 17251 | ac_need_defaults=false;; |
| 17252 | esac |
| 17253 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17254 | case $1 in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17255 | # Handling of the options. |
| 17256 | _ACEOF |
| 17257 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17258 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 17259 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 17260 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 17261 | _ACEOF |
| 17262 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17263 | --version | --vers* | -V ) |
| 17264 | echo "$ac_cs_version"; exit 0 ;; |
| 17265 | --he | --h) |
| 17266 | # Conflict between --help and --header |
| 17267 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 17268 | Try \`$0 --help' for more information." >&5 |
| 17269 | echo "$as_me: error: ambiguous option: $1 |
| 17270 | Try \`$0 --help' for more information." >&2;} |
| 17271 | { (exit 1); exit 1; }; };; |
| 17272 | --help | --hel | -h ) |
| 17273 | echo "$ac_cs_usage"; exit 0 ;; |
| 17274 | --debug | --d* | -d ) |
| 17275 | debug=: ;; |
| 17276 | --file | --fil | --fi | --f ) |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17277 | shift |
| 17278 | CONFIG_FILES="$CONFIG_FILES $1" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17279 | ac_need_defaults=false;; |
| 17280 | --header | --heade | --head | --hea ) |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17281 | shift |
| 17282 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17283 | ac_need_defaults=false;; |
| 17284 | |
| 17285 | # This is an error. |
| 17286 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 17287 | Try \`$0 --help' for more information." >&5 |
| 17288 | echo "$as_me: error: unrecognized option: $1 |
| 17289 | Try \`$0 --help' for more information." >&2;} |
| 17290 | { (exit 1); exit 1; }; } ;; |
| 17291 | |
| 17292 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 17293 | |
| 17294 | esac |
| 17295 | shift |
| 17296 | done |
| 17297 | |
| 17298 | _ACEOF |
| 17299 | |
| 17300 | |
| 17301 | |
| 17302 | |
| 17303 | |
| 17304 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17305 | for ac_config_target in $ac_config_targets |
| 17306 | do |
| 17307 | case "$ac_config_target" in |
| 17308 | # Handling of arguments. |
| 17309 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 17310 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 17311 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 17312 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 17313 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 17314 | { (exit 1); exit 1; }; };; |
| 17315 | esac |
| 17316 | done |
| 17317 | |
| 17318 | # If the user did not use the arguments to specify the items to instantiate, |
| 17319 | # then the envvar interface is used. Set only those that are not. |
| 17320 | # We use the long form for the default assignment because of an extremely |
| 17321 | # bizarre bug on SunOS 4.1.3. |
| 17322 | if $ac_need_defaults; then |
| 17323 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 17324 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 17325 | fi |
| 17326 | |
| 17327 | # Create a temporary directory, and hook for its removal unless debugging. |
| 17328 | $debug || |
| 17329 | { |
| 17330 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 17331 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 17332 | } |
| 17333 | |
| 17334 | # Create a (secure) tmp directory for tmp files. |
| 17335 | : ${TMPDIR=/tmp} |
| 17336 | { |
| 17337 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 17338 | test -n "$tmp" && test -d "$tmp" |
| 17339 | } || |
| 17340 | { |
| 17341 | tmp=$TMPDIR/cs$$-$RANDOM |
| 17342 | (umask 077 && mkdir $tmp) |
| 17343 | } || |
| 17344 | { |
| 17345 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 17346 | { (exit 1); exit 1; } |
| 17347 | } |
| 17348 | |
| 17349 | _ACEOF |
| 17350 | |
| 17351 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17352 | |
| 17353 | # |
| 17354 | # CONFIG_FILES section. |
| 17355 | # |
| 17356 | |
| 17357 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 17358 | # This happens for instance when ./config.status config.h |
| 17359 | if test -n "\$CONFIG_FILES"; then |
| 17360 | # Protect against being on the right side of a sed subst in config.status. |
| 17361 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 17362 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 17363 | s,@SHELL@,$SHELL,;t t |
| 17364 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 17365 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 17366 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 17367 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 17368 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 17369 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 17370 | s,@exec_prefix@,$exec_prefix,;t t |
| 17371 | s,@prefix@,$prefix,;t t |
| 17372 | s,@program_transform_name@,$program_transform_name,;t t |
| 17373 | s,@bindir@,$bindir,;t t |
| 17374 | s,@sbindir@,$sbindir,;t t |
| 17375 | s,@libexecdir@,$libexecdir,;t t |
| 17376 | s,@datadir@,$datadir,;t t |
| 17377 | s,@sysconfdir@,$sysconfdir,;t t |
| 17378 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 17379 | s,@localstatedir@,$localstatedir,;t t |
| 17380 | s,@libdir@,$libdir,;t t |
| 17381 | s,@includedir@,$includedir,;t t |
| 17382 | s,@oldincludedir@,$oldincludedir,;t t |
| 17383 | s,@infodir@,$infodir,;t t |
| 17384 | s,@mandir@,$mandir,;t t |
| 17385 | s,@build_alias@,$build_alias,;t t |
| 17386 | s,@host_alias@,$host_alias,;t t |
| 17387 | s,@target_alias@,$target_alias,;t t |
| 17388 | s,@DEFS@,$DEFS,;t t |
| 17389 | s,@ECHO_C@,$ECHO_C,;t t |
| 17390 | s,@ECHO_N@,$ECHO_N,;t t |
| 17391 | s,@ECHO_T@,$ECHO_T,;t t |
| 17392 | s,@LIBS@,$LIBS,;t t |
| 17393 | s,@VERSION@,$VERSION,;t t |
| 17394 | s,@SOVERSION@,$SOVERSION,;t t |
| 17395 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 17396 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 17397 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 17398 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 17399 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 17400 | s,@MACHDEP@,$MACHDEP,;t t |
| 17401 | s,@SGI_ABI@,$SGI_ABI,;t t |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 17402 | s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17403 | s,@CXX@,$CXX,;t t |
| 17404 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 17405 | s,@EXEEXT@,$EXEEXT,;t t |
| 17406 | s,@CC@,$CC,;t t |
| 17407 | s,@CFLAGS@,$CFLAGS,;t t |
| 17408 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 17409 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 17410 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 17411 | s,@OBJEXT@,$OBJEXT,;t t |
| 17412 | s,@CPP@,$CPP,;t t |
| 17413 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 17414 | s,@LIBRARY@,$LIBRARY,;t t |
| 17415 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 17416 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 17417 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 17418 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 17419 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 17420 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 17421 | s,@LINKCC@,$LINKCC,;t t |
| 17422 | s,@RANLIB@,$RANLIB,;t t |
| 17423 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 17424 | s,@AR@,$AR,;t t |
| 17425 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 17426 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 17427 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 17428 | s,@LN@,$LN,;t t |
| 17429 | s,@OPT@,$OPT,;t t |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 17430 | s,@BASECFLAGS@,$BASECFLAGS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17431 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 17432 | s,@SO@,$SO,;t t |
| 17433 | s,@LDSHARED@,$LDSHARED,;t t |
| 17434 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 17435 | s,@CCSHARED@,$CCSHARED,;t t |
| 17436 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 17437 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 17438 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17439 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 17440 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 17441 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 17442 | s,@LDLAST@,$LDLAST,;t t |
| 17443 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 17444 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 17445 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 17446 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
| 17447 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 17448 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 17449 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 17450 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 17451 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 17452 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 17453 | s,@LIBM@,$LIBM,;t t |
| 17454 | s,@LIBC@,$LIBC,;t t |
| 17455 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 17456 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 17457 | s,@SRCDIRS@,$SRCDIRS,;t t |
| 17458 | CEOF |
| 17459 | |
| 17460 | _ACEOF |
| 17461 | |
| 17462 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17463 | # Split the substitutions into bite-sized pieces for seds with |
| 17464 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 17465 | ac_max_sed_lines=48 |
| 17466 | ac_sed_frag=1 # Number of current file. |
| 17467 | ac_beg=1 # First line for current file. |
| 17468 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 17469 | ac_more_lines=: |
| 17470 | ac_sed_cmds= |
| 17471 | while $ac_more_lines; do |
| 17472 | if test $ac_beg -gt 1; then |
| 17473 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 17474 | else |
| 17475 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 17476 | fi |
| 17477 | if test ! -s $tmp/subs.frag; then |
| 17478 | ac_more_lines=false |
| 17479 | else |
| 17480 | # The purpose of the label and of the branching condition is to |
| 17481 | # speed up the sed processing (if there are no `@' at all, there |
| 17482 | # is no need to browse any of the substitutions). |
| 17483 | # These are the two extra sed commands mentioned above. |
| 17484 | (echo ':t |
| 17485 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 17486 | if test -z "$ac_sed_cmds"; then |
| 17487 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 17488 | else |
| 17489 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 17490 | fi |
| 17491 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 17492 | ac_beg=$ac_end |
| 17493 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 17494 | fi |
| 17495 | done |
| 17496 | if test -z "$ac_sed_cmds"; then |
| 17497 | ac_sed_cmds=cat |
| 17498 | fi |
| 17499 | fi # test -n "$CONFIG_FILES" |
| 17500 | |
| 17501 | _ACEOF |
| 17502 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17503 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 17504 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 17505 | case $ac_file in |
| 17506 | - | *:- | *:-:* ) # input from stdin |
| 17507 | cat >$tmp/stdin |
| 17508 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17509 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17510 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17511 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17512 | * ) ac_file_in=$ac_file.in ;; |
| 17513 | esac |
| 17514 | |
| 17515 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 17516 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 17517 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17518 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17519 | X"$ac_file" : 'X\(//\)$' \| \ |
| 17520 | X"$ac_file" : 'X\(/\)' \| \ |
| 17521 | . : '\(.\)' 2>/dev/null || |
| 17522 | echo X"$ac_file" | |
| 17523 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17524 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17525 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17526 | /^X\(\/\).*/{ s//\1/; q; } |
| 17527 | s/.*/./; q'` |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17528 | { case "$ac_dir" in |
| 17529 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 17530 | *) as_incr_dir=.;; |
| 17531 | esac |
| 17532 | as_dummy="$ac_dir" |
| 17533 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 17534 | case $as_mkdir_dir in |
| 17535 | # Skip DOS drivespec |
| 17536 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 17537 | *) |
| 17538 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 17539 | test -d "$as_incr_dir" || |
| 17540 | mkdir "$as_incr_dir" || |
| 17541 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 17542 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 17543 | { (exit 1); exit 1; }; } |
| 17544 | ;; |
| 17545 | esac |
| 17546 | done; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17547 | |
| 17548 | ac_builddir=. |
| 17549 | |
| 17550 | if test "$ac_dir" != .; then |
| 17551 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 17552 | # A "../" for each directory in $ac_dir_suffix. |
| 17553 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 17554 | else |
| 17555 | ac_dir_suffix= ac_top_builddir= |
| 17556 | fi |
| 17557 | |
| 17558 | case $srcdir in |
| 17559 | .) # No --srcdir option. We are building in place. |
| 17560 | ac_srcdir=. |
| 17561 | if test -z "$ac_top_builddir"; then |
| 17562 | ac_top_srcdir=. |
| 17563 | else |
| 17564 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 17565 | fi ;; |
| 17566 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 17567 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 17568 | ac_top_srcdir=$srcdir ;; |
| 17569 | *) # Relative path. |
| 17570 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 17571 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 17572 | esac |
| 17573 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 17574 | # absolute. |
| 17575 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17576 | 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] | 17577 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 17578 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 17579 | |
| 17580 | |
| 17581 | case $INSTALL in |
| 17582 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 17583 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 17584 | esac |
| 17585 | |
| 17586 | if test x"$ac_file" != x-; then |
| 17587 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 17588 | echo "$as_me: creating $ac_file" >&6;} |
| 17589 | rm -f "$ac_file" |
| 17590 | fi |
| 17591 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17592 | # use $as_me), people would be surprised to read: |
| 17593 | # /* config.h. Generated by config.status. */ |
| 17594 | if test x"$ac_file" = x-; then |
| 17595 | configure_input= |
| 17596 | else |
| 17597 | configure_input="$ac_file. " |
| 17598 | fi |
| 17599 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 17600 | sed 's,.*/,,'` by configure." |
| 17601 | |
| 17602 | # First look for the input files in the build tree, otherwise in the |
| 17603 | # src tree. |
| 17604 | ac_file_inputs=`IFS=: |
| 17605 | for f in $ac_file_in; do |
| 17606 | case $f in |
| 17607 | -) echo $tmp/stdin ;; |
| 17608 | [\\/$]*) |
| 17609 | # Absolute (can't be DOS-style, as IFS=:) |
| 17610 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17611 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17612 | { (exit 1); exit 1; }; } |
| 17613 | echo $f;; |
| 17614 | *) # Relative |
| 17615 | if test -f "$f"; then |
| 17616 | # Build tree |
| 17617 | echo $f |
| 17618 | elif test -f "$srcdir/$f"; then |
| 17619 | # Source tree |
| 17620 | echo $srcdir/$f |
| 17621 | else |
| 17622 | # /dev/null tree |
| 17623 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17624 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17625 | { (exit 1); exit 1; }; } |
| 17626 | fi;; |
| 17627 | esac |
| 17628 | done` || { (exit 1); exit 1; } |
| 17629 | _ACEOF |
| 17630 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17631 | sed "$ac_vpsub |
| 17632 | $extrasub |
| 17633 | _ACEOF |
| 17634 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17635 | :t |
| 17636 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 17637 | s,@configure_input@,$configure_input,;t t |
| 17638 | s,@srcdir@,$ac_srcdir,;t t |
| 17639 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 17640 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 17641 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 17642 | s,@builddir@,$ac_builddir,;t t |
| 17643 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 17644 | s,@top_builddir@,$ac_top_builddir,;t t |
| 17645 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 17646 | s,@INSTALL@,$ac_INSTALL,;t t |
| 17647 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 17648 | rm -f $tmp/stdin |
| 17649 | if test x"$ac_file" != x-; then |
| 17650 | mv $tmp/out $ac_file |
| 17651 | else |
| 17652 | cat $tmp/out |
| 17653 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17654 | fi |
| 17655 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17656 | done |
| 17657 | _ACEOF |
| 17658 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17659 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17660 | # |
| 17661 | # CONFIG_HEADER section. |
| 17662 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17663 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17664 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 17665 | # 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] | 17666 | # |
| 17667 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17668 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 17669 | ac_dB='[ ].*$,\1#\2' |
| 17670 | ac_dC=' ' |
| 17671 | ac_dD=',;t' |
| 17672 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 17673 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 17674 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17675 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17676 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17677 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17678 | 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] | 17679 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17680 | case $ac_file in |
| 17681 | - | *:- | *:-:* ) # input from stdin |
| 17682 | cat >$tmp/stdin |
| 17683 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17684 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17685 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17686 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17687 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17688 | esac |
| 17689 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17690 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 17691 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17692 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17693 | # First look for the input files in the build tree, otherwise in the |
| 17694 | # src tree. |
| 17695 | ac_file_inputs=`IFS=: |
| 17696 | for f in $ac_file_in; do |
| 17697 | case $f in |
| 17698 | -) echo $tmp/stdin ;; |
| 17699 | [\\/$]*) |
| 17700 | # Absolute (can't be DOS-style, as IFS=:) |
| 17701 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17702 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17703 | { (exit 1); exit 1; }; } |
| 17704 | echo $f;; |
| 17705 | *) # Relative |
| 17706 | if test -f "$f"; then |
| 17707 | # Build tree |
| 17708 | echo $f |
| 17709 | elif test -f "$srcdir/$f"; then |
| 17710 | # Source tree |
| 17711 | echo $srcdir/$f |
| 17712 | else |
| 17713 | # /dev/null tree |
| 17714 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17715 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17716 | { (exit 1); exit 1; }; } |
| 17717 | fi;; |
| 17718 | esac |
| 17719 | done` || { (exit 1); exit 1; } |
| 17720 | # Remove the trailing spaces. |
| 17721 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17722 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17723 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17724 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17725 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 17726 | # `conftest.undefs', that substitutes the proper values into |
| 17727 | # config.h.in to produce config.h. The first handles `#define' |
| 17728 | # templates, and the second `#undef' templates. |
| 17729 | # And first: Protect against being on the right side of a sed subst in |
| 17730 | # config.status. Protect against being in an unquoted here document |
| 17731 | # in config.status. |
| 17732 | rm -f conftest.defines conftest.undefs |
| 17733 | # Using a here document instead of a string reduces the quoting nightmare. |
| 17734 | # Putting comments in sed scripts is not portable. |
| 17735 | # |
| 17736 | # `end' is used to avoid that the second main sed command (meant for |
| 17737 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 17738 | # See the Autoconf documentation for `clear'. |
| 17739 | cat >confdef2sed.sed <<\_ACEOF |
| 17740 | s/[\\&,]/\\&/g |
| 17741 | s,[\\$`],\\&,g |
| 17742 | t clear |
| 17743 | : clear |
| 17744 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 17745 | t end |
| 17746 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 17747 | : end |
| 17748 | _ACEOF |
| 17749 | # If some macros were called several times there might be several times |
| 17750 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 17751 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 17752 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 17753 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 17754 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17755 | |
| 17756 | # This sed command replaces #undef with comments. This is necessary, for |
| 17757 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 17758 | # 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] | 17759 | cat >>conftest.undefs <<\_ACEOF |
| 17760 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 17761 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17762 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17763 | # Break up conftest.defines because some shells have a limit on the size |
| 17764 | # of here documents, and old seds have small limits too (100 cmds). |
| 17765 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17766 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17767 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 17768 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17769 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17770 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17771 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17772 | # Write a limited-size here document to $tmp/defines.sed. |
| 17773 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 17774 | # Speed up: don't consider the non `#define' lines. |
| 17775 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 17776 | # Work around the forget-to-reset-the-flag bug. |
| 17777 | echo 't clr' >>$CONFIG_STATUS |
| 17778 | echo ': clr' >>$CONFIG_STATUS |
| 17779 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17780 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17781 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 17782 | rm -f $tmp/in |
| 17783 | mv $tmp/out $tmp/in |
| 17784 | ' >>$CONFIG_STATUS |
| 17785 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 17786 | rm -f conftest.defines |
| 17787 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17788 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17789 | rm -f conftest.defines |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17790 | echo ' fi # egrep' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17791 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17792 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17793 | # Break up conftest.undefs because some shells have a limit on the size |
| 17794 | # of here documents, and old seds have small limits too (100 cmds). |
| 17795 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 17796 | rm -f conftest.tail |
| 17797 | while grep . conftest.undefs >/dev/null |
| 17798 | do |
| 17799 | # Write a limited-size here document to $tmp/undefs.sed. |
| 17800 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 17801 | # Speed up: don't consider the non `#undef' |
| 17802 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 17803 | # Work around the forget-to-reset-the-flag bug. |
| 17804 | echo 't clr' >>$CONFIG_STATUS |
| 17805 | echo ': clr' >>$CONFIG_STATUS |
| 17806 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 17807 | echo 'CEOF |
| 17808 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 17809 | rm -f $tmp/in |
| 17810 | mv $tmp/out $tmp/in |
| 17811 | ' >>$CONFIG_STATUS |
| 17812 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 17813 | rm -f conftest.undefs |
| 17814 | mv conftest.tail conftest.undefs |
| 17815 | done |
| 17816 | rm -f conftest.undefs |
| 17817 | |
| 17818 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17819 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17820 | # use $as_me), people would be surprised to read: |
| 17821 | # /* config.h. Generated by config.status. */ |
| 17822 | if test x"$ac_file" = x-; then |
| 17823 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17824 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17825 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17826 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17827 | cat $tmp/in >>$tmp/config.h |
| 17828 | rm -f $tmp/in |
| 17829 | if test x"$ac_file" != x-; then |
| 17830 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 17831 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 17832 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 17833 | else |
| 17834 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 17835 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17836 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17837 | X"$ac_file" : 'X\(//\)$' \| \ |
| 17838 | X"$ac_file" : 'X\(/\)' \| \ |
| 17839 | . : '\(.\)' 2>/dev/null || |
| 17840 | echo X"$ac_file" | |
| 17841 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17842 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17843 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17844 | /^X\(\/\).*/{ s//\1/; q; } |
| 17845 | s/.*/./; q'` |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17846 | { case "$ac_dir" in |
| 17847 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 17848 | *) as_incr_dir=.;; |
| 17849 | esac |
| 17850 | as_dummy="$ac_dir" |
| 17851 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 17852 | case $as_mkdir_dir in |
| 17853 | # Skip DOS drivespec |
| 17854 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 17855 | *) |
| 17856 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 17857 | test -d "$as_incr_dir" || |
| 17858 | mkdir "$as_incr_dir" || |
| 17859 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 17860 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 17861 | { (exit 1); exit 1; }; } |
| 17862 | ;; |
| 17863 | esac |
| 17864 | done; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17865 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17866 | rm -f $ac_file |
| 17867 | mv $tmp/config.h $ac_file |
| 17868 | fi |
| 17869 | else |
| 17870 | cat $tmp/config.h |
| 17871 | rm -f $tmp/config.h |
| 17872 | fi |
| 17873 | done |
| 17874 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17875 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17876 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17877 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17878 | { (exit 0); exit 0; } |
| 17879 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17880 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17881 | ac_clean_files=$ac_clean_files_save |
| 17882 | |
| 17883 | |
| 17884 | # configure is writing to config.log, and then calls config.status. |
| 17885 | # config.status does its own redirection, appending to config.log. |
| 17886 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17887 | # by configure, so config.status won't be able to write to it; its |
| 17888 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17889 | # effectively closing config.log, so it can be properly (re)opened and |
| 17890 | # appended to by config.status. When coming back to configure, we |
| 17891 | # need to make the FD available again. |
| 17892 | if test "$no_create" != yes; then |
| 17893 | ac_cs_success=: |
| 17894 | exec 5>/dev/null |
| 17895 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 17896 | exec 5>>config.log |
| 17897 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17898 | # would make configure fail if this is the last instruction. |
| 17899 | $ac_cs_success || { (exit 1); exit 1; } |
| 17900 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17901 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17902 | |
| 17903 | echo "creating Setup" |
| 17904 | if test ! -f Modules/Setup |
| 17905 | then |
| 17906 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 17907 | fi |
| 17908 | |
| 17909 | echo "creating Setup.local" |
| 17910 | if test ! -f Modules/Setup.local |
| 17911 | then |
| 17912 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 17913 | fi |
| 17914 | |
| 17915 | echo "creating Makefile" |
| 17916 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 17917 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 17918 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 17919 | mv config.c Modules |