Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 1.406 . |
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` |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +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 | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1255 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1256 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1257 | # them. |
| 1258 | |
| 1259 | cat >>confdefs.h <<\_ACEOF |
| 1260 | #define _NETBSD_SOURCE 1 |
| 1261 | _ACEOF |
| 1262 | |
| 1263 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1264 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1265 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1266 | # Arguments passed to configure. |
| 1267 | |
| 1268 | CONFIG_ARGS="$ac_configure_args" |
| 1269 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1270 | # Check whether --enable-framework or --disable-framework was given. |
| 1271 | if test "${enable_framework+set}" = set; then |
| 1272 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1273 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1274 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1275 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1276 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1277 | esac |
| 1278 | case $enableval in |
| 1279 | no) |
| 1280 | PYTHONFRAMEWORK= |
| 1281 | PYTHONFRAMEWORKDIR=no-framework |
| 1282 | PYTHONFRAMEWORKPREFIX= |
| 1283 | PYTHONFRAMEWORKINSTALLDIR= |
| 1284 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1285 | ;; |
| 1286 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1287 | PYTHONFRAMEWORK=Python |
| 1288 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1289 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1290 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1291 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1292 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1293 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1294 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1295 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1296 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1297 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1298 | PYTHONFRAMEWORKPREFIX= |
| 1299 | PYTHONFRAMEWORKINSTALLDIR= |
| 1300 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1301 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1302 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1303 | |
| 1304 | |
| 1305 | |
| 1306 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1307 | |
| 1308 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1309 | ## AC_HELP_STRING(--with-dyld, |
| 1310 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1311 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1312 | # Set name for machine-dependent library files |
| 1313 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1314 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1315 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1316 | if test -z "$MACHDEP" |
| 1317 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1318 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1319 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1320 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1321 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1322 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1323 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1324 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1325 | ac_md_system=`echo $ac_sys_system | |
| 1326 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1327 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1328 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1329 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1330 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1331 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1332 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1333 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1334 | atheos*) MACHDEP="atheos";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1335 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1336 | esac |
| 1337 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1338 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1339 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 1340 | # disable features if it is defined, without any means to access these |
| 1341 | # features as extensions. For these systems, we skip the definition of |
| 1342 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 1343 | # some feature, make sure there is no alternative way to access this |
| 1344 | # feature. Also, when using wildcards, make sure you have verified the |
| 1345 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 1346 | # wildcard, and that the wildcard does not include future systems |
| 1347 | # (which may remove their limitations). |
| 1348 | case $ac_sys_system/$ac_sys_release in |
| 1349 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 1350 | # even though select is a POSIX function. Reported by J. Ribbens. |
| 1351 | OpenBSD/2.* | OpenBSD/3.[012]) |
| 1352 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 1353 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 1354 | # of union __?sigval. Reported by Stuart Bishop. |
| 1355 | SunOS/5.6) |
| 1356 | define_xopen_source=no;; |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 1357 | # On UnixWare 7, u_short is never defined with _XOPEN_SOURCE, |
| 1358 | # but used in struct sockaddr.sa_family. Reported by Tim Rice. |
| 1359 | OpenUNIX/8.0| UnixWare/7.1.[13]) |
| 1360 | define_xopen_source=no;; |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1361 | esac |
| 1362 | |
| 1363 | if test $define_xopen_source = yes |
| 1364 | then |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1365 | |
| 1366 | cat >>confdefs.h <<\_ACEOF |
| 1367 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1368 | _ACEOF |
| 1369 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1370 | |
| 1371 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 1372 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 1373 | # several APIs are not declared. Since this is also needed in some |
| 1374 | # cases for HP-UX, we define it globally. |
| 1375 | |
| 1376 | |
| 1377 | cat >>confdefs.h <<\_ACEOF |
| 1378 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 1379 | _ACEOF |
| 1380 | |
| 1381 | |
| 1382 | cat >>confdefs.h <<\_ACEOF |
| 1383 | #define _POSIX_C_SOURCE 200112L |
| 1384 | _ACEOF |
| 1385 | |
| 1386 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1387 | fi |
| 1388 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1389 | # |
| 1390 | # SGI compilers allow the specification of the both the ABI and the |
| 1391 | # ISA on the command line. Depending on the values of these switches, |
| 1392 | # different and often incompatable code will be generated. |
| 1393 | # |
| 1394 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1395 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1396 | # variable is also adjusted. |
| 1397 | # |
| 1398 | |
| 1399 | if test ! -z "$SGI_ABI" |
| 1400 | then |
| 1401 | CC="cc $SGI_ABI" |
| 1402 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1403 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1404 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1405 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1406 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1407 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1408 | # And add extra plat-mac for darwin |
| 1409 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1410 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1411 | echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 1412 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6 |
| 1413 | if test -z "$EXTRAPLATDIR" |
| 1414 | then |
| 1415 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1416 | darwin) |
| 1417 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 1418 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 1419 | ;; |
| 1420 | *) |
| 1421 | EXTRAPLATDIR="" |
| 1422 | EXTRAMACHDEPPATH="" |
| 1423 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1424 | esac |
| 1425 | fi |
| 1426 | echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 1427 | echo "${ECHO_T}$EXTRAPLATDIR" >&6 |
| 1428 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1429 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1430 | |
| 1431 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 1432 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 1433 | # just to get things to compile and link. Users are free to override OPT |
| 1434 | # when running configure or make. The build should not break if they do. |
| 1435 | # BASECFLAGS should generally not be messed with, however. |
| 1436 | |
| 1437 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 1438 | # on that fiddles with OPT and BASECFLAGS? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1439 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1440 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1441 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1442 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1443 | if test "${with_gcc+set}" = set; then |
| 1444 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1445 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1446 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1447 | no) CC=cc |
| 1448 | without_gcc=yes;; |
| 1449 | yes) CC=gcc |
| 1450 | without_gcc=no;; |
| 1451 | *) CC=$withval |
| 1452 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1453 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1454 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1455 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1456 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1457 | AIX*) CC=cc_r |
| 1458 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1459 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1460 | case $BE_HOST_CPU in |
| 1461 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1462 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1463 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1464 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 1465 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1466 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1467 | ;; |
| 1468 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1469 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1470 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1471 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1472 | ;; |
| 1473 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1474 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1475 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1476 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1477 | ;; |
| 1478 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1479 | AR="\$(srcdir)/Modules/ar_beos" |
| 1480 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1481 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1482 | Monterey*) |
| 1483 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1484 | without_gcc=;; |
| 1485 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1486 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1487 | fi; |
| 1488 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1489 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1490 | |
| 1491 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1492 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1493 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1494 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1495 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1496 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1497 | # Check whether --with-cxx or --without-cxx was given. |
| 1498 | if test "${with_cxx+set}" = set; then |
| 1499 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1500 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1501 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1502 | case $withval in |
| 1503 | no) CXX= |
| 1504 | with_cxx=no;; |
| 1505 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1506 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1507 | with_cxx=$withval;; |
| 1508 | esac |
| 1509 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1510 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1511 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1512 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1513 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1514 | fi; |
| 1515 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1516 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1517 | |
| 1518 | if test "$with_cxx" = "yes" |
| 1519 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1520 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1521 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1522 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1523 | fi |
| 1524 | |
| 1525 | |
| 1526 | |
| 1527 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1528 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1529 | then |
| 1530 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1531 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1532 | # 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] | 1533 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1534 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1535 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1536 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1538 | else |
| 1539 | if test -n "$CXX"; then |
| 1540 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1541 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1543 | for as_dir in $PATH |
| 1544 | do |
| 1545 | IFS=$as_save_IFS |
| 1546 | test -z "$as_dir" && as_dir=. |
| 1547 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1548 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1549 | ac_cv_prog_CXX="$ac_prog" |
| 1550 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1551 | break 2 |
| 1552 | fi |
| 1553 | done |
| 1554 | done |
| 1555 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1556 | fi |
| 1557 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1558 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1559 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1560 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1561 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1562 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1563 | echo "$as_me:$LINENO: result: no" >&5 |
| 1564 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1565 | fi |
| 1566 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1567 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1568 | done |
| 1569 | test -n "$CXX" || CXX="notfound" |
| 1570 | |
| 1571 | if test "$CXX" = "notfound" |
| 1572 | then |
| 1573 | CXX= |
| 1574 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1575 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1576 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1577 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1578 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1579 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1580 | cat >conftest.$ac_ext <<_ACEOF |
| 1581 | #line $LINENO "configure" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1582 | #include "confdefs.h" |
| 1583 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1584 | #ifdef F77_DUMMY_MAIN |
| 1585 | # ifdef __cplusplus |
| 1586 | extern "C" |
| 1587 | # endif |
| 1588 | int F77_DUMMY_MAIN() { return 1; } |
| 1589 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1590 | int |
| 1591 | main () |
| 1592 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1593 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1594 | ; |
| 1595 | return 0; |
| 1596 | } |
| 1597 | _ACEOF |
| 1598 | ac_clean_files_save=$ac_clean_files |
| 1599 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1600 | # Try to create an executable without -o first, disregard a.out. |
| 1601 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1602 | # of exeext. |
| 1603 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 1604 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 1605 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1606 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1607 | (eval $ac_link_default) 2>&5 |
| 1608 | ac_status=$? |
| 1609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1610 | (exit $ac_status); }; then |
| 1611 | # Find the output, starting from the most likely. This scheme is |
| 1612 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1613 | # resort. |
| 1614 | |
| 1615 | # Be careful to initialize this variable, since it used to be cached. |
| 1616 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1617 | ac_cv_exeext= |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1618 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 1619 | ls a.out conftest 2>/dev/null; |
| 1620 | ls a.* conftest.* 2>/dev/null`; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1621 | case $ac_file in |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1622 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1623 | a.out ) # We found the default executable, but exeext='' is most |
| 1624 | # certainly right. |
| 1625 | break;; |
| 1626 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1627 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 1628 | export ac_cv_exeext |
| 1629 | break;; |
| 1630 | * ) break;; |
| 1631 | esac |
| 1632 | done |
| 1633 | else |
| 1634 | echo "$as_me: failed program was:" >&5 |
| 1635 | cat conftest.$ac_ext >&5 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1636 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5 |
| 1637 | echo "$as_me: error: C++ compiler cannot create executables" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1638 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1639 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1640 | |
| 1641 | ac_exeext=$ac_cv_exeext |
| 1642 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1643 | echo "${ECHO_T}$ac_file" >&6 |
| 1644 | |
| 1645 | # Check the compiler produces executables we can run. If not, either |
| 1646 | # the compiler is broken, or we cross compile. |
| 1647 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1648 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1649 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1650 | # If not cross compiling, check that we can run a simple program. |
| 1651 | if test "$cross_compiling" != yes; then |
| 1652 | if { ac_try='./$ac_file' |
| 1653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1654 | (eval $ac_try) 2>&5 |
| 1655 | ac_status=$? |
| 1656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1657 | (exit $ac_status); }; }; then |
| 1658 | cross_compiling=no |
| 1659 | else |
| 1660 | if test "$cross_compiling" = maybe; then |
| 1661 | cross_compiling=yes |
| 1662 | else |
| 1663 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
| 1664 | If you meant to cross compile, use \`--host'." >&5 |
| 1665 | echo "$as_me: error: cannot run C++ compiled programs. |
| 1666 | If you meant to cross compile, use \`--host'." >&2;} |
| 1667 | { (exit 1); exit 1; }; } |
| 1668 | fi |
| 1669 | fi |
| 1670 | fi |
| 1671 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1672 | echo "${ECHO_T}yes" >&6 |
| 1673 | |
| 1674 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 1675 | ac_clean_files=$ac_clean_files_save |
| 1676 | # Check the compiler produces executables we can run. If not, either |
| 1677 | # the compiler is broken, or we cross compile. |
| 1678 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1679 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1680 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1681 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1682 | |
| 1683 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1684 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1685 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1686 | (eval $ac_link) 2>&5 |
| 1687 | ac_status=$? |
| 1688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1689 | (exit $ac_status); }; then |
| 1690 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1691 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1692 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1693 | # `rm'. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1694 | 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] | 1695 | case $ac_file in |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1696 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1697 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1698 | export ac_cv_exeext |
| 1699 | break;; |
| 1700 | * ) break;; |
| 1701 | esac |
| 1702 | done |
| 1703 | else |
| 1704 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 1705 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 1706 | { (exit 1); exit 1; }; } |
| 1707 | fi |
| 1708 | |
| 1709 | rm -f conftest$ac_cv_exeext |
| 1710 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1711 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1712 | |
| 1713 | rm -f conftest.$ac_ext |
| 1714 | EXEEXT=$ac_cv_exeext |
| 1715 | ac_exeext=$EXEEXT |
| 1716 | |
| 1717 | ac_ext=c |
| 1718 | ac_cpp='$CPP $CPPFLAGS' |
| 1719 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1720 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1721 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1722 | |
| 1723 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1724 | |
| 1725 | fi |
| 1726 | fi |
| 1727 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1728 | # If the user switches compilers, we can't believe the cache |
| 1729 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1730 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1731 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1732 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1733 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1734 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1735 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1736 | fi |
| 1737 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1738 | ac_ext=c |
| 1739 | ac_cpp='$CPP $CPPFLAGS' |
| 1740 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1741 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1742 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1743 | if test -n "$ac_tool_prefix"; then |
| 1744 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1745 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1746 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1747 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1748 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1750 | else |
| 1751 | if test -n "$CC"; then |
| 1752 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1753 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1755 | for as_dir in $PATH |
| 1756 | do |
| 1757 | IFS=$as_save_IFS |
| 1758 | test -z "$as_dir" && as_dir=. |
| 1759 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1760 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1761 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1762 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1763 | break 2 |
| 1764 | fi |
| 1765 | done |
| 1766 | done |
| 1767 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1768 | fi |
| 1769 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1770 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1771 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1772 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1773 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1774 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1775 | echo "$as_me:$LINENO: result: no" >&5 |
| 1776 | echo "${ECHO_T}no" >&6 |
| 1777 | fi |
| 1778 | |
| 1779 | fi |
| 1780 | if test -z "$ac_cv_prog_CC"; then |
| 1781 | ac_ct_CC=$CC |
| 1782 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1783 | set dummy gcc; ac_word=$2 |
| 1784 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1785 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1786 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1788 | else |
| 1789 | if test -n "$ac_ct_CC"; then |
| 1790 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1791 | else |
| 1792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1793 | for as_dir in $PATH |
| 1794 | do |
| 1795 | IFS=$as_save_IFS |
| 1796 | test -z "$as_dir" && as_dir=. |
| 1797 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1798 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1799 | ac_cv_prog_ac_ct_CC="gcc" |
| 1800 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1801 | break 2 |
| 1802 | fi |
| 1803 | done |
| 1804 | done |
| 1805 | |
| 1806 | fi |
| 1807 | fi |
| 1808 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1809 | if test -n "$ac_ct_CC"; then |
| 1810 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1811 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1812 | else |
| 1813 | echo "$as_me:$LINENO: result: no" >&5 |
| 1814 | echo "${ECHO_T}no" >&6 |
| 1815 | fi |
| 1816 | |
| 1817 | CC=$ac_ct_CC |
| 1818 | else |
| 1819 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1820 | fi |
| 1821 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1822 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1823 | if test -n "$ac_tool_prefix"; then |
| 1824 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1825 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1826 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1827 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1828 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1830 | else |
| 1831 | if test -n "$CC"; then |
| 1832 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1833 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1835 | for as_dir in $PATH |
| 1836 | do |
| 1837 | IFS=$as_save_IFS |
| 1838 | test -z "$as_dir" && as_dir=. |
| 1839 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1840 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1841 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1842 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1843 | break 2 |
| 1844 | fi |
| 1845 | done |
| 1846 | done |
| 1847 | |
| 1848 | fi |
| 1849 | fi |
| 1850 | CC=$ac_cv_prog_CC |
| 1851 | if test -n "$CC"; then |
| 1852 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1853 | echo "${ECHO_T}$CC" >&6 |
| 1854 | else |
| 1855 | echo "$as_me:$LINENO: result: no" >&5 |
| 1856 | echo "${ECHO_T}no" >&6 |
| 1857 | fi |
| 1858 | |
| 1859 | fi |
| 1860 | if test -z "$ac_cv_prog_CC"; then |
| 1861 | ac_ct_CC=$CC |
| 1862 | # Extract the first word of "cc", so it can be a program name with args. |
| 1863 | set dummy cc; ac_word=$2 |
| 1864 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1865 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1866 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1868 | else |
| 1869 | if test -n "$ac_ct_CC"; then |
| 1870 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1871 | else |
| 1872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1873 | for as_dir in $PATH |
| 1874 | do |
| 1875 | IFS=$as_save_IFS |
| 1876 | test -z "$as_dir" && as_dir=. |
| 1877 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1878 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1879 | ac_cv_prog_ac_ct_CC="cc" |
| 1880 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1881 | break 2 |
| 1882 | fi |
| 1883 | done |
| 1884 | done |
| 1885 | |
| 1886 | fi |
| 1887 | fi |
| 1888 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1889 | if test -n "$ac_ct_CC"; then |
| 1890 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1891 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1892 | else |
| 1893 | echo "$as_me:$LINENO: result: no" >&5 |
| 1894 | echo "${ECHO_T}no" >&6 |
| 1895 | fi |
| 1896 | |
| 1897 | CC=$ac_ct_CC |
| 1898 | else |
| 1899 | CC="$ac_cv_prog_CC" |
| 1900 | fi |
| 1901 | |
| 1902 | fi |
| 1903 | if test -z "$CC"; then |
| 1904 | # Extract the first word of "cc", so it can be a program name with args. |
| 1905 | set dummy cc; ac_word=$2 |
| 1906 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1907 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1908 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1910 | else |
| 1911 | if test -n "$CC"; then |
| 1912 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1913 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1914 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1916 | for as_dir in $PATH |
| 1917 | do |
| 1918 | IFS=$as_save_IFS |
| 1919 | test -z "$as_dir" && as_dir=. |
| 1920 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1921 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1922 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1923 | ac_prog_rejected=yes |
| 1924 | continue |
| 1925 | fi |
| 1926 | ac_cv_prog_CC="cc" |
| 1927 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1928 | break 2 |
| 1929 | fi |
| 1930 | done |
| 1931 | done |
| 1932 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1933 | if test $ac_prog_rejected = yes; then |
| 1934 | # We found a bogon in the path, so make sure we never use it. |
| 1935 | set dummy $ac_cv_prog_CC |
| 1936 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1937 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1938 | # We chose a different compiler from the bogus one. |
| 1939 | # However, it has the same basename, so the bogon will be chosen |
| 1940 | # first if we set CC to just the basename; use the full file name. |
| 1941 | shift |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1942 | set dummy "$as_dir/$ac_word" ${1+"$@"} |
| 1943 | shift |
| 1944 | ac_cv_prog_CC="$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1945 | fi |
| 1946 | fi |
| 1947 | fi |
| 1948 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1949 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1950 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1951 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1952 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1953 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1954 | echo "$as_me:$LINENO: result: no" >&5 |
| 1955 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1956 | fi |
| 1957 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1958 | fi |
| 1959 | if test -z "$CC"; then |
| 1960 | if test -n "$ac_tool_prefix"; then |
| 1961 | for ac_prog in cl |
| 1962 | do |
| 1963 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1964 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1965 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1966 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1967 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1969 | else |
| 1970 | if test -n "$CC"; then |
| 1971 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1972 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1974 | for as_dir in $PATH |
| 1975 | do |
| 1976 | IFS=$as_save_IFS |
| 1977 | test -z "$as_dir" && as_dir=. |
| 1978 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1979 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1980 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1981 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1982 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1983 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1984 | done |
| 1985 | done |
| 1986 | |
| 1987 | fi |
| 1988 | fi |
| 1989 | CC=$ac_cv_prog_CC |
| 1990 | if test -n "$CC"; then |
| 1991 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1992 | echo "${ECHO_T}$CC" >&6 |
| 1993 | else |
| 1994 | echo "$as_me:$LINENO: result: no" >&5 |
| 1995 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1996 | fi |
| 1997 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1998 | test -n "$CC" && break |
| 1999 | done |
| 2000 | fi |
| 2001 | if test -z "$CC"; then |
| 2002 | ac_ct_CC=$CC |
| 2003 | for ac_prog in cl |
| 2004 | do |
| 2005 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2006 | set dummy $ac_prog; ac_word=$2 |
| 2007 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2008 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2009 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2011 | else |
| 2012 | if test -n "$ac_ct_CC"; then |
| 2013 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2014 | else |
| 2015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2016 | for as_dir in $PATH |
| 2017 | do |
| 2018 | IFS=$as_save_IFS |
| 2019 | test -z "$as_dir" && as_dir=. |
| 2020 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2021 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2022 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2023 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2024 | break 2 |
| 2025 | fi |
| 2026 | done |
| 2027 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2028 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2029 | fi |
| 2030 | fi |
| 2031 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2032 | if test -n "$ac_ct_CC"; then |
| 2033 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2034 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2035 | else |
| 2036 | echo "$as_me:$LINENO: result: no" >&5 |
| 2037 | echo "${ECHO_T}no" >&6 |
| 2038 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2039 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2040 | test -n "$ac_ct_CC" && break |
| 2041 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2042 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2043 | CC=$ac_ct_CC |
| 2044 | fi |
| 2045 | |
| 2046 | fi |
| 2047 | |
| 2048 | |
| 2049 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
| 2050 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
| 2051 | { (exit 1); exit 1; }; } |
| 2052 | |
| 2053 | # Provide some information about the compiler. |
| 2054 | echo "$as_me:$LINENO:" \ |
| 2055 | "checking for C compiler version" >&5 |
| 2056 | ac_compiler=`set X $ac_compile; echo $2` |
| 2057 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2058 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2059 | ac_status=$? |
| 2060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2061 | (exit $ac_status); } |
| 2062 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2063 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2064 | ac_status=$? |
| 2065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2066 | (exit $ac_status); } |
| 2067 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2068 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2069 | ac_status=$? |
| 2070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2071 | (exit $ac_status); } |
| 2072 | |
| 2073 | cat >conftest.$ac_ext <<_ACEOF |
| 2074 | #line $LINENO "configure" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2075 | #include "confdefs.h" |
| 2076 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2077 | #ifdef F77_DUMMY_MAIN |
| 2078 | # ifdef __cplusplus |
| 2079 | extern "C" |
| 2080 | # endif |
| 2081 | int F77_DUMMY_MAIN() { return 1; } |
| 2082 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2083 | int |
| 2084 | main () |
| 2085 | { |
| 2086 | |
| 2087 | ; |
| 2088 | return 0; |
| 2089 | } |
| 2090 | _ACEOF |
| 2091 | ac_clean_files_save=$ac_clean_files |
| 2092 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 2093 | # Try to create an executable without -o first, disregard a.out. |
| 2094 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2095 | # of exeext. |
| 2096 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2097 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2098 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2099 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2100 | (eval $ac_link_default) 2>&5 |
| 2101 | ac_status=$? |
| 2102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2103 | (exit $ac_status); }; then |
| 2104 | # Find the output, starting from the most likely. This scheme is |
| 2105 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2106 | # resort. |
| 2107 | |
| 2108 | # Be careful to initialize this variable, since it used to be cached. |
| 2109 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2110 | ac_cv_exeext= |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2111 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 2112 | ls a.out conftest 2>/dev/null; |
| 2113 | ls a.* conftest.* 2>/dev/null`; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2114 | case $ac_file in |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2115 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2116 | a.out ) # We found the default executable, but exeext='' is most |
| 2117 | # certainly right. |
| 2118 | break;; |
| 2119 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2120 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 2121 | export ac_cv_exeext |
| 2122 | break;; |
| 2123 | * ) break;; |
| 2124 | esac |
| 2125 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2126 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2127 | echo "$as_me: failed program was:" >&5 |
| 2128 | cat conftest.$ac_ext >&5 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2129 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
| 2130 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2131 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2132 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2133 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2134 | ac_exeext=$ac_cv_exeext |
| 2135 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2136 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2137 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2138 | # Check the compiler produces executables we can run. If not, either |
| 2139 | # the compiler is broken, or we cross compile. |
| 2140 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2141 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2142 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2143 | # If not cross compiling, check that we can run a simple program. |
| 2144 | if test "$cross_compiling" != yes; then |
| 2145 | if { ac_try='./$ac_file' |
| 2146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2147 | (eval $ac_try) 2>&5 |
| 2148 | ac_status=$? |
| 2149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2150 | (exit $ac_status); }; }; then |
| 2151 | cross_compiling=no |
| 2152 | else |
| 2153 | if test "$cross_compiling" = maybe; then |
| 2154 | cross_compiling=yes |
| 2155 | else |
| 2156 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2157 | If you meant to cross compile, use \`--host'." >&5 |
| 2158 | echo "$as_me: error: cannot run C compiled programs. |
| 2159 | If you meant to cross compile, use \`--host'." >&2;} |
| 2160 | { (exit 1); exit 1; }; } |
| 2161 | fi |
| 2162 | fi |
| 2163 | fi |
| 2164 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2165 | echo "${ECHO_T}yes" >&6 |
| 2166 | |
| 2167 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 2168 | ac_clean_files=$ac_clean_files_save |
| 2169 | # Check the compiler produces executables we can run. If not, either |
| 2170 | # the compiler is broken, or we cross compile. |
| 2171 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2172 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2173 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2174 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2175 | |
| 2176 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2177 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2178 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2179 | (eval $ac_link) 2>&5 |
| 2180 | ac_status=$? |
| 2181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2182 | (exit $ac_status); }; then |
| 2183 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2184 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2185 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2186 | # `rm'. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2187 | 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] | 2188 | case $ac_file in |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2189 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2190 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2191 | export ac_cv_exeext |
| 2192 | break;; |
| 2193 | * ) break;; |
| 2194 | esac |
| 2195 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2196 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2197 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 2198 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 2199 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2200 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2201 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2202 | rm -f conftest$ac_cv_exeext |
| 2203 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2204 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2205 | |
| 2206 | rm -f conftest.$ac_ext |
| 2207 | EXEEXT=$ac_cv_exeext |
| 2208 | ac_exeext=$EXEEXT |
| 2209 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2210 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2211 | if test "${ac_cv_objext+set}" = set; then |
| 2212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2213 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2214 | cat >conftest.$ac_ext <<_ACEOF |
| 2215 | #line $LINENO "configure" |
| 2216 | #include "confdefs.h" |
| 2217 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2218 | #ifdef F77_DUMMY_MAIN |
| 2219 | # ifdef __cplusplus |
| 2220 | extern "C" |
| 2221 | # endif |
| 2222 | int F77_DUMMY_MAIN() { return 1; } |
| 2223 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2224 | int |
| 2225 | main () |
| 2226 | { |
| 2227 | |
| 2228 | ; |
| 2229 | return 0; |
| 2230 | } |
| 2231 | _ACEOF |
| 2232 | rm -f conftest.o conftest.obj |
| 2233 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2234 | (eval $ac_compile) 2>&5 |
| 2235 | ac_status=$? |
| 2236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2237 | (exit $ac_status); }; then |
| 2238 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2239 | case $ac_file in |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2240 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2241 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2242 | break;; |
| 2243 | esac |
| 2244 | done |
| 2245 | else |
| 2246 | echo "$as_me: failed program was:" >&5 |
| 2247 | cat conftest.$ac_ext >&5 |
| 2248 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
| 2249 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
| 2250 | { (exit 1); exit 1; }; } |
| 2251 | fi |
| 2252 | |
| 2253 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2254 | fi |
| 2255 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2256 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2257 | OBJEXT=$ac_cv_objext |
| 2258 | ac_objext=$OBJEXT |
| 2259 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2260 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2261 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2263 | else |
| 2264 | cat >conftest.$ac_ext <<_ACEOF |
| 2265 | #line $LINENO "configure" |
| 2266 | #include "confdefs.h" |
| 2267 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2268 | #ifdef F77_DUMMY_MAIN |
| 2269 | # ifdef __cplusplus |
| 2270 | extern "C" |
| 2271 | # endif |
| 2272 | int F77_DUMMY_MAIN() { return 1; } |
| 2273 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2274 | int |
| 2275 | main () |
| 2276 | { |
| 2277 | #ifndef __GNUC__ |
| 2278 | choke me |
| 2279 | #endif |
| 2280 | |
| 2281 | ; |
| 2282 | return 0; |
| 2283 | } |
| 2284 | _ACEOF |
| 2285 | rm -f conftest.$ac_objext |
| 2286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2287 | (eval $ac_compile) 2>&5 |
| 2288 | ac_status=$? |
| 2289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2290 | (exit $ac_status); } && |
| 2291 | { ac_try='test -s conftest.$ac_objext' |
| 2292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2293 | (eval $ac_try) 2>&5 |
| 2294 | ac_status=$? |
| 2295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2296 | (exit $ac_status); }; }; then |
| 2297 | ac_compiler_gnu=yes |
| 2298 | else |
| 2299 | echo "$as_me: failed program was:" >&5 |
| 2300 | cat conftest.$ac_ext >&5 |
| 2301 | ac_compiler_gnu=no |
| 2302 | fi |
| 2303 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2304 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2305 | |
| 2306 | fi |
| 2307 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2308 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2309 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2310 | ac_test_CFLAGS=${CFLAGS+set} |
| 2311 | ac_save_CFLAGS=$CFLAGS |
| 2312 | CFLAGS="-g" |
| 2313 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2314 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2315 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2317 | else |
| 2318 | cat >conftest.$ac_ext <<_ACEOF |
| 2319 | #line $LINENO "configure" |
| 2320 | #include "confdefs.h" |
| 2321 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2322 | #ifdef F77_DUMMY_MAIN |
| 2323 | # ifdef __cplusplus |
| 2324 | extern "C" |
| 2325 | # endif |
| 2326 | int F77_DUMMY_MAIN() { return 1; } |
| 2327 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2328 | int |
| 2329 | main () |
| 2330 | { |
| 2331 | |
| 2332 | ; |
| 2333 | return 0; |
| 2334 | } |
| 2335 | _ACEOF |
| 2336 | rm -f conftest.$ac_objext |
| 2337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2338 | (eval $ac_compile) 2>&5 |
| 2339 | ac_status=$? |
| 2340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2341 | (exit $ac_status); } && |
| 2342 | { ac_try='test -s conftest.$ac_objext' |
| 2343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2344 | (eval $ac_try) 2>&5 |
| 2345 | ac_status=$? |
| 2346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2347 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2348 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2349 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2350 | echo "$as_me: failed program was:" >&5 |
| 2351 | cat conftest.$ac_ext >&5 |
| 2352 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2353 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2354 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2355 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2356 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2357 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2358 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2359 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2360 | elif test $ac_cv_prog_cc_g = yes; then |
| 2361 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2362 | CFLAGS="-g -O2" |
| 2363 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2364 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2365 | fi |
| 2366 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2367 | if test "$GCC" = yes; then |
| 2368 | CFLAGS="-O2" |
| 2369 | else |
| 2370 | CFLAGS= |
| 2371 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2372 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2373 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2374 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2375 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2376 | # the declaration of exit, since it's the most demanding environment. |
| 2377 | cat >conftest.$ac_ext <<_ACEOF |
| 2378 | #ifndef __cplusplus |
| 2379 | choke me |
| 2380 | #endif |
| 2381 | _ACEOF |
| 2382 | rm -f conftest.$ac_objext |
| 2383 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2384 | (eval $ac_compile) 2>&5 |
| 2385 | ac_status=$? |
| 2386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2387 | (exit $ac_status); } && |
| 2388 | { ac_try='test -s conftest.$ac_objext' |
| 2389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2390 | (eval $ac_try) 2>&5 |
| 2391 | ac_status=$? |
| 2392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2393 | (exit $ac_status); }; }; then |
| 2394 | for ac_declaration in \ |
| 2395 | ''\ |
| 2396 | '#include <stdlib.h>' \ |
| 2397 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2398 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2399 | 'extern "C" void exit (int) throw ();' \ |
| 2400 | 'extern "C" void exit (int);' \ |
| 2401 | 'void exit (int);' |
| 2402 | do |
| 2403 | cat >conftest.$ac_ext <<_ACEOF |
| 2404 | #line $LINENO "configure" |
| 2405 | #include "confdefs.h" |
| 2406 | #include <stdlib.h> |
| 2407 | $ac_declaration |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2408 | #ifdef F77_DUMMY_MAIN |
| 2409 | # ifdef __cplusplus |
| 2410 | extern "C" |
| 2411 | # endif |
| 2412 | int F77_DUMMY_MAIN() { return 1; } |
| 2413 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2414 | int |
| 2415 | main () |
| 2416 | { |
| 2417 | exit (42); |
| 2418 | ; |
| 2419 | return 0; |
| 2420 | } |
| 2421 | _ACEOF |
| 2422 | rm -f conftest.$ac_objext |
| 2423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2424 | (eval $ac_compile) 2>&5 |
| 2425 | ac_status=$? |
| 2426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2427 | (exit $ac_status); } && |
| 2428 | { ac_try='test -s conftest.$ac_objext' |
| 2429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2430 | (eval $ac_try) 2>&5 |
| 2431 | ac_status=$? |
| 2432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2433 | (exit $ac_status); }; }; then |
| 2434 | : |
| 2435 | else |
| 2436 | echo "$as_me: failed program was:" >&5 |
| 2437 | cat conftest.$ac_ext >&5 |
| 2438 | continue |
| 2439 | fi |
| 2440 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2441 | cat >conftest.$ac_ext <<_ACEOF |
| 2442 | #line $LINENO "configure" |
| 2443 | #include "confdefs.h" |
| 2444 | $ac_declaration |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2445 | #ifdef F77_DUMMY_MAIN |
| 2446 | # ifdef __cplusplus |
| 2447 | extern "C" |
| 2448 | # endif |
| 2449 | int F77_DUMMY_MAIN() { return 1; } |
| 2450 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2451 | int |
| 2452 | main () |
| 2453 | { |
| 2454 | exit (42); |
| 2455 | ; |
| 2456 | return 0; |
| 2457 | } |
| 2458 | _ACEOF |
| 2459 | rm -f conftest.$ac_objext |
| 2460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2461 | (eval $ac_compile) 2>&5 |
| 2462 | ac_status=$? |
| 2463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2464 | (exit $ac_status); } && |
| 2465 | { ac_try='test -s conftest.$ac_objext' |
| 2466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2467 | (eval $ac_try) 2>&5 |
| 2468 | ac_status=$? |
| 2469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2470 | (exit $ac_status); }; }; then |
| 2471 | break |
| 2472 | else |
| 2473 | echo "$as_me: failed program was:" >&5 |
| 2474 | cat conftest.$ac_ext >&5 |
| 2475 | fi |
| 2476 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2477 | done |
| 2478 | rm -f conftest* |
| 2479 | if test -n "$ac_declaration"; then |
| 2480 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2481 | echo $ac_declaration >>confdefs.h |
| 2482 | echo '#endif' >>confdefs.h |
| 2483 | fi |
| 2484 | |
| 2485 | else |
| 2486 | echo "$as_me: failed program was:" >&5 |
| 2487 | cat conftest.$ac_ext >&5 |
| 2488 | fi |
| 2489 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2490 | ac_ext=c |
| 2491 | ac_cpp='$CPP $CPPFLAGS' |
| 2492 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2493 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2494 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2495 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2496 | |
| 2497 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2498 | |
| 2499 | ac_ext=c |
| 2500 | ac_cpp='$CPP $CPPFLAGS' |
| 2501 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2502 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2503 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2504 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2505 | 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] | 2506 | # On Suns, sometimes $CPP names a directory. |
| 2507 | if test -n "$CPP" && test -d "$CPP"; then |
| 2508 | CPP= |
| 2509 | fi |
| 2510 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2511 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2513 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2514 | # Double quotes because CPP needs to be expanded |
| 2515 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2516 | do |
| 2517 | ac_preproc_ok=false |
| 2518 | for ac_c_preproc_warn_flag in '' yes |
| 2519 | do |
| 2520 | # Use a header file that comes with gcc, so configuring glibc |
| 2521 | # with a fresh cross-compiler works. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2522 | # 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] | 2523 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2524 | cat >conftest.$ac_ext <<_ACEOF |
| 2525 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2526 | #include "confdefs.h" |
| 2527 | #include <assert.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2528 | Syntax error |
| 2529 | _ACEOF |
| 2530 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2531 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2532 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2533 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2534 | rm -f conftest.er1 |
| 2535 | cat conftest.err >&5 |
| 2536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2537 | (exit $ac_status); } >/dev/null; then |
| 2538 | if test -s conftest.err; then |
| 2539 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2540 | else |
| 2541 | ac_cpp_err= |
| 2542 | fi |
| 2543 | else |
| 2544 | ac_cpp_err=yes |
| 2545 | fi |
| 2546 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2547 | : |
| 2548 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2549 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2550 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2551 | # Broken: fails on valid input. |
| 2552 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2553 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2554 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2555 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2556 | # OK, works on sane cases. Now check whether non-existent headers |
| 2557 | # can be detected and how. |
| 2558 | cat >conftest.$ac_ext <<_ACEOF |
| 2559 | #line $LINENO "configure" |
| 2560 | #include "confdefs.h" |
| 2561 | #include <ac_nonexistent.h> |
| 2562 | _ACEOF |
| 2563 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2564 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2565 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2566 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2567 | rm -f conftest.er1 |
| 2568 | cat conftest.err >&5 |
| 2569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2570 | (exit $ac_status); } >/dev/null; then |
| 2571 | if test -s conftest.err; then |
| 2572 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2573 | else |
| 2574 | ac_cpp_err= |
| 2575 | fi |
| 2576 | else |
| 2577 | ac_cpp_err=yes |
| 2578 | fi |
| 2579 | if test -z "$ac_cpp_err"; then |
| 2580 | # Broken: success on invalid input. |
| 2581 | continue |
| 2582 | else |
| 2583 | echo "$as_me: failed program was:" >&5 |
| 2584 | cat conftest.$ac_ext >&5 |
| 2585 | # Passes both tests. |
| 2586 | ac_preproc_ok=: |
| 2587 | break |
| 2588 | fi |
| 2589 | rm -f conftest.err conftest.$ac_ext |
| 2590 | |
| 2591 | done |
| 2592 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2593 | rm -f conftest.err conftest.$ac_ext |
| 2594 | if $ac_preproc_ok; then |
| 2595 | break |
| 2596 | fi |
| 2597 | |
| 2598 | done |
| 2599 | ac_cv_prog_CPP=$CPP |
| 2600 | |
| 2601 | fi |
| 2602 | CPP=$ac_cv_prog_CPP |
| 2603 | else |
| 2604 | ac_cv_prog_CPP=$CPP |
| 2605 | fi |
| 2606 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2607 | echo "${ECHO_T}$CPP" >&6 |
| 2608 | ac_preproc_ok=false |
| 2609 | for ac_c_preproc_warn_flag in '' yes |
| 2610 | do |
| 2611 | # Use a header file that comes with gcc, so configuring glibc |
| 2612 | # with a fresh cross-compiler works. |
| 2613 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2614 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2615 | cat >conftest.$ac_ext <<_ACEOF |
| 2616 | #line $LINENO "configure" |
| 2617 | #include "confdefs.h" |
| 2618 | #include <assert.h> |
| 2619 | Syntax error |
| 2620 | _ACEOF |
| 2621 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2622 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2623 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2624 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2625 | rm -f conftest.er1 |
| 2626 | cat conftest.err >&5 |
| 2627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2628 | (exit $ac_status); } >/dev/null; then |
| 2629 | if test -s conftest.err; then |
| 2630 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2631 | else |
| 2632 | ac_cpp_err= |
| 2633 | fi |
| 2634 | else |
| 2635 | ac_cpp_err=yes |
| 2636 | fi |
| 2637 | if test -z "$ac_cpp_err"; then |
| 2638 | : |
| 2639 | else |
| 2640 | echo "$as_me: failed program was:" >&5 |
| 2641 | cat conftest.$ac_ext >&5 |
| 2642 | # Broken: fails on valid input. |
| 2643 | continue |
| 2644 | fi |
| 2645 | rm -f conftest.err conftest.$ac_ext |
| 2646 | |
| 2647 | # OK, works on sane cases. Now check whether non-existent headers |
| 2648 | # can be detected and how. |
| 2649 | cat >conftest.$ac_ext <<_ACEOF |
| 2650 | #line $LINENO "configure" |
| 2651 | #include "confdefs.h" |
| 2652 | #include <ac_nonexistent.h> |
| 2653 | _ACEOF |
| 2654 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2655 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2656 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2657 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2658 | rm -f conftest.er1 |
| 2659 | cat conftest.err >&5 |
| 2660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2661 | (exit $ac_status); } >/dev/null; then |
| 2662 | if test -s conftest.err; then |
| 2663 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2664 | else |
| 2665 | ac_cpp_err= |
| 2666 | fi |
| 2667 | else |
| 2668 | ac_cpp_err=yes |
| 2669 | fi |
| 2670 | if test -z "$ac_cpp_err"; then |
| 2671 | # Broken: success on invalid input. |
| 2672 | continue |
| 2673 | else |
| 2674 | echo "$as_me: failed program was:" >&5 |
| 2675 | cat conftest.$ac_ext >&5 |
| 2676 | # Passes both tests. |
| 2677 | ac_preproc_ok=: |
| 2678 | break |
| 2679 | fi |
| 2680 | rm -f conftest.err conftest.$ac_ext |
| 2681 | |
| 2682 | done |
| 2683 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2684 | rm -f conftest.err conftest.$ac_ext |
| 2685 | if $ac_preproc_ok; then |
| 2686 | : |
| 2687 | else |
| 2688 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2689 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2690 | { (exit 1); exit 1; }; } |
| 2691 | fi |
| 2692 | |
| 2693 | ac_ext=c |
| 2694 | ac_cpp='$CPP $CPPFLAGS' |
| 2695 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2696 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2697 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2698 | |
| 2699 | |
| 2700 | |
| 2701 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2702 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2703 | cat >conftest.$ac_ext <<_ACEOF |
| 2704 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2705 | #include "confdefs.h" |
| 2706 | #ifdef _AIX |
| 2707 | yes |
| 2708 | #endif |
| 2709 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2710 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2711 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2712 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2713 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2714 | echo "${ECHO_T}yes" >&6 |
| 2715 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2716 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2717 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2718 | |
| 2719 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2720 | echo "$as_me:$LINENO: result: no" >&5 |
| 2721 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2722 | fi |
| 2723 | rm -f conftest* |
| 2724 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2725 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2726 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 2727 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2728 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2730 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2731 | cat >conftest.$ac_ext <<_ACEOF |
| 2732 | #line $LINENO "configure" |
| 2733 | #include "confdefs.h" |
| 2734 | #include <stdlib.h> |
| 2735 | #include <stdarg.h> |
| 2736 | #include <string.h> |
| 2737 | #include <float.h> |
| 2738 | |
| 2739 | _ACEOF |
| 2740 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2741 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2742 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2743 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2744 | rm -f conftest.er1 |
| 2745 | cat conftest.err >&5 |
| 2746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2747 | (exit $ac_status); } >/dev/null; then |
| 2748 | if test -s conftest.err; then |
| 2749 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2750 | else |
| 2751 | ac_cpp_err= |
| 2752 | fi |
| 2753 | else |
| 2754 | ac_cpp_err=yes |
| 2755 | fi |
| 2756 | if test -z "$ac_cpp_err"; then |
| 2757 | ac_cv_header_stdc=yes |
| 2758 | else |
| 2759 | echo "$as_me: failed program was:" >&5 |
| 2760 | cat conftest.$ac_ext >&5 |
| 2761 | ac_cv_header_stdc=no |
| 2762 | fi |
| 2763 | rm -f conftest.err conftest.$ac_ext |
| 2764 | |
| 2765 | if test $ac_cv_header_stdc = yes; then |
| 2766 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2767 | cat >conftest.$ac_ext <<_ACEOF |
| 2768 | #line $LINENO "configure" |
| 2769 | #include "confdefs.h" |
| 2770 | #include <string.h> |
| 2771 | |
| 2772 | _ACEOF |
| 2773 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2774 | egrep "memchr" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2775 | : |
| 2776 | else |
| 2777 | ac_cv_header_stdc=no |
| 2778 | fi |
| 2779 | rm -f conftest* |
| 2780 | |
| 2781 | fi |
| 2782 | |
| 2783 | if test $ac_cv_header_stdc = yes; then |
| 2784 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2785 | cat >conftest.$ac_ext <<_ACEOF |
| 2786 | #line $LINENO "configure" |
| 2787 | #include "confdefs.h" |
| 2788 | #include <stdlib.h> |
| 2789 | |
| 2790 | _ACEOF |
| 2791 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2792 | egrep "free" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2793 | : |
| 2794 | else |
| 2795 | ac_cv_header_stdc=no |
| 2796 | fi |
| 2797 | rm -f conftest* |
| 2798 | |
| 2799 | fi |
| 2800 | |
| 2801 | if test $ac_cv_header_stdc = yes; then |
| 2802 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2803 | if test "$cross_compiling" = yes; then |
| 2804 | : |
| 2805 | else |
| 2806 | cat >conftest.$ac_ext <<_ACEOF |
| 2807 | #line $LINENO "configure" |
| 2808 | #include "confdefs.h" |
| 2809 | #include <ctype.h> |
| 2810 | #if ((' ' & 0x0FF) == 0x020) |
| 2811 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2812 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2813 | #else |
| 2814 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 2815 | || ('j' <= (c) && (c) <= 'r') \ |
| 2816 | || ('s' <= (c) && (c) <= 'z')) |
| 2817 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2818 | #endif |
| 2819 | |
| 2820 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2821 | int |
| 2822 | main () |
| 2823 | { |
| 2824 | int i; |
| 2825 | for (i = 0; i < 256; i++) |
| 2826 | if (XOR (islower (i), ISLOWER (i)) |
| 2827 | || toupper (i) != TOUPPER (i)) |
| 2828 | exit(2); |
| 2829 | exit (0); |
| 2830 | } |
| 2831 | _ACEOF |
| 2832 | rm -f conftest$ac_exeext |
| 2833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2834 | (eval $ac_link) 2>&5 |
| 2835 | ac_status=$? |
| 2836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2837 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2839 | (eval $ac_try) 2>&5 |
| 2840 | ac_status=$? |
| 2841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2842 | (exit $ac_status); }; }; then |
| 2843 | : |
| 2844 | else |
| 2845 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2846 | echo "$as_me: failed program was:" >&5 |
| 2847 | cat conftest.$ac_ext >&5 |
| 2848 | ( exit $ac_status ) |
| 2849 | ac_cv_header_stdc=no |
| 2850 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2851 | 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] | 2852 | fi |
| 2853 | fi |
| 2854 | fi |
| 2855 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 2856 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 2857 | if test $ac_cv_header_stdc = yes; then |
| 2858 | |
| 2859 | cat >>confdefs.h <<\_ACEOF |
| 2860 | #define STDC_HEADERS 1 |
| 2861 | _ACEOF |
| 2862 | |
| 2863 | fi |
| 2864 | |
| 2865 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 2866 | |
| 2867 | |
| 2868 | |
| 2869 | |
| 2870 | |
| 2871 | |
| 2872 | |
| 2873 | |
| 2874 | |
| 2875 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 2876 | inttypes.h stdint.h unistd.h |
| 2877 | do |
| 2878 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2879 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 2880 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2881 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2883 | else |
| 2884 | cat >conftest.$ac_ext <<_ACEOF |
| 2885 | #line $LINENO "configure" |
| 2886 | #include "confdefs.h" |
| 2887 | $ac_includes_default |
| 2888 | |
| 2889 | #include <$ac_header> |
| 2890 | _ACEOF |
| 2891 | rm -f conftest.$ac_objext |
| 2892 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2893 | (eval $ac_compile) 2>&5 |
| 2894 | ac_status=$? |
| 2895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2896 | (exit $ac_status); } && |
| 2897 | { ac_try='test -s conftest.$ac_objext' |
| 2898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2899 | (eval $ac_try) 2>&5 |
| 2900 | ac_status=$? |
| 2901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2902 | (exit $ac_status); }; }; then |
| 2903 | eval "$as_ac_Header=yes" |
| 2904 | else |
| 2905 | echo "$as_me: failed program was:" >&5 |
| 2906 | cat conftest.$ac_ext >&5 |
| 2907 | eval "$as_ac_Header=no" |
| 2908 | fi |
| 2909 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2910 | fi |
| 2911 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2912 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2913 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 2914 | cat >>confdefs.h <<_ACEOF |
| 2915 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 2916 | _ACEOF |
| 2917 | |
| 2918 | fi |
| 2919 | |
| 2920 | done |
| 2921 | |
| 2922 | |
| 2923 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2924 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2925 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2926 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2928 | fi |
| 2929 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2930 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2931 | else |
| 2932 | # Is the header compilable? |
| 2933 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 2934 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 |
| 2935 | cat >conftest.$ac_ext <<_ACEOF |
| 2936 | #line $LINENO "configure" |
| 2937 | #include "confdefs.h" |
| 2938 | $ac_includes_default |
| 2939 | #include <minix/config.h> |
| 2940 | _ACEOF |
| 2941 | rm -f conftest.$ac_objext |
| 2942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2943 | (eval $ac_compile) 2>&5 |
| 2944 | ac_status=$? |
| 2945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2946 | (exit $ac_status); } && |
| 2947 | { ac_try='test -s conftest.$ac_objext' |
| 2948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2949 | (eval $ac_try) 2>&5 |
| 2950 | ac_status=$? |
| 2951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2952 | (exit $ac_status); }; }; then |
| 2953 | ac_header_compiler=yes |
| 2954 | else |
| 2955 | echo "$as_me: failed program was:" >&5 |
| 2956 | cat conftest.$ac_ext >&5 |
| 2957 | ac_header_compiler=no |
| 2958 | fi |
| 2959 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2960 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 2961 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 2962 | |
| 2963 | # Is the header present? |
| 2964 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 2965 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 |
| 2966 | cat >conftest.$ac_ext <<_ACEOF |
| 2967 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2968 | #include "confdefs.h" |
| 2969 | #include <minix/config.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2970 | _ACEOF |
| 2971 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2972 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2973 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2974 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2975 | rm -f conftest.er1 |
| 2976 | cat conftest.err >&5 |
| 2977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2978 | (exit $ac_status); } >/dev/null; then |
| 2979 | if test -s conftest.err; then |
| 2980 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2981 | else |
| 2982 | ac_cpp_err= |
| 2983 | fi |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2984 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2985 | ac_cpp_err=yes |
| 2986 | fi |
| 2987 | if test -z "$ac_cpp_err"; then |
| 2988 | ac_header_preproc=yes |
| 2989 | else |
| 2990 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2991 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2992 | ac_header_preproc=no |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2993 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2994 | rm -f conftest.err conftest.$ac_ext |
| 2995 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 2996 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 2997 | |
| 2998 | # So? What about this header? |
| 2999 | case $ac_header_compiler:$ac_header_preproc in |
| 3000 | yes:no ) |
| 3001 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3002 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3003 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 3004 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 3005 | no:yes ) |
| 3006 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 3007 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 3008 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 3009 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 3010 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 3011 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 3012 | esac |
| 3013 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 3014 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 3015 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 3016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3017 | else |
| 3018 | ac_cv_header_minix_config_h=$ac_header_preproc |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3019 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3020 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 3021 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 3022 | |
| 3023 | fi |
| 3024 | if test $ac_cv_header_minix_config_h = yes; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3025 | MINIX=yes |
| 3026 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3027 | MINIX= |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3028 | fi |
| 3029 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3030 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3031 | if test "$MINIX" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3032 | |
| 3033 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3034 | #define _POSIX_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3035 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3036 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3037 | |
| 3038 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3039 | #define _POSIX_1_SOURCE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3040 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3041 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3042 | |
| 3043 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3044 | #define _MINIX 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3045 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3046 | |
| 3047 | fi |
| 3048 | |
| 3049 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3050 | # Check for unsupported systems |
| 3051 | case $ac_sys_system/$ac_sys_release in |
| 3052 | SunOS/4*|DYNIX/*|dgux*/*|IRIX/4*|Linux*/1*) |
| 3053 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3054 | echo See README for details. |
| 3055 | exit 1;; |
| 3056 | esac |
| 3057 | |
| 3058 | if test "$MINIX" = yes; then |
| 3059 | echo This system \(MINIX\) is no longer supported. |
| 3060 | echo Read README for details. |
| 3061 | exit 1 |
| 3062 | fi |
| 3063 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3064 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3065 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3066 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3067 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3068 | # Check whether --with-suffix or --without-suffix was given. |
| 3069 | if test "${with_suffix+set}" = set; then |
| 3070 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3071 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3072 | case $withval in |
| 3073 | no) EXEEXT=;; |
| 3074 | yes) EXEEXT=.exe;; |
| 3075 | *) EXEEXT=$withval;; |
| 3076 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3077 | fi; |
| 3078 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3079 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3080 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3081 | # Test whether we're running on a non-case-sensitive system, in which |
| 3082 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3083 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3084 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3085 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3086 | if test ! -d CaseSensitiveTestDir; then |
| 3087 | mkdir CaseSensitiveTestDir |
| 3088 | fi |
| 3089 | |
| 3090 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3091 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3092 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3093 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3094 | BUILDEXEEXT=.exe |
| 3095 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3096 | echo "$as_me:$LINENO: result: no" >&5 |
| 3097 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3098 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3099 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3100 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3101 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3102 | case $MACHDEP in |
| 3103 | bsdos*) |
| 3104 | case $CC in |
| 3105 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3106 | esac;; |
| 3107 | esac |
| 3108 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3109 | case $ac_sys_system in |
| 3110 | hp*|HP*) |
| 3111 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3112 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3113 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3114 | Monterey*) |
| 3115 | case $CC in |
| 3116 | cc) CC="$CC -Wl,-Bexport";; |
| 3117 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3118 | SunOS*) |
| 3119 | # 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] | 3120 | |
| 3121 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3122 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3123 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3124 | |
| 3125 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3126 | esac |
| 3127 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3128 | |
| 3129 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3130 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3131 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3132 | if test -z "$LIBRARY" |
| 3133 | then |
| 3134 | LIBRARY='libpython$(VERSION).a' |
| 3135 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3136 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3137 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3138 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3139 | # 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] | 3140 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3141 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3142 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3143 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3144 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3145 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3146 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3147 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3148 | # RUNSHARED is used to run shared python without installed libraries |
| 3149 | # |
| 3150 | # INSTSONAME is the name of the shared library that will be use to install |
| 3151 | # on the system - some systems like version suffix, others don't |
| 3152 | |
| 3153 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3154 | |
| 3155 | |
| 3156 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3157 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3158 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3159 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3160 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3161 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3162 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3163 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3164 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3165 | # 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] | 3166 | # If CXX is set, and if it is needed to link a main function that was |
| 3167 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3168 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3169 | # 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] | 3170 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3171 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3172 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3173 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3174 | if test -z "$LINKCC" |
| 3175 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3176 | if test -z "$CXX"; then |
| 3177 | LINKCC="\$(PURIFY) \$(CC)" |
| 3178 | else |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3179 | 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] | 3180 | $CXX -c conftest.$ac_ext 2>&5 |
| 3181 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3182 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3183 | then |
| 3184 | LINKCC="\$(PURIFY) \$(CC)" |
| 3185 | else |
| 3186 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3187 | fi |
| 3188 | rm -fr conftest* |
| 3189 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3190 | case $ac_sys_system in |
| 3191 | AIX*) |
Neal Norwitz | 0b27ff9 | 2003-03-31 15:53:49 +0000 | [diff] [blame] | 3192 | exp_extra="\"\"" |
| 3193 | if test $ac_sys_release -ge 5 -o \ |
| 3194 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3195 | exp_extra="." |
| 3196 | fi |
| 3197 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 3198 | dgux*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3199 | LINKCC="LD_RUN_PATH=$libdir $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3200 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3201 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3202 | esac |
| 3203 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3204 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3205 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3206 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3207 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3208 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3209 | # Check whether --enable-shared or --disable-shared was given. |
| 3210 | if test "${enable_shared+set}" = set; then |
| 3211 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3212 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3213 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3214 | |
| 3215 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3216 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3217 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3218 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3219 | enable_shared="yes";; |
| 3220 | *) |
| 3221 | enable_shared="no";; |
| 3222 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3223 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3224 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3225 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3226 | |
| 3227 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3228 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3229 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3230 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3231 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3232 | # library that we build, but we do not want to link against it (we |
| 3233 | # will find it with a -framework option). For this reason there is an |
| 3234 | # extra variable BLDLIBRARY against which Python and the extension |
| 3235 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3236 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3237 | if test "$enable_framework" |
| 3238 | then |
| 3239 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 3240 | LDLIBRARYDIR='$(PYTHONFRAMEWORKDIR)' |
| 3241 | BLDLIBRARY='' |
| 3242 | else |
| 3243 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3244 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3245 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3246 | # Other platforms follow |
| 3247 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3248 | |
| 3249 | cat >>confdefs.h <<\_ACEOF |
| 3250 | #define Py_ENABLE_SHARED 1 |
| 3251 | _ACEOF |
| 3252 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3253 | case $ac_sys_system in |
| 3254 | BeOS*) |
| 3255 | LDLIBRARY='libpython$(VERSION).so' |
| 3256 | ;; |
| 3257 | CYGWIN*) |
| 3258 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3259 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3260 | ;; |
| 3261 | SunOS*) |
| 3262 | LDLIBRARY='libpython$(VERSION).so' |
| 3263 | BLDLIBRARY='-Wl,-rpath,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3264 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3265 | ;; |
Martin v. Löwis | 1bc894b | 2002-07-30 20:19:58 +0000 | [diff] [blame] | 3266 | Linux*|GNU*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3267 | LDLIBRARY='libpython$(VERSION).so' |
| 3268 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3269 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3270 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3271 | ;; |
| 3272 | hp*|HP*) |
| 3273 | LDLIBRARY='libpython$(VERSION).sl' |
| 3274 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3275 | RUNSHARED=SHLIB_PATH=`pwd`:$SHLIB_PATH |
| 3276 | ;; |
| 3277 | OSF*) |
| 3278 | LDLIBRARY='libpython$(VERSION).so' |
| 3279 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 3280 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3281 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3282 | atheos*) |
| 3283 | LDLIBRARY='libpython$(VERSION).so' |
| 3284 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3285 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3286 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3287 | esac |
| 3288 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 3289 | case $MACHDEP in |
| 3290 | dguxR4) |
| 3291 | LDLIBRARY='libpython$(VERSION).so' |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3292 | BASECFLAGS="$BASECFLAGS -pic" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3293 | ;; |
| 3294 | esac |
| 3295 | fi |
| 3296 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3297 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3298 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3299 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3300 | if test -n "$ac_tool_prefix"; then |
| 3301 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3302 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3303 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3304 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3305 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3307 | else |
| 3308 | if test -n "$RANLIB"; then |
| 3309 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3310 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3312 | for as_dir in $PATH |
| 3313 | do |
| 3314 | IFS=$as_save_IFS |
| 3315 | test -z "$as_dir" && as_dir=. |
| 3316 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3317 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3318 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3319 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3320 | break 2 |
| 3321 | fi |
| 3322 | done |
| 3323 | done |
| 3324 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3325 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3326 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3327 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3328 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3329 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3330 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3331 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3332 | echo "$as_me:$LINENO: result: no" >&5 |
| 3333 | echo "${ECHO_T}no" >&6 |
| 3334 | fi |
| 3335 | |
| 3336 | fi |
| 3337 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3338 | ac_ct_RANLIB=$RANLIB |
| 3339 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3340 | set dummy ranlib; ac_word=$2 |
| 3341 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3342 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3343 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3345 | else |
| 3346 | if test -n "$ac_ct_RANLIB"; then |
| 3347 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3348 | else |
| 3349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3350 | for as_dir in $PATH |
| 3351 | do |
| 3352 | IFS=$as_save_IFS |
| 3353 | test -z "$as_dir" && as_dir=. |
| 3354 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3355 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3356 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3357 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3358 | break 2 |
| 3359 | fi |
| 3360 | done |
| 3361 | done |
| 3362 | |
| 3363 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3364 | fi |
| 3365 | fi |
| 3366 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3367 | if test -n "$ac_ct_RANLIB"; then |
| 3368 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3369 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3370 | else |
| 3371 | echo "$as_me:$LINENO: result: no" >&5 |
| 3372 | echo "${ECHO_T}no" >&6 |
| 3373 | fi |
| 3374 | |
| 3375 | RANLIB=$ac_ct_RANLIB |
| 3376 | else |
| 3377 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3378 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3379 | |
| 3380 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3381 | for ac_prog in ar aal |
| 3382 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3383 | # 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] | 3384 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3385 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3386 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3387 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3389 | else |
| 3390 | if test -n "$AR"; then |
| 3391 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3392 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3394 | for as_dir in $PATH |
| 3395 | do |
| 3396 | IFS=$as_save_IFS |
| 3397 | test -z "$as_dir" && as_dir=. |
| 3398 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3399 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3400 | ac_cv_prog_AR="$ac_prog" |
| 3401 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3402 | break 2 |
| 3403 | fi |
| 3404 | done |
| 3405 | done |
| 3406 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3407 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3408 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3409 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3410 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3411 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3412 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3413 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3414 | echo "$as_me:$LINENO: result: no" >&5 |
| 3415 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3416 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3417 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3418 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3419 | done |
| 3420 | test -n "$AR" || AR="ar" |
| 3421 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3422 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3423 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3424 | bsdos*|hp*|HP*) |
| 3425 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3426 | if test -z "$INSTALL" |
| 3427 | then |
| 3428 | INSTALL="${srcdir}/install-sh -c" |
| 3429 | fi |
| 3430 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3431 | ac_aux_dir= |
| 3432 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3433 | if test -f $ac_dir/install-sh; then |
| 3434 | ac_aux_dir=$ac_dir |
| 3435 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3436 | break |
| 3437 | elif test -f $ac_dir/install.sh; then |
| 3438 | ac_aux_dir=$ac_dir |
| 3439 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3440 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3441 | elif test -f $ac_dir/shtool; then |
| 3442 | ac_aux_dir=$ac_dir |
| 3443 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3444 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3445 | fi |
| 3446 | done |
| 3447 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3448 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3449 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3450 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3451 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3452 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3453 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3454 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3455 | |
| 3456 | # Find a good install program. We prefer a C program (faster), |
| 3457 | # so one script is as good as another. But avoid the broken or |
| 3458 | # incompatible versions: |
| 3459 | # SysV /etc/install, /usr/sbin/install |
| 3460 | # SunOS /usr/etc/install |
| 3461 | # IRIX /sbin/install |
| 3462 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3463 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3464 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3465 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3466 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3467 | # ./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] | 3468 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3469 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3470 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3471 | if test "${ac_cv_path_install+set}" = set; then |
| 3472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3473 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3475 | for as_dir in $PATH |
| 3476 | do |
| 3477 | IFS=$as_save_IFS |
| 3478 | test -z "$as_dir" && as_dir=. |
| 3479 | # Account for people who put trailing slashes in PATH elements. |
| 3480 | case $as_dir/ in |
| 3481 | ./ | .// | /cC/* | \ |
| 3482 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3483 | /usr/ucb/* ) ;; |
| 3484 | *) |
| 3485 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3486 | # Don't use installbsd from OSF since it installs stuff as root |
| 3487 | # by default. |
| 3488 | for ac_prog in ginstall scoinst install; do |
| 3489 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3490 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3491 | if test $ac_prog = install && |
| 3492 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3493 | # AIX install. It has an incompatible calling convention. |
| 3494 | : |
| 3495 | elif test $ac_prog = install && |
| 3496 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3497 | # program-specific install script used by HP pwplus--don't use. |
| 3498 | : |
| 3499 | else |
| 3500 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3501 | break 3 |
| 3502 | fi |
| 3503 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3504 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3505 | done |
| 3506 | ;; |
| 3507 | esac |
| 3508 | done |
| 3509 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3510 | |
| 3511 | fi |
| 3512 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3513 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3514 | else |
| 3515 | # As a last resort, use the slow shell script. We don't cache a |
| 3516 | # path for INSTALL within a source directory, because that will |
| 3517 | # break other packages using the cache if that directory is |
| 3518 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3519 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3520 | fi |
| 3521 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3522 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3523 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3524 | |
| 3525 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3526 | # It thinks the first close brace ends the variable substitution. |
| 3527 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3528 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3529 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3530 | |
| 3531 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3532 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3533 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3534 | # Not every filesystem supports hard links |
| 3535 | |
| 3536 | if test -z "$LN" ; then |
| 3537 | case $ac_sys_system in |
| 3538 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3539 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3540 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3541 | *) LN=ln;; |
| 3542 | esac |
| 3543 | fi |
| 3544 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3545 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3546 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3547 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3548 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3549 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3550 | if test "${with_pydebug+set}" = set; then |
| 3551 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3552 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3553 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3554 | then |
| 3555 | |
| 3556 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3557 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3558 | _ACEOF |
| 3559 | |
| 3560 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3561 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3562 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3563 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3564 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3565 | fi |
| 3566 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3567 | echo "$as_me:$LINENO: result: no" >&5 |
| 3568 | echo "${ECHO_T}no" >&6 |
| 3569 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3570 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3571 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 3572 | # merged with this chunk of code? |
| 3573 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3574 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3575 | # ------------------------ |
| 3576 | # (The following bit of code is complicated enough - please keep things |
| 3577 | # indented properly. Just pretend you're editing Python code. ;-) |
| 3578 | |
| 3579 | # There are two parallel sets of case statements below, one that checks to |
| 3580 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 3581 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 3582 | # user set OPT. |
| 3583 | |
| 3584 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 3585 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3586 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3587 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3588 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3589 | case $GCC in |
| 3590 | yes) |
| 3591 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3592 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3593 | if test "$Py_DEBUG" = 'true' ; then |
| 3594 | # Optimization messes up debuggers, so turn it off for |
| 3595 | # debug builds. |
| 3596 | OPT="-g -Wall -Wstrict-prototypes" |
| 3597 | else |
| 3598 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3599 | fi |
| 3600 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3601 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3602 | OPT="-O3 -Wall -Wstrict-prototypes" |
| 3603 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3604 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3605 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3606 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 3607 | ;; |
| 3608 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3609 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3610 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3611 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3612 | OPT="-O" |
| 3613 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3614 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3615 | |
| 3616 | # The current (beta) Monterey compiler dies with optimizations |
| 3617 | # 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] | 3618 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3619 | Monterey*) |
| 3620 | OPT="" |
| 3621 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3622 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3623 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3624 | fi |
| 3625 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3626 | |
| 3627 | # tweak BASECFLAGS based on compiler and platform |
| 3628 | case $GCC in |
| 3629 | yes) |
| 3630 | case $ac_sys_system in |
| 3631 | SCO_SV*) |
| 3632 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 3633 | ;; |
| 3634 | # is there any other compiler on Darwin besides gcc? |
| 3635 | Darwin*) |
| 3636 | BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp" |
| 3637 | ;; |
| 3638 | esac |
| 3639 | ;; |
| 3640 | |
| 3641 | *) |
| 3642 | case $ac_sys_system in |
| 3643 | OpenUNIX*|UnixWare*) |
| 3644 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 3645 | ;; |
| 3646 | SCO_SV*) |
| 3647 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 3648 | ;; |
| 3649 | esac |
| 3650 | ;; |
| 3651 | esac |
| 3652 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3653 | if test "$Py_DEBUG" = 'true'; then |
| 3654 | : |
| 3655 | else |
| 3656 | OPT="-DNDEBUG $OPT" |
| 3657 | fi |
| 3658 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3659 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3660 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3661 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3662 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3663 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3664 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3665 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3666 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3668 | else |
| 3669 | ac_save_cc="$CC" |
| 3670 | CC="$CC -OPT:Olimit=0" |
| 3671 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3672 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3673 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3674 | cat >conftest.$ac_ext <<_ACEOF |
| 3675 | #line $LINENO "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3676 | #include "confdefs.h" |
| 3677 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3678 | _ACEOF |
| 3679 | rm -f conftest$ac_exeext |
| 3680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3681 | (eval $ac_link) 2>&5 |
| 3682 | ac_status=$? |
| 3683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3684 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3686 | (eval $ac_try) 2>&5 |
| 3687 | ac_status=$? |
| 3688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3689 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3690 | ac_cv_opt_olimit_ok=yes |
| 3691 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3692 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3693 | echo "$as_me: failed program was:" >&5 |
| 3694 | cat conftest.$ac_ext >&5 |
| 3695 | ( exit $ac_status ) |
| 3696 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3697 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3698 | 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] | 3699 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3700 | CC="$ac_save_cc" |
| 3701 | fi |
| 3702 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3703 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3704 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3705 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3706 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3707 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 3708 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 3709 | # environment? |
| 3710 | Darwin*) |
| 3711 | ;; |
| 3712 | *) |
| 3713 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 3714 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3715 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3716 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3717 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3718 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3719 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3721 | else |
| 3722 | ac_save_cc="$CC" |
| 3723 | CC="$CC -Olimit 1500" |
| 3724 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3725 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3726 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3727 | cat >conftest.$ac_ext <<_ACEOF |
| 3728 | #line $LINENO "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3729 | #include "confdefs.h" |
| 3730 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3731 | _ACEOF |
| 3732 | rm -f conftest$ac_exeext |
| 3733 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3734 | (eval $ac_link) 2>&5 |
| 3735 | ac_status=$? |
| 3736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3737 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3739 | (eval $ac_try) 2>&5 |
| 3740 | ac_status=$? |
| 3741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3742 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3743 | ac_cv_olimit_ok=yes |
| 3744 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3745 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3746 | echo "$as_me: failed program was:" >&5 |
| 3747 | cat conftest.$ac_ext >&5 |
| 3748 | ( exit $ac_status ) |
| 3749 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 3750 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3751 | 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] | 3752 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3753 | CC="$ac_save_cc" |
| 3754 | fi |
| 3755 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3756 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 3757 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3758 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3759 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3760 | fi |
| 3761 | fi |
| 3762 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3763 | # On some compilers, pthreads are available without further options |
| 3764 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3765 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3766 | # So we have to see first whether pthreads are available without |
| 3767 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3768 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3769 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3770 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3772 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3773 | if test "$cross_compiling" = yes; then |
| 3774 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3775 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3776 | cat >conftest.$ac_ext <<_ACEOF |
| 3777 | #line $LINENO "configure" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3778 | #include "confdefs.h" |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3779 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3780 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3781 | |
| 3782 | void* routine(void* p){return NULL;} |
| 3783 | |
| 3784 | int main(){ |
| 3785 | pthread_t p; |
| 3786 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3787 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3788 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3789 | return 0; |
| 3790 | } |
| 3791 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3792 | _ACEOF |
| 3793 | rm -f conftest$ac_exeext |
| 3794 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3795 | (eval $ac_link) 2>&5 |
| 3796 | ac_status=$? |
| 3797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3798 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3800 | (eval $ac_try) 2>&5 |
| 3801 | ac_status=$? |
| 3802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3803 | (exit $ac_status); }; }; then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3804 | ac_cv_pthread_is_default=yes |
| 3805 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3806 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3807 | echo "$as_me: failed program was:" >&5 |
| 3808 | cat conftest.$ac_ext >&5 |
| 3809 | ( exit $ac_status ) |
| 3810 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3811 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3812 | 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] | 3813 | fi |
| 3814 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3815 | fi |
| 3816 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3817 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 3818 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3819 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3821 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3822 | then |
| 3823 | ac_cv_kpthread=no |
| 3824 | else |
| 3825 | # -Kpthread, if available, provides the right #defines |
| 3826 | # and linker options to make pthread_create available |
| 3827 | # Some compilers won't report that they do not support -Kpthread, |
| 3828 | # so we need to run a program to see whether it really made the |
| 3829 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3830 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 3831 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 3832 | if test "${ac_cv_kpthread+set}" = set; then |
| 3833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3834 | else |
| 3835 | ac_save_cc="$CC" |
| 3836 | CC="$CC -Kpthread" |
| 3837 | if test "$cross_compiling" = yes; then |
| 3838 | ac_cv_kpthread=no |
| 3839 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3840 | cat >conftest.$ac_ext <<_ACEOF |
| 3841 | #line $LINENO "configure" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3842 | #include "confdefs.h" |
| 3843 | |
| 3844 | #include <pthread.h> |
| 3845 | |
| 3846 | void* routine(void* p){return NULL;} |
| 3847 | |
| 3848 | int main(){ |
| 3849 | pthread_t p; |
| 3850 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3851 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3852 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3853 | return 0; |
| 3854 | } |
| 3855 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3856 | _ACEOF |
| 3857 | rm -f conftest$ac_exeext |
| 3858 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3859 | (eval $ac_link) 2>&5 |
| 3860 | ac_status=$? |
| 3861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3862 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3864 | (eval $ac_try) 2>&5 |
| 3865 | ac_status=$? |
| 3866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3867 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3868 | ac_cv_kpthread=yes |
| 3869 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3870 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3871 | echo "$as_me: failed program was:" >&5 |
| 3872 | cat conftest.$ac_ext >&5 |
| 3873 | ( exit $ac_status ) |
| 3874 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3875 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3876 | 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] | 3877 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3878 | CC="$ac_save_cc" |
| 3879 | fi |
| 3880 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3881 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 3882 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3883 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3884 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 3885 | if test $ac_cv_kpthread = no |
| 3886 | then |
| 3887 | # -Kthread, if available, provides the right #defines |
| 3888 | # and linker options to make pthread_create available |
| 3889 | # Some compilers won't report that they do not support -Kthread, |
| 3890 | # so we need to run a program to see whether it really made the |
| 3891 | # function available. |
| 3892 | echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 3893 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6 |
| 3894 | if test "${ac_cv_kthread+set}" = set; then |
| 3895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3896 | else |
| 3897 | ac_save_cc="$CC" |
| 3898 | CC="$CC -Kthread" |
| 3899 | if test "$cross_compiling" = yes; then |
| 3900 | ac_cv_kthread=no |
| 3901 | else |
| 3902 | cat >conftest.$ac_ext <<_ACEOF |
| 3903 | #line $LINENO "configure" |
| 3904 | #include "confdefs.h" |
| 3905 | |
| 3906 | #include <pthread.h> |
| 3907 | |
| 3908 | void* routine(void* p){return NULL;} |
| 3909 | |
| 3910 | int main(){ |
| 3911 | pthread_t p; |
| 3912 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3913 | return 1; |
| 3914 | (void)pthread_detach(p); |
| 3915 | return 0; |
| 3916 | } |
| 3917 | |
| 3918 | _ACEOF |
| 3919 | rm -f conftest$ac_exeext |
| 3920 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3921 | (eval $ac_link) 2>&5 |
| 3922 | ac_status=$? |
| 3923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3924 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3926 | (eval $ac_try) 2>&5 |
| 3927 | ac_status=$? |
| 3928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3929 | (exit $ac_status); }; }; then |
| 3930 | ac_cv_kthread=yes |
| 3931 | else |
| 3932 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3933 | echo "$as_me: failed program was:" >&5 |
| 3934 | cat conftest.$ac_ext >&5 |
| 3935 | ( exit $ac_status ) |
| 3936 | ac_cv_kthread=no |
| 3937 | fi |
| 3938 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3939 | fi |
| 3940 | CC="$ac_save_cc" |
| 3941 | fi |
| 3942 | |
| 3943 | echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 3944 | echo "${ECHO_T}$ac_cv_kthread" >&6 |
| 3945 | fi |
| 3946 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3947 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3948 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3949 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3950 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3951 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3953 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3954 | cat >conftest.$ac_ext <<_ACEOF |
| 3955 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3956 | #include "confdefs.h" |
| 3957 | #include <stdlib.h> |
| 3958 | #include <stdarg.h> |
| 3959 | #include <string.h> |
| 3960 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3961 | |
| 3962 | _ACEOF |
| 3963 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3964 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3965 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3966 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3967 | rm -f conftest.er1 |
| 3968 | cat conftest.err >&5 |
| 3969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3970 | (exit $ac_status); } >/dev/null; then |
| 3971 | if test -s conftest.err; then |
| 3972 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3973 | else |
| 3974 | ac_cpp_err= |
| 3975 | fi |
| 3976 | else |
| 3977 | ac_cpp_err=yes |
| 3978 | fi |
| 3979 | if test -z "$ac_cpp_err"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3980 | ac_cv_header_stdc=yes |
| 3981 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3982 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3983 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3984 | ac_cv_header_stdc=no |
| 3985 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3986 | rm -f conftest.err conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3987 | |
| 3988 | if test $ac_cv_header_stdc = yes; then |
| 3989 | # 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] | 3990 | cat >conftest.$ac_ext <<_ACEOF |
| 3991 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3992 | #include "confdefs.h" |
| 3993 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3994 | |
| 3995 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3996 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3997 | egrep "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3998 | : |
| 3999 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4000 | ac_cv_header_stdc=no |
| 4001 | fi |
| 4002 | rm -f conftest* |
| 4003 | |
| 4004 | fi |
| 4005 | |
| 4006 | if test $ac_cv_header_stdc = yes; then |
| 4007 | # 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] | 4008 | cat >conftest.$ac_ext <<_ACEOF |
| 4009 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4010 | #include "confdefs.h" |
| 4011 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4012 | |
| 4013 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4014 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4015 | egrep "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4016 | : |
| 4017 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4018 | ac_cv_header_stdc=no |
| 4019 | fi |
| 4020 | rm -f conftest* |
| 4021 | |
| 4022 | fi |
| 4023 | |
| 4024 | if test $ac_cv_header_stdc = yes; then |
| 4025 | # /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] | 4026 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4027 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4028 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4029 | cat >conftest.$ac_ext <<_ACEOF |
| 4030 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4031 | #include "confdefs.h" |
| 4032 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4033 | #if ((' ' & 0x0FF) == 0x020) |
| 4034 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4035 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4036 | #else |
| 4037 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 4038 | || ('j' <= (c) && (c) <= 'r') \ |
| 4039 | || ('s' <= (c) && (c) <= 'z')) |
| 4040 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4041 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4042 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4043 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4044 | int |
| 4045 | main () |
| 4046 | { |
| 4047 | int i; |
| 4048 | for (i = 0; i < 256; i++) |
| 4049 | if (XOR (islower (i), ISLOWER (i)) |
| 4050 | || toupper (i) != TOUPPER (i)) |
| 4051 | exit(2); |
| 4052 | exit (0); |
| 4053 | } |
| 4054 | _ACEOF |
| 4055 | rm -f conftest$ac_exeext |
| 4056 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4057 | (eval $ac_link) 2>&5 |
| 4058 | ac_status=$? |
| 4059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4060 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4062 | (eval $ac_try) 2>&5 |
| 4063 | ac_status=$? |
| 4064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4065 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4066 | : |
| 4067 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4068 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4069 | echo "$as_me: failed program was:" >&5 |
| 4070 | cat conftest.$ac_ext >&5 |
| 4071 | ( exit $ac_status ) |
| 4072 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4073 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4074 | 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] | 4075 | fi |
| 4076 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4077 | fi |
| 4078 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4079 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4080 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4081 | |
| 4082 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4083 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4084 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4085 | |
| 4086 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4087 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4088 | |
| 4089 | |
| 4090 | |
| 4091 | |
| 4092 | |
| 4093 | |
| 4094 | |
| 4095 | |
| 4096 | |
| 4097 | |
| 4098 | |
| 4099 | |
| 4100 | |
| 4101 | |
| 4102 | |
| 4103 | |
| 4104 | |
| 4105 | |
| 4106 | |
| 4107 | |
| 4108 | |
| 4109 | |
| 4110 | |
| 4111 | |
| 4112 | |
| 4113 | |
| 4114 | |
| 4115 | |
| 4116 | |
| 4117 | |
| 4118 | |
| 4119 | |
| 4120 | |
| 4121 | |
| 4122 | |
| 4123 | |
| 4124 | |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4125 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4126 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4127 | 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] | 4128 | libintl.h locale.h ncurses.h poll.h pthread.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4129 | signal.h stdarg.h stddef.h stdlib.h stropts.h termios.h thread.h \ |
| 4130 | unistd.h utime.h \ |
Skip Montanaro | 57454e5 | 2002-06-14 20:30:31 +0000 | [diff] [blame] | 4131 | 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] | 4132 | 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] | 4133 | 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] | 4134 | sys/resource.h netpacket/packet.h sysexits.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4135 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4136 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4137 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4138 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4139 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4140 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4142 | fi |
| 4143 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4144 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4145 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4146 | # Is the header compilable? |
| 4147 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4148 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4149 | cat >conftest.$ac_ext <<_ACEOF |
| 4150 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4151 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4152 | $ac_includes_default |
| 4153 | #include <$ac_header> |
| 4154 | _ACEOF |
| 4155 | rm -f conftest.$ac_objext |
| 4156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4157 | (eval $ac_compile) 2>&5 |
| 4158 | ac_status=$? |
| 4159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4160 | (exit $ac_status); } && |
| 4161 | { ac_try='test -s conftest.$ac_objext' |
| 4162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4163 | (eval $ac_try) 2>&5 |
| 4164 | ac_status=$? |
| 4165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4166 | (exit $ac_status); }; }; then |
| 4167 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4168 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4169 | echo "$as_me: failed program was:" >&5 |
| 4170 | cat conftest.$ac_ext >&5 |
| 4171 | ac_header_compiler=no |
| 4172 | fi |
| 4173 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4174 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4175 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4176 | |
| 4177 | # Is the header present? |
| 4178 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4179 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4180 | cat >conftest.$ac_ext <<_ACEOF |
| 4181 | #line $LINENO "configure" |
| 4182 | #include "confdefs.h" |
| 4183 | #include <$ac_header> |
| 4184 | _ACEOF |
| 4185 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4186 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4187 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4188 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4189 | rm -f conftest.er1 |
| 4190 | cat conftest.err >&5 |
| 4191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4192 | (exit $ac_status); } >/dev/null; then |
| 4193 | if test -s conftest.err; then |
| 4194 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4195 | else |
| 4196 | ac_cpp_err= |
| 4197 | fi |
| 4198 | else |
| 4199 | ac_cpp_err=yes |
| 4200 | fi |
| 4201 | if test -z "$ac_cpp_err"; then |
| 4202 | ac_header_preproc=yes |
| 4203 | else |
| 4204 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4205 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4206 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4207 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4208 | rm -f conftest.err conftest.$ac_ext |
| 4209 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4210 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4211 | |
| 4212 | # So? What about this header? |
| 4213 | case $ac_header_compiler:$ac_header_preproc in |
| 4214 | yes:no ) |
| 4215 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4216 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4217 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4218 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 4219 | no:yes ) |
| 4220 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4221 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4222 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4223 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4224 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4225 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 4226 | esac |
| 4227 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4228 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4229 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4231 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4232 | eval "$as_ac_Header=$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4233 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4234 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4235 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4236 | |
| 4237 | fi |
| 4238 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4239 | cat >>confdefs.h <<_ACEOF |
| 4240 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4241 | _ACEOF |
| 4242 | |
| 4243 | fi |
| 4244 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4245 | done |
| 4246 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4247 | |
| 4248 | |
| 4249 | |
| 4250 | |
| 4251 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4252 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4253 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4254 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4255 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4256 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4257 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4259 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4260 | cat >conftest.$ac_ext <<_ACEOF |
| 4261 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4262 | #include "confdefs.h" |
| 4263 | #include <sys/types.h> |
| 4264 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4265 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4266 | #ifdef F77_DUMMY_MAIN |
| 4267 | # ifdef __cplusplus |
| 4268 | extern "C" |
| 4269 | # endif |
| 4270 | int F77_DUMMY_MAIN() { return 1; } |
| 4271 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4272 | int |
| 4273 | main () |
| 4274 | { |
| 4275 | if ((DIR *) 0) |
| 4276 | return 0; |
| 4277 | ; |
| 4278 | return 0; |
| 4279 | } |
| 4280 | _ACEOF |
| 4281 | rm -f conftest.$ac_objext |
| 4282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4283 | (eval $ac_compile) 2>&5 |
| 4284 | ac_status=$? |
| 4285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4286 | (exit $ac_status); } && |
| 4287 | { ac_try='test -s conftest.$ac_objext' |
| 4288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4289 | (eval $ac_try) 2>&5 |
| 4290 | ac_status=$? |
| 4291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4292 | (exit $ac_status); }; }; then |
| 4293 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4294 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4295 | echo "$as_me: failed program was:" >&5 |
| 4296 | cat conftest.$ac_ext >&5 |
| 4297 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4298 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4299 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4300 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4301 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4302 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4303 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4304 | cat >>confdefs.h <<_ACEOF |
| 4305 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4306 | _ACEOF |
| 4307 | |
| 4308 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4309 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4310 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4311 | done |
| 4312 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4313 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4314 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4315 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4316 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4318 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4319 | ac_func_search_save_LIBS=$LIBS |
| 4320 | ac_cv_search_opendir=no |
| 4321 | cat >conftest.$ac_ext <<_ACEOF |
| 4322 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4323 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4324 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4325 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4326 | #ifdef __cplusplus |
| 4327 | extern "C" |
| 4328 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4329 | /* 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] | 4330 | builtin and then its argument prototype would still apply. */ |
| 4331 | char opendir (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4332 | #ifdef F77_DUMMY_MAIN |
| 4333 | # ifdef __cplusplus |
| 4334 | extern "C" |
| 4335 | # endif |
| 4336 | int F77_DUMMY_MAIN() { return 1; } |
| 4337 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4338 | int |
| 4339 | main () |
| 4340 | { |
| 4341 | opendir (); |
| 4342 | ; |
| 4343 | return 0; |
| 4344 | } |
| 4345 | _ACEOF |
| 4346 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4347 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4348 | (eval $ac_link) 2>&5 |
| 4349 | ac_status=$? |
| 4350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4351 | (exit $ac_status); } && |
| 4352 | { ac_try='test -s conftest$ac_exeext' |
| 4353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4354 | (eval $ac_try) 2>&5 |
| 4355 | ac_status=$? |
| 4356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4357 | (exit $ac_status); }; }; then |
| 4358 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4359 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4360 | echo "$as_me: failed program was:" >&5 |
| 4361 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4362 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4363 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4364 | if test "$ac_cv_search_opendir" = no; then |
| 4365 | for ac_lib in dir; do |
| 4366 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4367 | cat >conftest.$ac_ext <<_ACEOF |
| 4368 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4369 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4370 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4371 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4372 | #ifdef __cplusplus |
| 4373 | extern "C" |
| 4374 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4375 | /* 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] | 4376 | builtin and then its argument prototype would still apply. */ |
| 4377 | char opendir (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4378 | #ifdef F77_DUMMY_MAIN |
| 4379 | # ifdef __cplusplus |
| 4380 | extern "C" |
| 4381 | # endif |
| 4382 | int F77_DUMMY_MAIN() { return 1; } |
| 4383 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4384 | int |
| 4385 | main () |
| 4386 | { |
| 4387 | opendir (); |
| 4388 | ; |
| 4389 | return 0; |
| 4390 | } |
| 4391 | _ACEOF |
| 4392 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4394 | (eval $ac_link) 2>&5 |
| 4395 | ac_status=$? |
| 4396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4397 | (exit $ac_status); } && |
| 4398 | { ac_try='test -s conftest$ac_exeext' |
| 4399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4400 | (eval $ac_try) 2>&5 |
| 4401 | ac_status=$? |
| 4402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4403 | (exit $ac_status); }; }; then |
| 4404 | ac_cv_search_opendir="-l$ac_lib" |
| 4405 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4406 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4407 | echo "$as_me: failed program was:" >&5 |
| 4408 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4409 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4410 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4411 | done |
| 4412 | fi |
| 4413 | LIBS=$ac_func_search_save_LIBS |
| 4414 | fi |
| 4415 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4416 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4417 | if test "$ac_cv_search_opendir" != no; then |
| 4418 | 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] | 4419 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4420 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4421 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4422 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4423 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4424 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4425 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4427 | else |
| 4428 | ac_func_search_save_LIBS=$LIBS |
| 4429 | ac_cv_search_opendir=no |
| 4430 | cat >conftest.$ac_ext <<_ACEOF |
| 4431 | #line $LINENO "configure" |
| 4432 | #include "confdefs.h" |
| 4433 | |
| 4434 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4435 | #ifdef __cplusplus |
| 4436 | extern "C" |
| 4437 | #endif |
| 4438 | /* We use char because int might match the return type of a gcc2 |
| 4439 | builtin and then its argument prototype would still apply. */ |
| 4440 | char opendir (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4441 | #ifdef F77_DUMMY_MAIN |
| 4442 | # ifdef __cplusplus |
| 4443 | extern "C" |
| 4444 | # endif |
| 4445 | int F77_DUMMY_MAIN() { return 1; } |
| 4446 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4447 | int |
| 4448 | main () |
| 4449 | { |
| 4450 | opendir (); |
| 4451 | ; |
| 4452 | return 0; |
| 4453 | } |
| 4454 | _ACEOF |
| 4455 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4456 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4457 | (eval $ac_link) 2>&5 |
| 4458 | ac_status=$? |
| 4459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4460 | (exit $ac_status); } && |
| 4461 | { ac_try='test -s conftest$ac_exeext' |
| 4462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4463 | (eval $ac_try) 2>&5 |
| 4464 | ac_status=$? |
| 4465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4466 | (exit $ac_status); }; }; then |
| 4467 | ac_cv_search_opendir="none required" |
| 4468 | else |
| 4469 | echo "$as_me: failed program was:" >&5 |
| 4470 | cat conftest.$ac_ext >&5 |
| 4471 | fi |
| 4472 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4473 | if test "$ac_cv_search_opendir" = no; then |
| 4474 | for ac_lib in x; do |
| 4475 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4476 | cat >conftest.$ac_ext <<_ACEOF |
| 4477 | #line $LINENO "configure" |
| 4478 | #include "confdefs.h" |
| 4479 | |
| 4480 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4481 | #ifdef __cplusplus |
| 4482 | extern "C" |
| 4483 | #endif |
| 4484 | /* We use char because int might match the return type of a gcc2 |
| 4485 | builtin and then its argument prototype would still apply. */ |
| 4486 | char opendir (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4487 | #ifdef F77_DUMMY_MAIN |
| 4488 | # ifdef __cplusplus |
| 4489 | extern "C" |
| 4490 | # endif |
| 4491 | int F77_DUMMY_MAIN() { return 1; } |
| 4492 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4493 | int |
| 4494 | main () |
| 4495 | { |
| 4496 | opendir (); |
| 4497 | ; |
| 4498 | return 0; |
| 4499 | } |
| 4500 | _ACEOF |
| 4501 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4502 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4503 | (eval $ac_link) 2>&5 |
| 4504 | ac_status=$? |
| 4505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4506 | (exit $ac_status); } && |
| 4507 | { ac_try='test -s conftest$ac_exeext' |
| 4508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4509 | (eval $ac_try) 2>&5 |
| 4510 | ac_status=$? |
| 4511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4512 | (exit $ac_status); }; }; then |
| 4513 | ac_cv_search_opendir="-l$ac_lib" |
| 4514 | break |
| 4515 | else |
| 4516 | echo "$as_me: failed program was:" >&5 |
| 4517 | cat conftest.$ac_ext >&5 |
| 4518 | fi |
| 4519 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4520 | done |
| 4521 | fi |
| 4522 | LIBS=$ac_func_search_save_LIBS |
| 4523 | fi |
| 4524 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4525 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4526 | if test "$ac_cv_search_opendir" != no; then |
| 4527 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 4528 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4529 | fi |
| 4530 | |
| 4531 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4532 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4533 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 4534 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 4535 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 4536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4537 | else |
| 4538 | cat >conftest.$ac_ext <<_ACEOF |
| 4539 | #line $LINENO "configure" |
| 4540 | #include "confdefs.h" |
| 4541 | #include <sys/types.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4542 | #ifdef F77_DUMMY_MAIN |
| 4543 | # ifdef __cplusplus |
| 4544 | extern "C" |
| 4545 | # endif |
| 4546 | int F77_DUMMY_MAIN() { return 1; } |
| 4547 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4548 | int |
| 4549 | main () |
| 4550 | { |
| 4551 | return makedev(0, 0); |
| 4552 | ; |
| 4553 | return 0; |
| 4554 | } |
| 4555 | _ACEOF |
| 4556 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4557 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4558 | (eval $ac_link) 2>&5 |
| 4559 | ac_status=$? |
| 4560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4561 | (exit $ac_status); } && |
| 4562 | { ac_try='test -s conftest$ac_exeext' |
| 4563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4564 | (eval $ac_try) 2>&5 |
| 4565 | ac_status=$? |
| 4566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4567 | (exit $ac_status); }; }; then |
| 4568 | ac_cv_header_sys_types_h_makedev=yes |
| 4569 | else |
| 4570 | echo "$as_me: failed program was:" >&5 |
| 4571 | cat conftest.$ac_ext >&5 |
| 4572 | ac_cv_header_sys_types_h_makedev=no |
| 4573 | fi |
| 4574 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4575 | |
| 4576 | fi |
| 4577 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 4578 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 4579 | |
| 4580 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 4581 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4582 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4583 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4584 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 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 | else |
| 4590 | # Is the header compilable? |
| 4591 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 4592 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 4593 | cat >conftest.$ac_ext <<_ACEOF |
| 4594 | #line $LINENO "configure" |
| 4595 | #include "confdefs.h" |
| 4596 | $ac_includes_default |
| 4597 | #include <sys/mkdev.h> |
| 4598 | _ACEOF |
| 4599 | rm -f conftest.$ac_objext |
| 4600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4601 | (eval $ac_compile) 2>&5 |
| 4602 | ac_status=$? |
| 4603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4604 | (exit $ac_status); } && |
| 4605 | { ac_try='test -s conftest.$ac_objext' |
| 4606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4607 | (eval $ac_try) 2>&5 |
| 4608 | ac_status=$? |
| 4609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4610 | (exit $ac_status); }; }; then |
| 4611 | ac_header_compiler=yes |
| 4612 | else |
| 4613 | echo "$as_me: failed program was:" >&5 |
| 4614 | cat conftest.$ac_ext >&5 |
| 4615 | ac_header_compiler=no |
| 4616 | fi |
| 4617 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4618 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4619 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4620 | |
| 4621 | # Is the header present? |
| 4622 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 4623 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 4624 | cat >conftest.$ac_ext <<_ACEOF |
| 4625 | #line $LINENO "configure" |
| 4626 | #include "confdefs.h" |
| 4627 | #include <sys/mkdev.h> |
| 4628 | _ACEOF |
| 4629 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4630 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4631 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4632 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4633 | rm -f conftest.er1 |
| 4634 | cat conftest.err >&5 |
| 4635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4636 | (exit $ac_status); } >/dev/null; then |
| 4637 | if test -s conftest.err; then |
| 4638 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4639 | else |
| 4640 | ac_cpp_err= |
| 4641 | fi |
| 4642 | else |
| 4643 | ac_cpp_err=yes |
| 4644 | fi |
| 4645 | if test -z "$ac_cpp_err"; then |
| 4646 | ac_header_preproc=yes |
| 4647 | else |
| 4648 | echo "$as_me: failed program was:" >&5 |
| 4649 | cat conftest.$ac_ext >&5 |
| 4650 | ac_header_preproc=no |
| 4651 | fi |
| 4652 | rm -f conftest.err conftest.$ac_ext |
| 4653 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4654 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4655 | |
| 4656 | # So? What about this header? |
| 4657 | case $ac_header_compiler:$ac_header_preproc in |
| 4658 | yes:no ) |
| 4659 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4660 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4661 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4662 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4663 | no:yes ) |
| 4664 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 4665 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 4666 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 4667 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 4668 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4669 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4670 | esac |
| 4671 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4672 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4673 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4675 | else |
| 4676 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 4677 | fi |
| 4678 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4679 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4680 | |
| 4681 | fi |
| 4682 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 4683 | |
| 4684 | cat >>confdefs.h <<\_ACEOF |
| 4685 | #define MAJOR_IN_MKDEV 1 |
| 4686 | _ACEOF |
| 4687 | |
| 4688 | fi |
| 4689 | |
| 4690 | |
| 4691 | |
| 4692 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 4693 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4694 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4695 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4696 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 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 | else |
| 4702 | # Is the header compilable? |
| 4703 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 4704 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 4705 | cat >conftest.$ac_ext <<_ACEOF |
| 4706 | #line $LINENO "configure" |
| 4707 | #include "confdefs.h" |
| 4708 | $ac_includes_default |
| 4709 | #include <sys/sysmacros.h> |
| 4710 | _ACEOF |
| 4711 | rm -f conftest.$ac_objext |
| 4712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4713 | (eval $ac_compile) 2>&5 |
| 4714 | ac_status=$? |
| 4715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4716 | (exit $ac_status); } && |
| 4717 | { ac_try='test -s conftest.$ac_objext' |
| 4718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4719 | (eval $ac_try) 2>&5 |
| 4720 | ac_status=$? |
| 4721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4722 | (exit $ac_status); }; }; then |
| 4723 | ac_header_compiler=yes |
| 4724 | else |
| 4725 | echo "$as_me: failed program was:" >&5 |
| 4726 | cat conftest.$ac_ext >&5 |
| 4727 | ac_header_compiler=no |
| 4728 | fi |
| 4729 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4730 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4731 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4732 | |
| 4733 | # Is the header present? |
| 4734 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 4735 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 4736 | cat >conftest.$ac_ext <<_ACEOF |
| 4737 | #line $LINENO "configure" |
| 4738 | #include "confdefs.h" |
| 4739 | #include <sys/sysmacros.h> |
| 4740 | _ACEOF |
| 4741 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4742 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4743 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4744 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4745 | rm -f conftest.er1 |
| 4746 | cat conftest.err >&5 |
| 4747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4748 | (exit $ac_status); } >/dev/null; then |
| 4749 | if test -s conftest.err; then |
| 4750 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4751 | else |
| 4752 | ac_cpp_err= |
| 4753 | fi |
| 4754 | else |
| 4755 | ac_cpp_err=yes |
| 4756 | fi |
| 4757 | if test -z "$ac_cpp_err"; then |
| 4758 | ac_header_preproc=yes |
| 4759 | else |
| 4760 | echo "$as_me: failed program was:" >&5 |
| 4761 | cat conftest.$ac_ext >&5 |
| 4762 | ac_header_preproc=no |
| 4763 | fi |
| 4764 | rm -f conftest.err conftest.$ac_ext |
| 4765 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4766 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4767 | |
| 4768 | # So? What about this header? |
| 4769 | case $ac_header_compiler:$ac_header_preproc in |
| 4770 | yes:no ) |
| 4771 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4772 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4773 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4774 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4775 | no:yes ) |
| 4776 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 4777 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 4778 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 4779 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 4780 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4781 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4782 | esac |
| 4783 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4784 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4785 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4787 | else |
| 4788 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 4789 | fi |
| 4790 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4791 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4792 | |
| 4793 | fi |
| 4794 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 4795 | |
| 4796 | cat >>confdefs.h <<\_ACEOF |
| 4797 | #define MAJOR_IN_SYSMACROS 1 |
| 4798 | _ACEOF |
| 4799 | |
| 4800 | fi |
| 4801 | |
| 4802 | |
| 4803 | fi |
| 4804 | fi |
| 4805 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4806 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4807 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4808 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4809 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 4810 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 4811 | cat >conftest.$ac_ext <<_ACEOF |
| 4812 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4813 | #include "confdefs.h" |
| 4814 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4815 | |
| 4816 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4817 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4818 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4819 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4820 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4821 | |
| 4822 | |
| 4823 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4824 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4825 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4826 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 4827 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4828 | fi |
| 4829 | rm -f conftest* |
| 4830 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4831 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 4832 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4833 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 4834 | # Check whether using makedev requires defining _OSF_SOURCE |
| 4835 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 4836 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 4837 | cat >conftest.$ac_ext <<_ACEOF |
| 4838 | #line $LINENO "configure" |
| 4839 | #include "confdefs.h" |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 4840 | #include <sys/types.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4841 | #ifdef F77_DUMMY_MAIN |
| 4842 | # ifdef __cplusplus |
| 4843 | extern "C" |
| 4844 | # endif |
| 4845 | int F77_DUMMY_MAIN() { return 1; } |
| 4846 | #endif |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 4847 | int |
| 4848 | main () |
| 4849 | { |
| 4850 | makedev(0, 0) |
| 4851 | ; |
| 4852 | return 0; |
| 4853 | } |
| 4854 | _ACEOF |
| 4855 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4856 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4857 | (eval $ac_link) 2>&5 |
| 4858 | ac_status=$? |
| 4859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4860 | (exit $ac_status); } && |
| 4861 | { ac_try='test -s conftest$ac_exeext' |
| 4862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4863 | (eval $ac_try) 2>&5 |
| 4864 | ac_status=$? |
| 4865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4866 | (exit $ac_status); }; }; then |
| 4867 | ac_cv_has_makedev=yes |
| 4868 | else |
| 4869 | echo "$as_me: failed program was:" >&5 |
| 4870 | cat conftest.$ac_ext >&5 |
| 4871 | ac_cv_has_makedev=no |
| 4872 | fi |
| 4873 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4874 | if test "$ac_cv_has_makedev" = "no"; then |
| 4875 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 4876 | cat >conftest.$ac_ext <<_ACEOF |
| 4877 | #line $LINENO "configure" |
| 4878 | #include "confdefs.h" |
| 4879 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 4880 | #define _OSF_SOURCE 1 |
| 4881 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 4882 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4883 | #ifdef F77_DUMMY_MAIN |
| 4884 | # ifdef __cplusplus |
| 4885 | extern "C" |
| 4886 | # endif |
| 4887 | int F77_DUMMY_MAIN() { return 1; } |
| 4888 | #endif |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 4889 | int |
| 4890 | main () |
| 4891 | { |
| 4892 | makedev(0, 0) |
| 4893 | ; |
| 4894 | return 0; |
| 4895 | } |
| 4896 | _ACEOF |
| 4897 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4899 | (eval $ac_link) 2>&5 |
| 4900 | ac_status=$? |
| 4901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4902 | (exit $ac_status); } && |
| 4903 | { ac_try='test -s conftest$ac_exeext' |
| 4904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4905 | (eval $ac_try) 2>&5 |
| 4906 | ac_status=$? |
| 4907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4908 | (exit $ac_status); }; }; then |
| 4909 | ac_cv_has_makedev=yes |
| 4910 | else |
| 4911 | echo "$as_me: failed program was:" >&5 |
| 4912 | cat conftest.$ac_ext >&5 |
| 4913 | ac_cv_has_makedev=no |
| 4914 | fi |
| 4915 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4916 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4917 | |
| 4918 | cat >>confdefs.h <<\_ACEOF |
| 4919 | #define _OSF_SOURCE 1 |
| 4920 | _ACEOF |
| 4921 | |
| 4922 | fi |
| 4923 | fi |
| 4924 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 4925 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 4926 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4927 | |
| 4928 | cat >>confdefs.h <<\_ACEOF |
| 4929 | #define HAVE_MAKEDEV 1 |
| 4930 | _ACEOF |
| 4931 | |
| 4932 | fi |
| 4933 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 4934 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 4935 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 4936 | # defined, but the compiler does not support pragma redefine_extname, |
| 4937 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 4938 | # structures (such as rlimit64) without declaring them. As a |
| 4939 | # work-around, disable LFS on such configurations |
| 4940 | |
| 4941 | use_lfs=yes |
| 4942 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 4943 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 4944 | cat >conftest.$ac_ext <<_ACEOF |
| 4945 | #line $LINENO "configure" |
| 4946 | #include "confdefs.h" |
| 4947 | |
| 4948 | #define _LARGEFILE_SOURCE 1 |
| 4949 | #define _FILE_OFFSET_BITS 64 |
| 4950 | #include <sys/resource.h> |
| 4951 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4952 | #ifdef F77_DUMMY_MAIN |
| 4953 | # ifdef __cplusplus |
| 4954 | extern "C" |
| 4955 | # endif |
| 4956 | int F77_DUMMY_MAIN() { return 1; } |
| 4957 | #endif |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 4958 | int |
| 4959 | main () |
| 4960 | { |
| 4961 | struct rlimit foo; |
| 4962 | ; |
| 4963 | return 0; |
| 4964 | } |
| 4965 | _ACEOF |
| 4966 | rm -f conftest.$ac_objext |
| 4967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4968 | (eval $ac_compile) 2>&5 |
| 4969 | ac_status=$? |
| 4970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4971 | (exit $ac_status); } && |
| 4972 | { ac_try='test -s conftest.$ac_objext' |
| 4973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4974 | (eval $ac_try) 2>&5 |
| 4975 | ac_status=$? |
| 4976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4977 | (exit $ac_status); }; }; then |
| 4978 | sol_lfs_bug=no |
| 4979 | else |
| 4980 | echo "$as_me: failed program was:" >&5 |
| 4981 | cat conftest.$ac_ext >&5 |
| 4982 | sol_lfs_bug=yes |
| 4983 | fi |
| 4984 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4985 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 4986 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 4987 | if test "$sol_lfs_bug" = "yes"; then |
| 4988 | use_lfs=no |
| 4989 | fi |
| 4990 | |
| 4991 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4992 | # Two defines needed to enable largefile support on various platforms |
| 4993 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4994 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4995 | cat >>confdefs.h <<\_ACEOF |
| 4996 | #define _LARGEFILE_SOURCE 1 |
| 4997 | _ACEOF |
| 4998 | |
| 4999 | |
| 5000 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5001 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5002 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5003 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5004 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5005 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 5006 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 5007 | cat >> confdefs.h <<\EOF |
| 5008 | #if defined(SCO_DS) |
| 5009 | #undef _OFF_T |
| 5010 | #endif |
| 5011 | EOF |
| 5012 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5013 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5014 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 5015 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 5016 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 5017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5018 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5019 | cat >conftest.$ac_ext <<_ACEOF |
| 5020 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5021 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5022 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5023 | #ifdef F77_DUMMY_MAIN |
| 5024 | # ifdef __cplusplus |
| 5025 | extern "C" |
| 5026 | # endif |
| 5027 | int F77_DUMMY_MAIN() { return 1; } |
| 5028 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5029 | int |
| 5030 | main () |
| 5031 | { |
| 5032 | if ((mode_t *) 0) |
| 5033 | return 0; |
| 5034 | if (sizeof (mode_t)) |
| 5035 | return 0; |
| 5036 | ; |
| 5037 | return 0; |
| 5038 | } |
| 5039 | _ACEOF |
| 5040 | rm -f conftest.$ac_objext |
| 5041 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5042 | (eval $ac_compile) 2>&5 |
| 5043 | ac_status=$? |
| 5044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5045 | (exit $ac_status); } && |
| 5046 | { ac_try='test -s conftest.$ac_objext' |
| 5047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5048 | (eval $ac_try) 2>&5 |
| 5049 | ac_status=$? |
| 5050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5051 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5052 | ac_cv_type_mode_t=yes |
| 5053 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5054 | echo "$as_me: failed program was:" >&5 |
| 5055 | cat conftest.$ac_ext >&5 |
| 5056 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5057 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5058 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5059 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5060 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 5061 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 5062 | if test $ac_cv_type_mode_t = yes; then |
| 5063 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5064 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5065 | |
| 5066 | cat >>confdefs.h <<_ACEOF |
| 5067 | #define mode_t int |
| 5068 | _ACEOF |
| 5069 | |
| 5070 | fi |
| 5071 | |
| 5072 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5073 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 5074 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5076 | else |
| 5077 | cat >conftest.$ac_ext <<_ACEOF |
| 5078 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5079 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5080 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5081 | #ifdef F77_DUMMY_MAIN |
| 5082 | # ifdef __cplusplus |
| 5083 | extern "C" |
| 5084 | # endif |
| 5085 | int F77_DUMMY_MAIN() { return 1; } |
| 5086 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5087 | int |
| 5088 | main () |
| 5089 | { |
| 5090 | if ((off_t *) 0) |
| 5091 | return 0; |
| 5092 | if (sizeof (off_t)) |
| 5093 | return 0; |
| 5094 | ; |
| 5095 | return 0; |
| 5096 | } |
| 5097 | _ACEOF |
| 5098 | rm -f conftest.$ac_objext |
| 5099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5100 | (eval $ac_compile) 2>&5 |
| 5101 | ac_status=$? |
| 5102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5103 | (exit $ac_status); } && |
| 5104 | { ac_try='test -s conftest.$ac_objext' |
| 5105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5106 | (eval $ac_try) 2>&5 |
| 5107 | ac_status=$? |
| 5108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5109 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5110 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5111 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5112 | echo "$as_me: failed program was:" >&5 |
| 5113 | cat conftest.$ac_ext >&5 |
| 5114 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5115 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5116 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5117 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5118 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5119 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 5120 | if test $ac_cv_type_off_t = yes; then |
| 5121 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5122 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5123 | |
| 5124 | cat >>confdefs.h <<_ACEOF |
| 5125 | #define off_t long |
| 5126 | _ACEOF |
| 5127 | |
| 5128 | fi |
| 5129 | |
| 5130 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 5131 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 5132 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 5133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5134 | else |
| 5135 | cat >conftest.$ac_ext <<_ACEOF |
| 5136 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5137 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5138 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5139 | #ifdef F77_DUMMY_MAIN |
| 5140 | # ifdef __cplusplus |
| 5141 | extern "C" |
| 5142 | # endif |
| 5143 | int F77_DUMMY_MAIN() { return 1; } |
| 5144 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5145 | int |
| 5146 | main () |
| 5147 | { |
| 5148 | if ((pid_t *) 0) |
| 5149 | return 0; |
| 5150 | if (sizeof (pid_t)) |
| 5151 | return 0; |
| 5152 | ; |
| 5153 | return 0; |
| 5154 | } |
| 5155 | _ACEOF |
| 5156 | rm -f conftest.$ac_objext |
| 5157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5158 | (eval $ac_compile) 2>&5 |
| 5159 | ac_status=$? |
| 5160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5161 | (exit $ac_status); } && |
| 5162 | { ac_try='test -s conftest.$ac_objext' |
| 5163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5164 | (eval $ac_try) 2>&5 |
| 5165 | ac_status=$? |
| 5166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5167 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5168 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5169 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5170 | echo "$as_me: failed program was:" >&5 |
| 5171 | cat conftest.$ac_ext >&5 |
| 5172 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5173 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5174 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5175 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5176 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 5177 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 5178 | if test $ac_cv_type_pid_t = yes; then |
| 5179 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5180 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5181 | |
| 5182 | cat >>confdefs.h <<_ACEOF |
| 5183 | #define pid_t int |
| 5184 | _ACEOF |
| 5185 | |
| 5186 | fi |
| 5187 | |
| 5188 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 5189 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 5190 | if test "${ac_cv_type_signal+set}" = set; then |
| 5191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5192 | else |
| 5193 | cat >conftest.$ac_ext <<_ACEOF |
| 5194 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5195 | #include "confdefs.h" |
| 5196 | #include <sys/types.h> |
| 5197 | #include <signal.h> |
| 5198 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5199 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5200 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5201 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5202 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 5203 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5204 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5205 | #endif |
| 5206 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5207 | #ifdef F77_DUMMY_MAIN |
| 5208 | # ifdef __cplusplus |
| 5209 | extern "C" |
| 5210 | # endif |
| 5211 | int F77_DUMMY_MAIN() { return 1; } |
| 5212 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5213 | int |
| 5214 | main () |
| 5215 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5216 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5217 | ; |
| 5218 | return 0; |
| 5219 | } |
| 5220 | _ACEOF |
| 5221 | rm -f conftest.$ac_objext |
| 5222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5223 | (eval $ac_compile) 2>&5 |
| 5224 | ac_status=$? |
| 5225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5226 | (exit $ac_status); } && |
| 5227 | { ac_try='test -s conftest.$ac_objext' |
| 5228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5229 | (eval $ac_try) 2>&5 |
| 5230 | ac_status=$? |
| 5231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5232 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5233 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5234 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5235 | echo "$as_me: failed program was:" >&5 |
| 5236 | cat conftest.$ac_ext >&5 |
| 5237 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5238 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5239 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5240 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5241 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 5242 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5243 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5244 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5245 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5246 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5247 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5248 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5249 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5250 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 5251 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5253 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5254 | cat >conftest.$ac_ext <<_ACEOF |
| 5255 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5256 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5257 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5258 | #ifdef F77_DUMMY_MAIN |
| 5259 | # ifdef __cplusplus |
| 5260 | extern "C" |
| 5261 | # endif |
| 5262 | int F77_DUMMY_MAIN() { return 1; } |
| 5263 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5264 | int |
| 5265 | main () |
| 5266 | { |
| 5267 | if ((size_t *) 0) |
| 5268 | return 0; |
| 5269 | if (sizeof (size_t)) |
| 5270 | return 0; |
| 5271 | ; |
| 5272 | return 0; |
| 5273 | } |
| 5274 | _ACEOF |
| 5275 | rm -f conftest.$ac_objext |
| 5276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5277 | (eval $ac_compile) 2>&5 |
| 5278 | ac_status=$? |
| 5279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5280 | (exit $ac_status); } && |
| 5281 | { ac_try='test -s conftest.$ac_objext' |
| 5282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5283 | (eval $ac_try) 2>&5 |
| 5284 | ac_status=$? |
| 5285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5286 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5287 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5288 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5289 | echo "$as_me: failed program was:" >&5 |
| 5290 | cat conftest.$ac_ext >&5 |
| 5291 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5292 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5293 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5294 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5295 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5296 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 5297 | if test $ac_cv_type_size_t = yes; then |
| 5298 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5299 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5300 | |
| 5301 | cat >>confdefs.h <<_ACEOF |
| 5302 | #define size_t unsigned |
| 5303 | _ACEOF |
| 5304 | |
| 5305 | fi |
| 5306 | |
| 5307 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 5308 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 5309 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 5310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5311 | else |
| 5312 | cat >conftest.$ac_ext <<_ACEOF |
| 5313 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5314 | #include "confdefs.h" |
| 5315 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5316 | |
| 5317 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5318 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5319 | egrep "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5320 | ac_cv_type_uid_t=yes |
| 5321 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5322 | ac_cv_type_uid_t=no |
| 5323 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5324 | rm -f conftest* |
| 5325 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5326 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5327 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 5328 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5329 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5330 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5331 | cat >>confdefs.h <<\_ACEOF |
| 5332 | #define uid_t int |
| 5333 | _ACEOF |
| 5334 | |
| 5335 | |
| 5336 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5337 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5338 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5339 | |
| 5340 | fi |
| 5341 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5342 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5343 | # Sizes of various common basic types |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5344 | echo "$as_me:$LINENO: checking for int" >&5 |
| 5345 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 5346 | if test "${ac_cv_type_int+set}" = set; then |
| 5347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5348 | else |
| 5349 | cat >conftest.$ac_ext <<_ACEOF |
| 5350 | #line $LINENO "configure" |
| 5351 | #include "confdefs.h" |
| 5352 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5353 | #ifdef F77_DUMMY_MAIN |
| 5354 | # ifdef __cplusplus |
| 5355 | extern "C" |
| 5356 | # endif |
| 5357 | int F77_DUMMY_MAIN() { return 1; } |
| 5358 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5359 | int |
| 5360 | main () |
| 5361 | { |
| 5362 | if ((int *) 0) |
| 5363 | return 0; |
| 5364 | if (sizeof (int)) |
| 5365 | return 0; |
| 5366 | ; |
| 5367 | return 0; |
| 5368 | } |
| 5369 | _ACEOF |
| 5370 | rm -f conftest.$ac_objext |
| 5371 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5372 | (eval $ac_compile) 2>&5 |
| 5373 | ac_status=$? |
| 5374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5375 | (exit $ac_status); } && |
| 5376 | { ac_try='test -s conftest.$ac_objext' |
| 5377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5378 | (eval $ac_try) 2>&5 |
| 5379 | ac_status=$? |
| 5380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5381 | (exit $ac_status); }; }; then |
| 5382 | ac_cv_type_int=yes |
| 5383 | else |
| 5384 | echo "$as_me: failed program was:" >&5 |
| 5385 | cat conftest.$ac_ext >&5 |
| 5386 | ac_cv_type_int=no |
| 5387 | fi |
| 5388 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5389 | fi |
| 5390 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 5391 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 5392 | |
| 5393 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 5394 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 5395 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 5396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5397 | else |
| 5398 | if test "$ac_cv_type_int" = yes; then |
| 5399 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5400 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5401 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5402 | # This bug is HP SR number 8606223364. |
| 5403 | if test "$cross_compiling" = yes; then |
| 5404 | # Depending upon the size, compute the lo and hi bounds. |
| 5405 | cat >conftest.$ac_ext <<_ACEOF |
| 5406 | #line $LINENO "configure" |
| 5407 | #include "confdefs.h" |
| 5408 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5409 | #ifdef F77_DUMMY_MAIN |
| 5410 | # ifdef __cplusplus |
| 5411 | extern "C" |
| 5412 | # endif |
| 5413 | int F77_DUMMY_MAIN() { return 1; } |
| 5414 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5415 | int |
| 5416 | main () |
| 5417 | { |
| 5418 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 5419 | test_array [0] = 0 |
| 5420 | |
| 5421 | ; |
| 5422 | return 0; |
| 5423 | } |
| 5424 | _ACEOF |
| 5425 | rm -f conftest.$ac_objext |
| 5426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5427 | (eval $ac_compile) 2>&5 |
| 5428 | ac_status=$? |
| 5429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5430 | (exit $ac_status); } && |
| 5431 | { ac_try='test -s conftest.$ac_objext' |
| 5432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5433 | (eval $ac_try) 2>&5 |
| 5434 | ac_status=$? |
| 5435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5436 | (exit $ac_status); }; }; then |
| 5437 | ac_lo=0 ac_mid=0 |
| 5438 | while :; do |
| 5439 | cat >conftest.$ac_ext <<_ACEOF |
| 5440 | #line $LINENO "configure" |
| 5441 | #include "confdefs.h" |
| 5442 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5443 | #ifdef F77_DUMMY_MAIN |
| 5444 | # ifdef __cplusplus |
| 5445 | extern "C" |
| 5446 | # endif |
| 5447 | int F77_DUMMY_MAIN() { return 1; } |
| 5448 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5449 | int |
| 5450 | main () |
| 5451 | { |
| 5452 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5453 | test_array [0] = 0 |
| 5454 | |
| 5455 | ; |
| 5456 | return 0; |
| 5457 | } |
| 5458 | _ACEOF |
| 5459 | rm -f conftest.$ac_objext |
| 5460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5461 | (eval $ac_compile) 2>&5 |
| 5462 | ac_status=$? |
| 5463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5464 | (exit $ac_status); } && |
| 5465 | { ac_try='test -s conftest.$ac_objext' |
| 5466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5467 | (eval $ac_try) 2>&5 |
| 5468 | ac_status=$? |
| 5469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5470 | (exit $ac_status); }; }; then |
| 5471 | ac_hi=$ac_mid; break |
| 5472 | else |
| 5473 | echo "$as_me: failed program was:" >&5 |
| 5474 | cat conftest.$ac_ext >&5 |
| 5475 | ac_lo=`expr $ac_mid + 1` |
| 5476 | if test $ac_lo -le $ac_mid; then |
| 5477 | ac_lo= ac_hi= |
| 5478 | break |
| 5479 | fi |
| 5480 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5481 | fi |
| 5482 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5483 | done |
| 5484 | else |
| 5485 | echo "$as_me: failed program was:" >&5 |
| 5486 | cat conftest.$ac_ext >&5 |
| 5487 | cat >conftest.$ac_ext <<_ACEOF |
| 5488 | #line $LINENO "configure" |
| 5489 | #include "confdefs.h" |
| 5490 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5491 | #ifdef F77_DUMMY_MAIN |
| 5492 | # ifdef __cplusplus |
| 5493 | extern "C" |
| 5494 | # endif |
| 5495 | int F77_DUMMY_MAIN() { return 1; } |
| 5496 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5497 | int |
| 5498 | main () |
| 5499 | { |
| 5500 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 5501 | test_array [0] = 0 |
| 5502 | |
| 5503 | ; |
| 5504 | return 0; |
| 5505 | } |
| 5506 | _ACEOF |
| 5507 | rm -f conftest.$ac_objext |
| 5508 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5509 | (eval $ac_compile) 2>&5 |
| 5510 | ac_status=$? |
| 5511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5512 | (exit $ac_status); } && |
| 5513 | { ac_try='test -s conftest.$ac_objext' |
| 5514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5515 | (eval $ac_try) 2>&5 |
| 5516 | ac_status=$? |
| 5517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5518 | (exit $ac_status); }; }; then |
| 5519 | ac_hi=-1 ac_mid=-1 |
| 5520 | while :; do |
| 5521 | cat >conftest.$ac_ext <<_ACEOF |
| 5522 | #line $LINENO "configure" |
| 5523 | #include "confdefs.h" |
| 5524 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5525 | #ifdef F77_DUMMY_MAIN |
| 5526 | # ifdef __cplusplus |
| 5527 | extern "C" |
| 5528 | # endif |
| 5529 | int F77_DUMMY_MAIN() { return 1; } |
| 5530 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5531 | int |
| 5532 | main () |
| 5533 | { |
| 5534 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 5535 | test_array [0] = 0 |
| 5536 | |
| 5537 | ; |
| 5538 | return 0; |
| 5539 | } |
| 5540 | _ACEOF |
| 5541 | rm -f conftest.$ac_objext |
| 5542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5543 | (eval $ac_compile) 2>&5 |
| 5544 | ac_status=$? |
| 5545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5546 | (exit $ac_status); } && |
| 5547 | { ac_try='test -s conftest.$ac_objext' |
| 5548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5549 | (eval $ac_try) 2>&5 |
| 5550 | ac_status=$? |
| 5551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5552 | (exit $ac_status); }; }; then |
| 5553 | ac_lo=$ac_mid; break |
| 5554 | else |
| 5555 | echo "$as_me: failed program was:" >&5 |
| 5556 | cat conftest.$ac_ext >&5 |
| 5557 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5558 | if test $ac_mid -le $ac_hi; then |
| 5559 | ac_lo= ac_hi= |
| 5560 | break |
| 5561 | fi |
| 5562 | ac_mid=`expr 2 '*' $ac_mid` |
| 5563 | fi |
| 5564 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5565 | done |
| 5566 | else |
| 5567 | echo "$as_me: failed program was:" >&5 |
| 5568 | cat conftest.$ac_ext >&5 |
| 5569 | ac_lo= ac_hi= |
| 5570 | fi |
| 5571 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5572 | fi |
| 5573 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5574 | # Binary search between lo and hi bounds. |
| 5575 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5576 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5577 | cat >conftest.$ac_ext <<_ACEOF |
| 5578 | #line $LINENO "configure" |
| 5579 | #include "confdefs.h" |
| 5580 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5581 | #ifdef F77_DUMMY_MAIN |
| 5582 | # ifdef __cplusplus |
| 5583 | extern "C" |
| 5584 | # endif |
| 5585 | int F77_DUMMY_MAIN() { return 1; } |
| 5586 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5587 | int |
| 5588 | main () |
| 5589 | { |
| 5590 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5591 | test_array [0] = 0 |
| 5592 | |
| 5593 | ; |
| 5594 | return 0; |
| 5595 | } |
| 5596 | _ACEOF |
| 5597 | rm -f conftest.$ac_objext |
| 5598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5599 | (eval $ac_compile) 2>&5 |
| 5600 | ac_status=$? |
| 5601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5602 | (exit $ac_status); } && |
| 5603 | { ac_try='test -s conftest.$ac_objext' |
| 5604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5605 | (eval $ac_try) 2>&5 |
| 5606 | ac_status=$? |
| 5607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5608 | (exit $ac_status); }; }; then |
| 5609 | ac_hi=$ac_mid |
| 5610 | else |
| 5611 | echo "$as_me: failed program was:" >&5 |
| 5612 | cat conftest.$ac_ext >&5 |
| 5613 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5614 | fi |
| 5615 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5616 | done |
| 5617 | case $ac_lo in |
| 5618 | ?*) ac_cv_sizeof_int=$ac_lo;; |
| 5619 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5620 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5621 | { (exit 1); exit 1; }; } ;; |
| 5622 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5623 | else |
| 5624 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5625 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5626 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5627 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5628 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5629 | cat >conftest.$ac_ext <<_ACEOF |
| 5630 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5631 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5632 | $ac_includes_default |
| 5633 | long longval () { return (long) (sizeof (int)); } |
| 5634 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5635 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5636 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5637 | #ifdef F77_DUMMY_MAIN |
| 5638 | # ifdef __cplusplus |
| 5639 | extern "C" |
| 5640 | # endif |
| 5641 | int F77_DUMMY_MAIN() { return 1; } |
| 5642 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5643 | int |
| 5644 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5645 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5646 | |
| 5647 | FILE *f = fopen ("conftest.val", "w"); |
| 5648 | if (! f) |
| 5649 | exit (1); |
| 5650 | if (((long) (sizeof (int))) < 0) |
| 5651 | { |
| 5652 | long i = longval (); |
| 5653 | if (i != ((long) (sizeof (int)))) |
| 5654 | exit (1); |
| 5655 | fprintf (f, "%ld\n", i); |
| 5656 | } |
| 5657 | else |
| 5658 | { |
| 5659 | unsigned long i = ulongval (); |
| 5660 | if (i != ((long) (sizeof (int)))) |
| 5661 | exit (1); |
| 5662 | fprintf (f, "%lu\n", i); |
| 5663 | } |
| 5664 | exit (ferror (f) || fclose (f) != 0); |
| 5665 | |
| 5666 | ; |
| 5667 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5668 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5669 | _ACEOF |
| 5670 | rm -f conftest$ac_exeext |
| 5671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5672 | (eval $ac_link) 2>&5 |
| 5673 | ac_status=$? |
| 5674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5675 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5677 | (eval $ac_try) 2>&5 |
| 5678 | ac_status=$? |
| 5679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5680 | (exit $ac_status); }; }; then |
| 5681 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5682 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5683 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5684 | echo "$as_me: failed program was:" >&5 |
| 5685 | cat conftest.$ac_ext >&5 |
| 5686 | ( exit $ac_status ) |
| 5687 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5688 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5689 | { (exit 1); exit 1; }; } |
| 5690 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5691 | 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] | 5692 | fi |
| 5693 | fi |
| 5694 | rm -f conftest.val |
| 5695 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5696 | ac_cv_sizeof_int=0 |
| 5697 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5698 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5699 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 5700 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 5701 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5702 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5703 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5704 | |
| 5705 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5706 | echo "$as_me:$LINENO: checking for long" >&5 |
| 5707 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 5708 | if test "${ac_cv_type_long+set}" = set; then |
| 5709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5710 | else |
| 5711 | cat >conftest.$ac_ext <<_ACEOF |
| 5712 | #line $LINENO "configure" |
| 5713 | #include "confdefs.h" |
| 5714 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5715 | #ifdef F77_DUMMY_MAIN |
| 5716 | # ifdef __cplusplus |
| 5717 | extern "C" |
| 5718 | # endif |
| 5719 | int F77_DUMMY_MAIN() { return 1; } |
| 5720 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5721 | int |
| 5722 | main () |
| 5723 | { |
| 5724 | if ((long *) 0) |
| 5725 | return 0; |
| 5726 | if (sizeof (long)) |
| 5727 | return 0; |
| 5728 | ; |
| 5729 | return 0; |
| 5730 | } |
| 5731 | _ACEOF |
| 5732 | rm -f conftest.$ac_objext |
| 5733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5734 | (eval $ac_compile) 2>&5 |
| 5735 | ac_status=$? |
| 5736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5737 | (exit $ac_status); } && |
| 5738 | { ac_try='test -s conftest.$ac_objext' |
| 5739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5740 | (eval $ac_try) 2>&5 |
| 5741 | ac_status=$? |
| 5742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5743 | (exit $ac_status); }; }; then |
| 5744 | ac_cv_type_long=yes |
| 5745 | else |
| 5746 | echo "$as_me: failed program was:" >&5 |
| 5747 | cat conftest.$ac_ext >&5 |
| 5748 | ac_cv_type_long=no |
| 5749 | fi |
| 5750 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5751 | fi |
| 5752 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 5753 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 5754 | |
| 5755 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 5756 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 5757 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 5758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5759 | else |
| 5760 | if test "$ac_cv_type_long" = yes; then |
| 5761 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5762 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5763 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5764 | # This bug is HP SR number 8606223364. |
| 5765 | if test "$cross_compiling" = yes; then |
| 5766 | # Depending upon the size, compute the lo and hi bounds. |
| 5767 | cat >conftest.$ac_ext <<_ACEOF |
| 5768 | #line $LINENO "configure" |
| 5769 | #include "confdefs.h" |
| 5770 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5771 | #ifdef F77_DUMMY_MAIN |
| 5772 | # ifdef __cplusplus |
| 5773 | extern "C" |
| 5774 | # endif |
| 5775 | int F77_DUMMY_MAIN() { return 1; } |
| 5776 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5777 | int |
| 5778 | main () |
| 5779 | { |
| 5780 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 5781 | test_array [0] = 0 |
| 5782 | |
| 5783 | ; |
| 5784 | return 0; |
| 5785 | } |
| 5786 | _ACEOF |
| 5787 | rm -f conftest.$ac_objext |
| 5788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5789 | (eval $ac_compile) 2>&5 |
| 5790 | ac_status=$? |
| 5791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5792 | (exit $ac_status); } && |
| 5793 | { ac_try='test -s conftest.$ac_objext' |
| 5794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5795 | (eval $ac_try) 2>&5 |
| 5796 | ac_status=$? |
| 5797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5798 | (exit $ac_status); }; }; then |
| 5799 | ac_lo=0 ac_mid=0 |
| 5800 | while :; do |
| 5801 | cat >conftest.$ac_ext <<_ACEOF |
| 5802 | #line $LINENO "configure" |
| 5803 | #include "confdefs.h" |
| 5804 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5805 | #ifdef F77_DUMMY_MAIN |
| 5806 | # ifdef __cplusplus |
| 5807 | extern "C" |
| 5808 | # endif |
| 5809 | int F77_DUMMY_MAIN() { return 1; } |
| 5810 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5811 | int |
| 5812 | main () |
| 5813 | { |
| 5814 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5815 | test_array [0] = 0 |
| 5816 | |
| 5817 | ; |
| 5818 | return 0; |
| 5819 | } |
| 5820 | _ACEOF |
| 5821 | rm -f conftest.$ac_objext |
| 5822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5823 | (eval $ac_compile) 2>&5 |
| 5824 | ac_status=$? |
| 5825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5826 | (exit $ac_status); } && |
| 5827 | { ac_try='test -s conftest.$ac_objext' |
| 5828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5829 | (eval $ac_try) 2>&5 |
| 5830 | ac_status=$? |
| 5831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5832 | (exit $ac_status); }; }; then |
| 5833 | ac_hi=$ac_mid; break |
| 5834 | else |
| 5835 | echo "$as_me: failed program was:" >&5 |
| 5836 | cat conftest.$ac_ext >&5 |
| 5837 | ac_lo=`expr $ac_mid + 1` |
| 5838 | if test $ac_lo -le $ac_mid; then |
| 5839 | ac_lo= ac_hi= |
| 5840 | break |
| 5841 | fi |
| 5842 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5843 | fi |
| 5844 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5845 | done |
| 5846 | else |
| 5847 | echo "$as_me: failed program was:" >&5 |
| 5848 | cat conftest.$ac_ext >&5 |
| 5849 | cat >conftest.$ac_ext <<_ACEOF |
| 5850 | #line $LINENO "configure" |
| 5851 | #include "confdefs.h" |
| 5852 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5853 | #ifdef F77_DUMMY_MAIN |
| 5854 | # ifdef __cplusplus |
| 5855 | extern "C" |
| 5856 | # endif |
| 5857 | int F77_DUMMY_MAIN() { return 1; } |
| 5858 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5859 | int |
| 5860 | main () |
| 5861 | { |
| 5862 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 5863 | test_array [0] = 0 |
| 5864 | |
| 5865 | ; |
| 5866 | return 0; |
| 5867 | } |
| 5868 | _ACEOF |
| 5869 | rm -f conftest.$ac_objext |
| 5870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5871 | (eval $ac_compile) 2>&5 |
| 5872 | ac_status=$? |
| 5873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5874 | (exit $ac_status); } && |
| 5875 | { ac_try='test -s conftest.$ac_objext' |
| 5876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5877 | (eval $ac_try) 2>&5 |
| 5878 | ac_status=$? |
| 5879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5880 | (exit $ac_status); }; }; then |
| 5881 | ac_hi=-1 ac_mid=-1 |
| 5882 | while :; do |
| 5883 | cat >conftest.$ac_ext <<_ACEOF |
| 5884 | #line $LINENO "configure" |
| 5885 | #include "confdefs.h" |
| 5886 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5887 | #ifdef F77_DUMMY_MAIN |
| 5888 | # ifdef __cplusplus |
| 5889 | extern "C" |
| 5890 | # endif |
| 5891 | int F77_DUMMY_MAIN() { return 1; } |
| 5892 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5893 | int |
| 5894 | main () |
| 5895 | { |
| 5896 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 5897 | test_array [0] = 0 |
| 5898 | |
| 5899 | ; |
| 5900 | return 0; |
| 5901 | } |
| 5902 | _ACEOF |
| 5903 | rm -f conftest.$ac_objext |
| 5904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5905 | (eval $ac_compile) 2>&5 |
| 5906 | ac_status=$? |
| 5907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5908 | (exit $ac_status); } && |
| 5909 | { ac_try='test -s conftest.$ac_objext' |
| 5910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5911 | (eval $ac_try) 2>&5 |
| 5912 | ac_status=$? |
| 5913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5914 | (exit $ac_status); }; }; then |
| 5915 | ac_lo=$ac_mid; break |
| 5916 | else |
| 5917 | echo "$as_me: failed program was:" >&5 |
| 5918 | cat conftest.$ac_ext >&5 |
| 5919 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5920 | if test $ac_mid -le $ac_hi; then |
| 5921 | ac_lo= ac_hi= |
| 5922 | break |
| 5923 | fi |
| 5924 | ac_mid=`expr 2 '*' $ac_mid` |
| 5925 | fi |
| 5926 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5927 | done |
| 5928 | else |
| 5929 | echo "$as_me: failed program was:" >&5 |
| 5930 | cat conftest.$ac_ext >&5 |
| 5931 | ac_lo= ac_hi= |
| 5932 | fi |
| 5933 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5934 | fi |
| 5935 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5936 | # Binary search between lo and hi bounds. |
| 5937 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5938 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5939 | cat >conftest.$ac_ext <<_ACEOF |
| 5940 | #line $LINENO "configure" |
| 5941 | #include "confdefs.h" |
| 5942 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5943 | #ifdef F77_DUMMY_MAIN |
| 5944 | # ifdef __cplusplus |
| 5945 | extern "C" |
| 5946 | # endif |
| 5947 | int F77_DUMMY_MAIN() { return 1; } |
| 5948 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5949 | int |
| 5950 | main () |
| 5951 | { |
| 5952 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5953 | test_array [0] = 0 |
| 5954 | |
| 5955 | ; |
| 5956 | return 0; |
| 5957 | } |
| 5958 | _ACEOF |
| 5959 | rm -f conftest.$ac_objext |
| 5960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5961 | (eval $ac_compile) 2>&5 |
| 5962 | ac_status=$? |
| 5963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5964 | (exit $ac_status); } && |
| 5965 | { ac_try='test -s conftest.$ac_objext' |
| 5966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5967 | (eval $ac_try) 2>&5 |
| 5968 | ac_status=$? |
| 5969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5970 | (exit $ac_status); }; }; then |
| 5971 | ac_hi=$ac_mid |
| 5972 | else |
| 5973 | echo "$as_me: failed program was:" >&5 |
| 5974 | cat conftest.$ac_ext >&5 |
| 5975 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5976 | fi |
| 5977 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5978 | done |
| 5979 | case $ac_lo in |
| 5980 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 5981 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5982 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5983 | { (exit 1); exit 1; }; } ;; |
| 5984 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5985 | else |
| 5986 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5987 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5988 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5989 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5990 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5991 | cat >conftest.$ac_ext <<_ACEOF |
| 5992 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5993 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5994 | $ac_includes_default |
| 5995 | long longval () { return (long) (sizeof (long)); } |
| 5996 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5997 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5998 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5999 | #ifdef F77_DUMMY_MAIN |
| 6000 | # ifdef __cplusplus |
| 6001 | extern "C" |
| 6002 | # endif |
| 6003 | int F77_DUMMY_MAIN() { return 1; } |
| 6004 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6005 | int |
| 6006 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6007 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6008 | |
| 6009 | FILE *f = fopen ("conftest.val", "w"); |
| 6010 | if (! f) |
| 6011 | exit (1); |
| 6012 | if (((long) (sizeof (long))) < 0) |
| 6013 | { |
| 6014 | long i = longval (); |
| 6015 | if (i != ((long) (sizeof (long)))) |
| 6016 | exit (1); |
| 6017 | fprintf (f, "%ld\n", i); |
| 6018 | } |
| 6019 | else |
| 6020 | { |
| 6021 | unsigned long i = ulongval (); |
| 6022 | if (i != ((long) (sizeof (long)))) |
| 6023 | exit (1); |
| 6024 | fprintf (f, "%lu\n", i); |
| 6025 | } |
| 6026 | exit (ferror (f) || fclose (f) != 0); |
| 6027 | |
| 6028 | ; |
| 6029 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6030 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6031 | _ACEOF |
| 6032 | rm -f conftest$ac_exeext |
| 6033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6034 | (eval $ac_link) 2>&5 |
| 6035 | ac_status=$? |
| 6036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6037 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6039 | (eval $ac_try) 2>&5 |
| 6040 | ac_status=$? |
| 6041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6042 | (exit $ac_status); }; }; then |
| 6043 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6044 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6045 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6046 | echo "$as_me: failed program was:" >&5 |
| 6047 | cat conftest.$ac_ext >&5 |
| 6048 | ( exit $ac_status ) |
| 6049 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 6050 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 6051 | { (exit 1); exit 1; }; } |
| 6052 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6053 | 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] | 6054 | fi |
| 6055 | fi |
| 6056 | rm -f conftest.val |
| 6057 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6058 | ac_cv_sizeof_long=0 |
| 6059 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6060 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6061 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 6062 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 6063 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6064 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6065 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6066 | |
| 6067 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6068 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 6069 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 6070 | if test "${ac_cv_type_void_p+set}" = set; then |
| 6071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6072 | else |
| 6073 | cat >conftest.$ac_ext <<_ACEOF |
| 6074 | #line $LINENO "configure" |
| 6075 | #include "confdefs.h" |
| 6076 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6077 | #ifdef F77_DUMMY_MAIN |
| 6078 | # ifdef __cplusplus |
| 6079 | extern "C" |
| 6080 | # endif |
| 6081 | int F77_DUMMY_MAIN() { return 1; } |
| 6082 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6083 | int |
| 6084 | main () |
| 6085 | { |
| 6086 | if ((void * *) 0) |
| 6087 | return 0; |
| 6088 | if (sizeof (void *)) |
| 6089 | return 0; |
| 6090 | ; |
| 6091 | return 0; |
| 6092 | } |
| 6093 | _ACEOF |
| 6094 | rm -f conftest.$ac_objext |
| 6095 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6096 | (eval $ac_compile) 2>&5 |
| 6097 | ac_status=$? |
| 6098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6099 | (exit $ac_status); } && |
| 6100 | { ac_try='test -s conftest.$ac_objext' |
| 6101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6102 | (eval $ac_try) 2>&5 |
| 6103 | ac_status=$? |
| 6104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6105 | (exit $ac_status); }; }; then |
| 6106 | ac_cv_type_void_p=yes |
| 6107 | else |
| 6108 | echo "$as_me: failed program was:" >&5 |
| 6109 | cat conftest.$ac_ext >&5 |
| 6110 | ac_cv_type_void_p=no |
| 6111 | fi |
| 6112 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6113 | fi |
| 6114 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 6115 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 6116 | |
| 6117 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 6118 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 6119 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 6120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6121 | else |
| 6122 | if test "$ac_cv_type_void_p" = yes; then |
| 6123 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6124 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6125 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6126 | # This bug is HP SR number 8606223364. |
| 6127 | if test "$cross_compiling" = yes; then |
| 6128 | # Depending upon the size, compute the lo and hi bounds. |
| 6129 | cat >conftest.$ac_ext <<_ACEOF |
| 6130 | #line $LINENO "configure" |
| 6131 | #include "confdefs.h" |
| 6132 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6133 | #ifdef F77_DUMMY_MAIN |
| 6134 | # ifdef __cplusplus |
| 6135 | extern "C" |
| 6136 | # endif |
| 6137 | int F77_DUMMY_MAIN() { return 1; } |
| 6138 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6139 | int |
| 6140 | main () |
| 6141 | { |
| 6142 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 6143 | test_array [0] = 0 |
| 6144 | |
| 6145 | ; |
| 6146 | return 0; |
| 6147 | } |
| 6148 | _ACEOF |
| 6149 | rm -f conftest.$ac_objext |
| 6150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6151 | (eval $ac_compile) 2>&5 |
| 6152 | ac_status=$? |
| 6153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6154 | (exit $ac_status); } && |
| 6155 | { ac_try='test -s conftest.$ac_objext' |
| 6156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6157 | (eval $ac_try) 2>&5 |
| 6158 | ac_status=$? |
| 6159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6160 | (exit $ac_status); }; }; then |
| 6161 | ac_lo=0 ac_mid=0 |
| 6162 | while :; do |
| 6163 | cat >conftest.$ac_ext <<_ACEOF |
| 6164 | #line $LINENO "configure" |
| 6165 | #include "confdefs.h" |
| 6166 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6167 | #ifdef F77_DUMMY_MAIN |
| 6168 | # ifdef __cplusplus |
| 6169 | extern "C" |
| 6170 | # endif |
| 6171 | int F77_DUMMY_MAIN() { return 1; } |
| 6172 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6173 | int |
| 6174 | main () |
| 6175 | { |
| 6176 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6177 | test_array [0] = 0 |
| 6178 | |
| 6179 | ; |
| 6180 | return 0; |
| 6181 | } |
| 6182 | _ACEOF |
| 6183 | rm -f conftest.$ac_objext |
| 6184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6185 | (eval $ac_compile) 2>&5 |
| 6186 | ac_status=$? |
| 6187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6188 | (exit $ac_status); } && |
| 6189 | { ac_try='test -s conftest.$ac_objext' |
| 6190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6191 | (eval $ac_try) 2>&5 |
| 6192 | ac_status=$? |
| 6193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6194 | (exit $ac_status); }; }; then |
| 6195 | ac_hi=$ac_mid; break |
| 6196 | else |
| 6197 | echo "$as_me: failed program was:" >&5 |
| 6198 | cat conftest.$ac_ext >&5 |
| 6199 | ac_lo=`expr $ac_mid + 1` |
| 6200 | if test $ac_lo -le $ac_mid; then |
| 6201 | ac_lo= ac_hi= |
| 6202 | break |
| 6203 | fi |
| 6204 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6205 | fi |
| 6206 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6207 | done |
| 6208 | else |
| 6209 | echo "$as_me: failed program was:" >&5 |
| 6210 | cat conftest.$ac_ext >&5 |
| 6211 | cat >conftest.$ac_ext <<_ACEOF |
| 6212 | #line $LINENO "configure" |
| 6213 | #include "confdefs.h" |
| 6214 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6215 | #ifdef F77_DUMMY_MAIN |
| 6216 | # ifdef __cplusplus |
| 6217 | extern "C" |
| 6218 | # endif |
| 6219 | int F77_DUMMY_MAIN() { return 1; } |
| 6220 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6221 | int |
| 6222 | main () |
| 6223 | { |
| 6224 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 6225 | test_array [0] = 0 |
| 6226 | |
| 6227 | ; |
| 6228 | return 0; |
| 6229 | } |
| 6230 | _ACEOF |
| 6231 | rm -f conftest.$ac_objext |
| 6232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6233 | (eval $ac_compile) 2>&5 |
| 6234 | ac_status=$? |
| 6235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6236 | (exit $ac_status); } && |
| 6237 | { ac_try='test -s conftest.$ac_objext' |
| 6238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6239 | (eval $ac_try) 2>&5 |
| 6240 | ac_status=$? |
| 6241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6242 | (exit $ac_status); }; }; then |
| 6243 | ac_hi=-1 ac_mid=-1 |
| 6244 | while :; do |
| 6245 | cat >conftest.$ac_ext <<_ACEOF |
| 6246 | #line $LINENO "configure" |
| 6247 | #include "confdefs.h" |
| 6248 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6249 | #ifdef F77_DUMMY_MAIN |
| 6250 | # ifdef __cplusplus |
| 6251 | extern "C" |
| 6252 | # endif |
| 6253 | int F77_DUMMY_MAIN() { return 1; } |
| 6254 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6255 | int |
| 6256 | main () |
| 6257 | { |
| 6258 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 6259 | test_array [0] = 0 |
| 6260 | |
| 6261 | ; |
| 6262 | return 0; |
| 6263 | } |
| 6264 | _ACEOF |
| 6265 | rm -f conftest.$ac_objext |
| 6266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6267 | (eval $ac_compile) 2>&5 |
| 6268 | ac_status=$? |
| 6269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6270 | (exit $ac_status); } && |
| 6271 | { ac_try='test -s conftest.$ac_objext' |
| 6272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6273 | (eval $ac_try) 2>&5 |
| 6274 | ac_status=$? |
| 6275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6276 | (exit $ac_status); }; }; then |
| 6277 | ac_lo=$ac_mid; break |
| 6278 | else |
| 6279 | echo "$as_me: failed program was:" >&5 |
| 6280 | cat conftest.$ac_ext >&5 |
| 6281 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6282 | if test $ac_mid -le $ac_hi; then |
| 6283 | ac_lo= ac_hi= |
| 6284 | break |
| 6285 | fi |
| 6286 | ac_mid=`expr 2 '*' $ac_mid` |
| 6287 | fi |
| 6288 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6289 | done |
| 6290 | else |
| 6291 | echo "$as_me: failed program was:" >&5 |
| 6292 | cat conftest.$ac_ext >&5 |
| 6293 | ac_lo= ac_hi= |
| 6294 | fi |
| 6295 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6296 | fi |
| 6297 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6298 | # Binary search between lo and hi bounds. |
| 6299 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6300 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6301 | cat >conftest.$ac_ext <<_ACEOF |
| 6302 | #line $LINENO "configure" |
| 6303 | #include "confdefs.h" |
| 6304 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6305 | #ifdef F77_DUMMY_MAIN |
| 6306 | # ifdef __cplusplus |
| 6307 | extern "C" |
| 6308 | # endif |
| 6309 | int F77_DUMMY_MAIN() { return 1; } |
| 6310 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6311 | int |
| 6312 | main () |
| 6313 | { |
| 6314 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6315 | test_array [0] = 0 |
| 6316 | |
| 6317 | ; |
| 6318 | return 0; |
| 6319 | } |
| 6320 | _ACEOF |
| 6321 | rm -f conftest.$ac_objext |
| 6322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6323 | (eval $ac_compile) 2>&5 |
| 6324 | ac_status=$? |
| 6325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6326 | (exit $ac_status); } && |
| 6327 | { ac_try='test -s conftest.$ac_objext' |
| 6328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6329 | (eval $ac_try) 2>&5 |
| 6330 | ac_status=$? |
| 6331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6332 | (exit $ac_status); }; }; then |
| 6333 | ac_hi=$ac_mid |
| 6334 | else |
| 6335 | echo "$as_me: failed program was:" >&5 |
| 6336 | cat conftest.$ac_ext >&5 |
| 6337 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6338 | fi |
| 6339 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6340 | done |
| 6341 | case $ac_lo in |
| 6342 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
| 6343 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6344 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6345 | { (exit 1); exit 1; }; } ;; |
| 6346 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6347 | else |
| 6348 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6349 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6350 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6351 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6352 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6353 | cat >conftest.$ac_ext <<_ACEOF |
| 6354 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6355 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6356 | $ac_includes_default |
| 6357 | long longval () { return (long) (sizeof (void *)); } |
| 6358 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6359 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6360 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6361 | #ifdef F77_DUMMY_MAIN |
| 6362 | # ifdef __cplusplus |
| 6363 | extern "C" |
| 6364 | # endif |
| 6365 | int F77_DUMMY_MAIN() { return 1; } |
| 6366 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6367 | int |
| 6368 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6369 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6370 | |
| 6371 | FILE *f = fopen ("conftest.val", "w"); |
| 6372 | if (! f) |
| 6373 | exit (1); |
| 6374 | if (((long) (sizeof (void *))) < 0) |
| 6375 | { |
| 6376 | long i = longval (); |
| 6377 | if (i != ((long) (sizeof (void *)))) |
| 6378 | exit (1); |
| 6379 | fprintf (f, "%ld\n", i); |
| 6380 | } |
| 6381 | else |
| 6382 | { |
| 6383 | unsigned long i = ulongval (); |
| 6384 | if (i != ((long) (sizeof (void *)))) |
| 6385 | exit (1); |
| 6386 | fprintf (f, "%lu\n", i); |
| 6387 | } |
| 6388 | exit (ferror (f) || fclose (f) != 0); |
| 6389 | |
| 6390 | ; |
| 6391 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6392 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6393 | _ACEOF |
| 6394 | rm -f conftest$ac_exeext |
| 6395 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6396 | (eval $ac_link) 2>&5 |
| 6397 | ac_status=$? |
| 6398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6399 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6401 | (eval $ac_try) 2>&5 |
| 6402 | ac_status=$? |
| 6403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6404 | (exit $ac_status); }; }; then |
| 6405 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6406 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6407 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6408 | echo "$as_me: failed program was:" >&5 |
| 6409 | cat conftest.$ac_ext >&5 |
| 6410 | ( exit $ac_status ) |
| 6411 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6412 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6413 | { (exit 1); exit 1; }; } |
| 6414 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6415 | 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] | 6416 | fi |
| 6417 | fi |
| 6418 | rm -f conftest.val |
| 6419 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6420 | ac_cv_sizeof_void_p=0 |
| 6421 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6422 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6423 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 6424 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 6425 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6426 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6427 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6428 | |
| 6429 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6430 | echo "$as_me:$LINENO: checking for char" >&5 |
| 6431 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 6432 | if test "${ac_cv_type_char+set}" = set; then |
| 6433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6434 | else |
| 6435 | cat >conftest.$ac_ext <<_ACEOF |
| 6436 | #line $LINENO "configure" |
| 6437 | #include "confdefs.h" |
| 6438 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6439 | #ifdef F77_DUMMY_MAIN |
| 6440 | # ifdef __cplusplus |
| 6441 | extern "C" |
| 6442 | # endif |
| 6443 | int F77_DUMMY_MAIN() { return 1; } |
| 6444 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6445 | int |
| 6446 | main () |
| 6447 | { |
| 6448 | if ((char *) 0) |
| 6449 | return 0; |
| 6450 | if (sizeof (char)) |
| 6451 | return 0; |
| 6452 | ; |
| 6453 | return 0; |
| 6454 | } |
| 6455 | _ACEOF |
| 6456 | rm -f conftest.$ac_objext |
| 6457 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6458 | (eval $ac_compile) 2>&5 |
| 6459 | ac_status=$? |
| 6460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6461 | (exit $ac_status); } && |
| 6462 | { ac_try='test -s conftest.$ac_objext' |
| 6463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6464 | (eval $ac_try) 2>&5 |
| 6465 | ac_status=$? |
| 6466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6467 | (exit $ac_status); }; }; then |
| 6468 | ac_cv_type_char=yes |
| 6469 | else |
| 6470 | echo "$as_me: failed program was:" >&5 |
| 6471 | cat conftest.$ac_ext >&5 |
| 6472 | ac_cv_type_char=no |
| 6473 | fi |
| 6474 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6475 | fi |
| 6476 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 6477 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 6478 | |
| 6479 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 6480 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 6481 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 6482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6483 | else |
| 6484 | if test "$ac_cv_type_char" = yes; then |
| 6485 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6486 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6487 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6488 | # This bug is HP SR number 8606223364. |
| 6489 | if test "$cross_compiling" = yes; then |
| 6490 | # Depending upon the size, compute the lo and hi bounds. |
| 6491 | cat >conftest.$ac_ext <<_ACEOF |
| 6492 | #line $LINENO "configure" |
| 6493 | #include "confdefs.h" |
| 6494 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6495 | #ifdef F77_DUMMY_MAIN |
| 6496 | # ifdef __cplusplus |
| 6497 | extern "C" |
| 6498 | # endif |
| 6499 | int F77_DUMMY_MAIN() { return 1; } |
| 6500 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6501 | int |
| 6502 | main () |
| 6503 | { |
| 6504 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 6505 | test_array [0] = 0 |
| 6506 | |
| 6507 | ; |
| 6508 | return 0; |
| 6509 | } |
| 6510 | _ACEOF |
| 6511 | rm -f conftest.$ac_objext |
| 6512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6513 | (eval $ac_compile) 2>&5 |
| 6514 | ac_status=$? |
| 6515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6516 | (exit $ac_status); } && |
| 6517 | { ac_try='test -s conftest.$ac_objext' |
| 6518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6519 | (eval $ac_try) 2>&5 |
| 6520 | ac_status=$? |
| 6521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6522 | (exit $ac_status); }; }; then |
| 6523 | ac_lo=0 ac_mid=0 |
| 6524 | while :; do |
| 6525 | cat >conftest.$ac_ext <<_ACEOF |
| 6526 | #line $LINENO "configure" |
| 6527 | #include "confdefs.h" |
| 6528 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6529 | #ifdef F77_DUMMY_MAIN |
| 6530 | # ifdef __cplusplus |
| 6531 | extern "C" |
| 6532 | # endif |
| 6533 | int F77_DUMMY_MAIN() { return 1; } |
| 6534 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6535 | int |
| 6536 | main () |
| 6537 | { |
| 6538 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6539 | test_array [0] = 0 |
| 6540 | |
| 6541 | ; |
| 6542 | return 0; |
| 6543 | } |
| 6544 | _ACEOF |
| 6545 | rm -f conftest.$ac_objext |
| 6546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6547 | (eval $ac_compile) 2>&5 |
| 6548 | ac_status=$? |
| 6549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6550 | (exit $ac_status); } && |
| 6551 | { ac_try='test -s conftest.$ac_objext' |
| 6552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6553 | (eval $ac_try) 2>&5 |
| 6554 | ac_status=$? |
| 6555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6556 | (exit $ac_status); }; }; then |
| 6557 | ac_hi=$ac_mid; break |
| 6558 | else |
| 6559 | echo "$as_me: failed program was:" >&5 |
| 6560 | cat conftest.$ac_ext >&5 |
| 6561 | ac_lo=`expr $ac_mid + 1` |
| 6562 | if test $ac_lo -le $ac_mid; then |
| 6563 | ac_lo= ac_hi= |
| 6564 | break |
| 6565 | fi |
| 6566 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6567 | fi |
| 6568 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6569 | done |
| 6570 | else |
| 6571 | echo "$as_me: failed program was:" >&5 |
| 6572 | cat conftest.$ac_ext >&5 |
| 6573 | cat >conftest.$ac_ext <<_ACEOF |
| 6574 | #line $LINENO "configure" |
| 6575 | #include "confdefs.h" |
| 6576 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6577 | #ifdef F77_DUMMY_MAIN |
| 6578 | # ifdef __cplusplus |
| 6579 | extern "C" |
| 6580 | # endif |
| 6581 | int F77_DUMMY_MAIN() { return 1; } |
| 6582 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6583 | int |
| 6584 | main () |
| 6585 | { |
| 6586 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 6587 | test_array [0] = 0 |
| 6588 | |
| 6589 | ; |
| 6590 | return 0; |
| 6591 | } |
| 6592 | _ACEOF |
| 6593 | rm -f conftest.$ac_objext |
| 6594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6595 | (eval $ac_compile) 2>&5 |
| 6596 | ac_status=$? |
| 6597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6598 | (exit $ac_status); } && |
| 6599 | { ac_try='test -s conftest.$ac_objext' |
| 6600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6601 | (eval $ac_try) 2>&5 |
| 6602 | ac_status=$? |
| 6603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6604 | (exit $ac_status); }; }; then |
| 6605 | ac_hi=-1 ac_mid=-1 |
| 6606 | while :; do |
| 6607 | cat >conftest.$ac_ext <<_ACEOF |
| 6608 | #line $LINENO "configure" |
| 6609 | #include "confdefs.h" |
| 6610 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6611 | #ifdef F77_DUMMY_MAIN |
| 6612 | # ifdef __cplusplus |
| 6613 | extern "C" |
| 6614 | # endif |
| 6615 | int F77_DUMMY_MAIN() { return 1; } |
| 6616 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6617 | int |
| 6618 | main () |
| 6619 | { |
| 6620 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 6621 | test_array [0] = 0 |
| 6622 | |
| 6623 | ; |
| 6624 | return 0; |
| 6625 | } |
| 6626 | _ACEOF |
| 6627 | rm -f conftest.$ac_objext |
| 6628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6629 | (eval $ac_compile) 2>&5 |
| 6630 | ac_status=$? |
| 6631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6632 | (exit $ac_status); } && |
| 6633 | { ac_try='test -s conftest.$ac_objext' |
| 6634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6635 | (eval $ac_try) 2>&5 |
| 6636 | ac_status=$? |
| 6637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6638 | (exit $ac_status); }; }; then |
| 6639 | ac_lo=$ac_mid; break |
| 6640 | else |
| 6641 | echo "$as_me: failed program was:" >&5 |
| 6642 | cat conftest.$ac_ext >&5 |
| 6643 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6644 | if test $ac_mid -le $ac_hi; then |
| 6645 | ac_lo= ac_hi= |
| 6646 | break |
| 6647 | fi |
| 6648 | ac_mid=`expr 2 '*' $ac_mid` |
| 6649 | fi |
| 6650 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6651 | done |
| 6652 | else |
| 6653 | echo "$as_me: failed program was:" >&5 |
| 6654 | cat conftest.$ac_ext >&5 |
| 6655 | ac_lo= ac_hi= |
| 6656 | fi |
| 6657 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6658 | fi |
| 6659 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6660 | # Binary search between lo and hi bounds. |
| 6661 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6662 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6663 | cat >conftest.$ac_ext <<_ACEOF |
| 6664 | #line $LINENO "configure" |
| 6665 | #include "confdefs.h" |
| 6666 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6667 | #ifdef F77_DUMMY_MAIN |
| 6668 | # ifdef __cplusplus |
| 6669 | extern "C" |
| 6670 | # endif |
| 6671 | int F77_DUMMY_MAIN() { return 1; } |
| 6672 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6673 | int |
| 6674 | main () |
| 6675 | { |
| 6676 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6677 | test_array [0] = 0 |
| 6678 | |
| 6679 | ; |
| 6680 | return 0; |
| 6681 | } |
| 6682 | _ACEOF |
| 6683 | rm -f conftest.$ac_objext |
| 6684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6685 | (eval $ac_compile) 2>&5 |
| 6686 | ac_status=$? |
| 6687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6688 | (exit $ac_status); } && |
| 6689 | { ac_try='test -s conftest.$ac_objext' |
| 6690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6691 | (eval $ac_try) 2>&5 |
| 6692 | ac_status=$? |
| 6693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6694 | (exit $ac_status); }; }; then |
| 6695 | ac_hi=$ac_mid |
| 6696 | else |
| 6697 | echo "$as_me: failed program was:" >&5 |
| 6698 | cat conftest.$ac_ext >&5 |
| 6699 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6700 | fi |
| 6701 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6702 | done |
| 6703 | case $ac_lo in |
| 6704 | ?*) ac_cv_sizeof_char=$ac_lo;; |
| 6705 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6706 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6707 | { (exit 1); exit 1; }; } ;; |
| 6708 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6709 | else |
| 6710 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6711 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6712 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6713 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6714 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6715 | cat >conftest.$ac_ext <<_ACEOF |
| 6716 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6717 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6718 | $ac_includes_default |
| 6719 | long longval () { return (long) (sizeof (char)); } |
| 6720 | unsigned long ulongval () { return (long) (sizeof (char)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6721 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6722 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6723 | #ifdef F77_DUMMY_MAIN |
| 6724 | # ifdef __cplusplus |
| 6725 | extern "C" |
| 6726 | # endif |
| 6727 | int F77_DUMMY_MAIN() { return 1; } |
| 6728 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6729 | int |
| 6730 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6731 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6732 | |
| 6733 | FILE *f = fopen ("conftest.val", "w"); |
| 6734 | if (! f) |
| 6735 | exit (1); |
| 6736 | if (((long) (sizeof (char))) < 0) |
| 6737 | { |
| 6738 | long i = longval (); |
| 6739 | if (i != ((long) (sizeof (char)))) |
| 6740 | exit (1); |
| 6741 | fprintf (f, "%ld\n", i); |
| 6742 | } |
| 6743 | else |
| 6744 | { |
| 6745 | unsigned long i = ulongval (); |
| 6746 | if (i != ((long) (sizeof (char)))) |
| 6747 | exit (1); |
| 6748 | fprintf (f, "%lu\n", i); |
| 6749 | } |
| 6750 | exit (ferror (f) || fclose (f) != 0); |
| 6751 | |
| 6752 | ; |
| 6753 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6754 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6755 | _ACEOF |
| 6756 | rm -f conftest$ac_exeext |
| 6757 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6758 | (eval $ac_link) 2>&5 |
| 6759 | ac_status=$? |
| 6760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6761 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6763 | (eval $ac_try) 2>&5 |
| 6764 | ac_status=$? |
| 6765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6766 | (exit $ac_status); }; }; then |
| 6767 | ac_cv_sizeof_char=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6768 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6769 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6770 | echo "$as_me: failed program was:" >&5 |
| 6771 | cat conftest.$ac_ext >&5 |
| 6772 | ( exit $ac_status ) |
| 6773 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6774 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6775 | { (exit 1); exit 1; }; } |
| 6776 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6777 | 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] | 6778 | fi |
| 6779 | fi |
| 6780 | rm -f conftest.val |
| 6781 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6782 | ac_cv_sizeof_char=0 |
| 6783 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6784 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6785 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 6786 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 6787 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6788 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6789 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6790 | |
| 6791 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6792 | echo "$as_me:$LINENO: checking for short" >&5 |
| 6793 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 6794 | if test "${ac_cv_type_short+set}" = set; then |
| 6795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6796 | else |
| 6797 | cat >conftest.$ac_ext <<_ACEOF |
| 6798 | #line $LINENO "configure" |
| 6799 | #include "confdefs.h" |
| 6800 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6801 | #ifdef F77_DUMMY_MAIN |
| 6802 | # ifdef __cplusplus |
| 6803 | extern "C" |
| 6804 | # endif |
| 6805 | int F77_DUMMY_MAIN() { return 1; } |
| 6806 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6807 | int |
| 6808 | main () |
| 6809 | { |
| 6810 | if ((short *) 0) |
| 6811 | return 0; |
| 6812 | if (sizeof (short)) |
| 6813 | return 0; |
| 6814 | ; |
| 6815 | return 0; |
| 6816 | } |
| 6817 | _ACEOF |
| 6818 | rm -f conftest.$ac_objext |
| 6819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6820 | (eval $ac_compile) 2>&5 |
| 6821 | ac_status=$? |
| 6822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6823 | (exit $ac_status); } && |
| 6824 | { ac_try='test -s conftest.$ac_objext' |
| 6825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6826 | (eval $ac_try) 2>&5 |
| 6827 | ac_status=$? |
| 6828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6829 | (exit $ac_status); }; }; then |
| 6830 | ac_cv_type_short=yes |
| 6831 | else |
| 6832 | echo "$as_me: failed program was:" >&5 |
| 6833 | cat conftest.$ac_ext >&5 |
| 6834 | ac_cv_type_short=no |
| 6835 | fi |
| 6836 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6837 | fi |
| 6838 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 6839 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 6840 | |
| 6841 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 6842 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 6843 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 6844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6845 | else |
| 6846 | if test "$ac_cv_type_short" = yes; then |
| 6847 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6848 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6849 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6850 | # This bug is HP SR number 8606223364. |
| 6851 | if test "$cross_compiling" = yes; then |
| 6852 | # Depending upon the size, compute the lo and hi bounds. |
| 6853 | cat >conftest.$ac_ext <<_ACEOF |
| 6854 | #line $LINENO "configure" |
| 6855 | #include "confdefs.h" |
| 6856 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6857 | #ifdef F77_DUMMY_MAIN |
| 6858 | # ifdef __cplusplus |
| 6859 | extern "C" |
| 6860 | # endif |
| 6861 | int F77_DUMMY_MAIN() { return 1; } |
| 6862 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6863 | int |
| 6864 | main () |
| 6865 | { |
| 6866 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 6867 | test_array [0] = 0 |
| 6868 | |
| 6869 | ; |
| 6870 | return 0; |
| 6871 | } |
| 6872 | _ACEOF |
| 6873 | rm -f conftest.$ac_objext |
| 6874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6875 | (eval $ac_compile) 2>&5 |
| 6876 | ac_status=$? |
| 6877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6878 | (exit $ac_status); } && |
| 6879 | { ac_try='test -s conftest.$ac_objext' |
| 6880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6881 | (eval $ac_try) 2>&5 |
| 6882 | ac_status=$? |
| 6883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6884 | (exit $ac_status); }; }; then |
| 6885 | ac_lo=0 ac_mid=0 |
| 6886 | while :; do |
| 6887 | cat >conftest.$ac_ext <<_ACEOF |
| 6888 | #line $LINENO "configure" |
| 6889 | #include "confdefs.h" |
| 6890 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6891 | #ifdef F77_DUMMY_MAIN |
| 6892 | # ifdef __cplusplus |
| 6893 | extern "C" |
| 6894 | # endif |
| 6895 | int F77_DUMMY_MAIN() { return 1; } |
| 6896 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6897 | int |
| 6898 | main () |
| 6899 | { |
| 6900 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6901 | test_array [0] = 0 |
| 6902 | |
| 6903 | ; |
| 6904 | return 0; |
| 6905 | } |
| 6906 | _ACEOF |
| 6907 | rm -f conftest.$ac_objext |
| 6908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6909 | (eval $ac_compile) 2>&5 |
| 6910 | ac_status=$? |
| 6911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6912 | (exit $ac_status); } && |
| 6913 | { ac_try='test -s conftest.$ac_objext' |
| 6914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6915 | (eval $ac_try) 2>&5 |
| 6916 | ac_status=$? |
| 6917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6918 | (exit $ac_status); }; }; then |
| 6919 | ac_hi=$ac_mid; break |
| 6920 | else |
| 6921 | echo "$as_me: failed program was:" >&5 |
| 6922 | cat conftest.$ac_ext >&5 |
| 6923 | ac_lo=`expr $ac_mid + 1` |
| 6924 | if test $ac_lo -le $ac_mid; then |
| 6925 | ac_lo= ac_hi= |
| 6926 | break |
| 6927 | fi |
| 6928 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6929 | fi |
| 6930 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6931 | done |
| 6932 | else |
| 6933 | echo "$as_me: failed program was:" >&5 |
| 6934 | cat conftest.$ac_ext >&5 |
| 6935 | cat >conftest.$ac_ext <<_ACEOF |
| 6936 | #line $LINENO "configure" |
| 6937 | #include "confdefs.h" |
| 6938 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6939 | #ifdef F77_DUMMY_MAIN |
| 6940 | # ifdef __cplusplus |
| 6941 | extern "C" |
| 6942 | # endif |
| 6943 | int F77_DUMMY_MAIN() { return 1; } |
| 6944 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6945 | int |
| 6946 | main () |
| 6947 | { |
| 6948 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 6949 | test_array [0] = 0 |
| 6950 | |
| 6951 | ; |
| 6952 | return 0; |
| 6953 | } |
| 6954 | _ACEOF |
| 6955 | rm -f conftest.$ac_objext |
| 6956 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6957 | (eval $ac_compile) 2>&5 |
| 6958 | ac_status=$? |
| 6959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6960 | (exit $ac_status); } && |
| 6961 | { ac_try='test -s conftest.$ac_objext' |
| 6962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6963 | (eval $ac_try) 2>&5 |
| 6964 | ac_status=$? |
| 6965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6966 | (exit $ac_status); }; }; then |
| 6967 | ac_hi=-1 ac_mid=-1 |
| 6968 | while :; do |
| 6969 | cat >conftest.$ac_ext <<_ACEOF |
| 6970 | #line $LINENO "configure" |
| 6971 | #include "confdefs.h" |
| 6972 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6973 | #ifdef F77_DUMMY_MAIN |
| 6974 | # ifdef __cplusplus |
| 6975 | extern "C" |
| 6976 | # endif |
| 6977 | int F77_DUMMY_MAIN() { return 1; } |
| 6978 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6979 | int |
| 6980 | main () |
| 6981 | { |
| 6982 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 6983 | test_array [0] = 0 |
| 6984 | |
| 6985 | ; |
| 6986 | return 0; |
| 6987 | } |
| 6988 | _ACEOF |
| 6989 | rm -f conftest.$ac_objext |
| 6990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6991 | (eval $ac_compile) 2>&5 |
| 6992 | ac_status=$? |
| 6993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6994 | (exit $ac_status); } && |
| 6995 | { ac_try='test -s conftest.$ac_objext' |
| 6996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6997 | (eval $ac_try) 2>&5 |
| 6998 | ac_status=$? |
| 6999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7000 | (exit $ac_status); }; }; then |
| 7001 | ac_lo=$ac_mid; break |
| 7002 | else |
| 7003 | echo "$as_me: failed program was:" >&5 |
| 7004 | cat conftest.$ac_ext >&5 |
| 7005 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7006 | if test $ac_mid -le $ac_hi; then |
| 7007 | ac_lo= ac_hi= |
| 7008 | break |
| 7009 | fi |
| 7010 | ac_mid=`expr 2 '*' $ac_mid` |
| 7011 | fi |
| 7012 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7013 | done |
| 7014 | else |
| 7015 | echo "$as_me: failed program was:" >&5 |
| 7016 | cat conftest.$ac_ext >&5 |
| 7017 | ac_lo= ac_hi= |
| 7018 | fi |
| 7019 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7020 | fi |
| 7021 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7022 | # Binary search between lo and hi bounds. |
| 7023 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7024 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7025 | cat >conftest.$ac_ext <<_ACEOF |
| 7026 | #line $LINENO "configure" |
| 7027 | #include "confdefs.h" |
| 7028 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7029 | #ifdef F77_DUMMY_MAIN |
| 7030 | # ifdef __cplusplus |
| 7031 | extern "C" |
| 7032 | # endif |
| 7033 | int F77_DUMMY_MAIN() { return 1; } |
| 7034 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7035 | int |
| 7036 | main () |
| 7037 | { |
| 7038 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7039 | test_array [0] = 0 |
| 7040 | |
| 7041 | ; |
| 7042 | return 0; |
| 7043 | } |
| 7044 | _ACEOF |
| 7045 | rm -f conftest.$ac_objext |
| 7046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7047 | (eval $ac_compile) 2>&5 |
| 7048 | ac_status=$? |
| 7049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7050 | (exit $ac_status); } && |
| 7051 | { ac_try='test -s conftest.$ac_objext' |
| 7052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7053 | (eval $ac_try) 2>&5 |
| 7054 | ac_status=$? |
| 7055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7056 | (exit $ac_status); }; }; then |
| 7057 | ac_hi=$ac_mid |
| 7058 | else |
| 7059 | echo "$as_me: failed program was:" >&5 |
| 7060 | cat conftest.$ac_ext >&5 |
| 7061 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7062 | fi |
| 7063 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7064 | done |
| 7065 | case $ac_lo in |
| 7066 | ?*) ac_cv_sizeof_short=$ac_lo;; |
| 7067 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 7068 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 7069 | { (exit 1); exit 1; }; } ;; |
| 7070 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7071 | else |
| 7072 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7073 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7074 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7075 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7076 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7077 | cat >conftest.$ac_ext <<_ACEOF |
| 7078 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7079 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7080 | $ac_includes_default |
| 7081 | long longval () { return (long) (sizeof (short)); } |
| 7082 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7083 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7084 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7085 | #ifdef F77_DUMMY_MAIN |
| 7086 | # ifdef __cplusplus |
| 7087 | extern "C" |
| 7088 | # endif |
| 7089 | int F77_DUMMY_MAIN() { return 1; } |
| 7090 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7091 | int |
| 7092 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7093 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7094 | |
| 7095 | FILE *f = fopen ("conftest.val", "w"); |
| 7096 | if (! f) |
| 7097 | exit (1); |
| 7098 | if (((long) (sizeof (short))) < 0) |
| 7099 | { |
| 7100 | long i = longval (); |
| 7101 | if (i != ((long) (sizeof (short)))) |
| 7102 | exit (1); |
| 7103 | fprintf (f, "%ld\n", i); |
| 7104 | } |
| 7105 | else |
| 7106 | { |
| 7107 | unsigned long i = ulongval (); |
| 7108 | if (i != ((long) (sizeof (short)))) |
| 7109 | exit (1); |
| 7110 | fprintf (f, "%lu\n", i); |
| 7111 | } |
| 7112 | exit (ferror (f) || fclose (f) != 0); |
| 7113 | |
| 7114 | ; |
| 7115 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7116 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7117 | _ACEOF |
| 7118 | rm -f conftest$ac_exeext |
| 7119 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7120 | (eval $ac_link) 2>&5 |
| 7121 | ac_status=$? |
| 7122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7123 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7125 | (eval $ac_try) 2>&5 |
| 7126 | ac_status=$? |
| 7127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7128 | (exit $ac_status); }; }; then |
| 7129 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7130 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7131 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7132 | echo "$as_me: failed program was:" >&5 |
| 7133 | cat conftest.$ac_ext >&5 |
| 7134 | ( exit $ac_status ) |
| 7135 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 7136 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 7137 | { (exit 1); exit 1; }; } |
| 7138 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7139 | 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] | 7140 | fi |
| 7141 | fi |
| 7142 | rm -f conftest.val |
| 7143 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7144 | ac_cv_sizeof_short=0 |
| 7145 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7146 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7147 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 7148 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 7149 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7150 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7151 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7152 | |
| 7153 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7154 | echo "$as_me:$LINENO: checking for float" >&5 |
| 7155 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 7156 | if test "${ac_cv_type_float+set}" = set; then |
| 7157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7158 | else |
| 7159 | cat >conftest.$ac_ext <<_ACEOF |
| 7160 | #line $LINENO "configure" |
| 7161 | #include "confdefs.h" |
| 7162 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7163 | #ifdef F77_DUMMY_MAIN |
| 7164 | # ifdef __cplusplus |
| 7165 | extern "C" |
| 7166 | # endif |
| 7167 | int F77_DUMMY_MAIN() { return 1; } |
| 7168 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7169 | int |
| 7170 | main () |
| 7171 | { |
| 7172 | if ((float *) 0) |
| 7173 | return 0; |
| 7174 | if (sizeof (float)) |
| 7175 | return 0; |
| 7176 | ; |
| 7177 | return 0; |
| 7178 | } |
| 7179 | _ACEOF |
| 7180 | rm -f conftest.$ac_objext |
| 7181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7182 | (eval $ac_compile) 2>&5 |
| 7183 | ac_status=$? |
| 7184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7185 | (exit $ac_status); } && |
| 7186 | { ac_try='test -s conftest.$ac_objext' |
| 7187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7188 | (eval $ac_try) 2>&5 |
| 7189 | ac_status=$? |
| 7190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7191 | (exit $ac_status); }; }; then |
| 7192 | ac_cv_type_float=yes |
| 7193 | else |
| 7194 | echo "$as_me: failed program was:" >&5 |
| 7195 | cat conftest.$ac_ext >&5 |
| 7196 | ac_cv_type_float=no |
| 7197 | fi |
| 7198 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7199 | fi |
| 7200 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 7201 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 7202 | |
| 7203 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 7204 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 7205 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 7206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7207 | else |
| 7208 | if test "$ac_cv_type_float" = yes; then |
| 7209 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7210 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7211 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7212 | # This bug is HP SR number 8606223364. |
| 7213 | if test "$cross_compiling" = yes; then |
| 7214 | # Depending upon the size, compute the lo and hi bounds. |
| 7215 | cat >conftest.$ac_ext <<_ACEOF |
| 7216 | #line $LINENO "configure" |
| 7217 | #include "confdefs.h" |
| 7218 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7219 | #ifdef F77_DUMMY_MAIN |
| 7220 | # ifdef __cplusplus |
| 7221 | extern "C" |
| 7222 | # endif |
| 7223 | int F77_DUMMY_MAIN() { return 1; } |
| 7224 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7225 | int |
| 7226 | main () |
| 7227 | { |
| 7228 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 7229 | test_array [0] = 0 |
| 7230 | |
| 7231 | ; |
| 7232 | return 0; |
| 7233 | } |
| 7234 | _ACEOF |
| 7235 | rm -f conftest.$ac_objext |
| 7236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7237 | (eval $ac_compile) 2>&5 |
| 7238 | ac_status=$? |
| 7239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7240 | (exit $ac_status); } && |
| 7241 | { ac_try='test -s conftest.$ac_objext' |
| 7242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7243 | (eval $ac_try) 2>&5 |
| 7244 | ac_status=$? |
| 7245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7246 | (exit $ac_status); }; }; then |
| 7247 | ac_lo=0 ac_mid=0 |
| 7248 | while :; do |
| 7249 | cat >conftest.$ac_ext <<_ACEOF |
| 7250 | #line $LINENO "configure" |
| 7251 | #include "confdefs.h" |
| 7252 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7253 | #ifdef F77_DUMMY_MAIN |
| 7254 | # ifdef __cplusplus |
| 7255 | extern "C" |
| 7256 | # endif |
| 7257 | int F77_DUMMY_MAIN() { return 1; } |
| 7258 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7259 | int |
| 7260 | main () |
| 7261 | { |
| 7262 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7263 | test_array [0] = 0 |
| 7264 | |
| 7265 | ; |
| 7266 | return 0; |
| 7267 | } |
| 7268 | _ACEOF |
| 7269 | rm -f conftest.$ac_objext |
| 7270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7271 | (eval $ac_compile) 2>&5 |
| 7272 | ac_status=$? |
| 7273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7274 | (exit $ac_status); } && |
| 7275 | { ac_try='test -s conftest.$ac_objext' |
| 7276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7277 | (eval $ac_try) 2>&5 |
| 7278 | ac_status=$? |
| 7279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7280 | (exit $ac_status); }; }; then |
| 7281 | ac_hi=$ac_mid; break |
| 7282 | else |
| 7283 | echo "$as_me: failed program was:" >&5 |
| 7284 | cat conftest.$ac_ext >&5 |
| 7285 | ac_lo=`expr $ac_mid + 1` |
| 7286 | if test $ac_lo -le $ac_mid; then |
| 7287 | ac_lo= ac_hi= |
| 7288 | break |
| 7289 | fi |
| 7290 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7291 | fi |
| 7292 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7293 | done |
| 7294 | else |
| 7295 | echo "$as_me: failed program was:" >&5 |
| 7296 | cat conftest.$ac_ext >&5 |
| 7297 | cat >conftest.$ac_ext <<_ACEOF |
| 7298 | #line $LINENO "configure" |
| 7299 | #include "confdefs.h" |
| 7300 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7301 | #ifdef F77_DUMMY_MAIN |
| 7302 | # ifdef __cplusplus |
| 7303 | extern "C" |
| 7304 | # endif |
| 7305 | int F77_DUMMY_MAIN() { return 1; } |
| 7306 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7307 | int |
| 7308 | main () |
| 7309 | { |
| 7310 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 7311 | test_array [0] = 0 |
| 7312 | |
| 7313 | ; |
| 7314 | return 0; |
| 7315 | } |
| 7316 | _ACEOF |
| 7317 | rm -f conftest.$ac_objext |
| 7318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7319 | (eval $ac_compile) 2>&5 |
| 7320 | ac_status=$? |
| 7321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7322 | (exit $ac_status); } && |
| 7323 | { ac_try='test -s conftest.$ac_objext' |
| 7324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7325 | (eval $ac_try) 2>&5 |
| 7326 | ac_status=$? |
| 7327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7328 | (exit $ac_status); }; }; then |
| 7329 | ac_hi=-1 ac_mid=-1 |
| 7330 | while :; do |
| 7331 | cat >conftest.$ac_ext <<_ACEOF |
| 7332 | #line $LINENO "configure" |
| 7333 | #include "confdefs.h" |
| 7334 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7335 | #ifdef F77_DUMMY_MAIN |
| 7336 | # ifdef __cplusplus |
| 7337 | extern "C" |
| 7338 | # endif |
| 7339 | int F77_DUMMY_MAIN() { return 1; } |
| 7340 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7341 | int |
| 7342 | main () |
| 7343 | { |
| 7344 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 7345 | test_array [0] = 0 |
| 7346 | |
| 7347 | ; |
| 7348 | return 0; |
| 7349 | } |
| 7350 | _ACEOF |
| 7351 | rm -f conftest.$ac_objext |
| 7352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7353 | (eval $ac_compile) 2>&5 |
| 7354 | ac_status=$? |
| 7355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7356 | (exit $ac_status); } && |
| 7357 | { ac_try='test -s conftest.$ac_objext' |
| 7358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7359 | (eval $ac_try) 2>&5 |
| 7360 | ac_status=$? |
| 7361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7362 | (exit $ac_status); }; }; then |
| 7363 | ac_lo=$ac_mid; break |
| 7364 | else |
| 7365 | echo "$as_me: failed program was:" >&5 |
| 7366 | cat conftest.$ac_ext >&5 |
| 7367 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7368 | if test $ac_mid -le $ac_hi; then |
| 7369 | ac_lo= ac_hi= |
| 7370 | break |
| 7371 | fi |
| 7372 | ac_mid=`expr 2 '*' $ac_mid` |
| 7373 | fi |
| 7374 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7375 | done |
| 7376 | else |
| 7377 | echo "$as_me: failed program was:" >&5 |
| 7378 | cat conftest.$ac_ext >&5 |
| 7379 | ac_lo= ac_hi= |
| 7380 | fi |
| 7381 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7382 | fi |
| 7383 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7384 | # Binary search between lo and hi bounds. |
| 7385 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7386 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7387 | cat >conftest.$ac_ext <<_ACEOF |
| 7388 | #line $LINENO "configure" |
| 7389 | #include "confdefs.h" |
| 7390 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7391 | #ifdef F77_DUMMY_MAIN |
| 7392 | # ifdef __cplusplus |
| 7393 | extern "C" |
| 7394 | # endif |
| 7395 | int F77_DUMMY_MAIN() { return 1; } |
| 7396 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7397 | int |
| 7398 | main () |
| 7399 | { |
| 7400 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7401 | test_array [0] = 0 |
| 7402 | |
| 7403 | ; |
| 7404 | return 0; |
| 7405 | } |
| 7406 | _ACEOF |
| 7407 | rm -f conftest.$ac_objext |
| 7408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7409 | (eval $ac_compile) 2>&5 |
| 7410 | ac_status=$? |
| 7411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7412 | (exit $ac_status); } && |
| 7413 | { ac_try='test -s conftest.$ac_objext' |
| 7414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7415 | (eval $ac_try) 2>&5 |
| 7416 | ac_status=$? |
| 7417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7418 | (exit $ac_status); }; }; then |
| 7419 | ac_hi=$ac_mid |
| 7420 | else |
| 7421 | echo "$as_me: failed program was:" >&5 |
| 7422 | cat conftest.$ac_ext >&5 |
| 7423 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7424 | fi |
| 7425 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7426 | done |
| 7427 | case $ac_lo in |
| 7428 | ?*) ac_cv_sizeof_float=$ac_lo;; |
| 7429 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7430 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7431 | { (exit 1); exit 1; }; } ;; |
| 7432 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7433 | else |
| 7434 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7435 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7436 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7437 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7438 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7439 | cat >conftest.$ac_ext <<_ACEOF |
| 7440 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7441 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7442 | $ac_includes_default |
| 7443 | long longval () { return (long) (sizeof (float)); } |
| 7444 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7445 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7446 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7447 | #ifdef F77_DUMMY_MAIN |
| 7448 | # ifdef __cplusplus |
| 7449 | extern "C" |
| 7450 | # endif |
| 7451 | int F77_DUMMY_MAIN() { return 1; } |
| 7452 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7453 | int |
| 7454 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7455 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7456 | |
| 7457 | FILE *f = fopen ("conftest.val", "w"); |
| 7458 | if (! f) |
| 7459 | exit (1); |
| 7460 | if (((long) (sizeof (float))) < 0) |
| 7461 | { |
| 7462 | long i = longval (); |
| 7463 | if (i != ((long) (sizeof (float)))) |
| 7464 | exit (1); |
| 7465 | fprintf (f, "%ld\n", i); |
| 7466 | } |
| 7467 | else |
| 7468 | { |
| 7469 | unsigned long i = ulongval (); |
| 7470 | if (i != ((long) (sizeof (float)))) |
| 7471 | exit (1); |
| 7472 | fprintf (f, "%lu\n", i); |
| 7473 | } |
| 7474 | exit (ferror (f) || fclose (f) != 0); |
| 7475 | |
| 7476 | ; |
| 7477 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7478 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7479 | _ACEOF |
| 7480 | rm -f conftest$ac_exeext |
| 7481 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7482 | (eval $ac_link) 2>&5 |
| 7483 | ac_status=$? |
| 7484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7485 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7487 | (eval $ac_try) 2>&5 |
| 7488 | ac_status=$? |
| 7489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7490 | (exit $ac_status); }; }; then |
| 7491 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7492 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7493 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7494 | echo "$as_me: failed program was:" >&5 |
| 7495 | cat conftest.$ac_ext >&5 |
| 7496 | ( exit $ac_status ) |
| 7497 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7498 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7499 | { (exit 1); exit 1; }; } |
| 7500 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7501 | 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] | 7502 | fi |
| 7503 | fi |
| 7504 | rm -f conftest.val |
| 7505 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7506 | ac_cv_sizeof_float=0 |
| 7507 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7508 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7509 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 7510 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 7511 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7512 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7513 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7514 | |
| 7515 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7516 | echo "$as_me:$LINENO: checking for double" >&5 |
| 7517 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 7518 | if test "${ac_cv_type_double+set}" = set; then |
| 7519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7520 | else |
| 7521 | cat >conftest.$ac_ext <<_ACEOF |
| 7522 | #line $LINENO "configure" |
| 7523 | #include "confdefs.h" |
| 7524 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7525 | #ifdef F77_DUMMY_MAIN |
| 7526 | # ifdef __cplusplus |
| 7527 | extern "C" |
| 7528 | # endif |
| 7529 | int F77_DUMMY_MAIN() { return 1; } |
| 7530 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7531 | int |
| 7532 | main () |
| 7533 | { |
| 7534 | if ((double *) 0) |
| 7535 | return 0; |
| 7536 | if (sizeof (double)) |
| 7537 | return 0; |
| 7538 | ; |
| 7539 | return 0; |
| 7540 | } |
| 7541 | _ACEOF |
| 7542 | rm -f conftest.$ac_objext |
| 7543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7544 | (eval $ac_compile) 2>&5 |
| 7545 | ac_status=$? |
| 7546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7547 | (exit $ac_status); } && |
| 7548 | { ac_try='test -s conftest.$ac_objext' |
| 7549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7550 | (eval $ac_try) 2>&5 |
| 7551 | ac_status=$? |
| 7552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7553 | (exit $ac_status); }; }; then |
| 7554 | ac_cv_type_double=yes |
| 7555 | else |
| 7556 | echo "$as_me: failed program was:" >&5 |
| 7557 | cat conftest.$ac_ext >&5 |
| 7558 | ac_cv_type_double=no |
| 7559 | fi |
| 7560 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7561 | fi |
| 7562 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 7563 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 7564 | |
| 7565 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 7566 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 7567 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 7568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7569 | else |
| 7570 | if test "$ac_cv_type_double" = yes; then |
| 7571 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7572 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7573 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7574 | # This bug is HP SR number 8606223364. |
| 7575 | if test "$cross_compiling" = yes; then |
| 7576 | # Depending upon the size, compute the lo and hi bounds. |
| 7577 | cat >conftest.$ac_ext <<_ACEOF |
| 7578 | #line $LINENO "configure" |
| 7579 | #include "confdefs.h" |
| 7580 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7581 | #ifdef F77_DUMMY_MAIN |
| 7582 | # ifdef __cplusplus |
| 7583 | extern "C" |
| 7584 | # endif |
| 7585 | int F77_DUMMY_MAIN() { return 1; } |
| 7586 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7587 | int |
| 7588 | main () |
| 7589 | { |
| 7590 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 7591 | test_array [0] = 0 |
| 7592 | |
| 7593 | ; |
| 7594 | return 0; |
| 7595 | } |
| 7596 | _ACEOF |
| 7597 | rm -f conftest.$ac_objext |
| 7598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7599 | (eval $ac_compile) 2>&5 |
| 7600 | ac_status=$? |
| 7601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7602 | (exit $ac_status); } && |
| 7603 | { ac_try='test -s conftest.$ac_objext' |
| 7604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7605 | (eval $ac_try) 2>&5 |
| 7606 | ac_status=$? |
| 7607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7608 | (exit $ac_status); }; }; then |
| 7609 | ac_lo=0 ac_mid=0 |
| 7610 | while :; do |
| 7611 | cat >conftest.$ac_ext <<_ACEOF |
| 7612 | #line $LINENO "configure" |
| 7613 | #include "confdefs.h" |
| 7614 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7615 | #ifdef F77_DUMMY_MAIN |
| 7616 | # ifdef __cplusplus |
| 7617 | extern "C" |
| 7618 | # endif |
| 7619 | int F77_DUMMY_MAIN() { return 1; } |
| 7620 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7621 | int |
| 7622 | main () |
| 7623 | { |
| 7624 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7625 | test_array [0] = 0 |
| 7626 | |
| 7627 | ; |
| 7628 | return 0; |
| 7629 | } |
| 7630 | _ACEOF |
| 7631 | rm -f conftest.$ac_objext |
| 7632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7633 | (eval $ac_compile) 2>&5 |
| 7634 | ac_status=$? |
| 7635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7636 | (exit $ac_status); } && |
| 7637 | { ac_try='test -s conftest.$ac_objext' |
| 7638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7639 | (eval $ac_try) 2>&5 |
| 7640 | ac_status=$? |
| 7641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7642 | (exit $ac_status); }; }; then |
| 7643 | ac_hi=$ac_mid; break |
| 7644 | else |
| 7645 | echo "$as_me: failed program was:" >&5 |
| 7646 | cat conftest.$ac_ext >&5 |
| 7647 | ac_lo=`expr $ac_mid + 1` |
| 7648 | if test $ac_lo -le $ac_mid; then |
| 7649 | ac_lo= ac_hi= |
| 7650 | break |
| 7651 | fi |
| 7652 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7653 | fi |
| 7654 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7655 | done |
| 7656 | else |
| 7657 | echo "$as_me: failed program was:" >&5 |
| 7658 | cat conftest.$ac_ext >&5 |
| 7659 | cat >conftest.$ac_ext <<_ACEOF |
| 7660 | #line $LINENO "configure" |
| 7661 | #include "confdefs.h" |
| 7662 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7663 | #ifdef F77_DUMMY_MAIN |
| 7664 | # ifdef __cplusplus |
| 7665 | extern "C" |
| 7666 | # endif |
| 7667 | int F77_DUMMY_MAIN() { return 1; } |
| 7668 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7669 | int |
| 7670 | main () |
| 7671 | { |
| 7672 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 7673 | test_array [0] = 0 |
| 7674 | |
| 7675 | ; |
| 7676 | return 0; |
| 7677 | } |
| 7678 | _ACEOF |
| 7679 | rm -f conftest.$ac_objext |
| 7680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7681 | (eval $ac_compile) 2>&5 |
| 7682 | ac_status=$? |
| 7683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7684 | (exit $ac_status); } && |
| 7685 | { ac_try='test -s conftest.$ac_objext' |
| 7686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7687 | (eval $ac_try) 2>&5 |
| 7688 | ac_status=$? |
| 7689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7690 | (exit $ac_status); }; }; then |
| 7691 | ac_hi=-1 ac_mid=-1 |
| 7692 | while :; do |
| 7693 | cat >conftest.$ac_ext <<_ACEOF |
| 7694 | #line $LINENO "configure" |
| 7695 | #include "confdefs.h" |
| 7696 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7697 | #ifdef F77_DUMMY_MAIN |
| 7698 | # ifdef __cplusplus |
| 7699 | extern "C" |
| 7700 | # endif |
| 7701 | int F77_DUMMY_MAIN() { return 1; } |
| 7702 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7703 | int |
| 7704 | main () |
| 7705 | { |
| 7706 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 7707 | test_array [0] = 0 |
| 7708 | |
| 7709 | ; |
| 7710 | return 0; |
| 7711 | } |
| 7712 | _ACEOF |
| 7713 | rm -f conftest.$ac_objext |
| 7714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7715 | (eval $ac_compile) 2>&5 |
| 7716 | ac_status=$? |
| 7717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7718 | (exit $ac_status); } && |
| 7719 | { ac_try='test -s conftest.$ac_objext' |
| 7720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7721 | (eval $ac_try) 2>&5 |
| 7722 | ac_status=$? |
| 7723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7724 | (exit $ac_status); }; }; then |
| 7725 | ac_lo=$ac_mid; break |
| 7726 | else |
| 7727 | echo "$as_me: failed program was:" >&5 |
| 7728 | cat conftest.$ac_ext >&5 |
| 7729 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7730 | if test $ac_mid -le $ac_hi; then |
| 7731 | ac_lo= ac_hi= |
| 7732 | break |
| 7733 | fi |
| 7734 | ac_mid=`expr 2 '*' $ac_mid` |
| 7735 | fi |
| 7736 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7737 | done |
| 7738 | else |
| 7739 | echo "$as_me: failed program was:" >&5 |
| 7740 | cat conftest.$ac_ext >&5 |
| 7741 | ac_lo= ac_hi= |
| 7742 | fi |
| 7743 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7744 | fi |
| 7745 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7746 | # Binary search between lo and hi bounds. |
| 7747 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7748 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7749 | cat >conftest.$ac_ext <<_ACEOF |
| 7750 | #line $LINENO "configure" |
| 7751 | #include "confdefs.h" |
| 7752 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7753 | #ifdef F77_DUMMY_MAIN |
| 7754 | # ifdef __cplusplus |
| 7755 | extern "C" |
| 7756 | # endif |
| 7757 | int F77_DUMMY_MAIN() { return 1; } |
| 7758 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7759 | int |
| 7760 | main () |
| 7761 | { |
| 7762 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7763 | test_array [0] = 0 |
| 7764 | |
| 7765 | ; |
| 7766 | return 0; |
| 7767 | } |
| 7768 | _ACEOF |
| 7769 | rm -f conftest.$ac_objext |
| 7770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7771 | (eval $ac_compile) 2>&5 |
| 7772 | ac_status=$? |
| 7773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7774 | (exit $ac_status); } && |
| 7775 | { ac_try='test -s conftest.$ac_objext' |
| 7776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7777 | (eval $ac_try) 2>&5 |
| 7778 | ac_status=$? |
| 7779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7780 | (exit $ac_status); }; }; then |
| 7781 | ac_hi=$ac_mid |
| 7782 | else |
| 7783 | echo "$as_me: failed program was:" >&5 |
| 7784 | cat conftest.$ac_ext >&5 |
| 7785 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7786 | fi |
| 7787 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7788 | done |
| 7789 | case $ac_lo in |
| 7790 | ?*) ac_cv_sizeof_double=$ac_lo;; |
| 7791 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7792 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7793 | { (exit 1); exit 1; }; } ;; |
| 7794 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7795 | else |
| 7796 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7797 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7798 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7799 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7800 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7801 | cat >conftest.$ac_ext <<_ACEOF |
| 7802 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7803 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7804 | $ac_includes_default |
| 7805 | long longval () { return (long) (sizeof (double)); } |
| 7806 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7807 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7808 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7809 | #ifdef F77_DUMMY_MAIN |
| 7810 | # ifdef __cplusplus |
| 7811 | extern "C" |
| 7812 | # endif |
| 7813 | int F77_DUMMY_MAIN() { return 1; } |
| 7814 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7815 | int |
| 7816 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7817 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7818 | |
| 7819 | FILE *f = fopen ("conftest.val", "w"); |
| 7820 | if (! f) |
| 7821 | exit (1); |
| 7822 | if (((long) (sizeof (double))) < 0) |
| 7823 | { |
| 7824 | long i = longval (); |
| 7825 | if (i != ((long) (sizeof (double)))) |
| 7826 | exit (1); |
| 7827 | fprintf (f, "%ld\n", i); |
| 7828 | } |
| 7829 | else |
| 7830 | { |
| 7831 | unsigned long i = ulongval (); |
| 7832 | if (i != ((long) (sizeof (double)))) |
| 7833 | exit (1); |
| 7834 | fprintf (f, "%lu\n", i); |
| 7835 | } |
| 7836 | exit (ferror (f) || fclose (f) != 0); |
| 7837 | |
| 7838 | ; |
| 7839 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7840 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7841 | _ACEOF |
| 7842 | rm -f conftest$ac_exeext |
| 7843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7844 | (eval $ac_link) 2>&5 |
| 7845 | ac_status=$? |
| 7846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7847 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7849 | (eval $ac_try) 2>&5 |
| 7850 | ac_status=$? |
| 7851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7852 | (exit $ac_status); }; }; then |
| 7853 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7854 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7855 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7856 | echo "$as_me: failed program was:" >&5 |
| 7857 | cat conftest.$ac_ext >&5 |
| 7858 | ( exit $ac_status ) |
| 7859 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7860 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7861 | { (exit 1); exit 1; }; } |
| 7862 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7863 | 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] | 7864 | fi |
| 7865 | fi |
| 7866 | rm -f conftest.val |
| 7867 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7868 | ac_cv_sizeof_double=0 |
| 7869 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7870 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7871 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 7872 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 7873 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7874 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7875 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7876 | |
| 7877 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7878 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 7879 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 7880 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 7881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7882 | else |
| 7883 | cat >conftest.$ac_ext <<_ACEOF |
| 7884 | #line $LINENO "configure" |
| 7885 | #include "confdefs.h" |
| 7886 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7887 | #ifdef F77_DUMMY_MAIN |
| 7888 | # ifdef __cplusplus |
| 7889 | extern "C" |
| 7890 | # endif |
| 7891 | int F77_DUMMY_MAIN() { return 1; } |
| 7892 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7893 | int |
| 7894 | main () |
| 7895 | { |
| 7896 | if ((fpos_t *) 0) |
| 7897 | return 0; |
| 7898 | if (sizeof (fpos_t)) |
| 7899 | return 0; |
| 7900 | ; |
| 7901 | return 0; |
| 7902 | } |
| 7903 | _ACEOF |
| 7904 | rm -f conftest.$ac_objext |
| 7905 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7906 | (eval $ac_compile) 2>&5 |
| 7907 | ac_status=$? |
| 7908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7909 | (exit $ac_status); } && |
| 7910 | { ac_try='test -s conftest.$ac_objext' |
| 7911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7912 | (eval $ac_try) 2>&5 |
| 7913 | ac_status=$? |
| 7914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7915 | (exit $ac_status); }; }; then |
| 7916 | ac_cv_type_fpos_t=yes |
| 7917 | else |
| 7918 | echo "$as_me: failed program was:" >&5 |
| 7919 | cat conftest.$ac_ext >&5 |
| 7920 | ac_cv_type_fpos_t=no |
| 7921 | fi |
| 7922 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7923 | fi |
| 7924 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 7925 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 7926 | |
| 7927 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 7928 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 7929 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 7930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7931 | else |
| 7932 | if test "$ac_cv_type_fpos_t" = yes; then |
| 7933 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7934 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7935 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7936 | # This bug is HP SR number 8606223364. |
| 7937 | if test "$cross_compiling" = yes; then |
| 7938 | # Depending upon the size, compute the lo and hi bounds. |
| 7939 | cat >conftest.$ac_ext <<_ACEOF |
| 7940 | #line $LINENO "configure" |
| 7941 | #include "confdefs.h" |
| 7942 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7943 | #ifdef F77_DUMMY_MAIN |
| 7944 | # ifdef __cplusplus |
| 7945 | extern "C" |
| 7946 | # endif |
| 7947 | int F77_DUMMY_MAIN() { return 1; } |
| 7948 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7949 | int |
| 7950 | main () |
| 7951 | { |
| 7952 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 7953 | test_array [0] = 0 |
| 7954 | |
| 7955 | ; |
| 7956 | return 0; |
| 7957 | } |
| 7958 | _ACEOF |
| 7959 | rm -f conftest.$ac_objext |
| 7960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7961 | (eval $ac_compile) 2>&5 |
| 7962 | ac_status=$? |
| 7963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7964 | (exit $ac_status); } && |
| 7965 | { ac_try='test -s conftest.$ac_objext' |
| 7966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7967 | (eval $ac_try) 2>&5 |
| 7968 | ac_status=$? |
| 7969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7970 | (exit $ac_status); }; }; then |
| 7971 | ac_lo=0 ac_mid=0 |
| 7972 | while :; do |
| 7973 | cat >conftest.$ac_ext <<_ACEOF |
| 7974 | #line $LINENO "configure" |
| 7975 | #include "confdefs.h" |
| 7976 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7977 | #ifdef F77_DUMMY_MAIN |
| 7978 | # ifdef __cplusplus |
| 7979 | extern "C" |
| 7980 | # endif |
| 7981 | int F77_DUMMY_MAIN() { return 1; } |
| 7982 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7983 | int |
| 7984 | main () |
| 7985 | { |
| 7986 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7987 | test_array [0] = 0 |
| 7988 | |
| 7989 | ; |
| 7990 | return 0; |
| 7991 | } |
| 7992 | _ACEOF |
| 7993 | rm -f conftest.$ac_objext |
| 7994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7995 | (eval $ac_compile) 2>&5 |
| 7996 | ac_status=$? |
| 7997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7998 | (exit $ac_status); } && |
| 7999 | { ac_try='test -s conftest.$ac_objext' |
| 8000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8001 | (eval $ac_try) 2>&5 |
| 8002 | ac_status=$? |
| 8003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8004 | (exit $ac_status); }; }; then |
| 8005 | ac_hi=$ac_mid; break |
| 8006 | else |
| 8007 | echo "$as_me: failed program was:" >&5 |
| 8008 | cat conftest.$ac_ext >&5 |
| 8009 | ac_lo=`expr $ac_mid + 1` |
| 8010 | if test $ac_lo -le $ac_mid; then |
| 8011 | ac_lo= ac_hi= |
| 8012 | break |
| 8013 | fi |
| 8014 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8015 | fi |
| 8016 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8017 | done |
| 8018 | else |
| 8019 | echo "$as_me: failed program was:" >&5 |
| 8020 | cat conftest.$ac_ext >&5 |
| 8021 | cat >conftest.$ac_ext <<_ACEOF |
| 8022 | #line $LINENO "configure" |
| 8023 | #include "confdefs.h" |
| 8024 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8025 | #ifdef F77_DUMMY_MAIN |
| 8026 | # ifdef __cplusplus |
| 8027 | extern "C" |
| 8028 | # endif |
| 8029 | int F77_DUMMY_MAIN() { return 1; } |
| 8030 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8031 | int |
| 8032 | main () |
| 8033 | { |
| 8034 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 8035 | test_array [0] = 0 |
| 8036 | |
| 8037 | ; |
| 8038 | return 0; |
| 8039 | } |
| 8040 | _ACEOF |
| 8041 | rm -f conftest.$ac_objext |
| 8042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8043 | (eval $ac_compile) 2>&5 |
| 8044 | ac_status=$? |
| 8045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8046 | (exit $ac_status); } && |
| 8047 | { ac_try='test -s conftest.$ac_objext' |
| 8048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8049 | (eval $ac_try) 2>&5 |
| 8050 | ac_status=$? |
| 8051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8052 | (exit $ac_status); }; }; then |
| 8053 | ac_hi=-1 ac_mid=-1 |
| 8054 | while :; do |
| 8055 | cat >conftest.$ac_ext <<_ACEOF |
| 8056 | #line $LINENO "configure" |
| 8057 | #include "confdefs.h" |
| 8058 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8059 | #ifdef F77_DUMMY_MAIN |
| 8060 | # ifdef __cplusplus |
| 8061 | extern "C" |
| 8062 | # endif |
| 8063 | int F77_DUMMY_MAIN() { return 1; } |
| 8064 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8065 | int |
| 8066 | main () |
| 8067 | { |
| 8068 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 8069 | test_array [0] = 0 |
| 8070 | |
| 8071 | ; |
| 8072 | return 0; |
| 8073 | } |
| 8074 | _ACEOF |
| 8075 | rm -f conftest.$ac_objext |
| 8076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8077 | (eval $ac_compile) 2>&5 |
| 8078 | ac_status=$? |
| 8079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8080 | (exit $ac_status); } && |
| 8081 | { ac_try='test -s conftest.$ac_objext' |
| 8082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8083 | (eval $ac_try) 2>&5 |
| 8084 | ac_status=$? |
| 8085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8086 | (exit $ac_status); }; }; then |
| 8087 | ac_lo=$ac_mid; break |
| 8088 | else |
| 8089 | echo "$as_me: failed program was:" >&5 |
| 8090 | cat conftest.$ac_ext >&5 |
| 8091 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8092 | if test $ac_mid -le $ac_hi; then |
| 8093 | ac_lo= ac_hi= |
| 8094 | break |
| 8095 | fi |
| 8096 | ac_mid=`expr 2 '*' $ac_mid` |
| 8097 | fi |
| 8098 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8099 | done |
| 8100 | else |
| 8101 | echo "$as_me: failed program was:" >&5 |
| 8102 | cat conftest.$ac_ext >&5 |
| 8103 | ac_lo= ac_hi= |
| 8104 | fi |
| 8105 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8106 | fi |
| 8107 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8108 | # Binary search between lo and hi bounds. |
| 8109 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8110 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8111 | cat >conftest.$ac_ext <<_ACEOF |
| 8112 | #line $LINENO "configure" |
| 8113 | #include "confdefs.h" |
| 8114 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8115 | #ifdef F77_DUMMY_MAIN |
| 8116 | # ifdef __cplusplus |
| 8117 | extern "C" |
| 8118 | # endif |
| 8119 | int F77_DUMMY_MAIN() { return 1; } |
| 8120 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8121 | int |
| 8122 | main () |
| 8123 | { |
| 8124 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8125 | test_array [0] = 0 |
| 8126 | |
| 8127 | ; |
| 8128 | return 0; |
| 8129 | } |
| 8130 | _ACEOF |
| 8131 | rm -f conftest.$ac_objext |
| 8132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8133 | (eval $ac_compile) 2>&5 |
| 8134 | ac_status=$? |
| 8135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8136 | (exit $ac_status); } && |
| 8137 | { ac_try='test -s conftest.$ac_objext' |
| 8138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8139 | (eval $ac_try) 2>&5 |
| 8140 | ac_status=$? |
| 8141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8142 | (exit $ac_status); }; }; then |
| 8143 | ac_hi=$ac_mid |
| 8144 | else |
| 8145 | echo "$as_me: failed program was:" >&5 |
| 8146 | cat conftest.$ac_ext >&5 |
| 8147 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8148 | fi |
| 8149 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8150 | done |
| 8151 | case $ac_lo in |
| 8152 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
| 8153 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 8154 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 8155 | { (exit 1); exit 1; }; } ;; |
| 8156 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8157 | else |
| 8158 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8159 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8160 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8161 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8162 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8163 | cat >conftest.$ac_ext <<_ACEOF |
| 8164 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8165 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8166 | $ac_includes_default |
| 8167 | long longval () { return (long) (sizeof (fpos_t)); } |
| 8168 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8169 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8170 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8171 | #ifdef F77_DUMMY_MAIN |
| 8172 | # ifdef __cplusplus |
| 8173 | extern "C" |
| 8174 | # endif |
| 8175 | int F77_DUMMY_MAIN() { return 1; } |
| 8176 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8177 | int |
| 8178 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8179 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8180 | |
| 8181 | FILE *f = fopen ("conftest.val", "w"); |
| 8182 | if (! f) |
| 8183 | exit (1); |
| 8184 | if (((long) (sizeof (fpos_t))) < 0) |
| 8185 | { |
| 8186 | long i = longval (); |
| 8187 | if (i != ((long) (sizeof (fpos_t)))) |
| 8188 | exit (1); |
| 8189 | fprintf (f, "%ld\n", i); |
| 8190 | } |
| 8191 | else |
| 8192 | { |
| 8193 | unsigned long i = ulongval (); |
| 8194 | if (i != ((long) (sizeof (fpos_t)))) |
| 8195 | exit (1); |
| 8196 | fprintf (f, "%lu\n", i); |
| 8197 | } |
| 8198 | exit (ferror (f) || fclose (f) != 0); |
| 8199 | |
| 8200 | ; |
| 8201 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8202 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8203 | _ACEOF |
| 8204 | rm -f conftest$ac_exeext |
| 8205 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8206 | (eval $ac_link) 2>&5 |
| 8207 | ac_status=$? |
| 8208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8209 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8211 | (eval $ac_try) 2>&5 |
| 8212 | ac_status=$? |
| 8213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8214 | (exit $ac_status); }; }; then |
| 8215 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8216 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8217 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8218 | echo "$as_me: failed program was:" >&5 |
| 8219 | cat conftest.$ac_ext >&5 |
| 8220 | ( exit $ac_status ) |
| 8221 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 8222 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 8223 | { (exit 1); exit 1; }; } |
| 8224 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8225 | 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] | 8226 | fi |
| 8227 | fi |
| 8228 | rm -f conftest.val |
| 8229 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8230 | ac_cv_sizeof_fpos_t=0 |
| 8231 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8232 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8233 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 8234 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 8235 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8236 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8237 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8238 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8239 | |
| 8240 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8241 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 8242 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8243 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8244 | cat >conftest.$ac_ext <<_ACEOF |
| 8245 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8246 | #include "confdefs.h" |
| 8247 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8248 | #ifdef F77_DUMMY_MAIN |
| 8249 | # ifdef __cplusplus |
| 8250 | extern "C" |
| 8251 | # endif |
| 8252 | int F77_DUMMY_MAIN() { return 1; } |
| 8253 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8254 | int |
| 8255 | main () |
| 8256 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8257 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8258 | ; |
| 8259 | return 0; |
| 8260 | } |
| 8261 | _ACEOF |
| 8262 | rm -f conftest.$ac_objext |
| 8263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8264 | (eval $ac_compile) 2>&5 |
| 8265 | ac_status=$? |
| 8266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8267 | (exit $ac_status); } && |
| 8268 | { ac_try='test -s conftest.$ac_objext' |
| 8269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8270 | (eval $ac_try) 2>&5 |
| 8271 | ac_status=$? |
| 8272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8273 | (exit $ac_status); }; }; then |
| 8274 | |
| 8275 | |
| 8276 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8277 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8278 | _ACEOF |
| 8279 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8280 | have_long_long=yes |
| 8281 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8282 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8283 | echo "$as_me: failed program was:" >&5 |
| 8284 | cat conftest.$ac_ext >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8285 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8286 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8287 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 8288 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8289 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8290 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 8291 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 8292 | if test "${ac_cv_type_long_long+set}" = set; then |
| 8293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8294 | else |
| 8295 | cat >conftest.$ac_ext <<_ACEOF |
| 8296 | #line $LINENO "configure" |
| 8297 | #include "confdefs.h" |
| 8298 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8299 | #ifdef F77_DUMMY_MAIN |
| 8300 | # ifdef __cplusplus |
| 8301 | extern "C" |
| 8302 | # endif |
| 8303 | int F77_DUMMY_MAIN() { return 1; } |
| 8304 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8305 | int |
| 8306 | main () |
| 8307 | { |
| 8308 | if ((long long *) 0) |
| 8309 | return 0; |
| 8310 | if (sizeof (long long)) |
| 8311 | return 0; |
| 8312 | ; |
| 8313 | return 0; |
| 8314 | } |
| 8315 | _ACEOF |
| 8316 | rm -f conftest.$ac_objext |
| 8317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8318 | (eval $ac_compile) 2>&5 |
| 8319 | ac_status=$? |
| 8320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8321 | (exit $ac_status); } && |
| 8322 | { ac_try='test -s conftest.$ac_objext' |
| 8323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8324 | (eval $ac_try) 2>&5 |
| 8325 | ac_status=$? |
| 8326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8327 | (exit $ac_status); }; }; then |
| 8328 | ac_cv_type_long_long=yes |
| 8329 | else |
| 8330 | echo "$as_me: failed program was:" >&5 |
| 8331 | cat conftest.$ac_ext >&5 |
| 8332 | ac_cv_type_long_long=no |
| 8333 | fi |
| 8334 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8335 | fi |
| 8336 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 8337 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 8338 | |
| 8339 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 8340 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 8341 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 8342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8343 | else |
| 8344 | if test "$ac_cv_type_long_long" = yes; then |
| 8345 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8346 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8347 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8348 | # This bug is HP SR number 8606223364. |
| 8349 | if test "$cross_compiling" = yes; then |
| 8350 | # Depending upon the size, compute the lo and hi bounds. |
| 8351 | cat >conftest.$ac_ext <<_ACEOF |
| 8352 | #line $LINENO "configure" |
| 8353 | #include "confdefs.h" |
| 8354 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8355 | #ifdef F77_DUMMY_MAIN |
| 8356 | # ifdef __cplusplus |
| 8357 | extern "C" |
| 8358 | # endif |
| 8359 | int F77_DUMMY_MAIN() { return 1; } |
| 8360 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8361 | int |
| 8362 | main () |
| 8363 | { |
| 8364 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 8365 | test_array [0] = 0 |
| 8366 | |
| 8367 | ; |
| 8368 | return 0; |
| 8369 | } |
| 8370 | _ACEOF |
| 8371 | rm -f conftest.$ac_objext |
| 8372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8373 | (eval $ac_compile) 2>&5 |
| 8374 | ac_status=$? |
| 8375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8376 | (exit $ac_status); } && |
| 8377 | { ac_try='test -s conftest.$ac_objext' |
| 8378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8379 | (eval $ac_try) 2>&5 |
| 8380 | ac_status=$? |
| 8381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8382 | (exit $ac_status); }; }; then |
| 8383 | ac_lo=0 ac_mid=0 |
| 8384 | while :; do |
| 8385 | cat >conftest.$ac_ext <<_ACEOF |
| 8386 | #line $LINENO "configure" |
| 8387 | #include "confdefs.h" |
| 8388 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8389 | #ifdef F77_DUMMY_MAIN |
| 8390 | # ifdef __cplusplus |
| 8391 | extern "C" |
| 8392 | # endif |
| 8393 | int F77_DUMMY_MAIN() { return 1; } |
| 8394 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8395 | int |
| 8396 | main () |
| 8397 | { |
| 8398 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8399 | test_array [0] = 0 |
| 8400 | |
| 8401 | ; |
| 8402 | return 0; |
| 8403 | } |
| 8404 | _ACEOF |
| 8405 | rm -f conftest.$ac_objext |
| 8406 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8407 | (eval $ac_compile) 2>&5 |
| 8408 | ac_status=$? |
| 8409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8410 | (exit $ac_status); } && |
| 8411 | { ac_try='test -s conftest.$ac_objext' |
| 8412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8413 | (eval $ac_try) 2>&5 |
| 8414 | ac_status=$? |
| 8415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8416 | (exit $ac_status); }; }; then |
| 8417 | ac_hi=$ac_mid; break |
| 8418 | else |
| 8419 | echo "$as_me: failed program was:" >&5 |
| 8420 | cat conftest.$ac_ext >&5 |
| 8421 | ac_lo=`expr $ac_mid + 1` |
| 8422 | if test $ac_lo -le $ac_mid; then |
| 8423 | ac_lo= ac_hi= |
| 8424 | break |
| 8425 | fi |
| 8426 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8427 | fi |
| 8428 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8429 | done |
| 8430 | else |
| 8431 | echo "$as_me: failed program was:" >&5 |
| 8432 | cat conftest.$ac_ext >&5 |
| 8433 | cat >conftest.$ac_ext <<_ACEOF |
| 8434 | #line $LINENO "configure" |
| 8435 | #include "confdefs.h" |
| 8436 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8437 | #ifdef F77_DUMMY_MAIN |
| 8438 | # ifdef __cplusplus |
| 8439 | extern "C" |
| 8440 | # endif |
| 8441 | int F77_DUMMY_MAIN() { return 1; } |
| 8442 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8443 | int |
| 8444 | main () |
| 8445 | { |
| 8446 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 8447 | test_array [0] = 0 |
| 8448 | |
| 8449 | ; |
| 8450 | return 0; |
| 8451 | } |
| 8452 | _ACEOF |
| 8453 | rm -f conftest.$ac_objext |
| 8454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8455 | (eval $ac_compile) 2>&5 |
| 8456 | ac_status=$? |
| 8457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8458 | (exit $ac_status); } && |
| 8459 | { ac_try='test -s conftest.$ac_objext' |
| 8460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8461 | (eval $ac_try) 2>&5 |
| 8462 | ac_status=$? |
| 8463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8464 | (exit $ac_status); }; }; then |
| 8465 | ac_hi=-1 ac_mid=-1 |
| 8466 | while :; do |
| 8467 | cat >conftest.$ac_ext <<_ACEOF |
| 8468 | #line $LINENO "configure" |
| 8469 | #include "confdefs.h" |
| 8470 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8471 | #ifdef F77_DUMMY_MAIN |
| 8472 | # ifdef __cplusplus |
| 8473 | extern "C" |
| 8474 | # endif |
| 8475 | int F77_DUMMY_MAIN() { return 1; } |
| 8476 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8477 | int |
| 8478 | main () |
| 8479 | { |
| 8480 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 8481 | test_array [0] = 0 |
| 8482 | |
| 8483 | ; |
| 8484 | return 0; |
| 8485 | } |
| 8486 | _ACEOF |
| 8487 | rm -f conftest.$ac_objext |
| 8488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8489 | (eval $ac_compile) 2>&5 |
| 8490 | ac_status=$? |
| 8491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8492 | (exit $ac_status); } && |
| 8493 | { ac_try='test -s conftest.$ac_objext' |
| 8494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8495 | (eval $ac_try) 2>&5 |
| 8496 | ac_status=$? |
| 8497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8498 | (exit $ac_status); }; }; then |
| 8499 | ac_lo=$ac_mid; break |
| 8500 | else |
| 8501 | echo "$as_me: failed program was:" >&5 |
| 8502 | cat conftest.$ac_ext >&5 |
| 8503 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8504 | if test $ac_mid -le $ac_hi; then |
| 8505 | ac_lo= ac_hi= |
| 8506 | break |
| 8507 | fi |
| 8508 | ac_mid=`expr 2 '*' $ac_mid` |
| 8509 | fi |
| 8510 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8511 | done |
| 8512 | else |
| 8513 | echo "$as_me: failed program was:" >&5 |
| 8514 | cat conftest.$ac_ext >&5 |
| 8515 | ac_lo= ac_hi= |
| 8516 | fi |
| 8517 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8518 | fi |
| 8519 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8520 | # Binary search between lo and hi bounds. |
| 8521 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8522 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8523 | cat >conftest.$ac_ext <<_ACEOF |
| 8524 | #line $LINENO "configure" |
| 8525 | #include "confdefs.h" |
| 8526 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8527 | #ifdef F77_DUMMY_MAIN |
| 8528 | # ifdef __cplusplus |
| 8529 | extern "C" |
| 8530 | # endif |
| 8531 | int F77_DUMMY_MAIN() { return 1; } |
| 8532 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8533 | int |
| 8534 | main () |
| 8535 | { |
| 8536 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8537 | test_array [0] = 0 |
| 8538 | |
| 8539 | ; |
| 8540 | return 0; |
| 8541 | } |
| 8542 | _ACEOF |
| 8543 | rm -f conftest.$ac_objext |
| 8544 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8545 | (eval $ac_compile) 2>&5 |
| 8546 | ac_status=$? |
| 8547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8548 | (exit $ac_status); } && |
| 8549 | { ac_try='test -s conftest.$ac_objext' |
| 8550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8551 | (eval $ac_try) 2>&5 |
| 8552 | ac_status=$? |
| 8553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8554 | (exit $ac_status); }; }; then |
| 8555 | ac_hi=$ac_mid |
| 8556 | else |
| 8557 | echo "$as_me: failed program was:" >&5 |
| 8558 | cat conftest.$ac_ext >&5 |
| 8559 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8560 | fi |
| 8561 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8562 | done |
| 8563 | case $ac_lo in |
| 8564 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
| 8565 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8566 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8567 | { (exit 1); exit 1; }; } ;; |
| 8568 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8569 | else |
| 8570 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8571 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8572 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8573 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8574 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8575 | cat >conftest.$ac_ext <<_ACEOF |
| 8576 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8577 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8578 | $ac_includes_default |
| 8579 | long longval () { return (long) (sizeof (long long)); } |
| 8580 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8581 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8582 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8583 | #ifdef F77_DUMMY_MAIN |
| 8584 | # ifdef __cplusplus |
| 8585 | extern "C" |
| 8586 | # endif |
| 8587 | int F77_DUMMY_MAIN() { return 1; } |
| 8588 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8589 | int |
| 8590 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8591 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8592 | |
| 8593 | FILE *f = fopen ("conftest.val", "w"); |
| 8594 | if (! f) |
| 8595 | exit (1); |
| 8596 | if (((long) (sizeof (long long))) < 0) |
| 8597 | { |
| 8598 | long i = longval (); |
| 8599 | if (i != ((long) (sizeof (long long)))) |
| 8600 | exit (1); |
| 8601 | fprintf (f, "%ld\n", i); |
| 8602 | } |
| 8603 | else |
| 8604 | { |
| 8605 | unsigned long i = ulongval (); |
| 8606 | if (i != ((long) (sizeof (long long)))) |
| 8607 | exit (1); |
| 8608 | fprintf (f, "%lu\n", i); |
| 8609 | } |
| 8610 | exit (ferror (f) || fclose (f) != 0); |
| 8611 | |
| 8612 | ; |
| 8613 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8614 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8615 | _ACEOF |
| 8616 | rm -f conftest$ac_exeext |
| 8617 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8618 | (eval $ac_link) 2>&5 |
| 8619 | ac_status=$? |
| 8620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8621 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8623 | (eval $ac_try) 2>&5 |
| 8624 | ac_status=$? |
| 8625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8626 | (exit $ac_status); }; }; then |
| 8627 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8628 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8629 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8630 | echo "$as_me: failed program was:" >&5 |
| 8631 | cat conftest.$ac_ext >&5 |
| 8632 | ( exit $ac_status ) |
| 8633 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8634 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8635 | { (exit 1); exit 1; }; } |
| 8636 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8637 | 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] | 8638 | fi |
| 8639 | fi |
| 8640 | rm -f conftest.val |
| 8641 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8642 | ac_cv_sizeof_long_long=0 |
| 8643 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8644 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8645 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 8646 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 8647 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8648 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8649 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8650 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8651 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8652 | fi |
| 8653 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8654 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 8655 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8656 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8657 | cat >conftest.$ac_ext <<_ACEOF |
| 8658 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8659 | #include "confdefs.h" |
| 8660 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8661 | #ifdef F77_DUMMY_MAIN |
| 8662 | # ifdef __cplusplus |
| 8663 | extern "C" |
| 8664 | # endif |
| 8665 | int F77_DUMMY_MAIN() { return 1; } |
| 8666 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8667 | int |
| 8668 | main () |
| 8669 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8670 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8671 | ; |
| 8672 | return 0; |
| 8673 | } |
| 8674 | _ACEOF |
| 8675 | rm -f conftest.$ac_objext |
| 8676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8677 | (eval $ac_compile) 2>&5 |
| 8678 | ac_status=$? |
| 8679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8680 | (exit $ac_status); } && |
| 8681 | { ac_try='test -s conftest.$ac_objext' |
| 8682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8683 | (eval $ac_try) 2>&5 |
| 8684 | ac_status=$? |
| 8685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8686 | (exit $ac_status); }; }; then |
| 8687 | |
| 8688 | |
| 8689 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8690 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8691 | _ACEOF |
| 8692 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8693 | have_uintptr_t=yes |
| 8694 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8695 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8696 | echo "$as_me: failed program was:" >&5 |
| 8697 | cat conftest.$ac_ext >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8698 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8699 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8700 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 8701 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8702 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8703 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 8704 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 8705 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 8706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8707 | else |
| 8708 | cat >conftest.$ac_ext <<_ACEOF |
| 8709 | #line $LINENO "configure" |
| 8710 | #include "confdefs.h" |
| 8711 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8712 | #ifdef F77_DUMMY_MAIN |
| 8713 | # ifdef __cplusplus |
| 8714 | extern "C" |
| 8715 | # endif |
| 8716 | int F77_DUMMY_MAIN() { return 1; } |
| 8717 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8718 | int |
| 8719 | main () |
| 8720 | { |
| 8721 | if ((uintptr_t *) 0) |
| 8722 | return 0; |
| 8723 | if (sizeof (uintptr_t)) |
| 8724 | return 0; |
| 8725 | ; |
| 8726 | return 0; |
| 8727 | } |
| 8728 | _ACEOF |
| 8729 | rm -f conftest.$ac_objext |
| 8730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8731 | (eval $ac_compile) 2>&5 |
| 8732 | ac_status=$? |
| 8733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8734 | (exit $ac_status); } && |
| 8735 | { ac_try='test -s conftest.$ac_objext' |
| 8736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8737 | (eval $ac_try) 2>&5 |
| 8738 | ac_status=$? |
| 8739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8740 | (exit $ac_status); }; }; then |
| 8741 | ac_cv_type_uintptr_t=yes |
| 8742 | else |
| 8743 | echo "$as_me: failed program was:" >&5 |
| 8744 | cat conftest.$ac_ext >&5 |
| 8745 | ac_cv_type_uintptr_t=no |
| 8746 | fi |
| 8747 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8748 | fi |
| 8749 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 8750 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 8751 | |
| 8752 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 8753 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 8754 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 8755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8756 | else |
| 8757 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 8758 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8759 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8760 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8761 | # This bug is HP SR number 8606223364. |
| 8762 | if test "$cross_compiling" = yes; then |
| 8763 | # Depending upon the size, compute the lo and hi bounds. |
| 8764 | cat >conftest.$ac_ext <<_ACEOF |
| 8765 | #line $LINENO "configure" |
| 8766 | #include "confdefs.h" |
| 8767 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8768 | #ifdef F77_DUMMY_MAIN |
| 8769 | # ifdef __cplusplus |
| 8770 | extern "C" |
| 8771 | # endif |
| 8772 | int F77_DUMMY_MAIN() { return 1; } |
| 8773 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8774 | int |
| 8775 | main () |
| 8776 | { |
| 8777 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 8778 | test_array [0] = 0 |
| 8779 | |
| 8780 | ; |
| 8781 | return 0; |
| 8782 | } |
| 8783 | _ACEOF |
| 8784 | rm -f conftest.$ac_objext |
| 8785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8786 | (eval $ac_compile) 2>&5 |
| 8787 | ac_status=$? |
| 8788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8789 | (exit $ac_status); } && |
| 8790 | { ac_try='test -s conftest.$ac_objext' |
| 8791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8792 | (eval $ac_try) 2>&5 |
| 8793 | ac_status=$? |
| 8794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8795 | (exit $ac_status); }; }; then |
| 8796 | ac_lo=0 ac_mid=0 |
| 8797 | while :; do |
| 8798 | cat >conftest.$ac_ext <<_ACEOF |
| 8799 | #line $LINENO "configure" |
| 8800 | #include "confdefs.h" |
| 8801 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8802 | #ifdef F77_DUMMY_MAIN |
| 8803 | # ifdef __cplusplus |
| 8804 | extern "C" |
| 8805 | # endif |
| 8806 | int F77_DUMMY_MAIN() { return 1; } |
| 8807 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8808 | int |
| 8809 | main () |
| 8810 | { |
| 8811 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8812 | test_array [0] = 0 |
| 8813 | |
| 8814 | ; |
| 8815 | return 0; |
| 8816 | } |
| 8817 | _ACEOF |
| 8818 | rm -f conftest.$ac_objext |
| 8819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8820 | (eval $ac_compile) 2>&5 |
| 8821 | ac_status=$? |
| 8822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8823 | (exit $ac_status); } && |
| 8824 | { ac_try='test -s conftest.$ac_objext' |
| 8825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8826 | (eval $ac_try) 2>&5 |
| 8827 | ac_status=$? |
| 8828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8829 | (exit $ac_status); }; }; then |
| 8830 | ac_hi=$ac_mid; break |
| 8831 | else |
| 8832 | echo "$as_me: failed program was:" >&5 |
| 8833 | cat conftest.$ac_ext >&5 |
| 8834 | ac_lo=`expr $ac_mid + 1` |
| 8835 | if test $ac_lo -le $ac_mid; then |
| 8836 | ac_lo= ac_hi= |
| 8837 | break |
| 8838 | fi |
| 8839 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8840 | fi |
| 8841 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8842 | done |
| 8843 | else |
| 8844 | echo "$as_me: failed program was:" >&5 |
| 8845 | cat conftest.$ac_ext >&5 |
| 8846 | cat >conftest.$ac_ext <<_ACEOF |
| 8847 | #line $LINENO "configure" |
| 8848 | #include "confdefs.h" |
| 8849 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8850 | #ifdef F77_DUMMY_MAIN |
| 8851 | # ifdef __cplusplus |
| 8852 | extern "C" |
| 8853 | # endif |
| 8854 | int F77_DUMMY_MAIN() { return 1; } |
| 8855 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8856 | int |
| 8857 | main () |
| 8858 | { |
| 8859 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 8860 | test_array [0] = 0 |
| 8861 | |
| 8862 | ; |
| 8863 | return 0; |
| 8864 | } |
| 8865 | _ACEOF |
| 8866 | rm -f conftest.$ac_objext |
| 8867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8868 | (eval $ac_compile) 2>&5 |
| 8869 | ac_status=$? |
| 8870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8871 | (exit $ac_status); } && |
| 8872 | { ac_try='test -s conftest.$ac_objext' |
| 8873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8874 | (eval $ac_try) 2>&5 |
| 8875 | ac_status=$? |
| 8876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8877 | (exit $ac_status); }; }; then |
| 8878 | ac_hi=-1 ac_mid=-1 |
| 8879 | while :; do |
| 8880 | cat >conftest.$ac_ext <<_ACEOF |
| 8881 | #line $LINENO "configure" |
| 8882 | #include "confdefs.h" |
| 8883 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8884 | #ifdef F77_DUMMY_MAIN |
| 8885 | # ifdef __cplusplus |
| 8886 | extern "C" |
| 8887 | # endif |
| 8888 | int F77_DUMMY_MAIN() { return 1; } |
| 8889 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8890 | int |
| 8891 | main () |
| 8892 | { |
| 8893 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 8894 | test_array [0] = 0 |
| 8895 | |
| 8896 | ; |
| 8897 | return 0; |
| 8898 | } |
| 8899 | _ACEOF |
| 8900 | rm -f conftest.$ac_objext |
| 8901 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8902 | (eval $ac_compile) 2>&5 |
| 8903 | ac_status=$? |
| 8904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8905 | (exit $ac_status); } && |
| 8906 | { ac_try='test -s conftest.$ac_objext' |
| 8907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8908 | (eval $ac_try) 2>&5 |
| 8909 | ac_status=$? |
| 8910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8911 | (exit $ac_status); }; }; then |
| 8912 | ac_lo=$ac_mid; break |
| 8913 | else |
| 8914 | echo "$as_me: failed program was:" >&5 |
| 8915 | cat conftest.$ac_ext >&5 |
| 8916 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8917 | if test $ac_mid -le $ac_hi; then |
| 8918 | ac_lo= ac_hi= |
| 8919 | break |
| 8920 | fi |
| 8921 | ac_mid=`expr 2 '*' $ac_mid` |
| 8922 | fi |
| 8923 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8924 | done |
| 8925 | else |
| 8926 | echo "$as_me: failed program was:" >&5 |
| 8927 | cat conftest.$ac_ext >&5 |
| 8928 | ac_lo= ac_hi= |
| 8929 | fi |
| 8930 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8931 | fi |
| 8932 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8933 | # Binary search between lo and hi bounds. |
| 8934 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8935 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8936 | cat >conftest.$ac_ext <<_ACEOF |
| 8937 | #line $LINENO "configure" |
| 8938 | #include "confdefs.h" |
| 8939 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8940 | #ifdef F77_DUMMY_MAIN |
| 8941 | # ifdef __cplusplus |
| 8942 | extern "C" |
| 8943 | # endif |
| 8944 | int F77_DUMMY_MAIN() { return 1; } |
| 8945 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8946 | int |
| 8947 | main () |
| 8948 | { |
| 8949 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8950 | test_array [0] = 0 |
| 8951 | |
| 8952 | ; |
| 8953 | return 0; |
| 8954 | } |
| 8955 | _ACEOF |
| 8956 | rm -f conftest.$ac_objext |
| 8957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8958 | (eval $ac_compile) 2>&5 |
| 8959 | ac_status=$? |
| 8960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8961 | (exit $ac_status); } && |
| 8962 | { ac_try='test -s conftest.$ac_objext' |
| 8963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8964 | (eval $ac_try) 2>&5 |
| 8965 | ac_status=$? |
| 8966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8967 | (exit $ac_status); }; }; then |
| 8968 | ac_hi=$ac_mid |
| 8969 | else |
| 8970 | echo "$as_me: failed program was:" >&5 |
| 8971 | cat conftest.$ac_ext >&5 |
| 8972 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8973 | fi |
| 8974 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8975 | done |
| 8976 | case $ac_lo in |
| 8977 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
| 8978 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8979 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8980 | { (exit 1); exit 1; }; } ;; |
| 8981 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8982 | else |
| 8983 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8984 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8985 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8986 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8987 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8988 | cat >conftest.$ac_ext <<_ACEOF |
| 8989 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8990 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8991 | $ac_includes_default |
| 8992 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 8993 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8994 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8995 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8996 | #ifdef F77_DUMMY_MAIN |
| 8997 | # ifdef __cplusplus |
| 8998 | extern "C" |
| 8999 | # endif |
| 9000 | int F77_DUMMY_MAIN() { return 1; } |
| 9001 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9002 | int |
| 9003 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9004 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9005 | |
| 9006 | FILE *f = fopen ("conftest.val", "w"); |
| 9007 | if (! f) |
| 9008 | exit (1); |
| 9009 | if (((long) (sizeof (uintptr_t))) < 0) |
| 9010 | { |
| 9011 | long i = longval (); |
| 9012 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9013 | exit (1); |
| 9014 | fprintf (f, "%ld\n", i); |
| 9015 | } |
| 9016 | else |
| 9017 | { |
| 9018 | unsigned long i = ulongval (); |
| 9019 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9020 | exit (1); |
| 9021 | fprintf (f, "%lu\n", i); |
| 9022 | } |
| 9023 | exit (ferror (f) || fclose (f) != 0); |
| 9024 | |
| 9025 | ; |
| 9026 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9027 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9028 | _ACEOF |
| 9029 | rm -f conftest$ac_exeext |
| 9030 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9031 | (eval $ac_link) 2>&5 |
| 9032 | ac_status=$? |
| 9033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9034 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9036 | (eval $ac_try) 2>&5 |
| 9037 | ac_status=$? |
| 9038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9039 | (exit $ac_status); }; }; then |
| 9040 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9041 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9042 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9043 | echo "$as_me: failed program was:" >&5 |
| 9044 | cat conftest.$ac_ext >&5 |
| 9045 | ( exit $ac_status ) |
| 9046 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 9047 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 9048 | { (exit 1); exit 1; }; } |
| 9049 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9050 | 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] | 9051 | fi |
| 9052 | fi |
| 9053 | rm -f conftest.val |
| 9054 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9055 | ac_cv_sizeof_uintptr_t=0 |
| 9056 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9057 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9058 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 9059 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 9060 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9061 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9062 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9063 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9064 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9065 | fi |
| 9066 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9067 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9068 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 9069 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 9070 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 9071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9072 | else |
| 9073 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9074 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9075 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9076 | cat >conftest.$ac_ext <<_ACEOF |
| 9077 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9078 | #include "confdefs.h" |
| 9079 | #include <stdio.h> |
| 9080 | #include <sys/types.h> |
| 9081 | main() |
| 9082 | { |
| 9083 | FILE *f=fopen("conftestval", "w"); |
| 9084 | if (!f) exit(1); |
| 9085 | fprintf(f, "%d\n", sizeof(off_t)); |
| 9086 | exit(0); |
| 9087 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9088 | _ACEOF |
| 9089 | rm -f conftest$ac_exeext |
| 9090 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9091 | (eval $ac_link) 2>&5 |
| 9092 | ac_status=$? |
| 9093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9094 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9096 | (eval $ac_try) 2>&5 |
| 9097 | ac_status=$? |
| 9098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9099 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9100 | ac_cv_sizeof_off_t=`cat conftestval` |
| 9101 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9102 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9103 | echo "$as_me: failed program was:" >&5 |
| 9104 | cat conftest.$ac_ext >&5 |
| 9105 | ( exit $ac_status ) |
| 9106 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9107 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9108 | 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] | 9109 | fi |
| 9110 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9111 | fi |
| 9112 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9113 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 9114 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 9115 | |
| 9116 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9117 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9118 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9119 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9120 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9121 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 9122 | 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] | 9123 | if test "$have_long_long" = yes -a \ |
| 9124 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 9125 | "$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] | 9126 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9127 | cat >>confdefs.h <<\_ACEOF |
| 9128 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 9129 | _ACEOF |
| 9130 | |
| 9131 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9132 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9133 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9134 | echo "$as_me:$LINENO: result: no" >&5 |
| 9135 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9136 | fi |
| 9137 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9138 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9139 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 9140 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 9141 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 9142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9143 | else |
| 9144 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9145 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9146 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9147 | cat >conftest.$ac_ext <<_ACEOF |
| 9148 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9149 | #include "confdefs.h" |
| 9150 | #include <stdio.h> |
| 9151 | #include <time.h> |
| 9152 | main() |
| 9153 | { |
| 9154 | FILE *f=fopen("conftestval", "w"); |
| 9155 | if (!f) exit(1); |
| 9156 | fprintf(f, "%d\n", sizeof(time_t)); |
| 9157 | exit(0); |
| 9158 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9159 | _ACEOF |
| 9160 | rm -f conftest$ac_exeext |
| 9161 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9162 | (eval $ac_link) 2>&5 |
| 9163 | ac_status=$? |
| 9164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9165 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9167 | (eval $ac_try) 2>&5 |
| 9168 | ac_status=$? |
| 9169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9170 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9171 | ac_cv_sizeof_time_t=`cat conftestval` |
| 9172 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9173 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9174 | echo "$as_me: failed program was:" >&5 |
| 9175 | cat conftest.$ac_ext >&5 |
| 9176 | ( exit $ac_status ) |
| 9177 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9178 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9179 | 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] | 9180 | fi |
| 9181 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9182 | fi |
| 9183 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9184 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 9185 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 9186 | |
| 9187 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9188 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9189 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9190 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9191 | |
| 9192 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9193 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9194 | ac_save_cc="$CC" |
| 9195 | if test "$ac_cv_kpthread" = "yes" |
| 9196 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9197 | elif test "$ac_cv_kthread" = "yes" |
| 9198 | then CC="$CC -Kthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9199 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9200 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 9201 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9202 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9203 | cat >conftest.$ac_ext <<_ACEOF |
| 9204 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9205 | #include "confdefs.h" |
| 9206 | #include <pthread.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9207 | #ifdef F77_DUMMY_MAIN |
| 9208 | # ifdef __cplusplus |
| 9209 | extern "C" |
| 9210 | # endif |
| 9211 | int F77_DUMMY_MAIN() { return 1; } |
| 9212 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9213 | int |
| 9214 | main () |
| 9215 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 9216 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9217 | ; |
| 9218 | return 0; |
| 9219 | } |
| 9220 | _ACEOF |
| 9221 | rm -f conftest.$ac_objext |
| 9222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9223 | (eval $ac_compile) 2>&5 |
| 9224 | ac_status=$? |
| 9225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9226 | (exit $ac_status); } && |
| 9227 | { ac_try='test -s conftest.$ac_objext' |
| 9228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9229 | (eval $ac_try) 2>&5 |
| 9230 | ac_status=$? |
| 9231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9232 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9233 | have_pthread_t=yes |
| 9234 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9235 | echo "$as_me: failed program was:" >&5 |
| 9236 | cat conftest.$ac_ext >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9237 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9238 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9239 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 9240 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9241 | if test "$have_pthread_t" = yes ; then |
| 9242 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9243 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 9244 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 9245 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 9246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9247 | else |
| 9248 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9249 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9250 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9251 | cat >conftest.$ac_ext <<_ACEOF |
| 9252 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9253 | #include "confdefs.h" |
| 9254 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 9255 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9256 | main() |
| 9257 | { |
| 9258 | FILE *f=fopen("conftestval", "w"); |
| 9259 | if (!f) exit(1); |
| 9260 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 9261 | exit(0); |
| 9262 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9263 | _ACEOF |
| 9264 | rm -f conftest$ac_exeext |
| 9265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9266 | (eval $ac_link) 2>&5 |
| 9267 | ac_status=$? |
| 9268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9269 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9271 | (eval $ac_try) 2>&5 |
| 9272 | ac_status=$? |
| 9273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9274 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9275 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 9276 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9277 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9278 | echo "$as_me: failed program was:" >&5 |
| 9279 | cat conftest.$ac_ext >&5 |
| 9280 | ( exit $ac_status ) |
| 9281 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9282 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9283 | 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] | 9284 | fi |
| 9285 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9286 | fi |
| 9287 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9288 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 9289 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 9290 | |
| 9291 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9292 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9293 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9294 | |
| 9295 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9296 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9297 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9298 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 9299 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9300 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 9301 | if test "${enable_toolbox_glue+set}" = set; then |
| 9302 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9303 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9304 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9305 | |
| 9306 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9307 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9308 | case $ac_sys_system/$ac_sys_release in |
| 9309 | Darwin/*) |
| 9310 | enable_toolbox_glue="yes";; |
| 9311 | *) |
| 9312 | enable_toolbox_glue="no";; |
| 9313 | esac |
| 9314 | fi |
| 9315 | case "$enable_toolbox_glue" in |
| 9316 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 9317 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9318 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9319 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9320 | |
| 9321 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9322 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9323 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9324 | |
| 9325 | ;; |
| 9326 | *) |
| 9327 | extra_frameworks="" |
| 9328 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9329 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9330 | ;; |
| 9331 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9332 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 9333 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9334 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9335 | |
| 9336 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9337 | Darwin/1.3*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9338 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9339 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9340 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 9341 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 9342 | Darwin/*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9343 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9344 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9345 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 9346 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9347 | esac |
| 9348 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9349 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 9350 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9351 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9352 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9353 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9354 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9355 | # in the build location. |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9356 | LDFLAGS="$LDFLAGS -Wl,-F." |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9357 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9358 | cat >>confdefs.h <<\_ACEOF |
| 9359 | #define WITH_NEXT_FRAMEWORK 1 |
| 9360 | _ACEOF |
| 9361 | |
| 9362 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9363 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9364 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9365 | echo "$as_me:$LINENO: result: no" >&5 |
| 9366 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9367 | fi |
| 9368 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9369 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 9370 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9371 | case $ac_sys_system/$ac_sys_release in |
| 9372 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9373 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9374 | cat >>confdefs.h <<\_ACEOF |
| 9375 | #define WITH_DYLD 1 |
| 9376 | _ACEOF |
| 9377 | |
| 9378 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 9379 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9380 | ;; |
| 9381 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9382 | echo "$as_me:$LINENO: result: no" >&5 |
| 9383 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9384 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9385 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9386 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9387 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9388 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9389 | |
| 9390 | |
| 9391 | |
| 9392 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9393 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9394 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9395 | echo "$as_me:$LINENO: checking SO" >&5 |
| 9396 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9397 | if test -z "$SO" |
| 9398 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9399 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9400 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9401 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9402 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9403 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9404 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9405 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 9406 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9407 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 9408 | # -- "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] | 9409 | # (Shared libraries in this instance are shared modules to be loaded into |
| 9410 | # 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] | 9411 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 9412 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9413 | if test -z "$LDSHARED" |
| 9414 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9415 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9416 | AIX*) |
| 9417 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9418 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9419 | ;; |
| 9420 | BeOS*) |
| 9421 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9422 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9423 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9424 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 9425 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9426 | SunOS/4*) LDSHARED="ld";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9427 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9428 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 9429 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 9430 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9431 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9432 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 9433 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 9434 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9435 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9436 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9437 | if test "$enable_framework" ; then |
| 9438 | # Link against the framework. All externals should be defined. |
| 9439 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 9440 | else |
| 9441 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9442 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9443 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9444 | Darwin/*) |
| 9445 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9446 | if test "$enable_framework" ; then |
| 9447 | # Link against the framework. All externals should be defined. |
| 9448 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 9449 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9450 | # No framework, use the Python app as bundle-loader |
| 9451 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 9452 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9453 | fi ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 9454 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 9455 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 9456 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9457 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9458 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9459 | then |
| 9460 | LDSHARED="cc -shared ${LDFLAGS}" |
| 9461 | else |
| 9462 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 9463 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9464 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9465 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9466 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 9467 | then LDSHARED='$(CC) -shared' |
| 9468 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9469 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 9470 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9471 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9472 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9473 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9474 | *) LDSHARED="ld";; |
| 9475 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9476 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9477 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 9478 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9479 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9480 | # 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] | 9481 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9482 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 9483 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9484 | if test -z "$CCSHARED" |
| 9485 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9486 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9487 | SunOS*) if test "$GCC" = yes; |
| 9488 | then CCSHARED="-fPIC"; |
| 9489 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9490 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9491 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9492 | else CCSHARED="+z"; |
| 9493 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9494 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9495 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 9496 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9497 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9498 | if test "$GCC" = "yes" |
| 9499 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9500 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9501 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9502 | SCO_SV*) |
| 9503 | if test "$GCC" = "yes" |
| 9504 | then CCSHARED="-fPIC" |
| 9505 | else CCSHARED="-Kpic -belf" |
| 9506 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9507 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9508 | IRIX*/6*) case $CC in |
| 9509 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 9510 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9511 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9512 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9513 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9514 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9515 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 9516 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9517 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9518 | # 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] | 9519 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 9520 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9521 | if test -z "$LINKFORSHARED" |
| 9522 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9523 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9524 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9525 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9526 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 9527 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9528 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9529 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9530 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9531 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9532 | # -u __dummy makes the linker aware of the objc runtime |
| 9533 | # in System.framework; otherwise, __objcInit (referenced in |
| 9534 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 9535 | # loading of any modules which reference it in System.framework. |
| 9536 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 9537 | # not used by the core itself but which needs to be in the core so |
| 9538 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 9539 | # -prebind is no longer used, because it actually seems to give a |
| 9540 | # slowdown in stead of a speedup, maybe due to the large number of |
| 9541 | # dynamic loads Python does. |
| 9542 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9543 | if test "$enable_framework" |
| 9544 | then |
| 9545 | LINKFORSHARED="$LINKFORSHARED -framework Python" |
| 9546 | fi |
| 9547 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9548 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9549 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9550 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9551 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9552 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 9553 | then |
| 9554 | LINKFORSHARED="-Wl,--export-dynamic" |
| 9555 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9556 | SunOS/5*) case $CC in |
| 9557 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9558 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9559 | then |
| 9560 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9561 | fi;; |
| 9562 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9563 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9564 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9565 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 9566 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9567 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9568 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9569 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 9570 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9571 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 9572 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9573 | case $ac_sys_system in |
| 9574 | CYGWIN*) |
| 9575 | # Cygwin needs CCSHARED when building extension DLLs |
| 9576 | # but not when building the interpreter DLL. |
| 9577 | CFLAGSFORSHARED='';; |
| 9578 | *) |
| 9579 | CFLAGSFORSHARED='$(CCSHARED)' |
| 9580 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9581 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9582 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 9583 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9584 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9585 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 9586 | # library (with --enable-shared). |
| 9587 | # 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] | 9588 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 9589 | # if it is not required, since it creates a dependency of the shared library |
| 9590 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 9591 | # don't need to link LIBS explicitly. The default should be only changed |
| 9592 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9593 | |
| 9594 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 9595 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 9596 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9597 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9598 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9599 | esac |
| 9600 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 9601 | echo "${ECHO_T}$SHLIBS" >&6 |
| 9602 | |
| 9603 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9604 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9605 | |
| 9606 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9607 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 9608 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9610 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9611 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9612 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9613 | cat >conftest.$ac_ext <<_ACEOF |
| 9614 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9615 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9616 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9617 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9618 | #ifdef __cplusplus |
| 9619 | extern "C" |
| 9620 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9621 | /* 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] | 9622 | builtin and then its argument prototype would still apply. */ |
| 9623 | char dlopen (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9624 | #ifdef F77_DUMMY_MAIN |
| 9625 | # ifdef __cplusplus |
| 9626 | extern "C" |
| 9627 | # endif |
| 9628 | int F77_DUMMY_MAIN() { return 1; } |
| 9629 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9630 | int |
| 9631 | main () |
| 9632 | { |
| 9633 | dlopen (); |
| 9634 | ; |
| 9635 | return 0; |
| 9636 | } |
| 9637 | _ACEOF |
| 9638 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9639 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9640 | (eval $ac_link) 2>&5 |
| 9641 | ac_status=$? |
| 9642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9643 | (exit $ac_status); } && |
| 9644 | { ac_try='test -s conftest$ac_exeext' |
| 9645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9646 | (eval $ac_try) 2>&5 |
| 9647 | ac_status=$? |
| 9648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9649 | (exit $ac_status); }; }; then |
| 9650 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9651 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9652 | echo "$as_me: failed program was:" >&5 |
| 9653 | cat conftest.$ac_ext >&5 |
| 9654 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9655 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9656 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9657 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9658 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9659 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9660 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 9661 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9662 | cat >>confdefs.h <<_ACEOF |
| 9663 | #define HAVE_LIBDL 1 |
| 9664 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9665 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9666 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9667 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9668 | fi |
| 9669 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9670 | |
| 9671 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9672 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 9673 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9675 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9676 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9677 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9678 | cat >conftest.$ac_ext <<_ACEOF |
| 9679 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9680 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9681 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9682 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9683 | #ifdef __cplusplus |
| 9684 | extern "C" |
| 9685 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9686 | /* 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] | 9687 | builtin and then its argument prototype would still apply. */ |
| 9688 | char shl_load (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9689 | #ifdef F77_DUMMY_MAIN |
| 9690 | # ifdef __cplusplus |
| 9691 | extern "C" |
| 9692 | # endif |
| 9693 | int F77_DUMMY_MAIN() { return 1; } |
| 9694 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9695 | int |
| 9696 | main () |
| 9697 | { |
| 9698 | shl_load (); |
| 9699 | ; |
| 9700 | return 0; |
| 9701 | } |
| 9702 | _ACEOF |
| 9703 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9704 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9705 | (eval $ac_link) 2>&5 |
| 9706 | ac_status=$? |
| 9707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9708 | (exit $ac_status); } && |
| 9709 | { ac_try='test -s conftest$ac_exeext' |
| 9710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9711 | (eval $ac_try) 2>&5 |
| 9712 | ac_status=$? |
| 9713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9714 | (exit $ac_status); }; }; then |
| 9715 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9716 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9717 | echo "$as_me: failed program was:" >&5 |
| 9718 | cat conftest.$ac_ext >&5 |
| 9719 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9720 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9721 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9722 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9723 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9724 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9725 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 9726 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9727 | cat >>confdefs.h <<_ACEOF |
| 9728 | #define HAVE_LIBDLD 1 |
| 9729 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9730 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9731 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9732 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9733 | fi |
| 9734 | # Dynamic linking for HP-UX |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9735 | echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 9736 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 9737 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9739 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9740 | ac_func_search_save_LIBS=$LIBS |
| 9741 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9742 | cat >conftest.$ac_ext <<_ACEOF |
| 9743 | #line $LINENO "configure" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9744 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9745 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9746 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9747 | #ifdef __cplusplus |
| 9748 | extern "C" |
| 9749 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9750 | /* 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] | 9751 | builtin and then its argument prototype would still apply. */ |
| 9752 | char sem_init (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9753 | #ifdef F77_DUMMY_MAIN |
| 9754 | # ifdef __cplusplus |
| 9755 | extern "C" |
| 9756 | # endif |
| 9757 | int F77_DUMMY_MAIN() { return 1; } |
| 9758 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9759 | int |
| 9760 | main () |
| 9761 | { |
| 9762 | sem_init (); |
| 9763 | ; |
| 9764 | return 0; |
| 9765 | } |
| 9766 | _ACEOF |
| 9767 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9768 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9769 | (eval $ac_link) 2>&5 |
| 9770 | ac_status=$? |
| 9771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9772 | (exit $ac_status); } && |
| 9773 | { ac_try='test -s conftest$ac_exeext' |
| 9774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9775 | (eval $ac_try) 2>&5 |
| 9776 | ac_status=$? |
| 9777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9778 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9779 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9780 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9781 | echo "$as_me: failed program was:" >&5 |
| 9782 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9783 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9784 | 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] | 9785 | if test "$ac_cv_search_sem_init" = no; then |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 9786 | for ac_lib in pthread rt posix4; do |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9787 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9788 | cat >conftest.$ac_ext <<_ACEOF |
| 9789 | #line $LINENO "configure" |
| 9790 | #include "confdefs.h" |
| 9791 | |
| 9792 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9793 | #ifdef __cplusplus |
| 9794 | extern "C" |
| 9795 | #endif |
| 9796 | /* We use char because int might match the return type of a gcc2 |
| 9797 | builtin and then its argument prototype would still apply. */ |
| 9798 | char sem_init (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9799 | #ifdef F77_DUMMY_MAIN |
| 9800 | # ifdef __cplusplus |
| 9801 | extern "C" |
| 9802 | # endif |
| 9803 | int F77_DUMMY_MAIN() { return 1; } |
| 9804 | #endif |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9805 | int |
| 9806 | main () |
| 9807 | { |
| 9808 | sem_init (); |
| 9809 | ; |
| 9810 | return 0; |
| 9811 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9812 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9813 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9814 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9815 | (eval $ac_link) 2>&5 |
| 9816 | ac_status=$? |
| 9817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9818 | (exit $ac_status); } && |
| 9819 | { ac_try='test -s conftest$ac_exeext' |
| 9820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9821 | (eval $ac_try) 2>&5 |
| 9822 | ac_status=$? |
| 9823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9824 | (exit $ac_status); }; }; then |
| 9825 | ac_cv_search_sem_init="-l$ac_lib" |
| 9826 | break |
| 9827 | else |
| 9828 | echo "$as_me: failed program was:" >&5 |
| 9829 | cat conftest.$ac_ext >&5 |
| 9830 | fi |
| 9831 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9832 | done |
| 9833 | fi |
| 9834 | LIBS=$ac_func_search_save_LIBS |
| 9835 | fi |
| 9836 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 9837 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 9838 | if test "$ac_cv_search_sem_init" != no; then |
| 9839 | 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] | 9840 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9841 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 9842 | # 'Real Time' functions on Solaris |
| 9843 | # posix4 on Solaris 2.6 |
| 9844 | # pthread (first!) on Linux |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9845 | |
| 9846 | # checks for system dependent C++ extensions support |
| 9847 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9848 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 9849 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 9850 | cat >conftest.$ac_ext <<_ACEOF |
| 9851 | #line $LINENO "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9852 | #include "confdefs.h" |
| 9853 | #include "/usr/lpp/xlC/include/load.h" |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9854 | #ifdef F77_DUMMY_MAIN |
| 9855 | # ifdef __cplusplus |
| 9856 | extern "C" |
| 9857 | # endif |
| 9858 | int F77_DUMMY_MAIN() { return 1; } |
| 9859 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9860 | int |
| 9861 | main () |
| 9862 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9863 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9864 | ; |
| 9865 | return 0; |
| 9866 | } |
| 9867 | _ACEOF |
| 9868 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9869 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9870 | (eval $ac_link) 2>&5 |
| 9871 | ac_status=$? |
| 9872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9873 | (exit $ac_status); } && |
| 9874 | { ac_try='test -s conftest$ac_exeext' |
| 9875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9876 | (eval $ac_try) 2>&5 |
| 9877 | ac_status=$? |
| 9878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9879 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9880 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9881 | cat >>confdefs.h <<\_ACEOF |
| 9882 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 9883 | _ACEOF |
| 9884 | |
| 9885 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9886 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9887 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9888 | echo "$as_me: failed program was:" >&5 |
| 9889 | cat conftest.$ac_ext >&5 |
| 9890 | echo "$as_me:$LINENO: result: no" >&5 |
| 9891 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9892 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9893 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9894 | *) ;; |
| 9895 | esac |
| 9896 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9897 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Martin v. Löwis | e117258 | 2002-11-13 08:51:19 +0000 | [diff] [blame] | 9898 | # However on SGI IRIX 4, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9899 | # BeOS' sockets are stashed in libnet. |
| 9900 | case "$ac_sys_system" in |
| 9901 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9902 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9903 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 9904 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 9905 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 9906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9907 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9908 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9909 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9910 | cat >conftest.$ac_ext <<_ACEOF |
| 9911 | #line $LINENO "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9912 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9913 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9914 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9915 | #ifdef __cplusplus |
| 9916 | extern "C" |
| 9917 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9918 | /* 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] | 9919 | builtin and then its argument prototype would still apply. */ |
| 9920 | char t_open (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9921 | #ifdef F77_DUMMY_MAIN |
| 9922 | # ifdef __cplusplus |
| 9923 | extern "C" |
| 9924 | # endif |
| 9925 | int F77_DUMMY_MAIN() { return 1; } |
| 9926 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9927 | int |
| 9928 | main () |
| 9929 | { |
| 9930 | t_open (); |
| 9931 | ; |
| 9932 | return 0; |
| 9933 | } |
| 9934 | _ACEOF |
| 9935 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9936 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9937 | (eval $ac_link) 2>&5 |
| 9938 | ac_status=$? |
| 9939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9940 | (exit $ac_status); } && |
| 9941 | { ac_try='test -s conftest$ac_exeext' |
| 9942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9943 | (eval $ac_try) 2>&5 |
| 9944 | ac_status=$? |
| 9945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9946 | (exit $ac_status); }; }; then |
| 9947 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9948 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9949 | echo "$as_me: failed program was:" >&5 |
| 9950 | cat conftest.$ac_ext >&5 |
| 9951 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9952 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9953 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9954 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9955 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9956 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 9957 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 9958 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9959 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9960 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9961 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9962 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 9963 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 9964 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 9965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9966 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9967 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9968 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9969 | cat >conftest.$ac_ext <<_ACEOF |
| 9970 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9971 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9972 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9973 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9974 | #ifdef __cplusplus |
| 9975 | extern "C" |
| 9976 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9977 | /* 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] | 9978 | builtin and then its argument prototype would still apply. */ |
| 9979 | char socket (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9980 | #ifdef F77_DUMMY_MAIN |
| 9981 | # ifdef __cplusplus |
| 9982 | extern "C" |
| 9983 | # endif |
| 9984 | int F77_DUMMY_MAIN() { return 1; } |
| 9985 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9986 | int |
| 9987 | main () |
| 9988 | { |
| 9989 | socket (); |
| 9990 | ; |
| 9991 | return 0; |
| 9992 | } |
| 9993 | _ACEOF |
| 9994 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9995 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9996 | (eval $ac_link) 2>&5 |
| 9997 | ac_status=$? |
| 9998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9999 | (exit $ac_status); } && |
| 10000 | { ac_try='test -s conftest$ac_exeext' |
| 10001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10002 | (eval $ac_try) 2>&5 |
| 10003 | ac_status=$? |
| 10004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10005 | (exit $ac_status); }; }; then |
| 10006 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10007 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10008 | echo "$as_me: failed program was:" >&5 |
| 10009 | cat conftest.$ac_ext >&5 |
| 10010 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10011 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10012 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10013 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10014 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10015 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 10016 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 10017 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10018 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10019 | fi |
| 10020 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 10021 | ;; |
| 10022 | esac |
| 10023 | case "$ac_sys_system" in |
| 10024 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10025 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 10026 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 10027 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 10028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10029 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10030 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10031 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10032 | cat >conftest.$ac_ext <<_ACEOF |
| 10033 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10034 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10035 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10036 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10037 | #ifdef __cplusplus |
| 10038 | extern "C" |
| 10039 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10040 | /* 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] | 10041 | builtin and then its argument prototype would still apply. */ |
| 10042 | char socket (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10043 | #ifdef F77_DUMMY_MAIN |
| 10044 | # ifdef __cplusplus |
| 10045 | extern "C" |
| 10046 | # endif |
| 10047 | int F77_DUMMY_MAIN() { return 1; } |
| 10048 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10049 | int |
| 10050 | main () |
| 10051 | { |
| 10052 | socket (); |
| 10053 | ; |
| 10054 | return 0; |
| 10055 | } |
| 10056 | _ACEOF |
| 10057 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10059 | (eval $ac_link) 2>&5 |
| 10060 | ac_status=$? |
| 10061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10062 | (exit $ac_status); } && |
| 10063 | { ac_try='test -s conftest$ac_exeext' |
| 10064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10065 | (eval $ac_try) 2>&5 |
| 10066 | ac_status=$? |
| 10067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10068 | (exit $ac_status); }; }; then |
| 10069 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10070 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10071 | echo "$as_me: failed program was:" >&5 |
| 10072 | cat conftest.$ac_ext >&5 |
| 10073 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10074 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10075 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10076 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10077 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10078 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 10079 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 10080 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10081 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10082 | fi |
| 10083 | # BeOS |
| 10084 | ;; |
| 10085 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 10086 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10087 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 10088 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 10089 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 10090 | # Check whether --with-libs or --without-libs was given. |
| 10091 | if test "${with_libs+set}" = set; then |
| 10092 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10093 | |
| 10094 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 10095 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 10096 | LIBS="$withval $LIBS" |
| 10097 | |
| 10098 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10099 | echo "$as_me:$LINENO: result: no" >&5 |
| 10100 | echo "${ECHO_T}no" >&6 |
| 10101 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10102 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10103 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10104 | |
| 10105 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10106 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 10107 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 10108 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10109 | # Check whether --with-signal-module or --without-signal-module was given. |
| 10110 | if test "${with_signal_module+set}" = set; then |
| 10111 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10112 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10113 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10114 | |
| 10115 | if test -z "$with_signal_module" |
| 10116 | then with_signal_module="yes" |
| 10117 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10118 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 10119 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10120 | |
| 10121 | if test "${with_signal_module}" = "yes"; then |
| 10122 | USE_SIGNAL_MODULE="" |
| 10123 | SIGNAL_OBJS="" |
| 10124 | else |
| 10125 | USE_SIGNAL_MODULE="#" |
| 10126 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 10127 | fi |
| 10128 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 10129 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10130 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10131 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10132 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10133 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 10134 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 10135 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10136 | |
| 10137 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 10138 | if test "${with_dec_threads+set}" = set; then |
| 10139 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10140 | |
| 10141 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 10142 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10143 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10144 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10145 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10146 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10147 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10148 | echo "$as_me:$LINENO: result: no" >&5 |
| 10149 | echo "${ECHO_T}no" >&6 |
| 10150 | fi; |
| 10151 | |
| 10152 | # Templates for things AC_DEFINEd more than once. |
| 10153 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10154 | |
| 10155 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10156 | |
| 10157 | |
| 10158 | |
| 10159 | |
| 10160 | |
| 10161 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 10162 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 10163 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10164 | # Check whether --with-threads or --without-threads was given. |
| 10165 | if test "${with_threads+set}" = set; then |
| 10166 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10167 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10168 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10169 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10170 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10171 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10172 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10173 | if test "${with_thread+set}" = set; then |
| 10174 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10175 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10176 | fi; |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10177 | |
| 10178 | if test -z "$with_threads" |
| 10179 | then with_threads="yes" |
| 10180 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10181 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 10182 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10183 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10184 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10185 | if test "$with_threads" = "no" |
| 10186 | then |
| 10187 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10188 | elif test "$ac_cv_pthread_is_default" = yes |
| 10189 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10190 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10191 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10192 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10193 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10194 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10195 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10196 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10197 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10198 | |
| 10199 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10200 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10201 | elif test "$ac_cv_kpthread" = "yes" |
| 10202 | then |
| 10203 | CC="$CC -Kpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10204 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10205 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10206 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10207 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10208 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10209 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10210 | elif test "$ac_cv_kthread" = "yes" |
| 10211 | then |
| 10212 | CC="$CC -Kthread" |
| 10213 | cat >>confdefs.h <<\_ACEOF |
| 10214 | #define WITH_THREAD 1 |
| 10215 | _ACEOF |
| 10216 | |
| 10217 | posix_threads=yes |
| 10218 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10219 | else |
| 10220 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 10221 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 10222 | fi |
| 10223 | if test ! -z "$withval" -a -d "$withval" |
| 10224 | then LDFLAGS="$LDFLAGS -L$withval" |
| 10225 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10226 | |
| 10227 | # According to the POSIX spec, a pthreads implementation must |
| 10228 | # 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] | 10229 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 10230 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 10231 | cat >conftest.$ac_ext <<_ACEOF |
| 10232 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10233 | #include "confdefs.h" |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10234 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10235 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10236 | #ifdef _POSIX_THREADS |
| 10237 | yes |
| 10238 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10239 | |
| 10240 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10241 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10242 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10243 | unistd_defines_pthreads=yes |
| 10244 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10245 | unistd_defines_pthreads=no |
| 10246 | fi |
| 10247 | rm -f conftest* |
| 10248 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10249 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 10250 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10251 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10252 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10253 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10254 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10255 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10256 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10257 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10258 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10259 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10261 | fi |
| 10262 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10263 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10264 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10265 | # Is the header compilable? |
| 10266 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 10267 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 10268 | cat >conftest.$ac_ext <<_ACEOF |
| 10269 | #line $LINENO "configure" |
| 10270 | #include "confdefs.h" |
| 10271 | $ac_includes_default |
| 10272 | #include <cthreads.h> |
| 10273 | _ACEOF |
| 10274 | rm -f conftest.$ac_objext |
| 10275 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10276 | (eval $ac_compile) 2>&5 |
| 10277 | ac_status=$? |
| 10278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10279 | (exit $ac_status); } && |
| 10280 | { ac_try='test -s conftest.$ac_objext' |
| 10281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10282 | (eval $ac_try) 2>&5 |
| 10283 | ac_status=$? |
| 10284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10285 | (exit $ac_status); }; }; then |
| 10286 | ac_header_compiler=yes |
| 10287 | else |
| 10288 | echo "$as_me: failed program was:" >&5 |
| 10289 | cat conftest.$ac_ext >&5 |
| 10290 | ac_header_compiler=no |
| 10291 | fi |
| 10292 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10293 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10294 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10295 | |
| 10296 | # Is the header present? |
| 10297 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 10298 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 10299 | cat >conftest.$ac_ext <<_ACEOF |
| 10300 | #line $LINENO "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10301 | #include "confdefs.h" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10302 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10303 | _ACEOF |
| 10304 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10305 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10306 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10307 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10308 | rm -f conftest.er1 |
| 10309 | cat conftest.err >&5 |
| 10310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10311 | (exit $ac_status); } >/dev/null; then |
| 10312 | if test -s conftest.err; then |
| 10313 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10314 | else |
| 10315 | ac_cpp_err= |
| 10316 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10317 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10318 | ac_cpp_err=yes |
| 10319 | fi |
| 10320 | if test -z "$ac_cpp_err"; then |
| 10321 | ac_header_preproc=yes |
| 10322 | else |
| 10323 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10324 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10325 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10326 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10327 | rm -f conftest.err conftest.$ac_ext |
| 10328 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10329 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10330 | |
| 10331 | # So? What about this header? |
| 10332 | case $ac_header_compiler:$ac_header_preproc in |
| 10333 | yes:no ) |
| 10334 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10335 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10336 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10337 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10338 | no:yes ) |
| 10339 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 10340 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 10341 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 10342 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10343 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10344 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10345 | esac |
| 10346 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10347 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10348 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10350 | else |
| 10351 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10352 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10353 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10354 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 10355 | |
| 10356 | fi |
| 10357 | if test $ac_cv_header_cthreads_h = yes; then |
| 10358 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10359 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10360 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10361 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10362 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10363 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10364 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10365 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10366 | |
| 10367 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10368 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10369 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10370 | |
| 10371 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10372 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10373 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10374 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10375 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10376 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10377 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10378 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10380 | fi |
| 10381 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10382 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10383 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10384 | # Is the header compilable? |
| 10385 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 10386 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 10387 | cat >conftest.$ac_ext <<_ACEOF |
| 10388 | #line $LINENO "configure" |
| 10389 | #include "confdefs.h" |
| 10390 | $ac_includes_default |
| 10391 | #include <mach/cthreads.h> |
| 10392 | _ACEOF |
| 10393 | rm -f conftest.$ac_objext |
| 10394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10395 | (eval $ac_compile) 2>&5 |
| 10396 | ac_status=$? |
| 10397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10398 | (exit $ac_status); } && |
| 10399 | { ac_try='test -s conftest.$ac_objext' |
| 10400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10401 | (eval $ac_try) 2>&5 |
| 10402 | ac_status=$? |
| 10403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10404 | (exit $ac_status); }; }; then |
| 10405 | ac_header_compiler=yes |
| 10406 | else |
| 10407 | echo "$as_me: failed program was:" >&5 |
| 10408 | cat conftest.$ac_ext >&5 |
| 10409 | ac_header_compiler=no |
| 10410 | fi |
| 10411 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10412 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10413 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10414 | |
| 10415 | # Is the header present? |
| 10416 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 10417 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 10418 | cat >conftest.$ac_ext <<_ACEOF |
| 10419 | #line $LINENO "configure" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10420 | #include "confdefs.h" |
| 10421 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10422 | _ACEOF |
| 10423 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10424 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10425 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10426 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10427 | rm -f conftest.er1 |
| 10428 | cat conftest.err >&5 |
| 10429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10430 | (exit $ac_status); } >/dev/null; then |
| 10431 | if test -s conftest.err; then |
| 10432 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10433 | else |
| 10434 | ac_cpp_err= |
| 10435 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10436 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10437 | ac_cpp_err=yes |
| 10438 | fi |
| 10439 | if test -z "$ac_cpp_err"; then |
| 10440 | ac_header_preproc=yes |
| 10441 | else |
| 10442 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10443 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10444 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10445 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10446 | rm -f conftest.err conftest.$ac_ext |
| 10447 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10448 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10449 | |
| 10450 | # So? What about this header? |
| 10451 | case $ac_header_compiler:$ac_header_preproc in |
| 10452 | yes:no ) |
| 10453 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10454 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10455 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10456 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10457 | no:yes ) |
| 10458 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 10459 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 10460 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 10461 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10462 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10463 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10464 | esac |
| 10465 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10466 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10467 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10469 | else |
| 10470 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10471 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10472 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10473 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 10474 | |
| 10475 | fi |
| 10476 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 10477 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10478 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10479 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10480 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10481 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10482 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10483 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10484 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10485 | |
| 10486 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10487 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10488 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10489 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10490 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10491 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10492 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10493 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 10494 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 10495 | |
| 10496 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10497 | if test "${with_pth+set}" = set; then |
| 10498 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10499 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10500 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10501 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10502 | #define WITH_THREAD 1 |
| 10503 | _ACEOF |
| 10504 | |
| 10505 | |
| 10506 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10507 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10508 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10509 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10510 | LIBS="-lpth $LIBS" |
| 10511 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10512 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10513 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10514 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10515 | |
| 10516 | # Just looking for pthread_create in libpthread is not enough: |
| 10517 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 10518 | # So we really have to include pthread.h, and then link. |
| 10519 | _libs=$LIBS |
| 10520 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10521 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 10522 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 10523 | cat >conftest.$ac_ext <<_ACEOF |
| 10524 | #line $LINENO "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10525 | #include "confdefs.h" |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10526 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10527 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10528 | void * start_routine (void *arg) { exit (0); } |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10529 | #ifdef F77_DUMMY_MAIN |
| 10530 | # ifdef __cplusplus |
| 10531 | extern "C" |
| 10532 | # endif |
| 10533 | int F77_DUMMY_MAIN() { return 1; } |
| 10534 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10535 | int |
| 10536 | main () |
| 10537 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10538 | |
| 10539 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10540 | ; |
| 10541 | return 0; |
| 10542 | } |
| 10543 | _ACEOF |
| 10544 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10545 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10546 | (eval $ac_link) 2>&5 |
| 10547 | ac_status=$? |
| 10548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10549 | (exit $ac_status); } && |
| 10550 | { ac_try='test -s conftest$ac_exeext' |
| 10551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10552 | (eval $ac_try) 2>&5 |
| 10553 | ac_status=$? |
| 10554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10555 | (exit $ac_status); }; }; then |
| 10556 | |
| 10557 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10558 | echo "${ECHO_T}yes" >&6 |
| 10559 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10560 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10561 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10562 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10563 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10564 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10565 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10566 | echo "$as_me: failed program was:" >&5 |
| 10567 | cat conftest.$ac_ext >&5 |
| 10568 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10569 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10570 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 10571 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 10572 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 10573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10574 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10575 | cat >conftest.$ac_ext <<_ACEOF |
| 10576 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10577 | #include "confdefs.h" |
| 10578 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10579 | which can conflict with char pthread_detach (); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10580 | #include <assert.h> |
| 10581 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10582 | #ifdef __cplusplus |
| 10583 | extern "C" |
| 10584 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10585 | /* 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] | 10586 | builtin and then its argument prototype would still apply. */ |
| 10587 | char pthread_detach (); |
| 10588 | char (*f) (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10589 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10590 | #ifdef F77_DUMMY_MAIN |
| 10591 | # ifdef __cplusplus |
| 10592 | extern "C" |
| 10593 | # endif |
| 10594 | int F77_DUMMY_MAIN() { return 1; } |
| 10595 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10596 | int |
| 10597 | main () |
| 10598 | { |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10599 | /* The GNU C library defines this for functions which it implements |
| 10600 | to always fail with ENOSYS. Some functions are actually named |
| 10601 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 10602 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10603 | choke me |
| 10604 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10605 | f = pthread_detach; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10606 | #endif |
| 10607 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10608 | ; |
| 10609 | return 0; |
| 10610 | } |
| 10611 | _ACEOF |
| 10612 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10614 | (eval $ac_link) 2>&5 |
| 10615 | ac_status=$? |
| 10616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10617 | (exit $ac_status); } && |
| 10618 | { ac_try='test -s conftest$ac_exeext' |
| 10619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10620 | (eval $ac_try) 2>&5 |
| 10621 | ac_status=$? |
| 10622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10623 | (exit $ac_status); }; }; then |
| 10624 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10625 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10626 | echo "$as_me: failed program was:" >&5 |
| 10627 | cat conftest.$ac_ext >&5 |
| 10628 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10629 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10630 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10631 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10632 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 10633 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 10634 | if test $ac_cv_func_pthread_detach = yes; then |
| 10635 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10636 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10637 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10638 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10639 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10640 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10641 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10642 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10643 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10644 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10645 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10646 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10648 | fi |
| 10649 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10650 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10651 | else |
| 10652 | # Is the header compilable? |
| 10653 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 10654 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 10655 | cat >conftest.$ac_ext <<_ACEOF |
| 10656 | #line $LINENO "configure" |
| 10657 | #include "confdefs.h" |
| 10658 | $ac_includes_default |
| 10659 | #include <atheos/threads.h> |
| 10660 | _ACEOF |
| 10661 | rm -f conftest.$ac_objext |
| 10662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10663 | (eval $ac_compile) 2>&5 |
| 10664 | ac_status=$? |
| 10665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10666 | (exit $ac_status); } && |
| 10667 | { ac_try='test -s conftest.$ac_objext' |
| 10668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10669 | (eval $ac_try) 2>&5 |
| 10670 | ac_status=$? |
| 10671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10672 | (exit $ac_status); }; }; then |
| 10673 | ac_header_compiler=yes |
| 10674 | else |
| 10675 | echo "$as_me: failed program was:" >&5 |
| 10676 | cat conftest.$ac_ext >&5 |
| 10677 | ac_header_compiler=no |
| 10678 | fi |
| 10679 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10680 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10681 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10682 | |
| 10683 | # Is the header present? |
| 10684 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 10685 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 10686 | cat >conftest.$ac_ext <<_ACEOF |
| 10687 | #line $LINENO "configure" |
| 10688 | #include "confdefs.h" |
| 10689 | #include <atheos/threads.h> |
| 10690 | _ACEOF |
| 10691 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10692 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10693 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10694 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10695 | rm -f conftest.er1 |
| 10696 | cat conftest.err >&5 |
| 10697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10698 | (exit $ac_status); } >/dev/null; then |
| 10699 | if test -s conftest.err; then |
| 10700 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10701 | else |
| 10702 | ac_cpp_err= |
| 10703 | fi |
| 10704 | else |
| 10705 | ac_cpp_err=yes |
| 10706 | fi |
| 10707 | if test -z "$ac_cpp_err"; then |
| 10708 | ac_header_preproc=yes |
| 10709 | else |
| 10710 | echo "$as_me: failed program was:" >&5 |
| 10711 | cat conftest.$ac_ext >&5 |
| 10712 | ac_header_preproc=no |
| 10713 | fi |
| 10714 | rm -f conftest.err conftest.$ac_ext |
| 10715 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10716 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10717 | |
| 10718 | # So? What about this header? |
| 10719 | case $ac_header_compiler:$ac_header_preproc in |
| 10720 | yes:no ) |
| 10721 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10722 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10723 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10724 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10725 | no:yes ) |
| 10726 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 10727 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 10728 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 10729 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 10730 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10731 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10732 | esac |
| 10733 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10734 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10735 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10737 | else |
| 10738 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 10739 | fi |
| 10740 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10741 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10742 | |
| 10743 | fi |
| 10744 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 10745 | cat >>confdefs.h <<\_ACEOF |
| 10746 | #define WITH_THREAD 1 |
| 10747 | _ACEOF |
| 10748 | |
| 10749 | |
| 10750 | cat >>confdefs.h <<\_ACEOF |
| 10751 | #define ATHEOS_THREADS 1 |
| 10752 | _ACEOF |
| 10753 | |
| 10754 | THREADOBJ="Python/thread.o" |
| 10755 | else |
| 10756 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10757 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10758 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10759 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10760 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10762 | fi |
| 10763 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10764 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10765 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10766 | # Is the header compilable? |
| 10767 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 10768 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 10769 | cat >conftest.$ac_ext <<_ACEOF |
| 10770 | #line $LINENO "configure" |
| 10771 | #include "confdefs.h" |
| 10772 | $ac_includes_default |
| 10773 | #include <kernel/OS.h> |
| 10774 | _ACEOF |
| 10775 | rm -f conftest.$ac_objext |
| 10776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10777 | (eval $ac_compile) 2>&5 |
| 10778 | ac_status=$? |
| 10779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10780 | (exit $ac_status); } && |
| 10781 | { ac_try='test -s conftest.$ac_objext' |
| 10782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10783 | (eval $ac_try) 2>&5 |
| 10784 | ac_status=$? |
| 10785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10786 | (exit $ac_status); }; }; then |
| 10787 | ac_header_compiler=yes |
| 10788 | else |
| 10789 | echo "$as_me: failed program was:" >&5 |
| 10790 | cat conftest.$ac_ext >&5 |
| 10791 | ac_header_compiler=no |
| 10792 | fi |
| 10793 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10794 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10795 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10796 | |
| 10797 | # Is the header present? |
| 10798 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 10799 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 10800 | cat >conftest.$ac_ext <<_ACEOF |
| 10801 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10802 | #include "confdefs.h" |
| 10803 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10804 | _ACEOF |
| 10805 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10806 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10807 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10808 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10809 | rm -f conftest.er1 |
| 10810 | cat conftest.err >&5 |
| 10811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10812 | (exit $ac_status); } >/dev/null; then |
| 10813 | if test -s conftest.err; then |
| 10814 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10815 | else |
| 10816 | ac_cpp_err= |
| 10817 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10818 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10819 | ac_cpp_err=yes |
| 10820 | fi |
| 10821 | if test -z "$ac_cpp_err"; then |
| 10822 | ac_header_preproc=yes |
| 10823 | else |
| 10824 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10825 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10826 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10827 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10828 | rm -f conftest.err conftest.$ac_ext |
| 10829 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10830 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10831 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10832 | # So? What about this header? |
| 10833 | case $ac_header_compiler:$ac_header_preproc in |
| 10834 | yes:no ) |
| 10835 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10836 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10837 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10838 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10839 | no:yes ) |
| 10840 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 10841 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 10842 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 10843 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 10844 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10845 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10846 | esac |
| 10847 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10848 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10849 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10851 | else |
| 10852 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 10853 | fi |
| 10854 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10855 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 10856 | |
| 10857 | fi |
| 10858 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 10859 | cat >>confdefs.h <<\_ACEOF |
| 10860 | #define WITH_THREAD 1 |
| 10861 | _ACEOF |
| 10862 | |
| 10863 | |
| 10864 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10865 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10866 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10867 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10868 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10869 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10870 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10871 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 10872 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 10873 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 10874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10875 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10876 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10877 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10878 | cat >conftest.$ac_ext <<_ACEOF |
| 10879 | #line $LINENO "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10880 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10881 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10882 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10883 | #ifdef __cplusplus |
| 10884 | extern "C" |
| 10885 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10886 | /* 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] | 10887 | builtin and then its argument prototype would still apply. */ |
| 10888 | char pthread_create (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10889 | #ifdef F77_DUMMY_MAIN |
| 10890 | # ifdef __cplusplus |
| 10891 | extern "C" |
| 10892 | # endif |
| 10893 | int F77_DUMMY_MAIN() { return 1; } |
| 10894 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10895 | int |
| 10896 | main () |
| 10897 | { |
| 10898 | pthread_create (); |
| 10899 | ; |
| 10900 | return 0; |
| 10901 | } |
| 10902 | _ACEOF |
| 10903 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10904 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10905 | (eval $ac_link) 2>&5 |
| 10906 | ac_status=$? |
| 10907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10908 | (exit $ac_status); } && |
| 10909 | { ac_try='test -s conftest$ac_exeext' |
| 10910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10911 | (eval $ac_try) 2>&5 |
| 10912 | ac_status=$? |
| 10913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10914 | (exit $ac_status); }; }; then |
| 10915 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10916 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10917 | echo "$as_me: failed program was:" >&5 |
| 10918 | cat conftest.$ac_ext >&5 |
| 10919 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10920 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10921 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10922 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10923 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10924 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 10925 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 10926 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 10927 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10928 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10929 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10930 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10931 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10932 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10933 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10934 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10935 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10936 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 10937 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 10938 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 10939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10940 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10941 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10942 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10943 | cat >conftest.$ac_ext <<_ACEOF |
| 10944 | #line $LINENO "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10945 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10946 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10947 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10948 | #ifdef __cplusplus |
| 10949 | extern "C" |
| 10950 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10951 | /* 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] | 10952 | builtin and then its argument prototype would still apply. */ |
| 10953 | char pthread_create (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10954 | #ifdef F77_DUMMY_MAIN |
| 10955 | # ifdef __cplusplus |
| 10956 | extern "C" |
| 10957 | # endif |
| 10958 | int F77_DUMMY_MAIN() { return 1; } |
| 10959 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10960 | int |
| 10961 | main () |
| 10962 | { |
| 10963 | pthread_create (); |
| 10964 | ; |
| 10965 | return 0; |
| 10966 | } |
| 10967 | _ACEOF |
| 10968 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10969 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10970 | (eval $ac_link) 2>&5 |
| 10971 | ac_status=$? |
| 10972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10973 | (exit $ac_status); } && |
| 10974 | { ac_try='test -s conftest$ac_exeext' |
| 10975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10976 | (eval $ac_try) 2>&5 |
| 10977 | ac_status=$? |
| 10978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10979 | (exit $ac_status); }; }; then |
| 10980 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10981 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10982 | echo "$as_me: failed program was:" >&5 |
| 10983 | cat conftest.$ac_ext >&5 |
| 10984 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10985 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10986 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10987 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10988 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10989 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 10990 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 10991 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 10992 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10993 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10994 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10995 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10996 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10997 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10998 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10999 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11000 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11001 | echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5 |
| 11002 | echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6 |
| 11003 | if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then |
| 11004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11005 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11006 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11007 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11008 | cat >conftest.$ac_ext <<_ACEOF |
| 11009 | #line $LINENO "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11010 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11011 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11012 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11013 | #ifdef __cplusplus |
| 11014 | extern "C" |
| 11015 | #endif |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11016 | /* 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] | 11017 | builtin and then its argument prototype would still apply. */ |
| 11018 | char __d6_pthread_create (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11019 | #ifdef F77_DUMMY_MAIN |
| 11020 | # ifdef __cplusplus |
| 11021 | extern "C" |
| 11022 | # endif |
| 11023 | int F77_DUMMY_MAIN() { return 1; } |
| 11024 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11025 | int |
| 11026 | main () |
| 11027 | { |
| 11028 | __d6_pthread_create (); |
| 11029 | ; |
| 11030 | return 0; |
| 11031 | } |
| 11032 | _ACEOF |
| 11033 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11034 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11035 | (eval $ac_link) 2>&5 |
| 11036 | ac_status=$? |
| 11037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11038 | (exit $ac_status); } && |
| 11039 | { ac_try='test -s conftest$ac_exeext' |
| 11040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11041 | (eval $ac_try) 2>&5 |
| 11042 | ac_status=$? |
| 11043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11044 | (exit $ac_status); }; }; then |
| 11045 | ac_cv_lib_thread___d6_pthread_create=yes |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11046 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11047 | echo "$as_me: failed program was:" >&5 |
| 11048 | cat conftest.$ac_ext >&5 |
| 11049 | ac_cv_lib_thread___d6_pthread_create=no |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11050 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11051 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11052 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11053 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11054 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5 |
| 11055 | echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6 |
| 11056 | if test $ac_cv_lib_thread___d6_pthread_create = yes; then |
| 11057 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11058 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11059 | _ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11060 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 11061 | echo Systems with __d6_pthread_create are not supported anymore. |
| 11062 | echo See README |
| 11063 | exit 1 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11064 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11065 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11066 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11067 | else |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11068 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11069 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 11070 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 11071 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 11072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11073 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11074 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11075 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11076 | cat >conftest.$ac_ext <<_ACEOF |
| 11077 | #line $LINENO "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11078 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11079 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11080 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11081 | #ifdef __cplusplus |
| 11082 | extern "C" |
| 11083 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11084 | /* 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] | 11085 | builtin and then its argument prototype would still apply. */ |
| 11086 | char __pthread_create_system (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11087 | #ifdef F77_DUMMY_MAIN |
| 11088 | # ifdef __cplusplus |
| 11089 | extern "C" |
| 11090 | # endif |
| 11091 | int F77_DUMMY_MAIN() { return 1; } |
| 11092 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11093 | int |
| 11094 | main () |
| 11095 | { |
| 11096 | __pthread_create_system (); |
| 11097 | ; |
| 11098 | return 0; |
| 11099 | } |
| 11100 | _ACEOF |
| 11101 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11102 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11103 | (eval $ac_link) 2>&5 |
| 11104 | ac_status=$? |
| 11105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11106 | (exit $ac_status); } && |
| 11107 | { ac_try='test -s conftest$ac_exeext' |
| 11108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11109 | (eval $ac_try) 2>&5 |
| 11110 | ac_status=$? |
| 11111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11112 | (exit $ac_status); }; }; then |
| 11113 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11114 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11115 | echo "$as_me: failed program was:" >&5 |
| 11116 | cat conftest.$ac_ext >&5 |
| 11117 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11118 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11119 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11120 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11121 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11122 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 11123 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 11124 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 11125 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11126 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11127 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11128 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11129 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11130 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11131 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11132 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11133 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11134 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 11135 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 11136 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 11137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11138 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11139 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11140 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11141 | cat >conftest.$ac_ext <<_ACEOF |
| 11142 | #line $LINENO "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11143 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11144 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11145 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11146 | #ifdef __cplusplus |
| 11147 | extern "C" |
| 11148 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11149 | /* 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] | 11150 | builtin and then its argument prototype would still apply. */ |
| 11151 | char pthread_create (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11152 | #ifdef F77_DUMMY_MAIN |
| 11153 | # ifdef __cplusplus |
| 11154 | extern "C" |
| 11155 | # endif |
| 11156 | int F77_DUMMY_MAIN() { return 1; } |
| 11157 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11158 | int |
| 11159 | main () |
| 11160 | { |
| 11161 | pthread_create (); |
| 11162 | ; |
| 11163 | return 0; |
| 11164 | } |
| 11165 | _ACEOF |
| 11166 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11167 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11168 | (eval $ac_link) 2>&5 |
| 11169 | ac_status=$? |
| 11170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11171 | (exit $ac_status); } && |
| 11172 | { ac_try='test -s conftest$ac_exeext' |
| 11173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11174 | (eval $ac_try) 2>&5 |
| 11175 | ac_status=$? |
| 11176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11177 | (exit $ac_status); }; }; then |
| 11178 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11179 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11180 | echo "$as_me: failed program was:" >&5 |
| 11181 | cat conftest.$ac_ext >&5 |
| 11182 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11183 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11184 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11185 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11186 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11187 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 11188 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 11189 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 11190 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11191 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11192 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11193 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11194 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11195 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11196 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11197 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 11198 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11199 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 11200 | fi |
| 11201 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11202 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11203 | fi |
| 11204 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 11205 | fi |
| 11206 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11207 | fi |
| 11208 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11209 | fi |
| 11210 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11211 | fi |
| 11212 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11213 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11214 | fi |
| 11215 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11216 | |
| 11217 | fi |
| 11218 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11219 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11220 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11221 | fi; |
| 11222 | fi |
| 11223 | |
| 11224 | |
| 11225 | fi |
| 11226 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11227 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11228 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11229 | if test "$posix_threads" = "yes"; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11230 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11231 | |
| 11232 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11233 | #define _POSIX_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11234 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11235 | |
| 11236 | fi |
| 11237 | |
Martin v. Löwis | dfc33fd | 2003-01-21 10:14:41 +0000 | [diff] [blame] | 11238 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 11239 | case $ac_sys_system/$ac_sys_release in |
| 11240 | SunOS/5.8) |
| 11241 | cat >>confdefs.h <<\_ACEOF |
| 11242 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 11243 | _ACEOF |
| 11244 | ;; |
| 11245 | esac |
| 11246 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11247 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 11248 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 11249 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 11250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11251 | else |
| 11252 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 11253 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11254 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11255 | cat >conftest.$ac_ext <<_ACEOF |
| 11256 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11257 | #include "confdefs.h" |
| 11258 | #include <pthread.h> |
| 11259 | void *foo(void *parm) { |
| 11260 | return NULL; |
| 11261 | } |
| 11262 | main() { |
| 11263 | pthread_attr_t attr; |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 11264 | pthread_t id; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11265 | if (pthread_attr_init(&attr)) exit(-1); |
| 11266 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 11267 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11268 | exit(0); |
| 11269 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11270 | _ACEOF |
| 11271 | rm -f conftest$ac_exeext |
| 11272 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11273 | (eval $ac_link) 2>&5 |
| 11274 | ac_status=$? |
| 11275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11276 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11278 | (eval $ac_try) 2>&5 |
| 11279 | ac_status=$? |
| 11280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11281 | (exit $ac_status); }; }; then |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11282 | ac_cv_pthread_system_supported=yes |
| 11283 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11284 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11285 | echo "$as_me: failed program was:" >&5 |
| 11286 | cat conftest.$ac_ext >&5 |
| 11287 | ( exit $ac_status ) |
| 11288 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11289 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11290 | 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] | 11291 | fi |
| 11292 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11293 | fi |
| 11294 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11295 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 11296 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11297 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11298 | |
| 11299 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11300 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11301 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11302 | |
| 11303 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11304 | |
| 11305 | for ac_func in pthread_sigmask |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11306 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11307 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11308 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11309 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11310 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11312 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11313 | cat >conftest.$ac_ext <<_ACEOF |
| 11314 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11315 | #include "confdefs.h" |
| 11316 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11317 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11318 | #include <assert.h> |
| 11319 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11320 | #ifdef __cplusplus |
| 11321 | extern "C" |
| 11322 | #endif |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11323 | /* 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] | 11324 | builtin and then its argument prototype would still apply. */ |
| 11325 | char $ac_func (); |
| 11326 | char (*f) (); |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11327 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11328 | #ifdef F77_DUMMY_MAIN |
| 11329 | # ifdef __cplusplus |
| 11330 | extern "C" |
| 11331 | # endif |
| 11332 | int F77_DUMMY_MAIN() { return 1; } |
| 11333 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11334 | int |
| 11335 | main () |
| 11336 | { |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11337 | /* The GNU C library defines this for functions which it implements |
| 11338 | to always fail with ENOSYS. Some functions are actually named |
| 11339 | something starting with __ and the normal name is an alias. */ |
| 11340 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11341 | choke me |
| 11342 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11343 | f = $ac_func; |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11344 | #endif |
| 11345 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11346 | ; |
| 11347 | return 0; |
| 11348 | } |
| 11349 | _ACEOF |
| 11350 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11351 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11352 | (eval $ac_link) 2>&5 |
| 11353 | ac_status=$? |
| 11354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11355 | (exit $ac_status); } && |
| 11356 | { ac_try='test -s conftest$ac_exeext' |
| 11357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11358 | (eval $ac_try) 2>&5 |
| 11359 | ac_status=$? |
| 11360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11361 | (exit $ac_status); }; }; then |
| 11362 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11363 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11364 | echo "$as_me: failed program was:" >&5 |
| 11365 | cat conftest.$ac_ext >&5 |
| 11366 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11367 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11368 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11369 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11370 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11371 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11372 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11373 | cat >>confdefs.h <<_ACEOF |
| 11374 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11375 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11376 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11377 | fi |
| 11378 | done |
| 11379 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11380 | fi |
| 11381 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11382 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 11383 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 11384 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 11385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11386 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11387 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11388 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11389 | cat >conftest.$ac_ext <<_ACEOF |
| 11390 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11391 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11392 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11393 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11394 | #ifdef __cplusplus |
| 11395 | extern "C" |
| 11396 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11397 | /* 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] | 11398 | builtin and then its argument prototype would still apply. */ |
| 11399 | char usconfig (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11400 | #ifdef F77_DUMMY_MAIN |
| 11401 | # ifdef __cplusplus |
| 11402 | extern "C" |
| 11403 | # endif |
| 11404 | int F77_DUMMY_MAIN() { return 1; } |
| 11405 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11406 | int |
| 11407 | main () |
| 11408 | { |
| 11409 | usconfig (); |
| 11410 | ; |
| 11411 | return 0; |
| 11412 | } |
| 11413 | _ACEOF |
| 11414 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11415 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11416 | (eval $ac_link) 2>&5 |
| 11417 | ac_status=$? |
| 11418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11419 | (exit $ac_status); } && |
| 11420 | { ac_try='test -s conftest$ac_exeext' |
| 11421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11422 | (eval $ac_try) 2>&5 |
| 11423 | ac_status=$? |
| 11424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11425 | (exit $ac_status); }; }; then |
| 11426 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11427 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11428 | echo "$as_me: failed program was:" >&5 |
| 11429 | cat conftest.$ac_ext >&5 |
| 11430 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11431 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11432 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11433 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11434 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11435 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 11436 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 11437 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 11438 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11439 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11440 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11441 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11442 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11443 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11444 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11445 | fi |
| 11446 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11447 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 11448 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11449 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 11450 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 11451 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 11452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11453 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11454 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11455 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11456 | cat >conftest.$ac_ext <<_ACEOF |
| 11457 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11458 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11459 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11460 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11461 | #ifdef __cplusplus |
| 11462 | extern "C" |
| 11463 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11464 | /* 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] | 11465 | builtin and then its argument prototype would still apply. */ |
| 11466 | char thr_create (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11467 | #ifdef F77_DUMMY_MAIN |
| 11468 | # ifdef __cplusplus |
| 11469 | extern "C" |
| 11470 | # endif |
| 11471 | int F77_DUMMY_MAIN() { return 1; } |
| 11472 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11473 | int |
| 11474 | main () |
| 11475 | { |
| 11476 | thr_create (); |
| 11477 | ; |
| 11478 | return 0; |
| 11479 | } |
| 11480 | _ACEOF |
| 11481 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11482 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11483 | (eval $ac_link) 2>&5 |
| 11484 | ac_status=$? |
| 11485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11486 | (exit $ac_status); } && |
| 11487 | { ac_try='test -s conftest$ac_exeext' |
| 11488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11489 | (eval $ac_try) 2>&5 |
| 11490 | ac_status=$? |
| 11491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11492 | (exit $ac_status); }; }; then |
| 11493 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11494 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11495 | echo "$as_me: failed program was:" >&5 |
| 11496 | cat conftest.$ac_ext >&5 |
| 11497 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11498 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11499 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11500 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11501 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11502 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 11503 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 11504 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 11505 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11506 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11507 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11508 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11509 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11510 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11511 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11512 | fi |
| 11513 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11514 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11515 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11516 | if test "$USE_THREAD_MODULE" != "#" |
| 11517 | then |
| 11518 | # If the above checks didn't disable threads, (at least) OSF1 |
| 11519 | # needs this '-threads' argument during linking. |
| 11520 | case $ac_sys_system in |
| 11521 | OSF1) LDLAST=-threads;; |
| 11522 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 11523 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11524 | |
| 11525 | if test "$posix_threads" = yes -a \ |
| 11526 | "$ac_sys_system" = "SunOS" -a \ |
| 11527 | "$ac_sys_release" = "5.6"; then |
| 11528 | |
| 11529 | cat >>confdefs.h <<\_ACEOF |
| 11530 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 11531 | _ACEOF |
| 11532 | |
| 11533 | fi |
| 11534 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11535 | fi |
| 11536 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11537 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11538 | |
| 11539 | |
| 11540 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 11541 | 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] | 11542 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 11543 | if test "${enable_ipv6+set}" = set; then |
| 11544 | enableval="$enable_ipv6" |
| 11545 | case "$enableval" in |
| 11546 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11547 | echo "$as_me:$LINENO: result: no" >&5 |
| 11548 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11549 | ipv6=no |
| 11550 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11551 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 11552 | echo "${ECHO_T}yes" >&6 |
| 11553 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11554 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11555 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11556 | |
| 11557 | ipv6=yes |
| 11558 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11559 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11560 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11561 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11562 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11563 | echo "$as_me:$LINENO: result: no" >&5 |
| 11564 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11565 | ipv6=no |
| 11566 | |
| 11567 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11568 | cat >conftest.$ac_ext <<_ACEOF |
| 11569 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11570 | #include "confdefs.h" |
| 11571 | /* AF_INET6 available check */ |
| 11572 | #include <sys/types.h> |
| 11573 | #include <sys/socket.h> |
| 11574 | main() |
| 11575 | { |
| 11576 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 11577 | exit(1); |
| 11578 | else |
| 11579 | exit(0); |
| 11580 | } |
| 11581 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11582 | _ACEOF |
| 11583 | rm -f conftest$ac_exeext |
| 11584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11585 | (eval $ac_link) 2>&5 |
| 11586 | ac_status=$? |
| 11587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11588 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11590 | (eval $ac_try) 2>&5 |
| 11591 | ac_status=$? |
| 11592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11593 | (exit $ac_status); }; }; then |
| 11594 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11595 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11596 | ipv6=yes |
| 11597 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11598 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11599 | echo "$as_me: failed program was:" >&5 |
| 11600 | cat conftest.$ac_ext >&5 |
| 11601 | ( exit $ac_status ) |
| 11602 | echo "$as_me:$LINENO: result: no" >&5 |
| 11603 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11604 | ipv6=no |
| 11605 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11606 | 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] | 11607 | fi |
| 11608 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11609 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11610 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 11611 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 11612 | cat >conftest.$ac_ext <<_ACEOF |
| 11613 | #line $LINENO "configure" |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11614 | #include "confdefs.h" |
| 11615 | #include <sys/types.h> |
| 11616 | #include <netinet/in.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11617 | #ifdef F77_DUMMY_MAIN |
| 11618 | # ifdef __cplusplus |
| 11619 | extern "C" |
| 11620 | # endif |
| 11621 | int F77_DUMMY_MAIN() { return 1; } |
| 11622 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11623 | int |
| 11624 | main () |
| 11625 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11626 | struct sockaddr_in6 x; |
| 11627 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11628 | ; |
| 11629 | return 0; |
| 11630 | } |
| 11631 | _ACEOF |
| 11632 | rm -f conftest.$ac_objext |
| 11633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11634 | (eval $ac_compile) 2>&5 |
| 11635 | ac_status=$? |
| 11636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11637 | (exit $ac_status); } && |
| 11638 | { ac_try='test -s conftest.$ac_objext' |
| 11639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11640 | (eval $ac_try) 2>&5 |
| 11641 | ac_status=$? |
| 11642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11643 | (exit $ac_status); }; }; then |
| 11644 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11645 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11646 | ipv6=yes |
| 11647 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11648 | echo "$as_me: failed program was:" >&5 |
| 11649 | cat conftest.$ac_ext >&5 |
| 11650 | echo "$as_me:$LINENO: result: no" >&5 |
| 11651 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11652 | ipv6=no |
| 11653 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11654 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11655 | fi |
| 11656 | |
| 11657 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11658 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11659 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11660 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11661 | |
| 11662 | fi |
| 11663 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11664 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11665 | |
| 11666 | ipv6type=unknown |
| 11667 | ipv6lib=none |
| 11668 | ipv6trylibc=no |
| 11669 | |
| 11670 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11671 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 11672 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 11673 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 11674 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11675 | case $i in |
| 11676 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11677 | cat >conftest.$ac_ext <<_ACEOF |
| 11678 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11679 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11680 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11681 | #include <netinet/in.h> |
| 11682 | #ifdef IPV6_INRIA_VERSION |
| 11683 | yes |
| 11684 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11685 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11686 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11687 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11688 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11689 | fi |
| 11690 | rm -f conftest* |
| 11691 | |
| 11692 | ;; |
| 11693 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11694 | cat >conftest.$ac_ext <<_ACEOF |
| 11695 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11696 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11697 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11698 | #include <netinet/in.h> |
| 11699 | #ifdef __KAME__ |
| 11700 | yes |
| 11701 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11702 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11703 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11704 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11705 | ipv6type=$i; |
| 11706 | ipv6lib=inet6 |
| 11707 | ipv6libdir=/usr/local/v6/lib |
| 11708 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11709 | fi |
| 11710 | rm -f conftest* |
| 11711 | |
| 11712 | ;; |
| 11713 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11714 | cat >conftest.$ac_ext <<_ACEOF |
| 11715 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11716 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11717 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11718 | #include <features.h> |
| 11719 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 11720 | yes |
| 11721 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11722 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11723 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11724 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11725 | ipv6type=$i; |
| 11726 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11727 | fi |
| 11728 | rm -f conftest* |
| 11729 | |
| 11730 | ;; |
| 11731 | linux-inet6) |
| 11732 | if test -d /usr/inet6; then |
| 11733 | ipv6type=$i |
| 11734 | ipv6lib=inet6 |
| 11735 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11736 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11737 | fi |
| 11738 | ;; |
| 11739 | solaris) |
| 11740 | if test -f /etc/netconfig; then |
| 11741 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 11742 | ipv6type=$i |
| 11743 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11744 | fi |
| 11745 | fi |
| 11746 | ;; |
| 11747 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11748 | cat >conftest.$ac_ext <<_ACEOF |
| 11749 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11750 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11751 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11752 | #include <sys/param.h> |
| 11753 | #ifdef _TOSHIBA_INET6 |
| 11754 | yes |
| 11755 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11756 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11757 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11758 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11759 | ipv6type=$i; |
| 11760 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11761 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11762 | fi |
| 11763 | rm -f conftest* |
| 11764 | |
| 11765 | ;; |
| 11766 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11767 | cat >conftest.$ac_ext <<_ACEOF |
| 11768 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11769 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11770 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11771 | #include </usr/local/v6/include/sys/v6config.h> |
| 11772 | #ifdef __V6D__ |
| 11773 | yes |
| 11774 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11775 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11776 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11777 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11778 | ipv6type=$i; |
| 11779 | ipv6lib=v6; |
| 11780 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11781 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11782 | fi |
| 11783 | rm -f conftest* |
| 11784 | |
| 11785 | ;; |
| 11786 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11787 | cat >conftest.$ac_ext <<_ACEOF |
| 11788 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11789 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11790 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11791 | #include <sys/param.h> |
| 11792 | #ifdef _ZETA_MINAMI_INET6 |
| 11793 | yes |
| 11794 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11795 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11796 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11797 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11798 | ipv6type=$i; |
| 11799 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11800 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11801 | fi |
| 11802 | rm -f conftest* |
| 11803 | |
| 11804 | ;; |
| 11805 | esac |
| 11806 | if test "$ipv6type" != "unknown"; then |
| 11807 | break |
| 11808 | fi |
| 11809 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11810 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 11811 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11812 | fi |
| 11813 | |
| 11814 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 11815 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 11816 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 11817 | echo "using lib$ipv6lib" |
| 11818 | else |
| 11819 | if test $ipv6trylibc = "yes"; then |
| 11820 | echo "using libc" |
| 11821 | else |
| 11822 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 11823 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 11824 | echo 'ipv6 kit and compile beforehand.' |
| 11825 | exit 1 |
| 11826 | fi |
| 11827 | fi |
| 11828 | fi |
| 11829 | |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11830 | # Check for universal newline support |
Guido van Rossum | 402905e | 2002-08-15 13:56:35 +0000 | [diff] [blame] | 11831 | echo "$as_me:$LINENO: checking for --with-universal-newlines" >&5 |
| 11832 | echo $ECHO_N "checking for --with-universal-newlines... $ECHO_C" >&6 |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11833 | |
| 11834 | # Check whether --with-universal-newlines or --without-universal-newlines was given. |
| 11835 | if test "${with_universal_newlines+set}" = set; then |
| 11836 | withval="$with_universal_newlines" |
| 11837 | |
| 11838 | fi; |
| 11839 | |
| 11840 | if test -z "$with_universal_newlines" |
| 11841 | then with_universal_newlines="yes" |
| 11842 | fi |
Martin v. Löwis | 7e4cfcb | 2002-12-19 16:21:49 +0000 | [diff] [blame] | 11843 | if test "$with_universal_newlines" = "no" |
Martin v. Löwis | 03d00d5 | 2002-12-19 19:03:31 +0000 | [diff] [blame] | 11844 | then |
Martin v. Löwis | 7e4cfcb | 2002-12-19 16:21:49 +0000 | [diff] [blame] | 11845 | echo --without-universal-newlines is unsupported, see README |
| 11846 | exit 1 |
Martin v. Löwis | 03d00d5 | 2002-12-19 19:03:31 +0000 | [diff] [blame] | 11847 | else |
Martin v. Löwis | e8aea58 | 2002-04-16 05:51:02 +0000 | [diff] [blame] | 11848 | |
| 11849 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11850 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 11851 | _ACEOF |
| 11852 | |
| 11853 | fi |
| 11854 | echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 |
| 11855 | echo "${ECHO_T}$with_universal_newlines" >&6 |
| 11856 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11857 | # Check for --with-doc-strings |
| 11858 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 11859 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 11860 | |
| 11861 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 11862 | if test "${with_doc_strings+set}" = set; then |
| 11863 | withval="$with_doc_strings" |
| 11864 | |
| 11865 | fi; |
| 11866 | |
| 11867 | if test -z "$with_doc_strings" |
| 11868 | then with_doc_strings="yes" |
| 11869 | fi |
| 11870 | if test "$with_doc_strings" != "no" |
| 11871 | then |
| 11872 | |
| 11873 | cat >>confdefs.h <<\_ACEOF |
| 11874 | #define WITH_DOC_STRINGS 1 |
| 11875 | _ACEOF |
| 11876 | |
| 11877 | fi |
| 11878 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 11879 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 11880 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11881 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11882 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 11883 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 11884 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11885 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 11886 | if test "${with_pymalloc+set}" = set; then |
| 11887 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11888 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11889 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11890 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11891 | if test -z "$with_pymalloc" |
| 11892 | then with_pymalloc="yes" |
| 11893 | fi |
| 11894 | if test "$with_pymalloc" != "no" |
| 11895 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11896 | |
| 11897 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11898 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11899 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11900 | |
| 11901 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11902 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 11903 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11904 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11905 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11906 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 11907 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 11908 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11909 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 11910 | if test "${with_wctype_functions+set}" = set; then |
| 11911 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11912 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11913 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11914 | then |
| 11915 | |
| 11916 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11917 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11918 | _ACEOF |
| 11919 | |
| 11920 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11921 | echo "${ECHO_T}yes" >&6 |
| 11922 | else echo "$as_me:$LINENO: result: no" >&5 |
| 11923 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11924 | fi |
| 11925 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11926 | echo "$as_me:$LINENO: result: no" >&5 |
| 11927 | echo "${ECHO_T}no" >&6 |
| 11928 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11929 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11930 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11931 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11932 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11933 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11934 | echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5 |
| 11935 | echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6 |
| 11936 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11937 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11938 | if test "${with_sgi_dl+set}" = set; then |
| 11939 | withval="$with_sgi_dl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11940 | |
| 11941 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11942 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 9ef3376 | 2002-12-02 22:23:56 +0000 | [diff] [blame] | 11943 | echo --with-sgi-dl is unsupported, see README |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 11944 | exit 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11945 | |
| 11946 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11947 | #define WITH_SGI_DL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11948 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11949 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11950 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11951 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 11952 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 11953 | then LDFLAGS="$LDFLAGS -L$dldir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11954 | else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5 |
| 11955 | echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;} |
| 11956 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11957 | fi |
| 11958 | DLINCLDIR=${dldir} |
| 11959 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11960 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11961 | echo "$as_me:$LINENO: result: no" >&5 |
| 11962 | echo "${ECHO_T}no" >&6 |
| 11963 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11964 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11965 | echo "$as_me:$LINENO: checking for --with-dl-dld" >&5 |
| 11966 | echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11967 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11968 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11969 | if test "${with_dl_dld+set}" = set; then |
| 11970 | withval="$with_dl_dld" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11971 | |
| 11972 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11973 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 9ef3376 | 2002-12-02 22:23:56 +0000 | [diff] [blame] | 11974 | echo --with-dl-dld is unsupported, see README |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 11975 | exit 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11976 | |
| 11977 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11978 | #define WITH_DL_DLD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11979 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11980 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11981 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11982 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 11983 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 11984 | 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] | 11985 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11986 | else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&5 |
| 11987 | echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&2;} |
| 11988 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11989 | fi |
| 11990 | DLINCLDIR=${dldir} |
| 11991 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11992 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11993 | echo "$as_me:$LINENO: result: no" >&5 |
| 11994 | echo "${ECHO_T}no" >&6 |
| 11995 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11996 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11997 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 11998 | # 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] | 11999 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12000 | for ac_func in dlopen |
| 12001 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12002 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12003 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12004 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12005 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12007 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12008 | cat >conftest.$ac_ext <<_ACEOF |
| 12009 | #line $LINENO "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12010 | #include "confdefs.h" |
| 12011 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12012 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12013 | #include <assert.h> |
| 12014 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12015 | #ifdef __cplusplus |
| 12016 | extern "C" |
| 12017 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12018 | /* 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] | 12019 | builtin and then its argument prototype would still apply. */ |
| 12020 | char $ac_func (); |
| 12021 | char (*f) (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12022 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12023 | #ifdef F77_DUMMY_MAIN |
| 12024 | # ifdef __cplusplus |
| 12025 | extern "C" |
| 12026 | # endif |
| 12027 | int F77_DUMMY_MAIN() { return 1; } |
| 12028 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12029 | int |
| 12030 | main () |
| 12031 | { |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12032 | /* The GNU C library defines this for functions which it implements |
| 12033 | to always fail with ENOSYS. Some functions are actually named |
| 12034 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12035 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12036 | choke me |
| 12037 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12038 | f = $ac_func; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12039 | #endif |
| 12040 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12041 | ; |
| 12042 | return 0; |
| 12043 | } |
| 12044 | _ACEOF |
| 12045 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12046 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12047 | (eval $ac_link) 2>&5 |
| 12048 | ac_status=$? |
| 12049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12050 | (exit $ac_status); } && |
| 12051 | { ac_try='test -s conftest$ac_exeext' |
| 12052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12053 | (eval $ac_try) 2>&5 |
| 12054 | ac_status=$? |
| 12055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12056 | (exit $ac_status); }; }; then |
| 12057 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12058 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12059 | echo "$as_me: failed program was:" >&5 |
| 12060 | cat conftest.$ac_ext >&5 |
| 12061 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12062 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12063 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12064 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12065 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12066 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12067 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12068 | cat >>confdefs.h <<_ACEOF |
| 12069 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12070 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12071 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12072 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12073 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12074 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12075 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12076 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 12077 | # loading of modules. |
| 12078 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12079 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 12080 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12081 | if test -z "$DYNLOADFILE" |
| 12082 | then |
| 12083 | case $ac_sys_system/$ac_sys_release in |
| 12084 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 12085 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 12086 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12087 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12088 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12089 | *) |
| 12090 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 12091 | # out any dynamic loading |
| 12092 | if test "$ac_cv_func_dlopen" = yes |
| 12093 | then DYNLOADFILE="dynload_shlib.o" |
| 12094 | else DYNLOADFILE="dynload_stub.o" |
| 12095 | fi |
| 12096 | ;; |
| 12097 | esac |
| 12098 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12099 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 12100 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12101 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 12102 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12103 | |
| 12104 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12105 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12106 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12107 | |
| 12108 | fi |
| 12109 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12110 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 12111 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12112 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12113 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 12114 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12115 | if test -z "$MACHDEP_OBJS" |
| 12116 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12117 | MACHDEP_OBJS=$extra_machdep_objs |
| 12118 | else |
| 12119 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12120 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12121 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 12122 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12123 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12124 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12125 | |
| 12126 | |
| 12127 | |
| 12128 | |
| 12129 | |
| 12130 | |
| 12131 | |
| 12132 | |
| 12133 | |
| 12134 | |
| 12135 | |
| 12136 | |
| 12137 | |
| 12138 | |
| 12139 | |
| 12140 | |
| 12141 | |
| 12142 | |
| 12143 | |
| 12144 | |
| 12145 | |
| 12146 | |
| 12147 | |
| 12148 | |
| 12149 | |
| 12150 | |
| 12151 | |
| 12152 | |
| 12153 | |
| 12154 | |
| 12155 | |
| 12156 | |
| 12157 | |
| 12158 | |
| 12159 | |
| 12160 | |
| 12161 | |
| 12162 | |
| 12163 | |
| 12164 | |
| 12165 | |
| 12166 | |
| 12167 | |
| 12168 | |
| 12169 | |
| 12170 | |
| 12171 | |
| 12172 | |
| 12173 | |
| 12174 | |
| 12175 | |
| 12176 | |
| 12177 | |
| 12178 | |
| 12179 | |
| 12180 | |
| 12181 | |
| 12182 | |
| 12183 | |
| 12184 | |
| 12185 | |
| 12186 | |
| 12187 | |
| 12188 | |
| 12189 | |
| 12190 | |
| 12191 | |
| 12192 | |
| 12193 | |
| 12194 | |
| 12195 | |
| 12196 | |
| 12197 | |
Martin v. Löwis | 9c36c29 | 2002-12-21 18:34:06 +0000 | [diff] [blame] | 12198 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12199 | for ac_func in alarm chown clock confstr ctermid execv \ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12200 | fchdir fork fsync fdatasync fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 12201 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
| 12202 | getpriority getpwent getwd \ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12203 | kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 12204 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 12205 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12206 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 12207 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12208 | sigaction siginterrupt sigrelse strftime strptime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 12209 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 12210 | truncate uname unsetenv utimes waitpid wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12211 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12212 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12213 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12214 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12215 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12217 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12218 | cat >conftest.$ac_ext <<_ACEOF |
| 12219 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12220 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12221 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12222 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12223 | #include <assert.h> |
| 12224 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12225 | #ifdef __cplusplus |
| 12226 | extern "C" |
| 12227 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12228 | /* 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] | 12229 | builtin and then its argument prototype would still apply. */ |
| 12230 | char $ac_func (); |
| 12231 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12232 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12233 | #ifdef F77_DUMMY_MAIN |
| 12234 | # ifdef __cplusplus |
| 12235 | extern "C" |
| 12236 | # endif |
| 12237 | int F77_DUMMY_MAIN() { return 1; } |
| 12238 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12239 | int |
| 12240 | main () |
| 12241 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12242 | /* The GNU C library defines this for functions which it implements |
| 12243 | to always fail with ENOSYS. Some functions are actually named |
| 12244 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12245 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12246 | choke me |
| 12247 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12248 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12249 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12250 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12251 | ; |
| 12252 | return 0; |
| 12253 | } |
| 12254 | _ACEOF |
| 12255 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12256 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12257 | (eval $ac_link) 2>&5 |
| 12258 | ac_status=$? |
| 12259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12260 | (exit $ac_status); } && |
| 12261 | { ac_try='test -s conftest$ac_exeext' |
| 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 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12268 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12269 | echo "$as_me: failed program was:" >&5 |
| 12270 | cat conftest.$ac_ext >&5 |
| 12271 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12272 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12273 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12274 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12275 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12276 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12277 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12278 | cat >>confdefs.h <<_ACEOF |
| 12279 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12280 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12281 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12282 | fi |
| 12283 | done |
| 12284 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12285 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12286 | # For some functions, having a definition is not sufficient, since |
| 12287 | # we want to take their address. |
| 12288 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 12289 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 12290 | cat >conftest.$ac_ext <<_ACEOF |
| 12291 | #line $LINENO "configure" |
| 12292 | #include "confdefs.h" |
| 12293 | #include <unistd.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12294 | #ifdef F77_DUMMY_MAIN |
| 12295 | # ifdef __cplusplus |
| 12296 | extern "C" |
| 12297 | # endif |
| 12298 | int F77_DUMMY_MAIN() { return 1; } |
| 12299 | #endif |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12300 | int |
| 12301 | main () |
| 12302 | { |
| 12303 | void *x=chroot |
| 12304 | ; |
| 12305 | return 0; |
| 12306 | } |
| 12307 | _ACEOF |
| 12308 | rm -f conftest.$ac_objext |
| 12309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12310 | (eval $ac_compile) 2>&5 |
| 12311 | ac_status=$? |
| 12312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12313 | (exit $ac_status); } && |
| 12314 | { ac_try='test -s conftest.$ac_objext' |
| 12315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12316 | (eval $ac_try) 2>&5 |
| 12317 | ac_status=$? |
| 12318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12319 | (exit $ac_status); }; }; then |
| 12320 | |
| 12321 | cat >>confdefs.h <<\_ACEOF |
| 12322 | #define HAVE_CHROOT 1 |
| 12323 | _ACEOF |
| 12324 | |
| 12325 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12326 | echo "${ECHO_T}yes" >&6 |
| 12327 | else |
| 12328 | echo "$as_me: failed program was:" >&5 |
| 12329 | cat conftest.$ac_ext >&5 |
| 12330 | echo "$as_me:$LINENO: result: no" >&5 |
| 12331 | echo "${ECHO_T}no" >&6 |
| 12332 | |
| 12333 | fi |
| 12334 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12335 | echo "$as_me:$LINENO: checking for link" >&5 |
| 12336 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 12337 | cat >conftest.$ac_ext <<_ACEOF |
| 12338 | #line $LINENO "configure" |
| 12339 | #include "confdefs.h" |
| 12340 | #include <unistd.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12341 | #ifdef F77_DUMMY_MAIN |
| 12342 | # ifdef __cplusplus |
| 12343 | extern "C" |
| 12344 | # endif |
| 12345 | int F77_DUMMY_MAIN() { return 1; } |
| 12346 | #endif |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12347 | int |
| 12348 | main () |
| 12349 | { |
| 12350 | void *x=link |
| 12351 | ; |
| 12352 | return 0; |
| 12353 | } |
| 12354 | _ACEOF |
| 12355 | rm -f conftest.$ac_objext |
| 12356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12357 | (eval $ac_compile) 2>&5 |
| 12358 | ac_status=$? |
| 12359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12360 | (exit $ac_status); } && |
| 12361 | { ac_try='test -s conftest.$ac_objext' |
| 12362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12363 | (eval $ac_try) 2>&5 |
| 12364 | ac_status=$? |
| 12365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12366 | (exit $ac_status); }; }; then |
| 12367 | |
| 12368 | cat >>confdefs.h <<\_ACEOF |
| 12369 | #define HAVE_LINK 1 |
| 12370 | _ACEOF |
| 12371 | |
| 12372 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12373 | echo "${ECHO_T}yes" >&6 |
| 12374 | else |
| 12375 | echo "$as_me: failed program was:" >&5 |
| 12376 | cat conftest.$ac_ext >&5 |
| 12377 | echo "$as_me:$LINENO: result: no" >&5 |
| 12378 | echo "${ECHO_T}no" >&6 |
| 12379 | |
| 12380 | fi |
| 12381 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12382 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 12383 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 12384 | cat >conftest.$ac_ext <<_ACEOF |
| 12385 | #line $LINENO "configure" |
| 12386 | #include "confdefs.h" |
| 12387 | #include <unistd.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12388 | #ifdef F77_DUMMY_MAIN |
| 12389 | # ifdef __cplusplus |
| 12390 | extern "C" |
| 12391 | # endif |
| 12392 | int F77_DUMMY_MAIN() { return 1; } |
| 12393 | #endif |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12394 | int |
| 12395 | main () |
| 12396 | { |
| 12397 | void *x=symlink |
| 12398 | ; |
| 12399 | return 0; |
| 12400 | } |
| 12401 | _ACEOF |
| 12402 | rm -f conftest.$ac_objext |
| 12403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12404 | (eval $ac_compile) 2>&5 |
| 12405 | ac_status=$? |
| 12406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12407 | (exit $ac_status); } && |
| 12408 | { ac_try='test -s conftest.$ac_objext' |
| 12409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12410 | (eval $ac_try) 2>&5 |
| 12411 | ac_status=$? |
| 12412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12413 | (exit $ac_status); }; }; then |
| 12414 | |
| 12415 | cat >>confdefs.h <<\_ACEOF |
| 12416 | #define HAVE_SYMLINK 1 |
| 12417 | _ACEOF |
| 12418 | |
| 12419 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12420 | echo "${ECHO_T}yes" >&6 |
| 12421 | else |
| 12422 | echo "$as_me: failed program was:" >&5 |
| 12423 | cat conftest.$ac_ext >&5 |
| 12424 | echo "$as_me:$LINENO: result: no" >&5 |
| 12425 | echo "${ECHO_T}no" >&6 |
| 12426 | |
| 12427 | fi |
| 12428 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12429 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12430 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 12431 | # functions ctermid_r, setgroups in the library, but no prototype |
| 12432 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 12433 | # address to avoid compiler warnings and potential miscompilations |
| 12434 | # because of the missing prototypes. |
| 12435 | |
| 12436 | echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 12437 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6 |
| 12438 | cat >conftest.$ac_ext <<_ACEOF |
| 12439 | #line $LINENO "configure" |
| 12440 | #include "confdefs.h" |
| 12441 | |
| 12442 | #include "confdefs.h" |
| 12443 | #include <stdio.h> |
| 12444 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12445 | #ifdef F77_DUMMY_MAIN |
| 12446 | # ifdef __cplusplus |
| 12447 | extern "C" |
| 12448 | # endif |
| 12449 | int F77_DUMMY_MAIN() { return 1; } |
| 12450 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12451 | int |
| 12452 | main () |
| 12453 | { |
| 12454 | void* p = ctermid_r |
| 12455 | ; |
| 12456 | return 0; |
| 12457 | } |
| 12458 | _ACEOF |
| 12459 | rm -f conftest.$ac_objext |
| 12460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12461 | (eval $ac_compile) 2>&5 |
| 12462 | ac_status=$? |
| 12463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12464 | (exit $ac_status); } && |
| 12465 | { ac_try='test -s conftest.$ac_objext' |
| 12466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12467 | (eval $ac_try) 2>&5 |
| 12468 | ac_status=$? |
| 12469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12470 | (exit $ac_status); }; }; then |
| 12471 | |
| 12472 | cat >>confdefs.h <<\_ACEOF |
| 12473 | #define HAVE_CTERMID_R 1 |
| 12474 | _ACEOF |
| 12475 | |
| 12476 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12477 | echo "${ECHO_T}yes" >&6 |
| 12478 | else |
| 12479 | echo "$as_me: failed program was:" >&5 |
| 12480 | cat conftest.$ac_ext >&5 |
| 12481 | echo "$as_me:$LINENO: result: no" >&5 |
| 12482 | echo "${ECHO_T}no" >&6 |
| 12483 | |
| 12484 | fi |
| 12485 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12486 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12487 | echo "$as_me:$LINENO: checking for flock" >&5 |
| 12488 | echo $ECHO_N "checking for flock... $ECHO_C" >&6 |
| 12489 | cat >conftest.$ac_ext <<_ACEOF |
| 12490 | #line $LINENO "configure" |
| 12491 | #include "confdefs.h" |
| 12492 | |
| 12493 | #include "confdefs.h" |
| 12494 | #include <sys/file.h> |
| 12495 | |
| 12496 | #ifdef F77_DUMMY_MAIN |
| 12497 | # ifdef __cplusplus |
| 12498 | extern "C" |
| 12499 | # endif |
| 12500 | int F77_DUMMY_MAIN() { return 1; } |
| 12501 | #endif |
| 12502 | int |
| 12503 | main () |
| 12504 | { |
| 12505 | void* p = flock |
| 12506 | ; |
| 12507 | return 0; |
| 12508 | } |
| 12509 | _ACEOF |
| 12510 | rm -f conftest.$ac_objext |
| 12511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12512 | (eval $ac_compile) 2>&5 |
| 12513 | ac_status=$? |
| 12514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12515 | (exit $ac_status); } && |
| 12516 | { ac_try='test -s conftest.$ac_objext' |
| 12517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12518 | (eval $ac_try) 2>&5 |
| 12519 | ac_status=$? |
| 12520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12521 | (exit $ac_status); }; }; then |
| 12522 | |
| 12523 | cat >>confdefs.h <<\_ACEOF |
| 12524 | #define HAVE_FLOCK 1 |
| 12525 | _ACEOF |
| 12526 | |
| 12527 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12528 | echo "${ECHO_T}yes" >&6 |
| 12529 | else |
| 12530 | echo "$as_me: failed program was:" >&5 |
| 12531 | cat conftest.$ac_ext >&5 |
| 12532 | echo "$as_me:$LINENO: result: no" >&5 |
| 12533 | echo "${ECHO_T}no" >&6 |
| 12534 | |
| 12535 | fi |
| 12536 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12537 | |
| 12538 | echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 12539 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 |
| 12540 | cat >conftest.$ac_ext <<_ACEOF |
| 12541 | #line $LINENO "configure" |
| 12542 | #include "confdefs.h" |
| 12543 | |
| 12544 | #include "confdefs.h" |
| 12545 | #include <unistd.h> |
| 12546 | |
| 12547 | #ifdef F77_DUMMY_MAIN |
| 12548 | # ifdef __cplusplus |
| 12549 | extern "C" |
| 12550 | # endif |
| 12551 | int F77_DUMMY_MAIN() { return 1; } |
| 12552 | #endif |
| 12553 | int |
| 12554 | main () |
| 12555 | { |
| 12556 | void* p = getpagesize |
| 12557 | ; |
| 12558 | return 0; |
| 12559 | } |
| 12560 | _ACEOF |
| 12561 | rm -f conftest.$ac_objext |
| 12562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12563 | (eval $ac_compile) 2>&5 |
| 12564 | ac_status=$? |
| 12565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12566 | (exit $ac_status); } && |
| 12567 | { ac_try='test -s conftest.$ac_objext' |
| 12568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12569 | (eval $ac_try) 2>&5 |
| 12570 | ac_status=$? |
| 12571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12572 | (exit $ac_status); }; }; then |
| 12573 | |
| 12574 | cat >>confdefs.h <<\_ACEOF |
| 12575 | #define HAVE_GETPAGESIZE 1 |
| 12576 | _ACEOF |
| 12577 | |
| 12578 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12579 | echo "${ECHO_T}yes" >&6 |
| 12580 | else |
| 12581 | echo "$as_me: failed program was:" >&5 |
| 12582 | cat conftest.$ac_ext >&5 |
| 12583 | echo "$as_me:$LINENO: result: no" >&5 |
| 12584 | echo "${ECHO_T}no" >&6 |
| 12585 | |
| 12586 | fi |
| 12587 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12588 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12589 | echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 12590 | echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6 |
| 12591 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
| 12592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12593 | else |
| 12594 | ac_check_lib_save_LIBS=$LIBS |
| 12595 | LIBS="-lc $LIBS" |
| 12596 | cat >conftest.$ac_ext <<_ACEOF |
| 12597 | #line $LINENO "configure" |
| 12598 | #include "confdefs.h" |
| 12599 | |
| 12600 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12601 | #ifdef __cplusplus |
| 12602 | extern "C" |
| 12603 | #endif |
| 12604 | /* We use char because int might match the return type of a gcc2 |
| 12605 | builtin and then its argument prototype would still apply. */ |
| 12606 | char inet_aton (); |
| 12607 | #ifdef F77_DUMMY_MAIN |
| 12608 | # ifdef __cplusplus |
| 12609 | extern "C" |
| 12610 | # endif |
| 12611 | int F77_DUMMY_MAIN() { return 1; } |
| 12612 | #endif |
| 12613 | int |
| 12614 | main () |
| 12615 | { |
| 12616 | inet_aton (); |
| 12617 | ; |
| 12618 | return 0; |
| 12619 | } |
| 12620 | _ACEOF |
| 12621 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12622 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12623 | (eval $ac_link) 2>&5 |
| 12624 | ac_status=$? |
| 12625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12626 | (exit $ac_status); } && |
| 12627 | { ac_try='test -s conftest$ac_exeext' |
| 12628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12629 | (eval $ac_try) 2>&5 |
| 12630 | ac_status=$? |
| 12631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12632 | (exit $ac_status); }; }; then |
| 12633 | ac_cv_lib_c_inet_aton=yes |
| 12634 | else |
| 12635 | echo "$as_me: failed program was:" >&5 |
| 12636 | cat conftest.$ac_ext >&5 |
| 12637 | ac_cv_lib_c_inet_aton=no |
| 12638 | fi |
| 12639 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12640 | LIBS=$ac_check_lib_save_LIBS |
| 12641 | fi |
| 12642 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 12643 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6 |
| 12644 | if test $ac_cv_lib_c_inet_aton = yes; then |
| 12645 | /bin/true |
| 12646 | else |
| 12647 | |
| 12648 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 12649 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 12650 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 12651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12652 | else |
| 12653 | ac_check_lib_save_LIBS=$LIBS |
| 12654 | LIBS="-lresolv $LIBS" |
| 12655 | cat >conftest.$ac_ext <<_ACEOF |
| 12656 | #line $LINENO "configure" |
| 12657 | #include "confdefs.h" |
| 12658 | |
| 12659 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12660 | #ifdef __cplusplus |
| 12661 | extern "C" |
| 12662 | #endif |
| 12663 | /* We use char because int might match the return type of a gcc2 |
| 12664 | builtin and then its argument prototype would still apply. */ |
| 12665 | char inet_aton (); |
| 12666 | #ifdef F77_DUMMY_MAIN |
| 12667 | # ifdef __cplusplus |
| 12668 | extern "C" |
| 12669 | # endif |
| 12670 | int F77_DUMMY_MAIN() { return 1; } |
| 12671 | #endif |
| 12672 | int |
| 12673 | main () |
| 12674 | { |
| 12675 | inet_aton (); |
| 12676 | ; |
| 12677 | return 0; |
| 12678 | } |
| 12679 | _ACEOF |
| 12680 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12681 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12682 | (eval $ac_link) 2>&5 |
| 12683 | ac_status=$? |
| 12684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12685 | (exit $ac_status); } && |
| 12686 | { ac_try='test -s conftest$ac_exeext' |
| 12687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12688 | (eval $ac_try) 2>&5 |
| 12689 | ac_status=$? |
| 12690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12691 | (exit $ac_status); }; }; then |
| 12692 | ac_cv_lib_resolv_inet_aton=yes |
| 12693 | else |
| 12694 | echo "$as_me: failed program was:" >&5 |
| 12695 | cat conftest.$ac_ext >&5 |
| 12696 | ac_cv_lib_resolv_inet_aton=no |
| 12697 | fi |
| 12698 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12699 | LIBS=$ac_check_lib_save_LIBS |
| 12700 | fi |
| 12701 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 12702 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 12703 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
| 12704 | cat >>confdefs.h <<_ACEOF |
| 12705 | #define HAVE_LIBRESOLV 1 |
| 12706 | _ACEOF |
| 12707 | |
| 12708 | LIBS="-lresolv $LIBS" |
| 12709 | |
| 12710 | fi |
| 12711 | |
| 12712 | |
| 12713 | fi |
| 12714 | |
| 12715 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12716 | echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 12717 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 |
| 12718 | cat >conftest.$ac_ext <<_ACEOF |
| 12719 | #line $LINENO "configure" |
| 12720 | #include "confdefs.h" |
| 12721 | |
| 12722 | #include "confdefs.h" |
| 12723 | #include <netdb.h> |
| 12724 | |
| 12725 | #ifdef F77_DUMMY_MAIN |
| 12726 | # ifdef __cplusplus |
| 12727 | extern "C" |
| 12728 | # endif |
| 12729 | int F77_DUMMY_MAIN() { return 1; } |
| 12730 | #endif |
| 12731 | int |
| 12732 | main () |
| 12733 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12734 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12735 | ; |
| 12736 | return 0; |
| 12737 | } |
| 12738 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12739 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12740 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12741 | (eval $ac_link) 2>&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12742 | ac_status=$? |
| 12743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12744 | (exit $ac_status); } && |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12745 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12747 | (eval $ac_try) 2>&5 |
| 12748 | ac_status=$? |
| 12749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12750 | (exit $ac_status); }; }; then |
| 12751 | |
| 12752 | cat >>confdefs.h <<\_ACEOF |
| 12753 | #define HAVE_HSTRERROR 1 |
| 12754 | _ACEOF |
| 12755 | |
| 12756 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12757 | echo "${ECHO_T}yes" >&6 |
| 12758 | else |
| 12759 | echo "$as_me: failed program was:" >&5 |
| 12760 | cat conftest.$ac_ext >&5 |
| 12761 | echo "$as_me:$LINENO: result: no" >&5 |
| 12762 | echo "${ECHO_T}no" >&6 |
| 12763 | |
| 12764 | fi |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12765 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12766 | |
| 12767 | echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 12768 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 |
| 12769 | cat >conftest.$ac_ext <<_ACEOF |
| 12770 | #line $LINENO "configure" |
| 12771 | #include "confdefs.h" |
| 12772 | |
| 12773 | #include "confdefs.h" |
| 12774 | #include <sys/socket.h> |
| 12775 | #include <netinet/in.h> |
| 12776 | #include <arpa/inet.h> |
| 12777 | |
| 12778 | #ifdef F77_DUMMY_MAIN |
| 12779 | # ifdef __cplusplus |
| 12780 | extern "C" |
| 12781 | # endif |
| 12782 | int F77_DUMMY_MAIN() { return 1; } |
| 12783 | #endif |
| 12784 | int |
| 12785 | main () |
| 12786 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12787 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12788 | ; |
| 12789 | return 0; |
| 12790 | } |
| 12791 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12792 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12793 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12794 | (eval $ac_link) 2>&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12795 | ac_status=$? |
| 12796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12797 | (exit $ac_status); } && |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12798 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12800 | (eval $ac_try) 2>&5 |
| 12801 | ac_status=$? |
| 12802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12803 | (exit $ac_status); }; }; then |
| 12804 | |
| 12805 | cat >>confdefs.h <<\_ACEOF |
| 12806 | #define HAVE_INET_ATON 1 |
| 12807 | _ACEOF |
| 12808 | |
| 12809 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12810 | echo "${ECHO_T}yes" >&6 |
| 12811 | else |
| 12812 | echo "$as_me: failed program was:" >&5 |
| 12813 | cat conftest.$ac_ext >&5 |
| 12814 | echo "$as_me:$LINENO: result: no" >&5 |
| 12815 | echo "${ECHO_T}no" >&6 |
| 12816 | |
| 12817 | fi |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12818 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12819 | |
| 12820 | echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 12821 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 |
| 12822 | cat >conftest.$ac_ext <<_ACEOF |
| 12823 | #line $LINENO "configure" |
| 12824 | #include "confdefs.h" |
| 12825 | |
| 12826 | #include "confdefs.h" |
| 12827 | #include <sys/socket.h> |
| 12828 | #include <netinet/in.h> |
| 12829 | #include <arpa/inet.h> |
| 12830 | |
| 12831 | #ifdef F77_DUMMY_MAIN |
| 12832 | # ifdef __cplusplus |
| 12833 | extern "C" |
| 12834 | # endif |
| 12835 | int F77_DUMMY_MAIN() { return 1; } |
| 12836 | #endif |
| 12837 | int |
| 12838 | main () |
| 12839 | { |
| 12840 | void* p = inet_pton |
| 12841 | ; |
| 12842 | return 0; |
| 12843 | } |
| 12844 | _ACEOF |
| 12845 | rm -f conftest.$ac_objext |
| 12846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12847 | (eval $ac_compile) 2>&5 |
| 12848 | ac_status=$? |
| 12849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12850 | (exit $ac_status); } && |
| 12851 | { ac_try='test -s conftest.$ac_objext' |
| 12852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12853 | (eval $ac_try) 2>&5 |
| 12854 | ac_status=$? |
| 12855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12856 | (exit $ac_status); }; }; then |
| 12857 | |
| 12858 | cat >>confdefs.h <<\_ACEOF |
| 12859 | #define HAVE_INET_PTON 1 |
| 12860 | _ACEOF |
| 12861 | |
| 12862 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12863 | echo "${ECHO_T}yes" >&6 |
| 12864 | else |
| 12865 | echo "$as_me: failed program was:" >&5 |
| 12866 | cat conftest.$ac_ext >&5 |
| 12867 | echo "$as_me:$LINENO: result: no" >&5 |
| 12868 | echo "${ECHO_T}no" >&6 |
| 12869 | |
| 12870 | fi |
| 12871 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12872 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12873 | echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 12874 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 |
| 12875 | cat >conftest.$ac_ext <<_ACEOF |
| 12876 | #line $LINENO "configure" |
| 12877 | #include "confdefs.h" |
| 12878 | |
| 12879 | #include "confdefs.h" |
| 12880 | #include <unistd.h.h> |
| 12881 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12882 | #ifdef F77_DUMMY_MAIN |
| 12883 | # ifdef __cplusplus |
| 12884 | extern "C" |
| 12885 | # endif |
| 12886 | int F77_DUMMY_MAIN() { return 1; } |
| 12887 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12888 | int |
| 12889 | main () |
| 12890 | { |
| 12891 | void* p = setgroups |
| 12892 | ; |
| 12893 | return 0; |
| 12894 | } |
| 12895 | _ACEOF |
| 12896 | rm -f conftest.$ac_objext |
| 12897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12898 | (eval $ac_compile) 2>&5 |
| 12899 | ac_status=$? |
| 12900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12901 | (exit $ac_status); } && |
| 12902 | { ac_try='test -s conftest.$ac_objext' |
| 12903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12904 | (eval $ac_try) 2>&5 |
| 12905 | ac_status=$? |
| 12906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12907 | (exit $ac_status); }; }; then |
| 12908 | |
| 12909 | cat >>confdefs.h <<\_ACEOF |
| 12910 | #define HAVE_SETGROUPS 1 |
| 12911 | _ACEOF |
| 12912 | |
| 12913 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12914 | echo "${ECHO_T}yes" >&6 |
| 12915 | else |
| 12916 | echo "$as_me: failed program was:" >&5 |
| 12917 | cat conftest.$ac_ext >&5 |
| 12918 | echo "$as_me:$LINENO: result: no" >&5 |
| 12919 | echo "${ECHO_T}no" >&6 |
| 12920 | |
| 12921 | fi |
| 12922 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12923 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12924 | # check for openpty and forkpty |
| 12925 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12926 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12927 | for ac_func in openpty |
| 12928 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12929 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12930 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12931 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12932 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12934 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12935 | cat >conftest.$ac_ext <<_ACEOF |
| 12936 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12937 | #include "confdefs.h" |
| 12938 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12939 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12940 | #include <assert.h> |
| 12941 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12942 | #ifdef __cplusplus |
| 12943 | extern "C" |
| 12944 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12945 | /* 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] | 12946 | builtin and then its argument prototype would still apply. */ |
| 12947 | char $ac_func (); |
| 12948 | char (*f) (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12949 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12950 | #ifdef F77_DUMMY_MAIN |
| 12951 | # ifdef __cplusplus |
| 12952 | extern "C" |
| 12953 | # endif |
| 12954 | int F77_DUMMY_MAIN() { return 1; } |
| 12955 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12956 | int |
| 12957 | main () |
| 12958 | { |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12959 | /* The GNU C library defines this for functions which it implements |
| 12960 | to always fail with ENOSYS. Some functions are actually named |
| 12961 | something starting with __ and the normal name is an alias. */ |
| 12962 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12963 | choke me |
| 12964 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12965 | f = $ac_func; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12966 | #endif |
| 12967 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12968 | ; |
| 12969 | return 0; |
| 12970 | } |
| 12971 | _ACEOF |
| 12972 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12973 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12974 | (eval $ac_link) 2>&5 |
| 12975 | ac_status=$? |
| 12976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12977 | (exit $ac_status); } && |
| 12978 | { ac_try='test -s conftest$ac_exeext' |
| 12979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12980 | (eval $ac_try) 2>&5 |
| 12981 | ac_status=$? |
| 12982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12983 | (exit $ac_status); }; }; then |
| 12984 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12985 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12986 | echo "$as_me: failed program was:" >&5 |
| 12987 | cat conftest.$ac_ext >&5 |
| 12988 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12989 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12990 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12991 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12992 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12993 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12994 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12995 | cat >>confdefs.h <<_ACEOF |
| 12996 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12997 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12998 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12999 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13000 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 13001 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 13002 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 13003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13004 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13005 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13006 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13007 | cat >conftest.$ac_ext <<_ACEOF |
| 13008 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13009 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13010 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13011 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13012 | #ifdef __cplusplus |
| 13013 | extern "C" |
| 13014 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13015 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13016 | builtin and then its argument prototype would still apply. */ |
| 13017 | char openpty (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13018 | #ifdef F77_DUMMY_MAIN |
| 13019 | # ifdef __cplusplus |
| 13020 | extern "C" |
| 13021 | # endif |
| 13022 | int F77_DUMMY_MAIN() { return 1; } |
| 13023 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13024 | int |
| 13025 | main () |
| 13026 | { |
| 13027 | openpty (); |
| 13028 | ; |
| 13029 | return 0; |
| 13030 | } |
| 13031 | _ACEOF |
| 13032 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13034 | (eval $ac_link) 2>&5 |
| 13035 | ac_status=$? |
| 13036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13037 | (exit $ac_status); } && |
| 13038 | { ac_try='test -s conftest$ac_exeext' |
| 13039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13040 | (eval $ac_try) 2>&5 |
| 13041 | ac_status=$? |
| 13042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13043 | (exit $ac_status); }; }; then |
| 13044 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13045 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13046 | echo "$as_me: failed program was:" >&5 |
| 13047 | cat conftest.$ac_ext >&5 |
| 13048 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13049 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13050 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13051 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13052 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13053 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 13054 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 13055 | if test $ac_cv_lib_util_openpty = yes; then |
| 13056 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13057 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13058 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13059 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13060 | fi |
| 13061 | |
| 13062 | fi |
| 13063 | done |
| 13064 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13065 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13066 | for ac_func in forkpty |
| 13067 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13068 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13069 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13070 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13071 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13073 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13074 | cat >conftest.$ac_ext <<_ACEOF |
| 13075 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13076 | #include "confdefs.h" |
| 13077 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13078 | which can conflict with char $ac_func (); below. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13079 | #include <assert.h> |
| 13080 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13081 | #ifdef __cplusplus |
| 13082 | extern "C" |
| 13083 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13084 | /* 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] | 13085 | builtin and then its argument prototype would still apply. */ |
| 13086 | char $ac_func (); |
| 13087 | char (*f) (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13088 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13089 | #ifdef F77_DUMMY_MAIN |
| 13090 | # ifdef __cplusplus |
| 13091 | extern "C" |
| 13092 | # endif |
| 13093 | int F77_DUMMY_MAIN() { return 1; } |
| 13094 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13095 | int |
| 13096 | main () |
| 13097 | { |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13098 | /* The GNU C library defines this for functions which it implements |
| 13099 | to always fail with ENOSYS. Some functions are actually named |
| 13100 | something starting with __ and the normal name is an alias. */ |
| 13101 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13102 | choke me |
| 13103 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13104 | f = $ac_func; |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13105 | #endif |
| 13106 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13107 | ; |
| 13108 | return 0; |
| 13109 | } |
| 13110 | _ACEOF |
| 13111 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13112 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13113 | (eval $ac_link) 2>&5 |
| 13114 | ac_status=$? |
| 13115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13116 | (exit $ac_status); } && |
| 13117 | { ac_try='test -s conftest$ac_exeext' |
| 13118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13119 | (eval $ac_try) 2>&5 |
| 13120 | ac_status=$? |
| 13121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13122 | (exit $ac_status); }; }; then |
| 13123 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13124 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13125 | echo "$as_me: failed program was:" >&5 |
| 13126 | cat conftest.$ac_ext >&5 |
| 13127 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13128 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13129 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13130 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13131 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13132 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13133 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13134 | cat >>confdefs.h <<_ACEOF |
| 13135 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13136 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13137 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13138 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13139 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 13140 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 13141 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 13142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13143 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13144 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13145 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13146 | cat >conftest.$ac_ext <<_ACEOF |
| 13147 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13148 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13149 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13150 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13151 | #ifdef __cplusplus |
| 13152 | extern "C" |
| 13153 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13154 | /* 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] | 13155 | builtin and then its argument prototype would still apply. */ |
| 13156 | char forkpty (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13157 | #ifdef F77_DUMMY_MAIN |
| 13158 | # ifdef __cplusplus |
| 13159 | extern "C" |
| 13160 | # endif |
| 13161 | int F77_DUMMY_MAIN() { return 1; } |
| 13162 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13163 | int |
| 13164 | main () |
| 13165 | { |
| 13166 | forkpty (); |
| 13167 | ; |
| 13168 | return 0; |
| 13169 | } |
| 13170 | _ACEOF |
| 13171 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13172 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13173 | (eval $ac_link) 2>&5 |
| 13174 | ac_status=$? |
| 13175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13176 | (exit $ac_status); } && |
| 13177 | { ac_try='test -s conftest$ac_exeext' |
| 13178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13179 | (eval $ac_try) 2>&5 |
| 13180 | ac_status=$? |
| 13181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13182 | (exit $ac_status); }; }; then |
| 13183 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13184 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13185 | echo "$as_me: failed program was:" >&5 |
| 13186 | cat conftest.$ac_ext >&5 |
| 13187 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13188 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13189 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13190 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13191 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13192 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 13193 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 13194 | if test $ac_cv_lib_util_forkpty = yes; then |
| 13195 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13196 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13197 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13198 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13199 | fi |
| 13200 | |
| 13201 | fi |
| 13202 | done |
| 13203 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13204 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13205 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13206 | |
| 13207 | |
| 13208 | |
| 13209 | |
| 13210 | |
| 13211 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13212 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 13213 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13214 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13215 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13216 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13217 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13219 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13220 | cat >conftest.$ac_ext <<_ACEOF |
| 13221 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13222 | #include "confdefs.h" |
| 13223 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13224 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13225 | #include <assert.h> |
| 13226 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13227 | #ifdef __cplusplus |
| 13228 | extern "C" |
| 13229 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13230 | /* 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] | 13231 | builtin and then its argument prototype would still apply. */ |
| 13232 | char $ac_func (); |
| 13233 | char (*f) (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13234 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13235 | #ifdef F77_DUMMY_MAIN |
| 13236 | # ifdef __cplusplus |
| 13237 | extern "C" |
| 13238 | # endif |
| 13239 | int F77_DUMMY_MAIN() { return 1; } |
| 13240 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13241 | int |
| 13242 | main () |
| 13243 | { |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13244 | /* The GNU C library defines this for functions which it implements |
| 13245 | to always fail with ENOSYS. Some functions are actually named |
| 13246 | something starting with __ and the normal name is an alias. */ |
| 13247 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13248 | choke me |
| 13249 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13250 | f = $ac_func; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13251 | #endif |
| 13252 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13253 | ; |
| 13254 | return 0; |
| 13255 | } |
| 13256 | _ACEOF |
| 13257 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13258 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13259 | (eval $ac_link) 2>&5 |
| 13260 | ac_status=$? |
| 13261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13262 | (exit $ac_status); } && |
| 13263 | { ac_try='test -s conftest$ac_exeext' |
| 13264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13265 | (eval $ac_try) 2>&5 |
| 13266 | ac_status=$? |
| 13267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13268 | (exit $ac_status); }; }; then |
| 13269 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13270 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13271 | echo "$as_me: failed program was:" >&5 |
| 13272 | cat conftest.$ac_ext >&5 |
| 13273 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13274 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13275 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13276 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13277 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13278 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13279 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13280 | cat >>confdefs.h <<_ACEOF |
| 13281 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13282 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13283 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13284 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13285 | done |
| 13286 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13287 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13288 | |
| 13289 | |
| 13290 | |
| 13291 | |
| 13292 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13293 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13294 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13295 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13296 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13297 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13298 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13300 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13301 | cat >conftest.$ac_ext <<_ACEOF |
| 13302 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13303 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13304 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13305 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13306 | #include <assert.h> |
| 13307 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13308 | #ifdef __cplusplus |
| 13309 | extern "C" |
| 13310 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13311 | /* 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] | 13312 | builtin and then its argument prototype would still apply. */ |
| 13313 | char $ac_func (); |
| 13314 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13315 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13316 | #ifdef F77_DUMMY_MAIN |
| 13317 | # ifdef __cplusplus |
| 13318 | extern "C" |
| 13319 | # endif |
| 13320 | int F77_DUMMY_MAIN() { return 1; } |
| 13321 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13322 | int |
| 13323 | main () |
| 13324 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13325 | /* The GNU C library defines this for functions which it implements |
| 13326 | to always fail with ENOSYS. Some functions are actually named |
| 13327 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13328 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13329 | choke me |
| 13330 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13331 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13332 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13333 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13334 | ; |
| 13335 | return 0; |
| 13336 | } |
| 13337 | _ACEOF |
| 13338 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13340 | (eval $ac_link) 2>&5 |
| 13341 | ac_status=$? |
| 13342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13343 | (exit $ac_status); } && |
| 13344 | { ac_try='test -s conftest$ac_exeext' |
| 13345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13346 | (eval $ac_try) 2>&5 |
| 13347 | ac_status=$? |
| 13348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13349 | (exit $ac_status); }; }; then |
| 13350 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13351 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13352 | echo "$as_me: failed program was:" >&5 |
| 13353 | cat conftest.$ac_ext >&5 |
| 13354 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13355 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13356 | 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] | 13357 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13358 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13359 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13360 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13361 | cat >>confdefs.h <<_ACEOF |
| 13362 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13363 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13364 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13365 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13366 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13367 | fi |
| 13368 | done |
| 13369 | |
| 13370 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13371 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13372 | for ac_func in getpgrp |
| 13373 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13374 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13375 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13376 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13377 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13379 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13380 | cat >conftest.$ac_ext <<_ACEOF |
| 13381 | #line $LINENO "configure" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13382 | #include "confdefs.h" |
| 13383 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13384 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13385 | #include <assert.h> |
| 13386 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13387 | #ifdef __cplusplus |
| 13388 | extern "C" |
| 13389 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13390 | /* 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] | 13391 | builtin and then its argument prototype would still apply. */ |
| 13392 | char $ac_func (); |
| 13393 | char (*f) (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13394 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13395 | #ifdef F77_DUMMY_MAIN |
| 13396 | # ifdef __cplusplus |
| 13397 | extern "C" |
| 13398 | # endif |
| 13399 | int F77_DUMMY_MAIN() { return 1; } |
| 13400 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13401 | int |
| 13402 | main () |
| 13403 | { |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13404 | /* The GNU C library defines this for functions which it implements |
| 13405 | to always fail with ENOSYS. Some functions are actually named |
| 13406 | something starting with __ and the normal name is an alias. */ |
| 13407 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13408 | choke me |
| 13409 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13410 | f = $ac_func; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13411 | #endif |
| 13412 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13413 | ; |
| 13414 | return 0; |
| 13415 | } |
| 13416 | _ACEOF |
| 13417 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13418 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13419 | (eval $ac_link) 2>&5 |
| 13420 | ac_status=$? |
| 13421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13422 | (exit $ac_status); } && |
| 13423 | { ac_try='test -s conftest$ac_exeext' |
| 13424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13425 | (eval $ac_try) 2>&5 |
| 13426 | ac_status=$? |
| 13427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13428 | (exit $ac_status); }; }; then |
| 13429 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13430 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13431 | echo "$as_me: failed program was:" >&5 |
| 13432 | cat conftest.$ac_ext >&5 |
| 13433 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13434 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13435 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13436 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13437 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13438 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13439 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13440 | cat >>confdefs.h <<_ACEOF |
| 13441 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13442 | _ACEOF |
| 13443 | cat >conftest.$ac_ext <<_ACEOF |
| 13444 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13445 | #include "confdefs.h" |
| 13446 | #include <unistd.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13447 | #ifdef F77_DUMMY_MAIN |
| 13448 | # ifdef __cplusplus |
| 13449 | extern "C" |
| 13450 | # endif |
| 13451 | int F77_DUMMY_MAIN() { return 1; } |
| 13452 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13453 | int |
| 13454 | main () |
| 13455 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13456 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13457 | ; |
| 13458 | return 0; |
| 13459 | } |
| 13460 | _ACEOF |
| 13461 | rm -f conftest.$ac_objext |
| 13462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13463 | (eval $ac_compile) 2>&5 |
| 13464 | ac_status=$? |
| 13465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13466 | (exit $ac_status); } && |
| 13467 | { ac_try='test -s conftest.$ac_objext' |
| 13468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13469 | (eval $ac_try) 2>&5 |
| 13470 | ac_status=$? |
| 13471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13472 | (exit $ac_status); }; }; then |
| 13473 | |
| 13474 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13475 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13476 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13477 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13478 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13479 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13480 | echo "$as_me: failed program was:" >&5 |
| 13481 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13482 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13483 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13484 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13485 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13486 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13487 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13488 | |
| 13489 | for ac_func in setpgrp |
| 13490 | do |
| 13491 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13492 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13493 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13494 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13496 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13497 | cat >conftest.$ac_ext <<_ACEOF |
| 13498 | #line $LINENO "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13499 | #include "confdefs.h" |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13500 | /* System header to define __stub macros and hopefully few prototypes, |
| 13501 | which can conflict with char $ac_func (); below. */ |
| 13502 | #include <assert.h> |
| 13503 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13504 | #ifdef __cplusplus |
| 13505 | extern "C" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13506 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13507 | /* We use char because int might match the return type of a gcc2 |
| 13508 | builtin and then its argument prototype would still apply. */ |
| 13509 | char $ac_func (); |
| 13510 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13511 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13512 | #ifdef F77_DUMMY_MAIN |
| 13513 | # ifdef __cplusplus |
| 13514 | extern "C" |
| 13515 | # endif |
| 13516 | int F77_DUMMY_MAIN() { return 1; } |
| 13517 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13518 | int |
| 13519 | main () |
| 13520 | { |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13521 | /* The GNU C library defines this for functions which it implements |
| 13522 | to always fail with ENOSYS. Some functions are actually named |
| 13523 | something starting with __ and the normal name is an alias. */ |
| 13524 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13525 | choke me |
| 13526 | #else |
| 13527 | f = $ac_func; |
| 13528 | #endif |
| 13529 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13530 | ; |
| 13531 | return 0; |
| 13532 | } |
| 13533 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13534 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13536 | (eval $ac_link) 2>&5 |
| 13537 | ac_status=$? |
| 13538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13539 | (exit $ac_status); } && |
| 13540 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13542 | (eval $ac_try) 2>&5 |
| 13543 | ac_status=$? |
| 13544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13545 | (exit $ac_status); }; }; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13546 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13547 | else |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13548 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13549 | cat conftest.$ac_ext >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13550 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13551 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13552 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13553 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13554 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13555 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13556 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13557 | cat >>confdefs.h <<_ACEOF |
| 13558 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13559 | _ACEOF |
| 13560 | cat >conftest.$ac_ext <<_ACEOF |
| 13561 | #line $LINENO "configure" |
| 13562 | #include "confdefs.h" |
| 13563 | #include <unistd.h> |
| 13564 | #ifdef F77_DUMMY_MAIN |
| 13565 | # ifdef __cplusplus |
| 13566 | extern "C" |
| 13567 | # endif |
| 13568 | int F77_DUMMY_MAIN() { return 1; } |
| 13569 | #endif |
| 13570 | int |
| 13571 | main () |
| 13572 | { |
| 13573 | setpgrp(0,0); |
| 13574 | ; |
| 13575 | return 0; |
| 13576 | } |
| 13577 | _ACEOF |
| 13578 | rm -f conftest.$ac_objext |
| 13579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13580 | (eval $ac_compile) 2>&5 |
| 13581 | ac_status=$? |
| 13582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13583 | (exit $ac_status); } && |
| 13584 | { ac_try='test -s conftest.$ac_objext' |
| 13585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13586 | (eval $ac_try) 2>&5 |
| 13587 | ac_status=$? |
| 13588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13589 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13590 | |
| 13591 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13592 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13593 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13594 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13595 | |
| 13596 | else |
| 13597 | echo "$as_me: failed program was:" >&5 |
| 13598 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13599 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13600 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13601 | |
| 13602 | fi |
| 13603 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13604 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13605 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13606 | for ac_func in gettimeofday |
| 13607 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13608 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13609 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13610 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13611 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13613 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13614 | cat >conftest.$ac_ext <<_ACEOF |
| 13615 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13616 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13617 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13618 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13619 | #include <assert.h> |
| 13620 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13621 | #ifdef __cplusplus |
| 13622 | extern "C" |
| 13623 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13624 | /* 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] | 13625 | builtin and then its argument prototype would still apply. */ |
| 13626 | char $ac_func (); |
| 13627 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13628 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13629 | #ifdef F77_DUMMY_MAIN |
| 13630 | # ifdef __cplusplus |
| 13631 | extern "C" |
| 13632 | # endif |
| 13633 | int F77_DUMMY_MAIN() { return 1; } |
| 13634 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13635 | int |
| 13636 | main () |
| 13637 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13638 | /* The GNU C library defines this for functions which it implements |
| 13639 | to always fail with ENOSYS. Some functions are actually named |
| 13640 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13641 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13642 | choke me |
| 13643 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13644 | f = $ac_func; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13645 | #endif |
| 13646 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13647 | ; |
| 13648 | return 0; |
| 13649 | } |
| 13650 | _ACEOF |
| 13651 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13652 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13653 | (eval $ac_link) 2>&5 |
| 13654 | ac_status=$? |
| 13655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13656 | (exit $ac_status); } && |
| 13657 | { ac_try='test -s conftest$ac_exeext' |
| 13658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13659 | (eval $ac_try) 2>&5 |
| 13660 | ac_status=$? |
| 13661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13662 | (exit $ac_status); }; }; then |
| 13663 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13664 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13665 | echo "$as_me: failed program was:" >&5 |
| 13666 | cat conftest.$ac_ext >&5 |
| 13667 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13668 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13669 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13670 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13671 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13672 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13673 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13674 | cat >>confdefs.h <<_ACEOF |
| 13675 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13676 | _ACEOF |
| 13677 | cat >conftest.$ac_ext <<_ACEOF |
| 13678 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13679 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13680 | #include <sys/time.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13681 | #ifdef F77_DUMMY_MAIN |
| 13682 | # ifdef __cplusplus |
| 13683 | extern "C" |
| 13684 | # endif |
| 13685 | int F77_DUMMY_MAIN() { return 1; } |
| 13686 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13687 | int |
| 13688 | main () |
| 13689 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13690 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13691 | ; |
| 13692 | return 0; |
| 13693 | } |
| 13694 | _ACEOF |
| 13695 | rm -f conftest.$ac_objext |
| 13696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13697 | (eval $ac_compile) 2>&5 |
| 13698 | ac_status=$? |
| 13699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13700 | (exit $ac_status); } && |
| 13701 | { ac_try='test -s conftest.$ac_objext' |
| 13702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13703 | (eval $ac_try) 2>&5 |
| 13704 | ac_status=$? |
| 13705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13706 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13707 | : |
| 13708 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13709 | echo "$as_me: failed program was:" >&5 |
| 13710 | cat conftest.$ac_ext >&5 |
| 13711 | |
| 13712 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13713 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13714 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13715 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13716 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13717 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13718 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13719 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13720 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13721 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13722 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13723 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13724 | echo "$as_me:$LINENO: checking for major" >&5 |
| 13725 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 13726 | cat >conftest.$ac_ext <<_ACEOF |
| 13727 | #line $LINENO "configure" |
| 13728 | #include "confdefs.h" |
| 13729 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 13730 | #if defined(MAJOR_IN_MKDEV) |
| 13731 | #include <sys/mkdev.h> |
| 13732 | #elif defined(MAJOR_IN_SYSMACROS) |
| 13733 | #include <sys/sysmacros.h> |
| 13734 | #else |
| 13735 | #include <sys/types.h> |
| 13736 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13737 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13738 | #ifdef F77_DUMMY_MAIN |
| 13739 | # ifdef __cplusplus |
| 13740 | extern "C" |
| 13741 | # endif |
| 13742 | int F77_DUMMY_MAIN() { return 1; } |
| 13743 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13744 | int |
| 13745 | main () |
| 13746 | { |
| 13747 | |
| 13748 | makedev(major(0),minor(0)); |
| 13749 | |
| 13750 | ; |
| 13751 | return 0; |
| 13752 | } |
| 13753 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 13754 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13755 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13756 | (eval $ac_link) 2>&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13757 | ac_status=$? |
| 13758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13759 | (exit $ac_status); } && |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 13760 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13762 | (eval $ac_try) 2>&5 |
| 13763 | ac_status=$? |
| 13764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13765 | (exit $ac_status); }; }; then |
| 13766 | |
| 13767 | |
| 13768 | cat >>confdefs.h <<\_ACEOF |
| 13769 | #define HAVE_DEVICE_MACROS 1 |
| 13770 | _ACEOF |
| 13771 | |
| 13772 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13773 | echo "${ECHO_T}yes" >&6 |
| 13774 | |
| 13775 | else |
| 13776 | echo "$as_me: failed program was:" >&5 |
| 13777 | cat conftest.$ac_ext >&5 |
| 13778 | |
| 13779 | echo "$as_me:$LINENO: result: no" >&5 |
| 13780 | echo "${ECHO_T}no" >&6 |
| 13781 | |
| 13782 | fi |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 13783 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13784 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13785 | # 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] | 13786 | # for [no]getaddrinfo in netdb.h. |
| 13787 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 13788 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 13789 | cat >conftest.$ac_ext <<_ACEOF |
| 13790 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13791 | #include "confdefs.h" |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13792 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 13793 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13794 | #include <sys/socket.h> |
| 13795 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 13796 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13797 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13798 | #ifdef F77_DUMMY_MAIN |
| 13799 | # ifdef __cplusplus |
| 13800 | extern "C" |
| 13801 | # endif |
| 13802 | int F77_DUMMY_MAIN() { return 1; } |
| 13803 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13804 | int |
| 13805 | main () |
| 13806 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13807 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13808 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13809 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13810 | ; |
| 13811 | return 0; |
| 13812 | } |
| 13813 | _ACEOF |
| 13814 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13816 | (eval $ac_link) 2>&5 |
| 13817 | ac_status=$? |
| 13818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13819 | (exit $ac_status); } && |
| 13820 | { ac_try='test -s conftest$ac_exeext' |
| 13821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13822 | (eval $ac_try) 2>&5 |
| 13823 | ac_status=$? |
| 13824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13825 | (exit $ac_status); }; }; then |
| 13826 | |
| 13827 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13828 | echo "${ECHO_T}yes" >&6 |
| 13829 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 13830 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13831 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13832 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 13833 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13834 | buggygetaddrinfo=yes |
| 13835 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13836 | cat >conftest.$ac_ext <<_ACEOF |
| 13837 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13838 | #include "confdefs.h" |
| 13839 | |
| 13840 | #include <sys/types.h> |
| 13841 | #include <netdb.h> |
| 13842 | #include <string.h> |
| 13843 | #include <sys/socket.h> |
| 13844 | #include <netinet/in.h> |
| 13845 | |
| 13846 | main() |
| 13847 | { |
| 13848 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 13849 | struct addrinfo hints, *ai, *aitop; |
| 13850 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 13851 | |
| 13852 | for (passive = 0; passive <= 1; passive++) { |
| 13853 | memset(&hints, 0, sizeof(hints)); |
| 13854 | hints.ai_family = AF_UNSPEC; |
| 13855 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 13856 | hints.ai_socktype = SOCK_STREAM; |
| 13857 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 13858 | (void)gai_strerror(gaierr); |
| 13859 | goto bad; |
| 13860 | } |
| 13861 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 13862 | if (ai->ai_addr == NULL || |
| 13863 | ai->ai_addrlen == 0 || |
| 13864 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 13865 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 13866 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 13867 | goto bad; |
| 13868 | } |
| 13869 | switch (ai->ai_family) { |
| 13870 | case AF_INET: |
| 13871 | if (strcmp(strport, "54321") != 0) { |
| 13872 | goto bad; |
| 13873 | } |
| 13874 | if (passive) { |
| 13875 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 13876 | goto bad; |
| 13877 | } |
| 13878 | } else { |
| 13879 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 13880 | goto bad; |
| 13881 | } |
| 13882 | } |
| 13883 | inet4++; |
| 13884 | break; |
| 13885 | case AF_INET6: |
| 13886 | if (strcmp(strport, "54321") != 0) { |
| 13887 | goto bad; |
| 13888 | } |
| 13889 | if (passive) { |
| 13890 | if (strcmp(straddr, "::") != 0) { |
| 13891 | goto bad; |
| 13892 | } |
| 13893 | } else { |
| 13894 | if (strcmp(straddr, "::1") != 0) { |
| 13895 | goto bad; |
| 13896 | } |
| 13897 | } |
| 13898 | inet6++; |
| 13899 | break; |
| 13900 | case AF_UNSPEC: |
| 13901 | goto bad; |
| 13902 | break; |
| 13903 | default: |
| 13904 | /* another family support? */ |
| 13905 | break; |
| 13906 | } |
| 13907 | } |
| 13908 | } |
| 13909 | |
| 13910 | if (!(inet4 == 0 || inet4 == 2)) |
| 13911 | goto bad; |
| 13912 | if (!(inet6 == 0 || inet6 == 2)) |
| 13913 | goto bad; |
| 13914 | |
| 13915 | if (aitop) |
| 13916 | freeaddrinfo(aitop); |
| 13917 | exit(0); |
| 13918 | |
| 13919 | bad: |
| 13920 | if (aitop) |
| 13921 | freeaddrinfo(aitop); |
| 13922 | exit(1); |
| 13923 | } |
| 13924 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13925 | _ACEOF |
| 13926 | rm -f conftest$ac_exeext |
| 13927 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13928 | (eval $ac_link) 2>&5 |
| 13929 | ac_status=$? |
| 13930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13931 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13933 | (eval $ac_try) 2>&5 |
| 13934 | ac_status=$? |
| 13935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13936 | (exit $ac_status); }; }; then |
| 13937 | echo "$as_me:$LINENO: result: good" >&5 |
| 13938 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13939 | buggygetaddrinfo=no |
| 13940 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13941 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13942 | echo "$as_me: failed program was:" >&5 |
| 13943 | cat conftest.$ac_ext >&5 |
| 13944 | ( exit $ac_status ) |
| 13945 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 13946 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13947 | buggygetaddrinfo=yes |
| 13948 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13949 | 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] | 13950 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13951 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13952 | echo "$as_me: failed program was:" >&5 |
| 13953 | cat conftest.$ac_ext >&5 |
| 13954 | |
| 13955 | echo "$as_me:$LINENO: result: no" >&5 |
| 13956 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13957 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13958 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13959 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13960 | 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] | 13961 | |
| 13962 | if test "$buggygetaddrinfo" = "yes"; then |
| 13963 | if test "$ipv6" = "yes"; then |
| 13964 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 13965 | echo ' or you can specify "--disable-ipv6"'. |
| 13966 | exit 1 |
| 13967 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13968 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13969 | |
| 13970 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13971 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13972 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13973 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13974 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13975 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13976 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13977 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13978 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13979 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13980 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13981 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13983 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13984 | cat >conftest.$ac_ext <<_ACEOF |
| 13985 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13986 | #include "confdefs.h" |
| 13987 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13988 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13989 | #include <assert.h> |
| 13990 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13991 | #ifdef __cplusplus |
| 13992 | extern "C" |
| 13993 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13994 | /* 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] | 13995 | builtin and then its argument prototype would still apply. */ |
| 13996 | char $ac_func (); |
| 13997 | char (*f) (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13998 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13999 | #ifdef F77_DUMMY_MAIN |
| 14000 | # ifdef __cplusplus |
| 14001 | extern "C" |
| 14002 | # endif |
| 14003 | int F77_DUMMY_MAIN() { return 1; } |
| 14004 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14005 | int |
| 14006 | main () |
| 14007 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14008 | /* The GNU C library defines this for functions which it implements |
| 14009 | to always fail with ENOSYS. Some functions are actually named |
| 14010 | something starting with __ and the normal name is an alias. */ |
| 14011 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14012 | choke me |
| 14013 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14014 | f = $ac_func; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14015 | #endif |
| 14016 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14017 | ; |
| 14018 | return 0; |
| 14019 | } |
| 14020 | _ACEOF |
| 14021 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14023 | (eval $ac_link) 2>&5 |
| 14024 | ac_status=$? |
| 14025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14026 | (exit $ac_status); } && |
| 14027 | { ac_try='test -s conftest$ac_exeext' |
| 14028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14029 | (eval $ac_try) 2>&5 |
| 14030 | ac_status=$? |
| 14031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14032 | (exit $ac_status); }; }; then |
| 14033 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14034 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14035 | echo "$as_me: failed program was:" >&5 |
| 14036 | cat conftest.$ac_ext >&5 |
| 14037 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14038 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14039 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14040 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14041 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14042 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14043 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14044 | cat >>confdefs.h <<_ACEOF |
| 14045 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14046 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14047 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14048 | fi |
| 14049 | done |
| 14050 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14051 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14052 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14053 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 14054 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 14055 | if test "${ac_cv_header_time+set}" = set; then |
| 14056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14057 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14058 | cat >conftest.$ac_ext <<_ACEOF |
| 14059 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14060 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14061 | #include <sys/types.h> |
| 14062 | #include <sys/time.h> |
| 14063 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14064 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14065 | #ifdef F77_DUMMY_MAIN |
| 14066 | # ifdef __cplusplus |
| 14067 | extern "C" |
| 14068 | # endif |
| 14069 | int F77_DUMMY_MAIN() { return 1; } |
| 14070 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14071 | int |
| 14072 | main () |
| 14073 | { |
| 14074 | if ((struct tm *) 0) |
| 14075 | return 0; |
| 14076 | ; |
| 14077 | return 0; |
| 14078 | } |
| 14079 | _ACEOF |
| 14080 | rm -f conftest.$ac_objext |
| 14081 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14082 | (eval $ac_compile) 2>&5 |
| 14083 | ac_status=$? |
| 14084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14085 | (exit $ac_status); } && |
| 14086 | { ac_try='test -s conftest.$ac_objext' |
| 14087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14088 | (eval $ac_try) 2>&5 |
| 14089 | ac_status=$? |
| 14090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14091 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14092 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14093 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14094 | echo "$as_me: failed program was:" >&5 |
| 14095 | cat conftest.$ac_ext >&5 |
| 14096 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14097 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14098 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14099 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14100 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 14101 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14102 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14103 | |
| 14104 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14105 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14106 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14107 | |
| 14108 | fi |
| 14109 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14110 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 14111 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 14112 | if test "${ac_cv_struct_tm+set}" = set; then |
| 14113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14114 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14115 | cat >conftest.$ac_ext <<_ACEOF |
| 14116 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14117 | #include "confdefs.h" |
| 14118 | #include <sys/types.h> |
| 14119 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14120 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14121 | #ifdef F77_DUMMY_MAIN |
| 14122 | # ifdef __cplusplus |
| 14123 | extern "C" |
| 14124 | # endif |
| 14125 | int F77_DUMMY_MAIN() { return 1; } |
| 14126 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14127 | int |
| 14128 | main () |
| 14129 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14130 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14131 | ; |
| 14132 | return 0; |
| 14133 | } |
| 14134 | _ACEOF |
| 14135 | rm -f conftest.$ac_objext |
| 14136 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14137 | (eval $ac_compile) 2>&5 |
| 14138 | ac_status=$? |
| 14139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14140 | (exit $ac_status); } && |
| 14141 | { ac_try='test -s conftest.$ac_objext' |
| 14142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14143 | (eval $ac_try) 2>&5 |
| 14144 | ac_status=$? |
| 14145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14146 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14147 | ac_cv_struct_tm=time.h |
| 14148 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14149 | echo "$as_me: failed program was:" >&5 |
| 14150 | cat conftest.$ac_ext >&5 |
| 14151 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14152 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14153 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14154 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14155 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 14156 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14157 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14158 | |
| 14159 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14160 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14161 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14162 | |
| 14163 | fi |
| 14164 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14165 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 14166 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 14167 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 14168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14169 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14170 | cat >conftest.$ac_ext <<_ACEOF |
| 14171 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14172 | #include "confdefs.h" |
| 14173 | #include <sys/types.h> |
| 14174 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14175 | |
| 14176 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14177 | #ifdef F77_DUMMY_MAIN |
| 14178 | # ifdef __cplusplus |
| 14179 | extern "C" |
| 14180 | # endif |
| 14181 | int F77_DUMMY_MAIN() { return 1; } |
| 14182 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14183 | int |
| 14184 | main () |
| 14185 | { |
| 14186 | static struct tm ac_aggr; |
| 14187 | if (ac_aggr.tm_zone) |
| 14188 | return 0; |
| 14189 | ; |
| 14190 | return 0; |
| 14191 | } |
| 14192 | _ACEOF |
| 14193 | rm -f conftest.$ac_objext |
| 14194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14195 | (eval $ac_compile) 2>&5 |
| 14196 | ac_status=$? |
| 14197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14198 | (exit $ac_status); } && |
| 14199 | { ac_try='test -s conftest.$ac_objext' |
| 14200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14201 | (eval $ac_try) 2>&5 |
| 14202 | ac_status=$? |
| 14203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14204 | (exit $ac_status); }; }; then |
| 14205 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14206 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14207 | echo "$as_me: failed program was:" >&5 |
| 14208 | cat conftest.$ac_ext >&5 |
| 14209 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14210 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14211 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14212 | fi |
| 14213 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 14214 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 14215 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 14216 | |
| 14217 | cat >>confdefs.h <<_ACEOF |
| 14218 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 14219 | _ACEOF |
| 14220 | |
| 14221 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14222 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14223 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14224 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 14225 | |
| 14226 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14227 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14228 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14229 | |
| 14230 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14231 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 14232 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 14233 | if test "${ac_cv_var_tzname+set}" = set; then |
| 14234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14235 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14236 | cat >conftest.$ac_ext <<_ACEOF |
| 14237 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14238 | #include "confdefs.h" |
| 14239 | #include <time.h> |
| 14240 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14241 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14242 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14243 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14244 | #ifdef F77_DUMMY_MAIN |
| 14245 | # ifdef __cplusplus |
| 14246 | extern "C" |
| 14247 | # endif |
| 14248 | int F77_DUMMY_MAIN() { return 1; } |
| 14249 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14250 | int |
| 14251 | main () |
| 14252 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14253 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14254 | ; |
| 14255 | return 0; |
| 14256 | } |
| 14257 | _ACEOF |
| 14258 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14259 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14260 | (eval $ac_link) 2>&5 |
| 14261 | ac_status=$? |
| 14262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14263 | (exit $ac_status); } && |
| 14264 | { ac_try='test -s conftest$ac_exeext' |
| 14265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14266 | (eval $ac_try) 2>&5 |
| 14267 | ac_status=$? |
| 14268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14269 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14270 | ac_cv_var_tzname=yes |
| 14271 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14272 | echo "$as_me: failed program was:" >&5 |
| 14273 | cat conftest.$ac_ext >&5 |
| 14274 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14275 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14276 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14277 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14278 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 14279 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14280 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14281 | |
| 14282 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14283 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14284 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14285 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14286 | fi |
| 14287 | fi |
| 14288 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14289 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 14290 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 14291 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 14292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14293 | else |
| 14294 | cat >conftest.$ac_ext <<_ACEOF |
| 14295 | #line $LINENO "configure" |
| 14296 | #include "confdefs.h" |
| 14297 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14298 | #ifdef F77_DUMMY_MAIN |
| 14299 | # ifdef __cplusplus |
| 14300 | extern "C" |
| 14301 | # endif |
| 14302 | int F77_DUMMY_MAIN() { return 1; } |
| 14303 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14304 | int |
| 14305 | main () |
| 14306 | { |
| 14307 | static struct stat ac_aggr; |
| 14308 | if (ac_aggr.st_rdev) |
| 14309 | return 0; |
| 14310 | ; |
| 14311 | return 0; |
| 14312 | } |
| 14313 | _ACEOF |
| 14314 | rm -f conftest.$ac_objext |
| 14315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14316 | (eval $ac_compile) 2>&5 |
| 14317 | ac_status=$? |
| 14318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14319 | (exit $ac_status); } && |
| 14320 | { ac_try='test -s conftest.$ac_objext' |
| 14321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14322 | (eval $ac_try) 2>&5 |
| 14323 | ac_status=$? |
| 14324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14325 | (exit $ac_status); }; }; then |
| 14326 | ac_cv_member_struct_stat_st_rdev=yes |
| 14327 | else |
| 14328 | echo "$as_me: failed program was:" >&5 |
| 14329 | cat conftest.$ac_ext >&5 |
| 14330 | ac_cv_member_struct_stat_st_rdev=no |
| 14331 | fi |
| 14332 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14333 | fi |
| 14334 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 14335 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 14336 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 14337 | |
| 14338 | cat >>confdefs.h <<_ACEOF |
| 14339 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 14340 | _ACEOF |
| 14341 | |
| 14342 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14343 | fi |
| 14344 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14345 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 14346 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 14347 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 14348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14349 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14350 | cat >conftest.$ac_ext <<_ACEOF |
| 14351 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14352 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14353 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14354 | #ifdef F77_DUMMY_MAIN |
| 14355 | # ifdef __cplusplus |
| 14356 | extern "C" |
| 14357 | # endif |
| 14358 | int F77_DUMMY_MAIN() { return 1; } |
| 14359 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14360 | int |
| 14361 | main () |
| 14362 | { |
| 14363 | static struct stat ac_aggr; |
| 14364 | if (ac_aggr.st_blksize) |
| 14365 | return 0; |
| 14366 | ; |
| 14367 | return 0; |
| 14368 | } |
| 14369 | _ACEOF |
| 14370 | rm -f conftest.$ac_objext |
| 14371 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14372 | (eval $ac_compile) 2>&5 |
| 14373 | ac_status=$? |
| 14374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14375 | (exit $ac_status); } && |
| 14376 | { ac_try='test -s conftest.$ac_objext' |
| 14377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14378 | (eval $ac_try) 2>&5 |
| 14379 | ac_status=$? |
| 14380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14381 | (exit $ac_status); }; }; then |
| 14382 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14383 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14384 | echo "$as_me: failed program was:" >&5 |
| 14385 | cat conftest.$ac_ext >&5 |
| 14386 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14387 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14388 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14389 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14390 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 14391 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 14392 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14393 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14394 | cat >>confdefs.h <<_ACEOF |
| 14395 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 14396 | _ACEOF |
| 14397 | |
| 14398 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14399 | fi |
| 14400 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14401 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 14402 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 14403 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 14404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14405 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14406 | cat >conftest.$ac_ext <<_ACEOF |
| 14407 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14408 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14409 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14410 | #ifdef F77_DUMMY_MAIN |
| 14411 | # ifdef __cplusplus |
| 14412 | extern "C" |
| 14413 | # endif |
| 14414 | int F77_DUMMY_MAIN() { return 1; } |
| 14415 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14416 | int |
| 14417 | main () |
| 14418 | { |
| 14419 | static struct stat ac_aggr; |
| 14420 | if (ac_aggr.st_blocks) |
| 14421 | return 0; |
| 14422 | ; |
| 14423 | return 0; |
| 14424 | } |
| 14425 | _ACEOF |
| 14426 | rm -f conftest.$ac_objext |
| 14427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14428 | (eval $ac_compile) 2>&5 |
| 14429 | ac_status=$? |
| 14430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14431 | (exit $ac_status); } && |
| 14432 | { ac_try='test -s conftest.$ac_objext' |
| 14433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14434 | (eval $ac_try) 2>&5 |
| 14435 | ac_status=$? |
| 14436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14437 | (exit $ac_status); }; }; then |
| 14438 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14439 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14440 | echo "$as_me: failed program was:" >&5 |
| 14441 | cat conftest.$ac_ext >&5 |
| 14442 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +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 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14445 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14446 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 14447 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 14448 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14449 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14450 | cat >>confdefs.h <<_ACEOF |
| 14451 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 14452 | _ACEOF |
| 14453 | |
| 14454 | |
| 14455 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14456 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14457 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14458 | |
| 14459 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14460 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14461 | fi |
| 14462 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14463 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14464 | |
| 14465 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 14466 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 14467 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 14468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14469 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14470 | cat >conftest.$ac_ext <<_ACEOF |
| 14471 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14472 | #include "confdefs.h" |
| 14473 | #include <time.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14474 | #ifdef F77_DUMMY_MAIN |
| 14475 | # ifdef __cplusplus |
| 14476 | extern "C" |
| 14477 | # endif |
| 14478 | int F77_DUMMY_MAIN() { return 1; } |
| 14479 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14480 | int |
| 14481 | main () |
| 14482 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14483 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14484 | ; |
| 14485 | return 0; |
| 14486 | } |
| 14487 | _ACEOF |
| 14488 | rm -f conftest.$ac_objext |
| 14489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14490 | (eval $ac_compile) 2>&5 |
| 14491 | ac_status=$? |
| 14492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14493 | (exit $ac_status); } && |
| 14494 | { ac_try='test -s conftest.$ac_objext' |
| 14495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14496 | (eval $ac_try) 2>&5 |
| 14497 | ac_status=$? |
| 14498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14499 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14500 | ac_cv_header_time_altzone=yes |
| 14501 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14502 | echo "$as_me: failed program was:" >&5 |
| 14503 | cat conftest.$ac_ext >&5 |
| 14504 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14505 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14506 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14507 | fi |
| 14508 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14509 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 14510 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14511 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14512 | |
| 14513 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14514 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14515 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14516 | |
| 14517 | fi |
| 14518 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14519 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14520 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 14521 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 14522 | cat >conftest.$ac_ext <<_ACEOF |
| 14523 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14524 | #include "confdefs.h" |
| 14525 | |
| 14526 | #include <sys/types.h> |
| 14527 | #include <sys/select.h> |
| 14528 | #include <sys/time.h> |
| 14529 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14530 | #ifdef F77_DUMMY_MAIN |
| 14531 | # ifdef __cplusplus |
| 14532 | extern "C" |
| 14533 | # endif |
| 14534 | int F77_DUMMY_MAIN() { return 1; } |
| 14535 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14536 | int |
| 14537 | main () |
| 14538 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14539 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14540 | ; |
| 14541 | return 0; |
| 14542 | } |
| 14543 | _ACEOF |
| 14544 | rm -f conftest.$ac_objext |
| 14545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14546 | (eval $ac_compile) 2>&5 |
| 14547 | ac_status=$? |
| 14548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14549 | (exit $ac_status); } && |
| 14550 | { ac_try='test -s conftest.$ac_objext' |
| 14551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14552 | (eval $ac_try) 2>&5 |
| 14553 | ac_status=$? |
| 14554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14555 | (exit $ac_status); }; }; then |
| 14556 | |
| 14557 | |
| 14558 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14559 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14560 | _ACEOF |
| 14561 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14562 | was_it_defined=yes |
| 14563 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14564 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14565 | echo "$as_me: failed program was:" >&5 |
| 14566 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14567 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14568 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14569 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 14570 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14571 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14572 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 14573 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 14574 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 14575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14576 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14577 | cat >conftest.$ac_ext <<_ACEOF |
| 14578 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14579 | #include "confdefs.h" |
| 14580 | |
| 14581 | # include <netdb.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14582 | #ifdef F77_DUMMY_MAIN |
| 14583 | # ifdef __cplusplus |
| 14584 | extern "C" |
| 14585 | # endif |
| 14586 | int F77_DUMMY_MAIN() { return 1; } |
| 14587 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14588 | int |
| 14589 | main () |
| 14590 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14591 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14592 | ; |
| 14593 | return 0; |
| 14594 | } |
| 14595 | _ACEOF |
| 14596 | rm -f conftest.$ac_objext |
| 14597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14598 | (eval $ac_compile) 2>&5 |
| 14599 | ac_status=$? |
| 14600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14601 | (exit $ac_status); } && |
| 14602 | { ac_try='test -s conftest.$ac_objext' |
| 14603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14604 | (eval $ac_try) 2>&5 |
| 14605 | ac_status=$? |
| 14606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14607 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14608 | ac_cv_struct_addrinfo=yes |
| 14609 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14610 | echo "$as_me: failed program was:" >&5 |
| 14611 | cat conftest.$ac_ext >&5 |
| 14612 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14613 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14614 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14615 | fi |
| 14616 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14617 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 14618 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14619 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14620 | |
| 14621 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14622 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14623 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14624 | |
| 14625 | fi |
| 14626 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14627 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 14628 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 14629 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 14630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14631 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14632 | cat >conftest.$ac_ext <<_ACEOF |
| 14633 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14634 | #include "confdefs.h" |
| 14635 | |
| 14636 | # include <sys/types.h> |
| 14637 | # include <sys/socket.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14638 | #ifdef F77_DUMMY_MAIN |
| 14639 | # ifdef __cplusplus |
| 14640 | extern "C" |
| 14641 | # endif |
| 14642 | int F77_DUMMY_MAIN() { return 1; } |
| 14643 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14644 | int |
| 14645 | main () |
| 14646 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14647 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14648 | ; |
| 14649 | return 0; |
| 14650 | } |
| 14651 | _ACEOF |
| 14652 | rm -f conftest.$ac_objext |
| 14653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14654 | (eval $ac_compile) 2>&5 |
| 14655 | ac_status=$? |
| 14656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14657 | (exit $ac_status); } && |
| 14658 | { ac_try='test -s conftest.$ac_objext' |
| 14659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14660 | (eval $ac_try) 2>&5 |
| 14661 | ac_status=$? |
| 14662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14663 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14664 | ac_cv_struct_sockaddr_storage=yes |
| 14665 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14666 | echo "$as_me: failed program was:" >&5 |
| 14667 | cat conftest.$ac_ext >&5 |
| 14668 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14669 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14670 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14671 | fi |
| 14672 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14673 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 14674 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14675 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14676 | |
| 14677 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14678 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14679 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14680 | |
| 14681 | fi |
| 14682 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14683 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14684 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14685 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14686 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 14687 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 14688 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 14689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14690 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14691 | cat >conftest.$ac_ext <<_ACEOF |
| 14692 | #line $LINENO "configure" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14693 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14694 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14695 | #ifdef F77_DUMMY_MAIN |
| 14696 | # ifdef __cplusplus |
| 14697 | extern "C" |
| 14698 | # endif |
| 14699 | int F77_DUMMY_MAIN() { return 1; } |
| 14700 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14701 | int |
| 14702 | main () |
| 14703 | { |
| 14704 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 14705 | test_array [0] = 0 |
| 14706 | |
| 14707 | ; |
| 14708 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14709 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14710 | _ACEOF |
| 14711 | rm -f conftest.$ac_objext |
| 14712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14713 | (eval $ac_compile) 2>&5 |
| 14714 | ac_status=$? |
| 14715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14716 | (exit $ac_status); } && |
| 14717 | { ac_try='test -s conftest.$ac_objext' |
| 14718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14719 | (eval $ac_try) 2>&5 |
| 14720 | ac_status=$? |
| 14721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14722 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14723 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14724 | else |
| 14725 | echo "$as_me: failed program was:" >&5 |
| 14726 | cat conftest.$ac_ext >&5 |
| 14727 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14728 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14729 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14730 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14731 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 14732 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14733 | 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] | 14734 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14735 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14736 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14737 | |
| 14738 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14739 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14740 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 14741 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 14742 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 14743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14744 | else |
| 14745 | ac_cv_prog_cc_stdc=no |
| 14746 | ac_save_CC=$CC |
| 14747 | cat >conftest.$ac_ext <<_ACEOF |
| 14748 | #line $LINENO "configure" |
| 14749 | #include "confdefs.h" |
| 14750 | #include <stdarg.h> |
| 14751 | #include <stdio.h> |
| 14752 | #include <sys/types.h> |
| 14753 | #include <sys/stat.h> |
| 14754 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 14755 | struct buf { int x; }; |
| 14756 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 14757 | static char *e (p, i) |
| 14758 | char **p; |
| 14759 | int i; |
| 14760 | { |
| 14761 | return p[i]; |
| 14762 | } |
| 14763 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 14764 | { |
| 14765 | char *s; |
| 14766 | va_list v; |
| 14767 | va_start (v,p); |
| 14768 | s = g (p, va_arg (v,int)); |
| 14769 | va_end (v); |
| 14770 | return s; |
| 14771 | } |
| 14772 | int test (int i, double x); |
| 14773 | struct s1 {int (*f) (int a);}; |
| 14774 | struct s2 {int (*f) (double a);}; |
| 14775 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 14776 | int argc; |
| 14777 | char **argv; |
| 14778 | #ifdef F77_DUMMY_MAIN |
| 14779 | # ifdef __cplusplus |
| 14780 | extern "C" |
| 14781 | # endif |
| 14782 | int F77_DUMMY_MAIN() { return 1; } |
| 14783 | #endif |
| 14784 | int |
| 14785 | main () |
| 14786 | { |
| 14787 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 14788 | ; |
| 14789 | return 0; |
| 14790 | } |
| 14791 | _ACEOF |
| 14792 | # Don't try gcc -ansi; that turns off useful extensions and |
| 14793 | # breaks some systems' header files. |
| 14794 | # AIX -qlanglvl=ansi |
| 14795 | # Ultrix and OSF/1 -std1 |
| 14796 | # HP-UX 10.20 and later -Ae |
| 14797 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 14798 | # SVR4 -Xc -D__EXTENSIONS__ |
| 14799 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 14800 | do |
| 14801 | CC="$ac_save_CC $ac_arg" |
| 14802 | rm -f conftest.$ac_objext |
| 14803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14804 | (eval $ac_compile) 2>&5 |
| 14805 | ac_status=$? |
| 14806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14807 | (exit $ac_status); } && |
| 14808 | { ac_try='test -s conftest.$ac_objext' |
| 14809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14810 | (eval $ac_try) 2>&5 |
| 14811 | ac_status=$? |
| 14812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14813 | (exit $ac_status); }; }; then |
| 14814 | ac_cv_prog_cc_stdc=$ac_arg |
| 14815 | break |
| 14816 | else |
| 14817 | echo "$as_me: failed program was:" >&5 |
| 14818 | cat conftest.$ac_ext >&5 |
| 14819 | fi |
| 14820 | rm -f conftest.$ac_objext |
| 14821 | done |
| 14822 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 14823 | CC=$ac_save_CC |
| 14824 | |
| 14825 | fi |
| 14826 | |
| 14827 | case "x$ac_cv_prog_cc_stdc" in |
| 14828 | x|xno) |
| 14829 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 14830 | echo "${ECHO_T}none needed" >&6 ;; |
| 14831 | *) |
| 14832 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 14833 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 14834 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 14835 | esac |
| 14836 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14837 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 14838 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 14839 | if test "${ac_cv_c_const+set}" = set; then |
| 14840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14841 | else |
| 14842 | cat >conftest.$ac_ext <<_ACEOF |
| 14843 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14844 | #include "confdefs.h" |
| 14845 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14846 | #ifdef F77_DUMMY_MAIN |
| 14847 | # ifdef __cplusplus |
| 14848 | extern "C" |
| 14849 | # endif |
| 14850 | int F77_DUMMY_MAIN() { return 1; } |
| 14851 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14852 | int |
| 14853 | main () |
| 14854 | { |
| 14855 | /* FIXME: Include the comments suggested by Paul. */ |
| 14856 | #ifndef __cplusplus |
| 14857 | /* Ultrix mips cc rejects this. */ |
| 14858 | typedef int charset[2]; |
| 14859 | const charset x; |
| 14860 | /* SunOS 4.1.1 cc rejects this. */ |
| 14861 | char const *const *ccp; |
| 14862 | char **p; |
| 14863 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 14864 | struct point {int x, y;}; |
| 14865 | static struct point const zero = {0,0}; |
| 14866 | /* AIX XL C 1.02.0.0 rejects this. |
| 14867 | It does not let you subtract one const X* pointer from another in |
| 14868 | an arm of an if-expression whose if-part is not a constant |
| 14869 | expression */ |
| 14870 | const char *g = "string"; |
| 14871 | ccp = &g + (g ? g-g : 0); |
| 14872 | /* HPUX 7.0 cc rejects these. */ |
| 14873 | ++ccp; |
| 14874 | p = (char**) ccp; |
| 14875 | ccp = (char const *const *) p; |
| 14876 | { /* SCO 3.2v4 cc rejects this. */ |
| 14877 | char *t; |
| 14878 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14879 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14880 | *t++ = 0; |
| 14881 | } |
| 14882 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 14883 | int x[] = {25, 17}; |
| 14884 | const int *foo = &x[0]; |
| 14885 | ++foo; |
| 14886 | } |
| 14887 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 14888 | typedef const int *iptr; |
| 14889 | iptr p = 0; |
| 14890 | ++p; |
| 14891 | } |
| 14892 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 14893 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 14894 | struct s { int j; const int *ap[3]; }; |
| 14895 | struct s *b; b->j = 5; |
| 14896 | } |
| 14897 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 14898 | const int foo = 10; |
| 14899 | } |
| 14900 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14901 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14902 | ; |
| 14903 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14904 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14905 | _ACEOF |
| 14906 | rm -f conftest.$ac_objext |
| 14907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14908 | (eval $ac_compile) 2>&5 |
| 14909 | ac_status=$? |
| 14910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14911 | (exit $ac_status); } && |
| 14912 | { ac_try='test -s conftest.$ac_objext' |
| 14913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14914 | (eval $ac_try) 2>&5 |
| 14915 | ac_status=$? |
| 14916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14917 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14918 | ac_cv_c_const=yes |
| 14919 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14920 | echo "$as_me: failed program was:" >&5 |
| 14921 | cat conftest.$ac_ext >&5 |
| 14922 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14923 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14924 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14925 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14926 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 14927 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14928 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14929 | |
| 14930 | cat >>confdefs.h <<\_ACEOF |
| 14931 | #define const |
| 14932 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14933 | |
| 14934 | fi |
| 14935 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14936 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14937 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14938 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 14939 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 14940 | cat >conftest.$ac_ext <<_ACEOF |
| 14941 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14942 | #include "confdefs.h" |
| 14943 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14944 | #ifdef F77_DUMMY_MAIN |
| 14945 | # ifdef __cplusplus |
| 14946 | extern "C" |
| 14947 | # endif |
| 14948 | int F77_DUMMY_MAIN() { return 1; } |
| 14949 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14950 | int |
| 14951 | main () |
| 14952 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14953 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14954 | ; |
| 14955 | return 0; |
| 14956 | } |
| 14957 | _ACEOF |
| 14958 | rm -f conftest.$ac_objext |
| 14959 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14960 | (eval $ac_compile) 2>&5 |
| 14961 | ac_status=$? |
| 14962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14963 | (exit $ac_status); } && |
| 14964 | { ac_try='test -s conftest.$ac_objext' |
| 14965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14966 | (eval $ac_try) 2>&5 |
| 14967 | ac_status=$? |
| 14968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14969 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14970 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14971 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14972 | echo "$as_me: failed program was:" >&5 |
| 14973 | cat conftest.$ac_ext >&5 |
| 14974 | |
| 14975 | cat >>confdefs.h <<\_ACEOF |
| 14976 | #define volatile |
| 14977 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14978 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14979 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14980 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14981 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14982 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14983 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14984 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14985 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14986 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 14987 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 14988 | cat >conftest.$ac_ext <<_ACEOF |
| 14989 | #line $LINENO "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 14990 | #include "confdefs.h" |
| 14991 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14992 | #ifdef F77_DUMMY_MAIN |
| 14993 | # ifdef __cplusplus |
| 14994 | extern "C" |
| 14995 | # endif |
| 14996 | int F77_DUMMY_MAIN() { return 1; } |
| 14997 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14998 | int |
| 14999 | main () |
| 15000 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15001 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15002 | ; |
| 15003 | return 0; |
| 15004 | } |
| 15005 | _ACEOF |
| 15006 | rm -f conftest.$ac_objext |
| 15007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15008 | (eval $ac_compile) 2>&5 |
| 15009 | ac_status=$? |
| 15010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15011 | (exit $ac_status); } && |
| 15012 | { ac_try='test -s conftest.$ac_objext' |
| 15013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15014 | (eval $ac_try) 2>&5 |
| 15015 | ac_status=$? |
| 15016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15017 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15018 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 15019 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15020 | echo "$as_me: failed program was:" >&5 |
| 15021 | cat conftest.$ac_ext >&5 |
| 15022 | |
| 15023 | cat >>confdefs.h <<\_ACEOF |
| 15024 | #define signed |
| 15025 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15026 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15027 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15028 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15029 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15030 | echo "$as_me:$LINENO: result: $works" >&5 |
| 15031 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15032 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15033 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15034 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 15035 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 15036 | cat >conftest.$ac_ext <<_ACEOF |
| 15037 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15038 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15039 | int foo(int x) { return 0; } |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15040 | #ifdef F77_DUMMY_MAIN |
| 15041 | # ifdef __cplusplus |
| 15042 | extern "C" |
| 15043 | # endif |
| 15044 | int F77_DUMMY_MAIN() { return 1; } |
| 15045 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15046 | int |
| 15047 | main () |
| 15048 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15049 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15050 | ; |
| 15051 | return 0; |
| 15052 | } |
| 15053 | _ACEOF |
| 15054 | rm -f conftest.$ac_objext |
| 15055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15056 | (eval $ac_compile) 2>&5 |
| 15057 | ac_status=$? |
| 15058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15059 | (exit $ac_status); } && |
| 15060 | { ac_try='test -s conftest.$ac_objext' |
| 15061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15062 | (eval $ac_try) 2>&5 |
| 15063 | ac_status=$? |
| 15064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15065 | (exit $ac_status); }; }; then |
| 15066 | |
| 15067 | |
| 15068 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15069 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15070 | _ACEOF |
| 15071 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15072 | have_prototypes=yes |
| 15073 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15074 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15075 | echo "$as_me: failed program was:" >&5 |
| 15076 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15077 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15078 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15079 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 15080 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15081 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15082 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15083 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 15084 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 15085 | cat >conftest.$ac_ext <<_ACEOF |
| 15086 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15087 | #include "confdefs.h" |
| 15088 | |
| 15089 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 15090 | int foo(int x, ...) { |
| 15091 | va_list va; |
| 15092 | va_start(va, x); |
| 15093 | va_arg(va, int); |
| 15094 | va_arg(va, char *); |
| 15095 | va_arg(va, double); |
| 15096 | return 0; |
| 15097 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15098 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15099 | #ifdef F77_DUMMY_MAIN |
| 15100 | # ifdef __cplusplus |
| 15101 | extern "C" |
| 15102 | # endif |
| 15103 | int F77_DUMMY_MAIN() { return 1; } |
| 15104 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15105 | int |
| 15106 | main () |
| 15107 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 15108 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15109 | ; |
| 15110 | return 0; |
| 15111 | } |
| 15112 | _ACEOF |
| 15113 | rm -f conftest.$ac_objext |
| 15114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15115 | (eval $ac_compile) 2>&5 |
| 15116 | ac_status=$? |
| 15117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15118 | (exit $ac_status); } && |
| 15119 | { ac_try='test -s conftest.$ac_objext' |
| 15120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15121 | (eval $ac_try) 2>&5 |
| 15122 | ac_status=$? |
| 15123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15124 | (exit $ac_status); }; }; then |
| 15125 | |
| 15126 | |
| 15127 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15128 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15129 | _ACEOF |
| 15130 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15131 | works=yes |
| 15132 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15133 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15134 | echo "$as_me: failed program was:" >&5 |
| 15135 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15136 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15137 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15138 | echo "$as_me:$LINENO: result: $works" >&5 |
| 15139 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15140 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15141 | if test "$have_prototypes" = yes; then |
| 15142 | bad_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15143 | echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5 |
| 15144 | echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6 |
| 15145 | cat >conftest.$ac_ext <<_ACEOF |
| 15146 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15147 | #include "confdefs.h" |
| 15148 | #include <unistd.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15149 | #ifdef F77_DUMMY_MAIN |
| 15150 | # ifdef __cplusplus |
| 15151 | extern "C" |
| 15152 | # endif |
| 15153 | int F77_DUMMY_MAIN() { return 1; } |
| 15154 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15155 | int |
| 15156 | main () |
| 15157 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15158 | char **t;execve("@",t,t); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15159 | ; |
| 15160 | return 0; |
| 15161 | } |
| 15162 | _ACEOF |
| 15163 | rm -f conftest.$ac_objext |
| 15164 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15165 | (eval $ac_compile) 2>&5 |
| 15166 | ac_status=$? |
| 15167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15168 | (exit $ac_status); } && |
| 15169 | { ac_try='test -s conftest.$ac_objext' |
| 15170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15171 | (eval $ac_try) 2>&5 |
| 15172 | ac_status=$? |
| 15173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15174 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15175 | : |
| 15176 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15177 | echo "$as_me: failed program was:" >&5 |
| 15178 | cat conftest.$ac_ext >&5 |
| 15179 | |
| 15180 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15181 | #define BAD_EXEC_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15182 | _ACEOF |
| 15183 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15184 | bad_prototypes=yes |
| 15185 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15186 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15187 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15188 | echo "$as_me:$LINENO: result: $bad_prototypes" >&5 |
| 15189 | echo "${ECHO_T}$bad_prototypes" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15190 | fi |
| 15191 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15192 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15193 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 15194 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 15195 | cat >conftest.$ac_ext <<_ACEOF |
| 15196 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15197 | #include "confdefs.h" |
| 15198 | #include <sys/types.h> |
| 15199 | #include <sys/socket.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15200 | #ifdef F77_DUMMY_MAIN |
| 15201 | # ifdef __cplusplus |
| 15202 | extern "C" |
| 15203 | # endif |
| 15204 | int F77_DUMMY_MAIN() { return 1; } |
| 15205 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15206 | int |
| 15207 | main () |
| 15208 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15209 | struct sockaddr x; |
| 15210 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15211 | ; |
| 15212 | return 0; |
| 15213 | } |
| 15214 | _ACEOF |
| 15215 | rm -f conftest.$ac_objext |
| 15216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15217 | (eval $ac_compile) 2>&5 |
| 15218 | ac_status=$? |
| 15219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15220 | (exit $ac_status); } && |
| 15221 | { ac_try='test -s conftest.$ac_objext' |
| 15222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15223 | (eval $ac_try) 2>&5 |
| 15224 | ac_status=$? |
| 15225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15226 | (exit $ac_status); }; }; then |
| 15227 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15228 | echo "${ECHO_T}yes" >&6 |
| 15229 | |
| 15230 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15231 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15232 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15233 | |
| 15234 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15235 | echo "$as_me: failed program was:" >&5 |
| 15236 | cat conftest.$ac_ext >&5 |
| 15237 | echo "$as_me:$LINENO: result: no" >&5 |
| 15238 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15239 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15240 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15241 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15242 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15243 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 15244 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 15245 | cat >conftest.$ac_ext <<_ACEOF |
| 15246 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15247 | #include "confdefs.h" |
| 15248 | |
| 15249 | #ifdef HAVE_STDARG_PROTOTYPES |
| 15250 | #include <stdarg.h> |
| 15251 | #else |
| 15252 | #include <varargs.h> |
| 15253 | #endif |
| 15254 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15255 | #ifdef F77_DUMMY_MAIN |
| 15256 | # ifdef __cplusplus |
| 15257 | extern "C" |
| 15258 | # endif |
| 15259 | int F77_DUMMY_MAIN() { return 1; } |
| 15260 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15261 | int |
| 15262 | main () |
| 15263 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15264 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15265 | ; |
| 15266 | return 0; |
| 15267 | } |
| 15268 | _ACEOF |
| 15269 | rm -f conftest.$ac_objext |
| 15270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15271 | (eval $ac_compile) 2>&5 |
| 15272 | ac_status=$? |
| 15273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15274 | (exit $ac_status); } && |
| 15275 | { ac_try='test -s conftest.$ac_objext' |
| 15276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15277 | (eval $ac_try) 2>&5 |
| 15278 | ac_status=$? |
| 15279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15280 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15281 | : |
| 15282 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15283 | echo "$as_me: failed program was:" >&5 |
| 15284 | cat conftest.$ac_ext >&5 |
| 15285 | |
| 15286 | |
| 15287 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15288 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15289 | _ACEOF |
| 15290 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15291 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15292 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15293 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15294 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15295 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 15296 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15297 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15298 | # 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] | 15299 | |
| 15300 | |
| 15301 | |
| 15302 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 15303 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 15304 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 15305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15306 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15307 | cat >conftest.$ac_ext <<_ACEOF |
| 15308 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15309 | #include "confdefs.h" |
| 15310 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15311 | which can conflict with char gethostbyname_r (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15312 | #include <assert.h> |
| 15313 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15314 | #ifdef __cplusplus |
| 15315 | extern "C" |
| 15316 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15317 | /* 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] | 15318 | builtin and then its argument prototype would still apply. */ |
| 15319 | char gethostbyname_r (); |
| 15320 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15321 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15322 | #ifdef F77_DUMMY_MAIN |
| 15323 | # ifdef __cplusplus |
| 15324 | extern "C" |
| 15325 | # endif |
| 15326 | int F77_DUMMY_MAIN() { return 1; } |
| 15327 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15328 | int |
| 15329 | main () |
| 15330 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15331 | /* The GNU C library defines this for functions which it implements |
| 15332 | to always fail with ENOSYS. Some functions are actually named |
| 15333 | something starting with __ and the normal name is an alias. */ |
| 15334 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 15335 | choke me |
| 15336 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15337 | f = gethostbyname_r; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15338 | #endif |
| 15339 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15340 | ; |
| 15341 | return 0; |
| 15342 | } |
| 15343 | _ACEOF |
| 15344 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15346 | (eval $ac_link) 2>&5 |
| 15347 | ac_status=$? |
| 15348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15349 | (exit $ac_status); } && |
| 15350 | { ac_try='test -s conftest$ac_exeext' |
| 15351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15352 | (eval $ac_try) 2>&5 |
| 15353 | ac_status=$? |
| 15354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15355 | (exit $ac_status); }; }; then |
| 15356 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15357 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15358 | echo "$as_me: failed program was:" >&5 |
| 15359 | cat conftest.$ac_ext >&5 |
| 15360 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15361 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15362 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15363 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15364 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 15365 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 15366 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15367 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15368 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15369 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15370 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15371 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15372 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 15373 | 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] | 15374 | OLD_CFLAGS=$CFLAGS |
| 15375 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15376 | cat >conftest.$ac_ext <<_ACEOF |
| 15377 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15378 | #include "confdefs.h" |
| 15379 | |
| 15380 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15381 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15382 | #ifdef F77_DUMMY_MAIN |
| 15383 | # ifdef __cplusplus |
| 15384 | extern "C" |
| 15385 | # endif |
| 15386 | int F77_DUMMY_MAIN() { return 1; } |
| 15387 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15388 | int |
| 15389 | main () |
| 15390 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15391 | |
| 15392 | char *name; |
| 15393 | struct hostent *he, *res; |
| 15394 | char buffer[2048]; |
| 15395 | int buflen = 2048; |
| 15396 | int h_errnop; |
| 15397 | |
| 15398 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15399 | |
| 15400 | ; |
| 15401 | return 0; |
| 15402 | } |
| 15403 | _ACEOF |
| 15404 | rm -f conftest.$ac_objext |
| 15405 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15406 | (eval $ac_compile) 2>&5 |
| 15407 | ac_status=$? |
| 15408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15409 | (exit $ac_status); } && |
| 15410 | { ac_try='test -s conftest.$ac_objext' |
| 15411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15412 | (eval $ac_try) 2>&5 |
| 15413 | ac_status=$? |
| 15414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15415 | (exit $ac_status); }; }; then |
| 15416 | |
| 15417 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15418 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15419 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15420 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15421 | |
| 15422 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15423 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15424 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15425 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15426 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15427 | echo "${ECHO_T}yes" >&6 |
| 15428 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15429 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15430 | echo "$as_me: failed program was:" >&5 |
| 15431 | cat conftest.$ac_ext >&5 |
| 15432 | |
| 15433 | echo "$as_me:$LINENO: result: no" >&5 |
| 15434 | echo "${ECHO_T}no" >&6 |
| 15435 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 15436 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 15437 | cat >conftest.$ac_ext <<_ACEOF |
| 15438 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15439 | #include "confdefs.h" |
| 15440 | |
| 15441 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15442 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15443 | #ifdef F77_DUMMY_MAIN |
| 15444 | # ifdef __cplusplus |
| 15445 | extern "C" |
| 15446 | # endif |
| 15447 | int F77_DUMMY_MAIN() { return 1; } |
| 15448 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15449 | int |
| 15450 | main () |
| 15451 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15452 | |
| 15453 | char *name; |
| 15454 | struct hostent *he; |
| 15455 | char buffer[2048]; |
| 15456 | int buflen = 2048; |
| 15457 | int h_errnop; |
| 15458 | |
| 15459 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15460 | |
| 15461 | ; |
| 15462 | return 0; |
| 15463 | } |
| 15464 | _ACEOF |
| 15465 | rm -f conftest.$ac_objext |
| 15466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15467 | (eval $ac_compile) 2>&5 |
| 15468 | ac_status=$? |
| 15469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15470 | (exit $ac_status); } && |
| 15471 | { ac_try='test -s conftest.$ac_objext' |
| 15472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15473 | (eval $ac_try) 2>&5 |
| 15474 | ac_status=$? |
| 15475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15476 | (exit $ac_status); }; }; then |
| 15477 | |
| 15478 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15479 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15480 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15481 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15482 | |
| 15483 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15484 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15485 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15486 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15487 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15488 | echo "${ECHO_T}yes" >&6 |
| 15489 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15490 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15491 | echo "$as_me: failed program was:" >&5 |
| 15492 | cat conftest.$ac_ext >&5 |
| 15493 | |
| 15494 | echo "$as_me:$LINENO: result: no" >&5 |
| 15495 | echo "${ECHO_T}no" >&6 |
| 15496 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 15497 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 15498 | cat >conftest.$ac_ext <<_ACEOF |
| 15499 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15500 | #include "confdefs.h" |
| 15501 | |
| 15502 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15503 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15504 | #ifdef F77_DUMMY_MAIN |
| 15505 | # ifdef __cplusplus |
| 15506 | extern "C" |
| 15507 | # endif |
| 15508 | int F77_DUMMY_MAIN() { return 1; } |
| 15509 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15510 | int |
| 15511 | main () |
| 15512 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15513 | |
| 15514 | char *name; |
| 15515 | struct hostent *he; |
| 15516 | struct hostent_data data; |
| 15517 | |
| 15518 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15519 | |
| 15520 | ; |
| 15521 | return 0; |
| 15522 | } |
| 15523 | _ACEOF |
| 15524 | rm -f conftest.$ac_objext |
| 15525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15526 | (eval $ac_compile) 2>&5 |
| 15527 | ac_status=$? |
| 15528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15529 | (exit $ac_status); } && |
| 15530 | { ac_try='test -s conftest.$ac_objext' |
| 15531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15532 | (eval $ac_try) 2>&5 |
| 15533 | ac_status=$? |
| 15534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15535 | (exit $ac_status); }; }; then |
| 15536 | |
| 15537 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15538 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15539 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15540 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15541 | |
| 15542 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15543 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15544 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15546 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15547 | echo "${ECHO_T}yes" >&6 |
| 15548 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15549 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15550 | echo "$as_me: failed program was:" >&5 |
| 15551 | cat conftest.$ac_ext >&5 |
| 15552 | |
| 15553 | echo "$as_me:$LINENO: result: no" >&5 |
| 15554 | echo "${ECHO_T}no" >&6 |
| 15555 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15556 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15557 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15558 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15559 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15560 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15561 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15562 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15563 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15564 | CFLAGS=$OLD_CFLAGS |
| 15565 | |
| 15566 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15567 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15568 | |
| 15569 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15570 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15571 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15572 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15573 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15574 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15576 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15577 | cat >conftest.$ac_ext <<_ACEOF |
| 15578 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15579 | #include "confdefs.h" |
| 15580 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15581 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15582 | #include <assert.h> |
| 15583 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15584 | #ifdef __cplusplus |
| 15585 | extern "C" |
| 15586 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15587 | /* 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] | 15588 | builtin and then its argument prototype would still apply. */ |
| 15589 | char $ac_func (); |
| 15590 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15591 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15592 | #ifdef F77_DUMMY_MAIN |
| 15593 | # ifdef __cplusplus |
| 15594 | extern "C" |
| 15595 | # endif |
| 15596 | int F77_DUMMY_MAIN() { return 1; } |
| 15597 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15598 | int |
| 15599 | main () |
| 15600 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15601 | /* The GNU C library defines this for functions which it implements |
| 15602 | to always fail with ENOSYS. Some functions are actually named |
| 15603 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15604 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15605 | choke me |
| 15606 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15607 | f = $ac_func; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15608 | #endif |
| 15609 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15610 | ; |
| 15611 | return 0; |
| 15612 | } |
| 15613 | _ACEOF |
| 15614 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15615 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15616 | (eval $ac_link) 2>&5 |
| 15617 | ac_status=$? |
| 15618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15619 | (exit $ac_status); } && |
| 15620 | { ac_try='test -s conftest$ac_exeext' |
| 15621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15622 | (eval $ac_try) 2>&5 |
| 15623 | ac_status=$? |
| 15624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15625 | (exit $ac_status); }; }; then |
| 15626 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15627 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15628 | echo "$as_me: failed program was:" >&5 |
| 15629 | cat conftest.$ac_ext >&5 |
| 15630 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15631 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15632 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15633 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15634 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15635 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15636 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15637 | cat >>confdefs.h <<_ACEOF |
| 15638 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15639 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15640 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15641 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15642 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15643 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15644 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15645 | fi |
| 15646 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15647 | |
| 15648 | |
| 15649 | |
| 15650 | |
| 15651 | |
| 15652 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15653 | # checks for system services |
| 15654 | # (none yet) |
| 15655 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15656 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15657 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 15658 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 15659 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 15660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15661 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15662 | cat >conftest.$ac_ext <<_ACEOF |
| 15663 | #line $LINENO "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15664 | #include "confdefs.h" |
| 15665 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15666 | which can conflict with char __fpu_control (); below. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15667 | #include <assert.h> |
| 15668 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15669 | #ifdef __cplusplus |
| 15670 | extern "C" |
| 15671 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15672 | /* 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] | 15673 | builtin and then its argument prototype would still apply. */ |
| 15674 | char __fpu_control (); |
| 15675 | char (*f) (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15676 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15677 | #ifdef F77_DUMMY_MAIN |
| 15678 | # ifdef __cplusplus |
| 15679 | extern "C" |
| 15680 | # endif |
| 15681 | int F77_DUMMY_MAIN() { return 1; } |
| 15682 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15683 | int |
| 15684 | main () |
| 15685 | { |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15686 | /* The GNU C library defines this for functions which it implements |
| 15687 | to always fail with ENOSYS. Some functions are actually named |
| 15688 | something starting with __ and the normal name is an alias. */ |
| 15689 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 15690 | choke me |
| 15691 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15692 | f = __fpu_control; |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15693 | #endif |
| 15694 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15695 | ; |
| 15696 | return 0; |
| 15697 | } |
| 15698 | _ACEOF |
| 15699 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15700 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15701 | (eval $ac_link) 2>&5 |
| 15702 | ac_status=$? |
| 15703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15704 | (exit $ac_status); } && |
| 15705 | { ac_try='test -s conftest$ac_exeext' |
| 15706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15707 | (eval $ac_try) 2>&5 |
| 15708 | ac_status=$? |
| 15709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15710 | (exit $ac_status); }; }; then |
| 15711 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15712 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15713 | echo "$as_me: failed program was:" >&5 |
| 15714 | cat conftest.$ac_ext >&5 |
| 15715 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15716 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15717 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15718 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15719 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 15720 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 15721 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15722 | : |
| 15723 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15724 | |
| 15725 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 15726 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 15727 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 15728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15729 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15730 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15731 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15732 | cat >conftest.$ac_ext <<_ACEOF |
| 15733 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15734 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15735 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15736 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15737 | #ifdef __cplusplus |
| 15738 | extern "C" |
| 15739 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15740 | /* 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] | 15741 | builtin and then its argument prototype would still apply. */ |
| 15742 | char __fpu_control (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15743 | #ifdef F77_DUMMY_MAIN |
| 15744 | # ifdef __cplusplus |
| 15745 | extern "C" |
| 15746 | # endif |
| 15747 | int F77_DUMMY_MAIN() { return 1; } |
| 15748 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15749 | int |
| 15750 | main () |
| 15751 | { |
| 15752 | __fpu_control (); |
| 15753 | ; |
| 15754 | return 0; |
| 15755 | } |
| 15756 | _ACEOF |
| 15757 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15758 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15759 | (eval $ac_link) 2>&5 |
| 15760 | ac_status=$? |
| 15761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15762 | (exit $ac_status); } && |
| 15763 | { ac_try='test -s conftest$ac_exeext' |
| 15764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15765 | (eval $ac_try) 2>&5 |
| 15766 | ac_status=$? |
| 15767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15768 | (exit $ac_status); }; }; then |
| 15769 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15770 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15771 | echo "$as_me: failed program was:" >&5 |
| 15772 | cat conftest.$ac_ext >&5 |
| 15773 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15774 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15775 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15776 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15777 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15778 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 15779 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 15780 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 15781 | cat >>confdefs.h <<_ACEOF |
| 15782 | #define HAVE_LIBIEEE 1 |
| 15783 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15784 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15785 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15786 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15787 | fi |
| 15788 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15789 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15790 | fi |
| 15791 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15792 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15793 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15794 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 15795 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 15796 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15797 | # Check whether --with-fpectl or --without-fpectl was given. |
| 15798 | if test "${with_fpectl+set}" = set; then |
| 15799 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15800 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15801 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15802 | then |
| 15803 | |
| 15804 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15805 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15806 | _ACEOF |
| 15807 | |
| 15808 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15809 | echo "${ECHO_T}yes" >&6 |
| 15810 | else echo "$as_me:$LINENO: result: no" >&5 |
| 15811 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15812 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15813 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15814 | echo "$as_me:$LINENO: result: no" >&5 |
| 15815 | echo "${ECHO_T}no" >&6 |
| 15816 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15817 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15818 | # check for --with-libm=... |
| 15819 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 15820 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 15821 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15822 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 15823 | *) LIBM=-lm |
| 15824 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15825 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 15826 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 15827 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15828 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15829 | if test "${with_libm+set}" = set; then |
| 15830 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15831 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15832 | if test "$withval" = no |
| 15833 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15834 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 15835 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15836 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15837 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15838 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 15839 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 15840 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 15841 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 15842 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15843 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15844 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15845 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 15846 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 15847 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15848 | |
| 15849 | # check for --with-libc=... |
| 15850 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15851 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 15852 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 15853 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15854 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15855 | if test "${with_libc+set}" = set; then |
| 15856 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15857 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15858 | if test "$withval" = no |
| 15859 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15860 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 15861 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15862 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15863 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15864 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 15865 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 15866 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 15867 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 15868 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15869 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15870 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15871 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 15872 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 15873 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15874 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15875 | # check for hypot() in math library |
| 15876 | LIBS_SAVE=$LIBS |
| 15877 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15878 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15879 | for ac_func in hypot |
| 15880 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15881 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15882 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15883 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15884 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15886 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15887 | cat >conftest.$ac_ext <<_ACEOF |
| 15888 | #line $LINENO "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15889 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15890 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15891 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15892 | #include <assert.h> |
| 15893 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15894 | #ifdef __cplusplus |
| 15895 | extern "C" |
| 15896 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15897 | /* 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] | 15898 | builtin and then its argument prototype would still apply. */ |
| 15899 | char $ac_func (); |
| 15900 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15901 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15902 | #ifdef F77_DUMMY_MAIN |
| 15903 | # ifdef __cplusplus |
| 15904 | extern "C" |
| 15905 | # endif |
| 15906 | int F77_DUMMY_MAIN() { return 1; } |
| 15907 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15908 | int |
| 15909 | main () |
| 15910 | { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15911 | /* The GNU C library defines this for functions which it implements |
| 15912 | to always fail with ENOSYS. Some functions are actually named |
| 15913 | something starting with __ and the normal name is an alias. */ |
| 15914 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15915 | choke me |
| 15916 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15917 | f = $ac_func; |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15918 | #endif |
| 15919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15920 | ; |
| 15921 | return 0; |
| 15922 | } |
| 15923 | _ACEOF |
| 15924 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15926 | (eval $ac_link) 2>&5 |
| 15927 | ac_status=$? |
| 15928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15929 | (exit $ac_status); } && |
| 15930 | { ac_try='test -s conftest$ac_exeext' |
| 15931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15932 | (eval $ac_try) 2>&5 |
| 15933 | ac_status=$? |
| 15934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15935 | (exit $ac_status); }; }; then |
| 15936 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15937 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15938 | echo "$as_me: failed program was:" >&5 |
| 15939 | cat conftest.$ac_ext >&5 |
| 15940 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15941 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15942 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15943 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15944 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15945 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15946 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15947 | cat >>confdefs.h <<_ACEOF |
| 15948 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15949 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15950 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15951 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15952 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15953 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15954 | done |
| 15955 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15956 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15957 | LIBS=$LIBS_SAVE |
| 15958 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15959 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15960 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15961 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 15962 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 15963 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15965 | fi |
| 15966 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 15967 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15968 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15969 | # Is the header compilable? |
| 15970 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 15971 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 15972 | cat >conftest.$ac_ext <<_ACEOF |
| 15973 | #line $LINENO "configure" |
| 15974 | #include "confdefs.h" |
| 15975 | $ac_includes_default |
| 15976 | #include <wchar.h> |
| 15977 | _ACEOF |
| 15978 | rm -f conftest.$ac_objext |
| 15979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15980 | (eval $ac_compile) 2>&5 |
| 15981 | ac_status=$? |
| 15982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15983 | (exit $ac_status); } && |
| 15984 | { ac_try='test -s conftest.$ac_objext' |
| 15985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15986 | (eval $ac_try) 2>&5 |
| 15987 | ac_status=$? |
| 15988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15989 | (exit $ac_status); }; }; then |
| 15990 | ac_header_compiler=yes |
| 15991 | else |
| 15992 | echo "$as_me: failed program was:" >&5 |
| 15993 | cat conftest.$ac_ext >&5 |
| 15994 | ac_header_compiler=no |
| 15995 | fi |
| 15996 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15997 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15998 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15999 | |
| 16000 | # Is the header present? |
| 16001 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 16002 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 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 <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16007 | _ACEOF |
| 16008 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 16009 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 16010 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16011 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16012 | rm -f conftest.er1 |
| 16013 | cat conftest.err >&5 |
| 16014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16015 | (exit $ac_status); } >/dev/null; then |
| 16016 | if test -s conftest.err; then |
| 16017 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16018 | else |
| 16019 | ac_cpp_err= |
| 16020 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16021 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16022 | ac_cpp_err=yes |
| 16023 | fi |
| 16024 | if test -z "$ac_cpp_err"; then |
| 16025 | ac_header_preproc=yes |
| 16026 | else |
| 16027 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16028 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16029 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16030 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16031 | rm -f conftest.err conftest.$ac_ext |
| 16032 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16033 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 16034 | |
| 16035 | # So? What about this header? |
| 16036 | case $ac_header_compiler:$ac_header_preproc in |
| 16037 | yes:no ) |
| 16038 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16039 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16040 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 16041 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 16042 | no:yes ) |
| 16043 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 16044 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 16045 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 16046 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 16047 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 16048 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 16049 | esac |
| 16050 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 16051 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 16052 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 16053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16054 | else |
| 16055 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16056 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16057 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 16058 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 16059 | |
| 16060 | fi |
| 16061 | if test $ac_cv_header_wchar_h = yes; then |
| 16062 | |
| 16063 | |
| 16064 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16065 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16066 | _ACEOF |
| 16067 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16068 | wchar_h="yes" |
| 16069 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16070 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16071 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16072 | |
| 16073 | fi |
| 16074 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16075 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16076 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16077 | # determine wchar_t size |
| 16078 | if test "$wchar_h" = yes |
| 16079 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16080 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 16081 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 16082 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 16083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16084 | else |
| 16085 | cat >conftest.$ac_ext <<_ACEOF |
| 16086 | #line $LINENO "configure" |
| 16087 | #include "confdefs.h" |
| 16088 | #include <wchar.h> |
| 16089 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16090 | #ifdef F77_DUMMY_MAIN |
| 16091 | # ifdef __cplusplus |
| 16092 | extern "C" |
| 16093 | # endif |
| 16094 | int F77_DUMMY_MAIN() { return 1; } |
| 16095 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16096 | int |
| 16097 | main () |
| 16098 | { |
| 16099 | if ((wchar_t *) 0) |
| 16100 | return 0; |
| 16101 | if (sizeof (wchar_t)) |
| 16102 | return 0; |
| 16103 | ; |
| 16104 | return 0; |
| 16105 | } |
| 16106 | _ACEOF |
| 16107 | rm -f conftest.$ac_objext |
| 16108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16109 | (eval $ac_compile) 2>&5 |
| 16110 | ac_status=$? |
| 16111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16112 | (exit $ac_status); } && |
| 16113 | { ac_try='test -s conftest.$ac_objext' |
| 16114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16115 | (eval $ac_try) 2>&5 |
| 16116 | ac_status=$? |
| 16117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16118 | (exit $ac_status); }; }; then |
| 16119 | ac_cv_type_wchar_t=yes |
| 16120 | else |
| 16121 | echo "$as_me: failed program was:" >&5 |
| 16122 | cat conftest.$ac_ext >&5 |
| 16123 | ac_cv_type_wchar_t=no |
| 16124 | fi |
| 16125 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16126 | fi |
| 16127 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 16128 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 16129 | |
| 16130 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 16131 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 16132 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 16133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16134 | else |
| 16135 | if test "$ac_cv_type_wchar_t" = yes; then |
| 16136 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 16137 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 16138 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 16139 | # This bug is HP SR number 8606223364. |
| 16140 | if test "$cross_compiling" = yes; then |
| 16141 | # Depending upon the size, compute the lo and hi bounds. |
| 16142 | cat >conftest.$ac_ext <<_ACEOF |
| 16143 | #line $LINENO "configure" |
| 16144 | #include "confdefs.h" |
| 16145 | #include <wchar.h> |
| 16146 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16147 | #ifdef F77_DUMMY_MAIN |
| 16148 | # ifdef __cplusplus |
| 16149 | extern "C" |
| 16150 | # endif |
| 16151 | int F77_DUMMY_MAIN() { return 1; } |
| 16152 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16153 | int |
| 16154 | main () |
| 16155 | { |
| 16156 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 16157 | test_array [0] = 0 |
| 16158 | |
| 16159 | ; |
| 16160 | return 0; |
| 16161 | } |
| 16162 | _ACEOF |
| 16163 | rm -f conftest.$ac_objext |
| 16164 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16165 | (eval $ac_compile) 2>&5 |
| 16166 | ac_status=$? |
| 16167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16168 | (exit $ac_status); } && |
| 16169 | { ac_try='test -s conftest.$ac_objext' |
| 16170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16171 | (eval $ac_try) 2>&5 |
| 16172 | ac_status=$? |
| 16173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16174 | (exit $ac_status); }; }; then |
| 16175 | ac_lo=0 ac_mid=0 |
| 16176 | while :; do |
| 16177 | cat >conftest.$ac_ext <<_ACEOF |
| 16178 | #line $LINENO "configure" |
| 16179 | #include "confdefs.h" |
| 16180 | #include <wchar.h> |
| 16181 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16182 | #ifdef F77_DUMMY_MAIN |
| 16183 | # ifdef __cplusplus |
| 16184 | extern "C" |
| 16185 | # endif |
| 16186 | int F77_DUMMY_MAIN() { return 1; } |
| 16187 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16188 | int |
| 16189 | main () |
| 16190 | { |
| 16191 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 16192 | test_array [0] = 0 |
| 16193 | |
| 16194 | ; |
| 16195 | return 0; |
| 16196 | } |
| 16197 | _ACEOF |
| 16198 | rm -f conftest.$ac_objext |
| 16199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16200 | (eval $ac_compile) 2>&5 |
| 16201 | ac_status=$? |
| 16202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16203 | (exit $ac_status); } && |
| 16204 | { ac_try='test -s conftest.$ac_objext' |
| 16205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16206 | (eval $ac_try) 2>&5 |
| 16207 | ac_status=$? |
| 16208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16209 | (exit $ac_status); }; }; then |
| 16210 | ac_hi=$ac_mid; break |
| 16211 | else |
| 16212 | echo "$as_me: failed program was:" >&5 |
| 16213 | cat conftest.$ac_ext >&5 |
| 16214 | ac_lo=`expr $ac_mid + 1` |
| 16215 | if test $ac_lo -le $ac_mid; then |
| 16216 | ac_lo= ac_hi= |
| 16217 | break |
| 16218 | fi |
| 16219 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 16220 | fi |
| 16221 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16222 | done |
| 16223 | else |
| 16224 | echo "$as_me: failed program was:" >&5 |
| 16225 | cat conftest.$ac_ext >&5 |
| 16226 | cat >conftest.$ac_ext <<_ACEOF |
| 16227 | #line $LINENO "configure" |
| 16228 | #include "confdefs.h" |
| 16229 | #include <wchar.h> |
| 16230 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16231 | #ifdef F77_DUMMY_MAIN |
| 16232 | # ifdef __cplusplus |
| 16233 | extern "C" |
| 16234 | # endif |
| 16235 | int F77_DUMMY_MAIN() { return 1; } |
| 16236 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16237 | int |
| 16238 | main () |
| 16239 | { |
| 16240 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 16241 | test_array [0] = 0 |
| 16242 | |
| 16243 | ; |
| 16244 | return 0; |
| 16245 | } |
| 16246 | _ACEOF |
| 16247 | rm -f conftest.$ac_objext |
| 16248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16249 | (eval $ac_compile) 2>&5 |
| 16250 | ac_status=$? |
| 16251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16252 | (exit $ac_status); } && |
| 16253 | { ac_try='test -s conftest.$ac_objext' |
| 16254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16255 | (eval $ac_try) 2>&5 |
| 16256 | ac_status=$? |
| 16257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16258 | (exit $ac_status); }; }; then |
| 16259 | ac_hi=-1 ac_mid=-1 |
| 16260 | while :; do |
| 16261 | cat >conftest.$ac_ext <<_ACEOF |
| 16262 | #line $LINENO "configure" |
| 16263 | #include "confdefs.h" |
| 16264 | #include <wchar.h> |
| 16265 | |
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 | { |
| 16275 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 16276 | test_array [0] = 0 |
| 16277 | |
| 16278 | ; |
| 16279 | return 0; |
| 16280 | } |
| 16281 | _ACEOF |
| 16282 | rm -f conftest.$ac_objext |
| 16283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16284 | (eval $ac_compile) 2>&5 |
| 16285 | ac_status=$? |
| 16286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16287 | (exit $ac_status); } && |
| 16288 | { ac_try='test -s conftest.$ac_objext' |
| 16289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16290 | (eval $ac_try) 2>&5 |
| 16291 | ac_status=$? |
| 16292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16293 | (exit $ac_status); }; }; then |
| 16294 | ac_lo=$ac_mid; break |
| 16295 | else |
| 16296 | echo "$as_me: failed program was:" >&5 |
| 16297 | cat conftest.$ac_ext >&5 |
| 16298 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 16299 | if test $ac_mid -le $ac_hi; then |
| 16300 | ac_lo= ac_hi= |
| 16301 | break |
| 16302 | fi |
| 16303 | ac_mid=`expr 2 '*' $ac_mid` |
| 16304 | fi |
| 16305 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16306 | done |
| 16307 | else |
| 16308 | echo "$as_me: failed program was:" >&5 |
| 16309 | cat conftest.$ac_ext >&5 |
| 16310 | ac_lo= ac_hi= |
| 16311 | fi |
| 16312 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16313 | fi |
| 16314 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16315 | # Binary search between lo and hi bounds. |
| 16316 | while test "x$ac_lo" != "x$ac_hi"; do |
| 16317 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 16318 | cat >conftest.$ac_ext <<_ACEOF |
| 16319 | #line $LINENO "configure" |
| 16320 | #include "confdefs.h" |
| 16321 | #include <wchar.h> |
| 16322 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16323 | #ifdef F77_DUMMY_MAIN |
| 16324 | # ifdef __cplusplus |
| 16325 | extern "C" |
| 16326 | # endif |
| 16327 | int F77_DUMMY_MAIN() { return 1; } |
| 16328 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16329 | int |
| 16330 | main () |
| 16331 | { |
| 16332 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 16333 | test_array [0] = 0 |
| 16334 | |
| 16335 | ; |
| 16336 | return 0; |
| 16337 | } |
| 16338 | _ACEOF |
| 16339 | rm -f conftest.$ac_objext |
| 16340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16341 | (eval $ac_compile) 2>&5 |
| 16342 | ac_status=$? |
| 16343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16344 | (exit $ac_status); } && |
| 16345 | { ac_try='test -s conftest.$ac_objext' |
| 16346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16347 | (eval $ac_try) 2>&5 |
| 16348 | ac_status=$? |
| 16349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16350 | (exit $ac_status); }; }; then |
| 16351 | ac_hi=$ac_mid |
| 16352 | else |
| 16353 | echo "$as_me: failed program was:" >&5 |
| 16354 | cat conftest.$ac_ext >&5 |
| 16355 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 16356 | fi |
| 16357 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16358 | done |
| 16359 | case $ac_lo in |
| 16360 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
| 16361 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 16362 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 16363 | { (exit 1); exit 1; }; } ;; |
| 16364 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16365 | else |
| 16366 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16367 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 16368 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 16369 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16370 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16371 | cat >conftest.$ac_ext <<_ACEOF |
| 16372 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16373 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16374 | #include <wchar.h> |
| 16375 | |
| 16376 | long longval () { return (long) (sizeof (wchar_t)); } |
| 16377 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16378 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16379 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16380 | #ifdef F77_DUMMY_MAIN |
| 16381 | # ifdef __cplusplus |
| 16382 | extern "C" |
| 16383 | # endif |
| 16384 | int F77_DUMMY_MAIN() { return 1; } |
| 16385 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16386 | int |
| 16387 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16388 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16389 | |
| 16390 | FILE *f = fopen ("conftest.val", "w"); |
| 16391 | if (! f) |
| 16392 | exit (1); |
| 16393 | if (((long) (sizeof (wchar_t))) < 0) |
| 16394 | { |
| 16395 | long i = longval (); |
| 16396 | if (i != ((long) (sizeof (wchar_t)))) |
| 16397 | exit (1); |
| 16398 | fprintf (f, "%ld\n", i); |
| 16399 | } |
| 16400 | else |
| 16401 | { |
| 16402 | unsigned long i = ulongval (); |
| 16403 | if (i != ((long) (sizeof (wchar_t)))) |
| 16404 | exit (1); |
| 16405 | fprintf (f, "%lu\n", i); |
| 16406 | } |
| 16407 | exit (ferror (f) || fclose (f) != 0); |
| 16408 | |
| 16409 | ; |
| 16410 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16411 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16412 | _ACEOF |
| 16413 | rm -f conftest$ac_exeext |
| 16414 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16415 | (eval $ac_link) 2>&5 |
| 16416 | ac_status=$? |
| 16417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16418 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16420 | (eval $ac_try) 2>&5 |
| 16421 | ac_status=$? |
| 16422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16423 | (exit $ac_status); }; }; then |
| 16424 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16425 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16426 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16427 | echo "$as_me: failed program was:" >&5 |
| 16428 | cat conftest.$ac_ext >&5 |
| 16429 | ( exit $ac_status ) |
| 16430 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 16431 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 16432 | { (exit 1); exit 1; }; } |
| 16433 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16434 | 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] | 16435 | fi |
| 16436 | fi |
| 16437 | rm -f conftest.val |
| 16438 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16439 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16440 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16441 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16442 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 16443 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 16444 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16445 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16446 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16447 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16448 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16449 | fi |
| 16450 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16451 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 16452 | 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] | 16453 | # Check whether --enable-unicode or --disable-unicode was given. |
| 16454 | if test "${enable_unicode+set}" = set; then |
| 16455 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16456 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16457 | else |
| 16458 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16459 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16460 | |
| 16461 | if test $enable_unicode = yes |
| 16462 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 16463 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
| 16464 | enable_unicode="ucs2" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16465 | fi |
| 16466 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 16467 | |
| 16468 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16469 | case "$enable_unicode" in |
| 16470 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16471 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16472 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16473 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16474 | |
| 16475 | ;; |
| 16476 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16477 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16478 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16479 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16480 | |
| 16481 | ;; |
| 16482 | esac |
| 16483 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16484 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16485 | |
| 16486 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 16487 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16488 | if test "$enable_unicode" = "no" |
| 16489 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 16490 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16491 | echo "$as_me:$LINENO: result: not used" >&5 |
| 16492 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16493 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 16494 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16495 | |
| 16496 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16497 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16498 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16499 | |
| 16500 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" |
| 16501 | then |
| 16502 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16503 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16504 | cat >>confdefs.h <<\_ACEOF |
| 16505 | #define HAVE_USABLE_WCHAR_T 1 |
| 16506 | _ACEOF |
| 16507 | |
| 16508 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16509 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16510 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16511 | |
| 16512 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 16513 | then |
| 16514 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16515 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16516 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16517 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16518 | |
| 16519 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 16520 | then |
| 16521 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16522 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16523 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16524 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16525 | |
| 16526 | else |
| 16527 | PY_UNICODE_TYPE="no type found" |
| 16528 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16529 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 16530 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16531 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16532 | |
| 16533 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16534 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 16535 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 16536 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 16537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16538 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16539 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 16540 | cat >conftest.$ac_ext <<_ACEOF |
| 16541 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16542 | #include "confdefs.h" |
| 16543 | #include <sys/types.h> |
| 16544 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16545 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16546 | #ifdef F77_DUMMY_MAIN |
| 16547 | # ifdef __cplusplus |
| 16548 | extern "C" |
| 16549 | # endif |
| 16550 | int F77_DUMMY_MAIN() { return 1; } |
| 16551 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16552 | int |
| 16553 | main () |
| 16554 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16555 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 16556 | bogus endian macros |
| 16557 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16558 | |
| 16559 | ; |
| 16560 | return 0; |
| 16561 | } |
| 16562 | _ACEOF |
| 16563 | rm -f conftest.$ac_objext |
| 16564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16565 | (eval $ac_compile) 2>&5 |
| 16566 | ac_status=$? |
| 16567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16568 | (exit $ac_status); } && |
| 16569 | { ac_try='test -s conftest.$ac_objext' |
| 16570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16571 | (eval $ac_try) 2>&5 |
| 16572 | ac_status=$? |
| 16573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16574 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16575 | # 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] | 16576 | cat >conftest.$ac_ext <<_ACEOF |
| 16577 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16578 | #include "confdefs.h" |
| 16579 | #include <sys/types.h> |
| 16580 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16581 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16582 | #ifdef F77_DUMMY_MAIN |
| 16583 | # ifdef __cplusplus |
| 16584 | extern "C" |
| 16585 | # endif |
| 16586 | int F77_DUMMY_MAIN() { return 1; } |
| 16587 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16588 | int |
| 16589 | main () |
| 16590 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16591 | #if BYTE_ORDER != BIG_ENDIAN |
| 16592 | not big endian |
| 16593 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16594 | |
| 16595 | ; |
| 16596 | return 0; |
| 16597 | } |
| 16598 | _ACEOF |
| 16599 | rm -f conftest.$ac_objext |
| 16600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16601 | (eval $ac_compile) 2>&5 |
| 16602 | ac_status=$? |
| 16603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16604 | (exit $ac_status); } && |
| 16605 | { ac_try='test -s conftest.$ac_objext' |
| 16606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16607 | (eval $ac_try) 2>&5 |
| 16608 | ac_status=$? |
| 16609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16610 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16611 | ac_cv_c_bigendian=yes |
| 16612 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16613 | echo "$as_me: failed program was:" >&5 |
| 16614 | cat conftest.$ac_ext >&5 |
| 16615 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16616 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16617 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16618 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16619 | echo "$as_me: failed program was:" >&5 |
| 16620 | cat conftest.$ac_ext >&5 |
| 16621 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16622 | if test "$cross_compiling" = yes; then |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16623 | # 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] | 16624 | ac_cv_c_bigendian=unknown |
| 16625 | cat >conftest.$ac_ext <<_ACEOF |
| 16626 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16627 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16628 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 16629 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 16630 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 16631 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 16632 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 16633 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16634 | #ifdef F77_DUMMY_MAIN |
| 16635 | # ifdef __cplusplus |
| 16636 | extern "C" |
| 16637 | # endif |
| 16638 | int F77_DUMMY_MAIN() { return 1; } |
| 16639 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16640 | int |
| 16641 | main () |
| 16642 | { |
| 16643 | _ascii (); _ebcdic (); |
| 16644 | ; |
| 16645 | return 0; |
| 16646 | } |
| 16647 | _ACEOF |
| 16648 | rm -f conftest.$ac_objext |
| 16649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16650 | (eval $ac_compile) 2>&5 |
| 16651 | ac_status=$? |
| 16652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16653 | (exit $ac_status); } && |
| 16654 | { ac_try='test -s conftest.$ac_objext' |
| 16655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16656 | (eval $ac_try) 2>&5 |
| 16657 | ac_status=$? |
| 16658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16659 | (exit $ac_status); }; }; then |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16660 | if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16661 | ac_cv_c_bigendian=yes |
| 16662 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16663 | if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16664 | if test "$ac_cv_c_bigendian" = unknown; then |
| 16665 | ac_cv_c_bigendian=no |
| 16666 | else |
| 16667 | # finding both strings is unlikely to happen, but who knows? |
| 16668 | ac_cv_c_bigendian=unknown |
| 16669 | fi |
| 16670 | fi |
| 16671 | else |
| 16672 | echo "$as_me: failed program was:" >&5 |
| 16673 | cat conftest.$ac_ext >&5 |
| 16674 | fi |
| 16675 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16676 | else |
| 16677 | cat >conftest.$ac_ext <<_ACEOF |
| 16678 | #line $LINENO "configure" |
| 16679 | #include "confdefs.h" |
| 16680 | int |
| 16681 | main () |
| 16682 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16683 | /* Are we little or big endian? From Harbison&Steele. */ |
| 16684 | union |
| 16685 | { |
| 16686 | long l; |
| 16687 | char c[sizeof (long)]; |
| 16688 | } u; |
| 16689 | u.l = 1; |
| 16690 | exit (u.c[sizeof (long) - 1] == 1); |
| 16691 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16692 | _ACEOF |
| 16693 | rm -f conftest$ac_exeext |
| 16694 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16695 | (eval $ac_link) 2>&5 |
| 16696 | ac_status=$? |
| 16697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16698 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16700 | (eval $ac_try) 2>&5 |
| 16701 | ac_status=$? |
| 16702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16703 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16704 | ac_cv_c_bigendian=no |
| 16705 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16706 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16707 | echo "$as_me: failed program was:" >&5 |
| 16708 | cat conftest.$ac_ext >&5 |
| 16709 | ( exit $ac_status ) |
| 16710 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16711 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16712 | 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] | 16713 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16714 | fi |
| 16715 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16716 | fi |
| 16717 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 16718 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 16719 | case $ac_cv_c_bigendian in |
| 16720 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16721 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16722 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16723 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16724 | _ACEOF |
| 16725 | ;; |
| 16726 | no) |
| 16727 | ;; |
| 16728 | *) |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16729 | { { echo "$as_me:$LINENO: error: unknown endianess |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16730 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16731 | echo "$as_me: error: unknown endianess |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16732 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 16733 | { (exit 1); exit 1; }; } ;; |
| 16734 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16735 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16736 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16737 | # Check whether right shifting a negative integer extends the sign bit |
| 16738 | # 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] | 16739 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 16740 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 16741 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 16742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16743 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16744 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16745 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 16746 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16747 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16748 | cat >conftest.$ac_ext <<_ACEOF |
| 16749 | #line $LINENO "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16750 | #include "confdefs.h" |
| 16751 | |
| 16752 | int main() |
| 16753 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16754 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16755 | } |
| 16756 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16757 | _ACEOF |
| 16758 | rm -f conftest$ac_exeext |
| 16759 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16760 | (eval $ac_link) 2>&5 |
| 16761 | ac_status=$? |
| 16762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16763 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16765 | (eval $ac_try) 2>&5 |
| 16766 | ac_status=$? |
| 16767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16768 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16769 | ac_cv_rshift_extends_sign=yes |
| 16770 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16771 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16772 | echo "$as_me: failed program was:" >&5 |
| 16773 | cat conftest.$ac_ext >&5 |
| 16774 | ( exit $ac_status ) |
| 16775 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16776 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16777 | 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] | 16778 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16779 | fi |
| 16780 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16781 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 16782 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16783 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16784 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16785 | |
| 16786 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16787 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16788 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16789 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16790 | fi |
| 16791 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16792 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16793 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 16794 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 16795 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 16796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16797 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16798 | |
| 16799 | cat >conftest.$ac_ext <<_ACEOF |
| 16800 | #line $LINENO "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16801 | #include "confdefs.h" |
| 16802 | #include <stdio.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16803 | #ifdef F77_DUMMY_MAIN |
| 16804 | # ifdef __cplusplus |
| 16805 | extern "C" |
| 16806 | # endif |
| 16807 | int F77_DUMMY_MAIN() { return 1; } |
| 16808 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16809 | int |
| 16810 | main () |
| 16811 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16812 | |
| 16813 | FILE *f = fopen("/dev/null", "r"); |
| 16814 | flockfile(f); |
| 16815 | getc_unlocked(f); |
| 16816 | funlockfile(f); |
| 16817 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16818 | ; |
| 16819 | return 0; |
| 16820 | } |
| 16821 | _ACEOF |
| 16822 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16824 | (eval $ac_link) 2>&5 |
| 16825 | ac_status=$? |
| 16826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16827 | (exit $ac_status); } && |
| 16828 | { ac_try='test -s conftest$ac_exeext' |
| 16829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16830 | (eval $ac_try) 2>&5 |
| 16831 | ac_status=$? |
| 16832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16833 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16834 | ac_cv_have_getc_unlocked=yes |
| 16835 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16836 | echo "$as_me: failed program was:" >&5 |
| 16837 | cat conftest.$ac_ext >&5 |
| 16838 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16839 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16840 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16841 | fi |
| 16842 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16843 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 16844 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16845 | if test "$ac_cv_have_getc_unlocked" = yes |
| 16846 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16847 | |
| 16848 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16849 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16850 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16851 | |
| 16852 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16853 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 16854 | # check for readline 2.2 |
| 16855 | cat >conftest.$ac_ext <<_ACEOF |
| 16856 | #line $LINENO "configure" |
| 16857 | #include "confdefs.h" |
| 16858 | #include <readline/readline.h> |
| 16859 | _ACEOF |
| 16860 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 16861 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 16862 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16863 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 16864 | rm -f conftest.er1 |
| 16865 | cat conftest.err >&5 |
| 16866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16867 | (exit $ac_status); } >/dev/null; then |
| 16868 | if test -s conftest.err; then |
| 16869 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16870 | else |
| 16871 | ac_cpp_err= |
| 16872 | fi |
| 16873 | else |
| 16874 | ac_cpp_err=yes |
| 16875 | fi |
| 16876 | if test -z "$ac_cpp_err"; then |
| 16877 | have_readline=yes |
| 16878 | else |
| 16879 | echo "$as_me: failed program was:" >&5 |
| 16880 | cat conftest.$ac_ext >&5 |
| 16881 | have_readline=no |
| 16882 | fi |
| 16883 | rm -f conftest.err conftest.$ac_ext |
| 16884 | if test $have_readline = yes |
| 16885 | then |
| 16886 | cat >conftest.$ac_ext <<_ACEOF |
| 16887 | #line $LINENO "configure" |
| 16888 | #include "confdefs.h" |
| 16889 | #include <readline/readline.h> |
| 16890 | |
| 16891 | _ACEOF |
| 16892 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16893 | 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] | 16894 | |
| 16895 | cat >>confdefs.h <<\_ACEOF |
| 16896 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 16897 | _ACEOF |
| 16898 | |
| 16899 | fi |
| 16900 | rm -f conftest* |
| 16901 | |
| 16902 | fi |
| 16903 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16904 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16905 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 16906 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 16907 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 16908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16909 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16910 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16911 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16912 | cat >conftest.$ac_ext <<_ACEOF |
| 16913 | #line $LINENO "configure" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16914 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16915 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16916 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16917 | #ifdef __cplusplus |
| 16918 | extern "C" |
| 16919 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16920 | /* 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] | 16921 | builtin and then its argument prototype would still apply. */ |
| 16922 | char rl_pre_input_hook (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16923 | #ifdef F77_DUMMY_MAIN |
| 16924 | # ifdef __cplusplus |
| 16925 | extern "C" |
| 16926 | # endif |
| 16927 | int F77_DUMMY_MAIN() { return 1; } |
| 16928 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16929 | int |
| 16930 | main () |
| 16931 | { |
| 16932 | rl_pre_input_hook (); |
| 16933 | ; |
| 16934 | return 0; |
| 16935 | } |
| 16936 | _ACEOF |
| 16937 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16938 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16939 | (eval $ac_link) 2>&5 |
| 16940 | ac_status=$? |
| 16941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16942 | (exit $ac_status); } && |
| 16943 | { ac_try='test -s conftest$ac_exeext' |
| 16944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16945 | (eval $ac_try) 2>&5 |
| 16946 | ac_status=$? |
| 16947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16948 | (exit $ac_status); }; }; then |
| 16949 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16950 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16951 | echo "$as_me: failed program was:" >&5 |
| 16952 | cat conftest.$ac_ext >&5 |
| 16953 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16954 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16955 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16956 | LIBS=$ac_check_lib_save_LIBS |
| 16957 | fi |
| 16958 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 16959 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 16960 | 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] | 16961 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16962 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16963 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16964 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16965 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16966 | fi |
| 16967 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16968 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16969 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16970 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 16971 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 16972 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 16973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16974 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16975 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16976 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16977 | cat >conftest.$ac_ext <<_ACEOF |
| 16978 | #line $LINENO "configure" |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16979 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16980 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16981 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16982 | #ifdef __cplusplus |
| 16983 | extern "C" |
| 16984 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16985 | /* 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] | 16986 | builtin and then its argument prototype would still apply. */ |
| 16987 | char rl_completion_matches (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16988 | #ifdef F77_DUMMY_MAIN |
| 16989 | # ifdef __cplusplus |
| 16990 | extern "C" |
| 16991 | # endif |
| 16992 | int F77_DUMMY_MAIN() { return 1; } |
| 16993 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16994 | int |
| 16995 | main () |
| 16996 | { |
| 16997 | rl_completion_matches (); |
| 16998 | ; |
| 16999 | return 0; |
| 17000 | } |
| 17001 | _ACEOF |
| 17002 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17003 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17004 | (eval $ac_link) 2>&5 |
| 17005 | ac_status=$? |
| 17006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17007 | (exit $ac_status); } && |
| 17008 | { ac_try='test -s conftest$ac_exeext' |
| 17009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17010 | (eval $ac_try) 2>&5 |
| 17011 | ac_status=$? |
| 17012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17013 | (exit $ac_status); }; }; then |
| 17014 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17015 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17016 | echo "$as_me: failed program was:" >&5 |
| 17017 | cat conftest.$ac_ext >&5 |
| 17018 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17019 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17020 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 17021 | LIBS=$ac_check_lib_save_LIBS |
| 17022 | fi |
| 17023 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 17024 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 17025 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17026 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17027 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17028 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17029 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17030 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17031 | fi |
| 17032 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17033 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17034 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 17035 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 17036 | if test "${ac_cv_broken_nice+set}" = set; then |
| 17037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17038 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17039 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17040 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 17041 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17042 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17043 | cat >conftest.$ac_ext <<_ACEOF |
| 17044 | #line $LINENO "configure" |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17045 | #include "confdefs.h" |
| 17046 | |
| 17047 | int main() |
| 17048 | { |
| 17049 | int val1 = nice(1); |
| 17050 | if (val1 != -1 && val1 == nice(2)) |
| 17051 | exit(0); |
| 17052 | exit(1); |
| 17053 | } |
| 17054 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17055 | _ACEOF |
| 17056 | rm -f conftest$ac_exeext |
| 17057 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17058 | (eval $ac_link) 2>&5 |
| 17059 | ac_status=$? |
| 17060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17061 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17063 | (eval $ac_try) 2>&5 |
| 17064 | ac_status=$? |
| 17065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17066 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17067 | ac_cv_broken_nice=yes |
| 17068 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17069 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17070 | echo "$as_me: failed program was:" >&5 |
| 17071 | cat conftest.$ac_ext >&5 |
| 17072 | ( exit $ac_status ) |
| 17073 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17074 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17075 | 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] | 17076 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17077 | fi |
| 17078 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17079 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 17080 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17081 | if test "$ac_cv_broken_nice" = yes |
| 17082 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17083 | |
| 17084 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17085 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17086 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17087 | |
| 17088 | fi |
| 17089 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17090 | # tzset(3) exists and works like we expect it to |
| 17091 | echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 17092 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6 |
| 17093 | if test "${ac_cv_working_tzset+set}" = set; then |
| 17094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17095 | else |
| 17096 | |
| 17097 | if test "$cross_compiling" = yes; then |
| 17098 | ac_cv_working_tzset=no |
| 17099 | else |
| 17100 | cat >conftest.$ac_ext <<_ACEOF |
| 17101 | #line $LINENO "configure" |
| 17102 | #include "confdefs.h" |
| 17103 | |
| 17104 | #include <stdlib.h> |
| 17105 | #include <time.h> |
| 17106 | int main() |
| 17107 | { |
| 17108 | int gmt_hour; |
| 17109 | int eastern_hour; |
| 17110 | time_t now; |
| 17111 | now = time((time_t*)NULL); |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 17112 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17113 | tzset(); |
| 17114 | gmt_hour = localtime(&now)->tm_hour; |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 17115 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17116 | tzset(); |
| 17117 | eastern_hour = localtime(&now)->tm_hour; |
| 17118 | if (eastern_hour == gmt_hour) |
| 17119 | exit(1); |
| 17120 | exit(0); |
| 17121 | } |
| 17122 | |
| 17123 | _ACEOF |
| 17124 | rm -f conftest$ac_exeext |
| 17125 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17126 | (eval $ac_link) 2>&5 |
| 17127 | ac_status=$? |
| 17128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17129 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17131 | (eval $ac_try) 2>&5 |
| 17132 | ac_status=$? |
| 17133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17134 | (exit $ac_status); }; }; then |
| 17135 | ac_cv_working_tzset=yes |
| 17136 | else |
| 17137 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17138 | echo "$as_me: failed program was:" >&5 |
| 17139 | cat conftest.$ac_ext >&5 |
| 17140 | ( exit $ac_status ) |
| 17141 | ac_cv_working_tzset=no |
| 17142 | fi |
| 17143 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 17144 | fi |
| 17145 | fi |
| 17146 | |
| 17147 | echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 17148 | echo "${ECHO_T}$ac_cv_working_tzset" >&6 |
| 17149 | if test "$ac_cv_working_tzset" = yes |
| 17150 | then |
| 17151 | |
| 17152 | cat >>confdefs.h <<\_ACEOF |
| 17153 | #define HAVE_WORKING_TZSET 1 |
| 17154 | _ACEOF |
| 17155 | |
| 17156 | fi |
| 17157 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 17158 | # Look for subsecond timestamps in struct stat |
| 17159 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 17160 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 17161 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 17162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17163 | else |
| 17164 | cat >conftest.$ac_ext <<_ACEOF |
| 17165 | #line $LINENO "configure" |
| 17166 | #include "confdefs.h" |
| 17167 | #include <sys/stat.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17168 | #ifdef F77_DUMMY_MAIN |
| 17169 | # ifdef __cplusplus |
| 17170 | extern "C" |
| 17171 | # endif |
| 17172 | int F77_DUMMY_MAIN() { return 1; } |
| 17173 | #endif |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 17174 | int |
| 17175 | main () |
| 17176 | { |
| 17177 | |
| 17178 | struct stat st; |
| 17179 | st.st_mtim.tv_nsec = 1; |
| 17180 | |
| 17181 | ; |
| 17182 | return 0; |
| 17183 | } |
| 17184 | _ACEOF |
| 17185 | rm -f conftest.$ac_objext |
| 17186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17187 | (eval $ac_compile) 2>&5 |
| 17188 | ac_status=$? |
| 17189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17190 | (exit $ac_status); } && |
| 17191 | { ac_try='test -s conftest.$ac_objext' |
| 17192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17193 | (eval $ac_try) 2>&5 |
| 17194 | ac_status=$? |
| 17195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17196 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 17197 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 17198 | else |
| 17199 | echo "$as_me: failed program was:" >&5 |
| 17200 | cat conftest.$ac_ext >&5 |
| 17201 | ac_cv_stat_tv_nsec=no |
| 17202 | fi |
| 17203 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17204 | fi |
| 17205 | |
| 17206 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 17207 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 17208 | if test "$ac_cv_stat_tv_nsec" = yes |
| 17209 | then |
| 17210 | |
| 17211 | cat >>confdefs.h <<\_ACEOF |
| 17212 | #define HAVE_STAT_TV_NSEC 1 |
| 17213 | _ACEOF |
| 17214 | |
| 17215 | fi |
| 17216 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17217 | # 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] | 17218 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 17219 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 17220 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 17221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17222 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17223 | cat >conftest.$ac_ext <<_ACEOF |
| 17224 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17225 | #include "confdefs.h" |
| 17226 | #include <curses.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17227 | #ifdef F77_DUMMY_MAIN |
| 17228 | # ifdef __cplusplus |
| 17229 | extern "C" |
| 17230 | # endif |
| 17231 | int F77_DUMMY_MAIN() { return 1; } |
| 17232 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17233 | int |
| 17234 | main () |
| 17235 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17236 | |
| 17237 | int rtn; |
| 17238 | rtn = mvwdelch(0,0,0); |
| 17239 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17240 | ; |
| 17241 | return 0; |
| 17242 | } |
| 17243 | _ACEOF |
| 17244 | rm -f conftest.$ac_objext |
| 17245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17246 | (eval $ac_compile) 2>&5 |
| 17247 | ac_status=$? |
| 17248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17249 | (exit $ac_status); } && |
| 17250 | { ac_try='test -s conftest.$ac_objext' |
| 17251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17252 | (eval $ac_try) 2>&5 |
| 17253 | ac_status=$? |
| 17254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17255 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17256 | ac_cv_mvwdelch_is_expression=yes |
| 17257 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17258 | echo "$as_me: failed program was:" >&5 |
| 17259 | cat conftest.$ac_ext >&5 |
| 17260 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17261 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17262 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17263 | fi |
| 17264 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17265 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 17266 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17267 | |
| 17268 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 17269 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17270 | |
| 17271 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17272 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17273 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17274 | |
| 17275 | fi |
| 17276 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17277 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 17278 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 17279 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 17280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17281 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17282 | cat >conftest.$ac_ext <<_ACEOF |
| 17283 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17284 | #include "confdefs.h" |
| 17285 | #include <curses.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17286 | #ifdef F77_DUMMY_MAIN |
| 17287 | # ifdef __cplusplus |
| 17288 | extern "C" |
| 17289 | # endif |
| 17290 | int F77_DUMMY_MAIN() { return 1; } |
| 17291 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17292 | int |
| 17293 | main () |
| 17294 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17295 | |
| 17296 | WINDOW *w; |
| 17297 | w->_flags = 0; |
| 17298 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17299 | ; |
| 17300 | return 0; |
| 17301 | } |
| 17302 | _ACEOF |
| 17303 | rm -f conftest.$ac_objext |
| 17304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17305 | (eval $ac_compile) 2>&5 |
| 17306 | ac_status=$? |
| 17307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17308 | (exit $ac_status); } && |
| 17309 | { ac_try='test -s conftest.$ac_objext' |
| 17310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17311 | (eval $ac_try) 2>&5 |
| 17312 | ac_status=$? |
| 17313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17314 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17315 | ac_cv_window_has_flags=yes |
| 17316 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17317 | echo "$as_me: failed program was:" >&5 |
| 17318 | cat conftest.$ac_ext >&5 |
| 17319 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17320 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17321 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17322 | fi |
| 17323 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17324 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 17325 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17326 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17327 | |
| 17328 | if test "$ac_cv_window_has_flags" = yes |
| 17329 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17330 | |
| 17331 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17332 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17333 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17334 | |
| 17335 | fi |
| 17336 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 17337 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 17338 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
| 17339 | |
| 17340 | if test -e /dev/ptmx |
| 17341 | then |
| 17342 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17343 | echo "${ECHO_T}yes" >&6 |
| 17344 | |
| 17345 | cat >>confdefs.h <<\_ACEOF |
| 17346 | #define HAVE_DEV_PTMX 1 |
| 17347 | _ACEOF |
| 17348 | |
| 17349 | else |
| 17350 | echo "$as_me:$LINENO: result: no" >&5 |
| 17351 | echo "${ECHO_T}no" >&6 |
| 17352 | fi |
| 17353 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 17354 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 17355 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
| 17356 | |
| 17357 | if test -e /dev/ptc |
| 17358 | then |
| 17359 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17360 | echo "${ECHO_T}yes" >&6 |
| 17361 | |
| 17362 | cat >>confdefs.h <<\_ACEOF |
| 17363 | #define HAVE_DEV_PTC 1 |
| 17364 | _ACEOF |
| 17365 | |
| 17366 | else |
| 17367 | echo "$as_me:$LINENO: result: no" >&5 |
| 17368 | echo "${ECHO_T}no" >&6 |
| 17369 | fi |
| 17370 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17371 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 17372 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 17373 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 17374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17375 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17376 | cat >conftest.$ac_ext <<_ACEOF |
| 17377 | #line $LINENO "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17378 | #include "confdefs.h" |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 17379 | |
| 17380 | #ifdef HAVE_SYS_TYPES_H |
| 17381 | #include <sys/types.h> |
| 17382 | #endif |
| 17383 | #ifdef HAVE_SYS_SOCKET_H |
| 17384 | #include <sys/socket.h> |
| 17385 | #endif |
| 17386 | |
| 17387 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17388 | #ifdef F77_DUMMY_MAIN |
| 17389 | # ifdef __cplusplus |
| 17390 | extern "C" |
| 17391 | # endif |
| 17392 | int F77_DUMMY_MAIN() { return 1; } |
| 17393 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17394 | int |
| 17395 | main () |
| 17396 | { |
| 17397 | if ((socklen_t *) 0) |
| 17398 | return 0; |
| 17399 | if (sizeof (socklen_t)) |
| 17400 | return 0; |
| 17401 | ; |
| 17402 | return 0; |
| 17403 | } |
| 17404 | _ACEOF |
| 17405 | rm -f conftest.$ac_objext |
| 17406 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17407 | (eval $ac_compile) 2>&5 |
| 17408 | ac_status=$? |
| 17409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17410 | (exit $ac_status); } && |
| 17411 | { ac_try='test -s conftest.$ac_objext' |
| 17412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17413 | (eval $ac_try) 2>&5 |
| 17414 | ac_status=$? |
| 17415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17416 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 17417 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17418 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17419 | echo "$as_me: failed program was:" >&5 |
| 17420 | cat conftest.$ac_ext >&5 |
| 17421 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17422 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17423 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17424 | fi |
| 17425 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 17426 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 17427 | if test $ac_cv_type_socklen_t = yes; then |
| 17428 | : |
| 17429 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17430 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 17431 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17432 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17433 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17434 | |
| 17435 | fi |
| 17436 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17437 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17438 | |
| 17439 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 17440 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 17441 | do |
| 17442 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 17443 | done |
| 17444 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17445 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 17446 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17447 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 17448 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 17449 | for dir in $SRCDIRS; do |
| 17450 | if test ! -d $dir; then |
| 17451 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 17452 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 17453 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17454 | echo "$as_me:$LINENO: result: done" >&5 |
| 17455 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 17456 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17457 | # generate output files |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17458 | 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] | 17459 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17460 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17461 | # This file is a shell script that caches the results of configure |
| 17462 | # 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] | 17463 | # scripts and configure runs, see configure's option --config-cache. |
| 17464 | # It is not useful on other systems. If it contains results you don't |
| 17465 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17466 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17467 | # config.status only pays attention to the cache file if you give it |
| 17468 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17469 | # |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17470 | # `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] | 17471 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 17472 | # following values. |
| 17473 | |
| 17474 | _ACEOF |
| 17475 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17476 | # The following way of writing the cache mishandles newlines in values, |
| 17477 | # but we know of no workaround that is simple, portable, and efficient. |
| 17478 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17479 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 17480 | # 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] | 17481 | { |
| 17482 | (set) 2>&1 | |
| 17483 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 17484 | *ac_space=\ *) |
| 17485 | # `set' does not quote correctly, so add quotes (double-quote |
| 17486 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 17487 | sed -n \ |
| 17488 | "s/'/'\\\\''/g; |
| 17489 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 17490 | ;; |
| 17491 | *) |
| 17492 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 17493 | sed -n \ |
| 17494 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 17495 | ;; |
| 17496 | esac; |
| 17497 | } | |
| 17498 | sed ' |
| 17499 | t clear |
| 17500 | : clear |
| 17501 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 17502 | t end |
| 17503 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 17504 | : end' >>confcache |
| 17505 | if cmp -s $cache_file confcache; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17506 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17507 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 17508 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17509 | else |
| 17510 | echo "not updating unwritable cache $cache_file" |
| 17511 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17512 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17513 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 17514 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17515 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 17516 | # Let make expand exec_prefix. |
| 17517 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 17518 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17519 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 17520 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 17521 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 17522 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17523 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17524 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 17525 | s/:*\$(srcdir):*/:/; |
| 17526 | s/:*\${srcdir}:*/:/; |
| 17527 | s/:*@srcdir@:*/:/; |
| 17528 | s/^\([^=]*=[ ]*\):*/\1/; |
| 17529 | s/:*$//; |
| 17530 | s/^[^=]*=[ ]*$//; |
| 17531 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17532 | fi |
| 17533 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17534 | DEFS=-DHAVE_CONFIG_H |
| 17535 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17536 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17537 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17538 | ac_clean_files_save=$ac_clean_files |
| 17539 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 17540 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 17541 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 17542 | cat >$CONFIG_STATUS <<_ACEOF |
| 17543 | #! $SHELL |
| 17544 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17545 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17546 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17547 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17548 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17549 | debug=false |
| 17550 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 17551 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17552 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17553 | cat >>$CONFIG_STATUS <<\_ACEOF |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17554 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17555 | ## --------------------- ## |
| 17556 | ## M4sh Initialization. ## |
| 17557 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17558 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17559 | # Be Bourne compatible |
| 17560 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 17561 | emulate sh |
| 17562 | NULLCMD=: |
| 17563 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 17564 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17565 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17566 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17567 | # NLS nuisances. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17568 | # Support unset when possible. |
| 17569 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 17570 | as_unset=unset |
| 17571 | else |
| 17572 | as_unset=false |
| 17573 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17574 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17575 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 17576 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 17577 | { LANG=C; export LANG; } |
| 17578 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 17579 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 17580 | { LC_ALL=C; export LC_ALL; } |
| 17581 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 17582 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 17583 | { LC_TIME=C; export LC_TIME; } |
| 17584 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 17585 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 17586 | { LC_CTYPE=C; export LC_CTYPE; } |
| 17587 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 17588 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 17589 | { LANGUAGE=C; export LANGUAGE; } |
| 17590 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 17591 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 17592 | { LC_COLLATE=C; export LC_COLLATE; } |
| 17593 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 17594 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 17595 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 17596 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 17597 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 17598 | { LC_MESSAGES=C; export LC_MESSAGES; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17599 | |
| 17600 | |
| 17601 | # Name of the executable. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17602 | as_me=`(basename "$0") 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17603 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 17604 | X"$0" : 'X\(//\)$' \| \ |
| 17605 | X"$0" : 'X\(/\)$' \| \ |
| 17606 | . : '\(.\)' 2>/dev/null || |
| 17607 | echo X/"$0" | |
| 17608 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 17609 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 17610 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 17611 | s/.*/./; q'` |
| 17612 | |
| 17613 | # PATH needs CR, and LINENO needs CR and PATH. |
| 17614 | # Avoid depending upon Character Ranges. |
| 17615 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 17616 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 17617 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 17618 | as_cr_digits='0123456789' |
| 17619 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 17620 | |
| 17621 | # The user is always right. |
| 17622 | if test "${PATH_SEPARATOR+set}" != set; then |
| 17623 | echo "#! /bin/sh" >conftest.sh |
| 17624 | echo "exit 0" >>conftest.sh |
| 17625 | chmod +x conftest.sh |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17626 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17627 | PATH_SEPARATOR=';' |
| 17628 | else |
| 17629 | PATH_SEPARATOR=: |
| 17630 | fi |
| 17631 | rm -f conftest.sh |
| 17632 | fi |
| 17633 | |
| 17634 | |
| 17635 | as_lineno_1=$LINENO |
| 17636 | as_lineno_2=$LINENO |
| 17637 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 17638 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 17639 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 17640 | # Find who we are. Look in the path if we contain no path at all |
| 17641 | # relative or not. |
| 17642 | case $0 in |
| 17643 | *[\\/]* ) as_myself=$0 ;; |
| 17644 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17645 | for as_dir in $PATH |
| 17646 | do |
| 17647 | IFS=$as_save_IFS |
| 17648 | test -z "$as_dir" && as_dir=. |
| 17649 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 17650 | done |
| 17651 | |
| 17652 | ;; |
| 17653 | esac |
| 17654 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 17655 | # in which case we are not to be found in the path. |
| 17656 | if test "x$as_myself" = x; then |
| 17657 | as_myself=$0 |
| 17658 | fi |
| 17659 | if test ! -f "$as_myself"; then |
| 17660 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 17661 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 17662 | { (exit 1); exit 1; }; } |
| 17663 | fi |
| 17664 | case $CONFIG_SHELL in |
| 17665 | '') |
| 17666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17667 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 17668 | do |
| 17669 | IFS=$as_save_IFS |
| 17670 | test -z "$as_dir" && as_dir=. |
| 17671 | for as_base in sh bash ksh sh5; do |
| 17672 | case $as_dir in |
| 17673 | /*) |
| 17674 | if ("$as_dir/$as_base" -c ' |
| 17675 | as_lineno_1=$LINENO |
| 17676 | as_lineno_2=$LINENO |
| 17677 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 17678 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 17679 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 17680 | CONFIG_SHELL=$as_dir/$as_base |
| 17681 | export CONFIG_SHELL |
| 17682 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 17683 | fi;; |
| 17684 | esac |
| 17685 | done |
| 17686 | done |
| 17687 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17688 | esac |
| 17689 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17690 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 17691 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 17692 | # line-number line before each line; the second 'sed' does the real |
| 17693 | # work. The second script uses 'N' to pair each line-number line |
| 17694 | # with the numbered line, and appends trailing '-' during |
| 17695 | # substitution so that $LINENO is not a special case at line end. |
| 17696 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 17697 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 17698 | sed '=' <$as_myself | |
| 17699 | sed ' |
| 17700 | N |
| 17701 | s,$,-, |
| 17702 | : loop |
| 17703 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 17704 | t loop |
| 17705 | s,-$,, |
| 17706 | s,^['$as_cr_digits']*\n,, |
| 17707 | ' >$as_me.lineno && |
| 17708 | chmod +x $as_me.lineno || |
| 17709 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 17710 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 17711 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17712 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17713 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 17714 | # (the dirname of $[0] is not the place where we might find the |
| 17715 | # original and so on. Autoconf is especially sensible to this). |
| 17716 | . ./$as_me.lineno |
| 17717 | # Exit status is that of the last command. |
| 17718 | exit |
| 17719 | } |
| 17720 | |
| 17721 | |
| 17722 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 17723 | *c*,-n*) ECHO_N= ECHO_C=' |
| 17724 | ' ECHO_T=' ' ;; |
| 17725 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 17726 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 17727 | esac |
| 17728 | |
| 17729 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 17730 | as_expr=expr |
| 17731 | else |
| 17732 | as_expr=false |
| 17733 | fi |
| 17734 | |
| 17735 | rm -f conf$$ conf$$.exe conf$$.file |
| 17736 | echo >conf$$.file |
| 17737 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 17738 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 17739 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 17740 | if test -f conf$$.exe; then |
| 17741 | # Don't use ln at all; we don't have any links |
| 17742 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17743 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17744 | as_ln_s='ln -s' |
| 17745 | fi |
| 17746 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 17747 | as_ln_s=ln |
| 17748 | else |
| 17749 | as_ln_s='cp -p' |
| 17750 | fi |
| 17751 | rm -f conf$$ conf$$.exe conf$$.file |
| 17752 | |
| 17753 | as_executable_p="test -f" |
| 17754 | |
| 17755 | # Sed expression to map a string onto a valid CPP name. |
| 17756 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 17757 | |
| 17758 | # Sed expression to map a string onto a valid variable name. |
| 17759 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 17760 | |
| 17761 | |
| 17762 | # IFS |
| 17763 | # We need space, tab and new line, in precisely that order. |
| 17764 | as_nl=' |
| 17765 | ' |
| 17766 | IFS=" $as_nl" |
| 17767 | |
| 17768 | # CDPATH. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17769 | $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] | 17770 | |
| 17771 | exec 6>&1 |
| 17772 | |
| 17773 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 17774 | # report actual input values of CONFIG_FILES etc. instead of their |
| 17775 | # values after options handling. Logging --version etc. is OK. |
| 17776 | exec 5>>config.log |
| 17777 | { |
| 17778 | echo |
| 17779 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 17780 | ## Running $as_me. ## |
| 17781 | _ASBOX |
| 17782 | } >&5 |
| 17783 | cat >&5 <<_CSEOF |
| 17784 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 17785 | This file was extended by python $as_me 2.3, which was |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17786 | generated by GNU Autoconf 2.53. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17787 | |
| 17788 | CONFIG_FILES = $CONFIG_FILES |
| 17789 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 17790 | CONFIG_LINKS = $CONFIG_LINKS |
| 17791 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 17792 | $ $0 $@ |
| 17793 | |
| 17794 | _CSEOF |
| 17795 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 17796 | echo >&5 |
| 17797 | _ACEOF |
| 17798 | |
| 17799 | # Files that config.status was made for. |
| 17800 | if test -n "$ac_config_files"; then |
| 17801 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 17802 | fi |
| 17803 | |
| 17804 | if test -n "$ac_config_headers"; then |
| 17805 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 17806 | fi |
| 17807 | |
| 17808 | if test -n "$ac_config_links"; then |
| 17809 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 17810 | fi |
| 17811 | |
| 17812 | if test -n "$ac_config_commands"; then |
| 17813 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 17814 | fi |
| 17815 | |
| 17816 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17817 | |
| 17818 | ac_cs_usage="\ |
| 17819 | \`$as_me' instantiates files from templates according to the |
| 17820 | current configuration. |
| 17821 | |
| 17822 | Usage: $0 [OPTIONS] [FILE]... |
| 17823 | |
| 17824 | -h, --help print this help, then exit |
| 17825 | -V, --version print version number, then exit |
| 17826 | -d, --debug don't remove temporary files |
| 17827 | --recheck update $as_me by reconfiguring in the same conditions |
| 17828 | --file=FILE[:TEMPLATE] |
| 17829 | instantiate the configuration file FILE |
| 17830 | --header=FILE[:TEMPLATE] |
| 17831 | instantiate the configuration header FILE |
| 17832 | |
| 17833 | Configuration files: |
| 17834 | $config_files |
| 17835 | |
| 17836 | Configuration headers: |
| 17837 | $config_headers |
| 17838 | |
| 17839 | Report bugs to <bug-autoconf@gnu.org>." |
| 17840 | _ACEOF |
| 17841 | |
| 17842 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17843 | ac_cs_version="\\ |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 17844 | python config.status 2.3 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17845 | configured by $0, generated by GNU Autoconf 2.53, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17846 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 17847 | |
| 17848 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 17849 | Free Software Foundation, Inc. |
| 17850 | This config.status script is free software; the Free Software Foundation |
| 17851 | gives unlimited permission to copy, distribute and modify it." |
| 17852 | srcdir=$srcdir |
| 17853 | INSTALL="$INSTALL" |
| 17854 | _ACEOF |
| 17855 | |
| 17856 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17857 | # If no file are specified by the user, then we need to provide default |
| 17858 | # value. By we need to know if files were specified by the user. |
| 17859 | ac_need_defaults=: |
| 17860 | while test $# != 0 |
| 17861 | do |
| 17862 | case $1 in |
| 17863 | --*=*) |
| 17864 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 17865 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17866 | shift |
| 17867 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 17868 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17869 | ;; |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17870 | -*);; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17871 | *) # This is not an option, so the user has probably given explicit |
| 17872 | # arguments. |
| 17873 | ac_need_defaults=false;; |
| 17874 | esac |
| 17875 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17876 | case $1 in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17877 | # Handling of the options. |
| 17878 | _ACEOF |
| 17879 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17880 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 17881 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 17882 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 17883 | _ACEOF |
| 17884 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17885 | --version | --vers* | -V ) |
| 17886 | echo "$ac_cs_version"; exit 0 ;; |
| 17887 | --he | --h) |
| 17888 | # Conflict between --help and --header |
| 17889 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 17890 | Try \`$0 --help' for more information." >&5 |
| 17891 | echo "$as_me: error: ambiguous option: $1 |
| 17892 | Try \`$0 --help' for more information." >&2;} |
| 17893 | { (exit 1); exit 1; }; };; |
| 17894 | --help | --hel | -h ) |
| 17895 | echo "$ac_cs_usage"; exit 0 ;; |
| 17896 | --debug | --d* | -d ) |
| 17897 | debug=: ;; |
| 17898 | --file | --fil | --fi | --f ) |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17899 | shift |
| 17900 | CONFIG_FILES="$CONFIG_FILES $1" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17901 | ac_need_defaults=false;; |
| 17902 | --header | --heade | --head | --hea ) |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17903 | shift |
| 17904 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17905 | ac_need_defaults=false;; |
| 17906 | |
| 17907 | # This is an error. |
| 17908 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 17909 | Try \`$0 --help' for more information." >&5 |
| 17910 | echo "$as_me: error: unrecognized option: $1 |
| 17911 | Try \`$0 --help' for more information." >&2;} |
| 17912 | { (exit 1); exit 1; }; } ;; |
| 17913 | |
| 17914 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 17915 | |
| 17916 | esac |
| 17917 | shift |
| 17918 | done |
| 17919 | |
| 17920 | _ACEOF |
| 17921 | |
| 17922 | |
| 17923 | |
| 17924 | |
| 17925 | |
| 17926 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17927 | for ac_config_target in $ac_config_targets |
| 17928 | do |
| 17929 | case "$ac_config_target" in |
| 17930 | # Handling of arguments. |
| 17931 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 17932 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 17933 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 17934 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 17935 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 17936 | { (exit 1); exit 1; }; };; |
| 17937 | esac |
| 17938 | done |
| 17939 | |
| 17940 | # If the user did not use the arguments to specify the items to instantiate, |
| 17941 | # then the envvar interface is used. Set only those that are not. |
| 17942 | # We use the long form for the default assignment because of an extremely |
| 17943 | # bizarre bug on SunOS 4.1.3. |
| 17944 | if $ac_need_defaults; then |
| 17945 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 17946 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 17947 | fi |
| 17948 | |
| 17949 | # Create a temporary directory, and hook for its removal unless debugging. |
| 17950 | $debug || |
| 17951 | { |
| 17952 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 17953 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 17954 | } |
| 17955 | |
| 17956 | # Create a (secure) tmp directory for tmp files. |
| 17957 | : ${TMPDIR=/tmp} |
| 17958 | { |
| 17959 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 17960 | test -n "$tmp" && test -d "$tmp" |
| 17961 | } || |
| 17962 | { |
| 17963 | tmp=$TMPDIR/cs$$-$RANDOM |
| 17964 | (umask 077 && mkdir $tmp) |
| 17965 | } || |
| 17966 | { |
| 17967 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 17968 | { (exit 1); exit 1; } |
| 17969 | } |
| 17970 | |
| 17971 | _ACEOF |
| 17972 | |
| 17973 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17974 | |
| 17975 | # |
| 17976 | # CONFIG_FILES section. |
| 17977 | # |
| 17978 | |
| 17979 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 17980 | # This happens for instance when ./config.status config.h |
| 17981 | if test -n "\$CONFIG_FILES"; then |
| 17982 | # Protect against being on the right side of a sed subst in config.status. |
| 17983 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 17984 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 17985 | s,@SHELL@,$SHELL,;t t |
| 17986 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 17987 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 17988 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 17989 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 17990 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 17991 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 17992 | s,@exec_prefix@,$exec_prefix,;t t |
| 17993 | s,@prefix@,$prefix,;t t |
| 17994 | s,@program_transform_name@,$program_transform_name,;t t |
| 17995 | s,@bindir@,$bindir,;t t |
| 17996 | s,@sbindir@,$sbindir,;t t |
| 17997 | s,@libexecdir@,$libexecdir,;t t |
| 17998 | s,@datadir@,$datadir,;t t |
| 17999 | s,@sysconfdir@,$sysconfdir,;t t |
| 18000 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 18001 | s,@localstatedir@,$localstatedir,;t t |
| 18002 | s,@libdir@,$libdir,;t t |
| 18003 | s,@includedir@,$includedir,;t t |
| 18004 | s,@oldincludedir@,$oldincludedir,;t t |
| 18005 | s,@infodir@,$infodir,;t t |
| 18006 | s,@mandir@,$mandir,;t t |
| 18007 | s,@build_alias@,$build_alias,;t t |
| 18008 | s,@host_alias@,$host_alias,;t t |
| 18009 | s,@target_alias@,$target_alias,;t t |
| 18010 | s,@DEFS@,$DEFS,;t t |
| 18011 | s,@ECHO_C@,$ECHO_C,;t t |
| 18012 | s,@ECHO_N@,$ECHO_N,;t t |
| 18013 | s,@ECHO_T@,$ECHO_T,;t t |
| 18014 | s,@LIBS@,$LIBS,;t t |
| 18015 | s,@VERSION@,$VERSION,;t t |
| 18016 | s,@SOVERSION@,$SOVERSION,;t t |
| 18017 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 18018 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 18019 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 18020 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 18021 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 18022 | s,@MACHDEP@,$MACHDEP,;t t |
| 18023 | s,@SGI_ABI@,$SGI_ABI,;t t |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 18024 | s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 18025 | s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18026 | s,@CXX@,$CXX,;t t |
| 18027 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 18028 | s,@EXEEXT@,$EXEEXT,;t t |
| 18029 | s,@CC@,$CC,;t t |
| 18030 | s,@CFLAGS@,$CFLAGS,;t t |
| 18031 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 18032 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 18033 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 18034 | s,@OBJEXT@,$OBJEXT,;t t |
| 18035 | s,@CPP@,$CPP,;t t |
| 18036 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 18037 | s,@LIBRARY@,$LIBRARY,;t t |
| 18038 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 18039 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 18040 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 18041 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 18042 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 18043 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 18044 | s,@LINKCC@,$LINKCC,;t t |
| 18045 | s,@RANLIB@,$RANLIB,;t t |
| 18046 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 18047 | s,@AR@,$AR,;t t |
| 18048 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 18049 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 18050 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 18051 | s,@LN@,$LN,;t t |
| 18052 | s,@OPT@,$OPT,;t t |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 18053 | s,@BASECFLAGS@,$BASECFLAGS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18054 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 18055 | s,@SO@,$SO,;t t |
| 18056 | s,@LDSHARED@,$LDSHARED,;t t |
| 18057 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 18058 | s,@CCSHARED@,$CCSHARED,;t t |
| 18059 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 18060 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 18061 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18062 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 18063 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 18064 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 18065 | s,@LDLAST@,$LDLAST,;t t |
| 18066 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 18067 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 18068 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 18069 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
| 18070 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 18071 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 18072 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 18073 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 18074 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 18075 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 18076 | s,@LIBM@,$LIBM,;t t |
| 18077 | s,@LIBC@,$LIBC,;t t |
| 18078 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 18079 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 18080 | s,@SRCDIRS@,$SRCDIRS,;t t |
| 18081 | CEOF |
| 18082 | |
| 18083 | _ACEOF |
| 18084 | |
| 18085 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18086 | # Split the substitutions into bite-sized pieces for seds with |
| 18087 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 18088 | ac_max_sed_lines=48 |
| 18089 | ac_sed_frag=1 # Number of current file. |
| 18090 | ac_beg=1 # First line for current file. |
| 18091 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 18092 | ac_more_lines=: |
| 18093 | ac_sed_cmds= |
| 18094 | while $ac_more_lines; do |
| 18095 | if test $ac_beg -gt 1; then |
| 18096 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 18097 | else |
| 18098 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 18099 | fi |
| 18100 | if test ! -s $tmp/subs.frag; then |
| 18101 | ac_more_lines=false |
| 18102 | else |
| 18103 | # The purpose of the label and of the branching condition is to |
| 18104 | # speed up the sed processing (if there are no `@' at all, there |
| 18105 | # is no need to browse any of the substitutions). |
| 18106 | # These are the two extra sed commands mentioned above. |
| 18107 | (echo ':t |
| 18108 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 18109 | if test -z "$ac_sed_cmds"; then |
| 18110 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 18111 | else |
| 18112 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 18113 | fi |
| 18114 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 18115 | ac_beg=$ac_end |
| 18116 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 18117 | fi |
| 18118 | done |
| 18119 | if test -z "$ac_sed_cmds"; then |
| 18120 | ac_sed_cmds=cat |
| 18121 | fi |
| 18122 | fi # test -n "$CONFIG_FILES" |
| 18123 | |
| 18124 | _ACEOF |
| 18125 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18126 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 18127 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 18128 | case $ac_file in |
| 18129 | - | *:- | *:-:* ) # input from stdin |
| 18130 | cat >$tmp/stdin |
| 18131 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 18132 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 18133 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 18134 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 18135 | * ) ac_file_in=$ac_file.in ;; |
| 18136 | esac |
| 18137 | |
| 18138 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 18139 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 18140 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18141 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 18142 | X"$ac_file" : 'X\(//\)$' \| \ |
| 18143 | X"$ac_file" : 'X\(/\)' \| \ |
| 18144 | . : '\(.\)' 2>/dev/null || |
| 18145 | echo X"$ac_file" | |
| 18146 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 18147 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 18148 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 18149 | /^X\(\/\).*/{ s//\1/; q; } |
| 18150 | s/.*/./; q'` |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 18151 | { case "$ac_dir" in |
| 18152 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 18153 | *) as_incr_dir=.;; |
| 18154 | esac |
| 18155 | as_dummy="$ac_dir" |
| 18156 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 18157 | case $as_mkdir_dir in |
| 18158 | # Skip DOS drivespec |
| 18159 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 18160 | *) |
| 18161 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 18162 | test -d "$as_incr_dir" || |
| 18163 | mkdir "$as_incr_dir" || |
| 18164 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 18165 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 18166 | { (exit 1); exit 1; }; } |
| 18167 | ;; |
| 18168 | esac |
| 18169 | done; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18170 | |
| 18171 | ac_builddir=. |
| 18172 | |
| 18173 | if test "$ac_dir" != .; then |
| 18174 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 18175 | # A "../" for each directory in $ac_dir_suffix. |
| 18176 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 18177 | else |
| 18178 | ac_dir_suffix= ac_top_builddir= |
| 18179 | fi |
| 18180 | |
| 18181 | case $srcdir in |
| 18182 | .) # No --srcdir option. We are building in place. |
| 18183 | ac_srcdir=. |
| 18184 | if test -z "$ac_top_builddir"; then |
| 18185 | ac_top_srcdir=. |
| 18186 | else |
| 18187 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 18188 | fi ;; |
| 18189 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 18190 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 18191 | ac_top_srcdir=$srcdir ;; |
| 18192 | *) # Relative path. |
| 18193 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 18194 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 18195 | esac |
| 18196 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 18197 | # absolute. |
| 18198 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 18199 | 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] | 18200 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 18201 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 18202 | |
| 18203 | |
| 18204 | case $INSTALL in |
| 18205 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 18206 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 18207 | esac |
| 18208 | |
| 18209 | if test x"$ac_file" != x-; then |
| 18210 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 18211 | echo "$as_me: creating $ac_file" >&6;} |
| 18212 | rm -f "$ac_file" |
| 18213 | fi |
| 18214 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 18215 | # use $as_me), people would be surprised to read: |
| 18216 | # /* config.h. Generated by config.status. */ |
| 18217 | if test x"$ac_file" = x-; then |
| 18218 | configure_input= |
| 18219 | else |
| 18220 | configure_input="$ac_file. " |
| 18221 | fi |
| 18222 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 18223 | sed 's,.*/,,'` by configure." |
| 18224 | |
| 18225 | # First look for the input files in the build tree, otherwise in the |
| 18226 | # src tree. |
| 18227 | ac_file_inputs=`IFS=: |
| 18228 | for f in $ac_file_in; do |
| 18229 | case $f in |
| 18230 | -) echo $tmp/stdin ;; |
| 18231 | [\\/$]*) |
| 18232 | # Absolute (can't be DOS-style, as IFS=:) |
| 18233 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 18234 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 18235 | { (exit 1); exit 1; }; } |
| 18236 | echo $f;; |
| 18237 | *) # Relative |
| 18238 | if test -f "$f"; then |
| 18239 | # Build tree |
| 18240 | echo $f |
| 18241 | elif test -f "$srcdir/$f"; then |
| 18242 | # Source tree |
| 18243 | echo $srcdir/$f |
| 18244 | else |
| 18245 | # /dev/null tree |
| 18246 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 18247 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 18248 | { (exit 1); exit 1; }; } |
| 18249 | fi;; |
| 18250 | esac |
| 18251 | done` || { (exit 1); exit 1; } |
| 18252 | _ACEOF |
| 18253 | cat >>$CONFIG_STATUS <<_ACEOF |
| 18254 | sed "$ac_vpsub |
| 18255 | $extrasub |
| 18256 | _ACEOF |
| 18257 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18258 | :t |
| 18259 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 18260 | s,@configure_input@,$configure_input,;t t |
| 18261 | s,@srcdir@,$ac_srcdir,;t t |
| 18262 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 18263 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 18264 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 18265 | s,@builddir@,$ac_builddir,;t t |
| 18266 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 18267 | s,@top_builddir@,$ac_top_builddir,;t t |
| 18268 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 18269 | s,@INSTALL@,$ac_INSTALL,;t t |
| 18270 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 18271 | rm -f $tmp/stdin |
| 18272 | if test x"$ac_file" != x-; then |
| 18273 | mv $tmp/out $ac_file |
| 18274 | else |
| 18275 | cat $tmp/out |
| 18276 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18277 | fi |
| 18278 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18279 | done |
| 18280 | _ACEOF |
| 18281 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18282 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18283 | # |
| 18284 | # CONFIG_HEADER section. |
| 18285 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18286 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18287 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 18288 | # 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] | 18289 | # |
| 18290 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18291 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 18292 | ac_dB='[ ].*$,\1#\2' |
| 18293 | ac_dC=' ' |
| 18294 | ac_dD=',;t' |
| 18295 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 18296 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 18297 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18298 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18299 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18300 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18301 | 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] | 18302 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18303 | case $ac_file in |
| 18304 | - | *:- | *:-:* ) # input from stdin |
| 18305 | cat >$tmp/stdin |
| 18306 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 18307 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 18308 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 18309 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 18310 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18311 | esac |
| 18312 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18313 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 18314 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18315 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18316 | # First look for the input files in the build tree, otherwise in the |
| 18317 | # src tree. |
| 18318 | ac_file_inputs=`IFS=: |
| 18319 | for f in $ac_file_in; do |
| 18320 | case $f in |
| 18321 | -) echo $tmp/stdin ;; |
| 18322 | [\\/$]*) |
| 18323 | # Absolute (can't be DOS-style, as IFS=:) |
| 18324 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 18325 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 18326 | { (exit 1); exit 1; }; } |
| 18327 | echo $f;; |
| 18328 | *) # Relative |
| 18329 | if test -f "$f"; then |
| 18330 | # Build tree |
| 18331 | echo $f |
| 18332 | elif test -f "$srcdir/$f"; then |
| 18333 | # Source tree |
| 18334 | echo $srcdir/$f |
| 18335 | else |
| 18336 | # /dev/null tree |
| 18337 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 18338 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 18339 | { (exit 1); exit 1; }; } |
| 18340 | fi;; |
| 18341 | esac |
| 18342 | done` || { (exit 1); exit 1; } |
| 18343 | # Remove the trailing spaces. |
| 18344 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18345 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18346 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18347 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18348 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 18349 | # `conftest.undefs', that substitutes the proper values into |
| 18350 | # config.h.in to produce config.h. The first handles `#define' |
| 18351 | # templates, and the second `#undef' templates. |
| 18352 | # And first: Protect against being on the right side of a sed subst in |
| 18353 | # config.status. Protect against being in an unquoted here document |
| 18354 | # in config.status. |
| 18355 | rm -f conftest.defines conftest.undefs |
| 18356 | # Using a here document instead of a string reduces the quoting nightmare. |
| 18357 | # Putting comments in sed scripts is not portable. |
| 18358 | # |
| 18359 | # `end' is used to avoid that the second main sed command (meant for |
| 18360 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 18361 | # See the Autoconf documentation for `clear'. |
| 18362 | cat >confdef2sed.sed <<\_ACEOF |
| 18363 | s/[\\&,]/\\&/g |
| 18364 | s,[\\$`],\\&,g |
| 18365 | t clear |
| 18366 | : clear |
| 18367 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 18368 | t end |
| 18369 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 18370 | : end |
| 18371 | _ACEOF |
| 18372 | # If some macros were called several times there might be several times |
| 18373 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 18374 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 18375 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 18376 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 18377 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18378 | |
| 18379 | # This sed command replaces #undef with comments. This is necessary, for |
| 18380 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 18381 | # 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] | 18382 | cat >>conftest.undefs <<\_ACEOF |
| 18383 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 18384 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18385 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18386 | # Break up conftest.defines because some shells have a limit on the size |
| 18387 | # of here documents, and old seds have small limits too (100 cmds). |
| 18388 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 18389 | 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] | 18390 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 18391 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18392 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18393 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18394 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18395 | # Write a limited-size here document to $tmp/defines.sed. |
| 18396 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 18397 | # Speed up: don't consider the non `#define' lines. |
| 18398 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 18399 | # Work around the forget-to-reset-the-flag bug. |
| 18400 | echo 't clr' >>$CONFIG_STATUS |
| 18401 | echo ': clr' >>$CONFIG_STATUS |
| 18402 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18403 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18404 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 18405 | rm -f $tmp/in |
| 18406 | mv $tmp/out $tmp/in |
| 18407 | ' >>$CONFIG_STATUS |
| 18408 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 18409 | rm -f conftest.defines |
| 18410 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18411 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18412 | rm -f conftest.defines |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 18413 | echo ' fi # egrep' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18414 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18415 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18416 | # Break up conftest.undefs because some shells have a limit on the size |
| 18417 | # of here documents, and old seds have small limits too (100 cmds). |
| 18418 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 18419 | rm -f conftest.tail |
| 18420 | while grep . conftest.undefs >/dev/null |
| 18421 | do |
| 18422 | # Write a limited-size here document to $tmp/undefs.sed. |
| 18423 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 18424 | # Speed up: don't consider the non `#undef' |
| 18425 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 18426 | # Work around the forget-to-reset-the-flag bug. |
| 18427 | echo 't clr' >>$CONFIG_STATUS |
| 18428 | echo ': clr' >>$CONFIG_STATUS |
| 18429 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 18430 | echo 'CEOF |
| 18431 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 18432 | rm -f $tmp/in |
| 18433 | mv $tmp/out $tmp/in |
| 18434 | ' >>$CONFIG_STATUS |
| 18435 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 18436 | rm -f conftest.undefs |
| 18437 | mv conftest.tail conftest.undefs |
| 18438 | done |
| 18439 | rm -f conftest.undefs |
| 18440 | |
| 18441 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18442 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 18443 | # use $as_me), people would be surprised to read: |
| 18444 | # /* config.h. Generated by config.status. */ |
| 18445 | if test x"$ac_file" = x-; then |
| 18446 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18447 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18448 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18449 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18450 | cat $tmp/in >>$tmp/config.h |
| 18451 | rm -f $tmp/in |
| 18452 | if test x"$ac_file" != x-; then |
| 18453 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 18454 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 18455 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 18456 | else |
| 18457 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 18458 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18459 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 18460 | X"$ac_file" : 'X\(//\)$' \| \ |
| 18461 | X"$ac_file" : 'X\(/\)' \| \ |
| 18462 | . : '\(.\)' 2>/dev/null || |
| 18463 | echo X"$ac_file" | |
| 18464 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 18465 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 18466 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 18467 | /^X\(\/\).*/{ s//\1/; q; } |
| 18468 | s/.*/./; q'` |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 18469 | { case "$ac_dir" in |
| 18470 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 18471 | *) as_incr_dir=.;; |
| 18472 | esac |
| 18473 | as_dummy="$ac_dir" |
| 18474 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 18475 | case $as_mkdir_dir in |
| 18476 | # Skip DOS drivespec |
| 18477 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 18478 | *) |
| 18479 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 18480 | test -d "$as_incr_dir" || |
| 18481 | mkdir "$as_incr_dir" || |
| 18482 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 18483 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 18484 | { (exit 1); exit 1; }; } |
| 18485 | ;; |
| 18486 | esac |
| 18487 | done; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18488 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18489 | rm -f $ac_file |
| 18490 | mv $tmp/config.h $ac_file |
| 18491 | fi |
| 18492 | else |
| 18493 | cat $tmp/config.h |
| 18494 | rm -f $tmp/config.h |
| 18495 | fi |
| 18496 | done |
| 18497 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18498 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18499 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18500 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18501 | { (exit 0); exit 0; } |
| 18502 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18503 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18504 | ac_clean_files=$ac_clean_files_save |
| 18505 | |
| 18506 | |
| 18507 | # configure is writing to config.log, and then calls config.status. |
| 18508 | # config.status does its own redirection, appending to config.log. |
| 18509 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 18510 | # by configure, so config.status won't be able to write to it; its |
| 18511 | # output is simply discarded. So we exec the FD to /dev/null, |
| 18512 | # effectively closing config.log, so it can be properly (re)opened and |
| 18513 | # appended to by config.status. When coming back to configure, we |
| 18514 | # need to make the FD available again. |
| 18515 | if test "$no_create" != yes; then |
| 18516 | ac_cs_success=: |
| 18517 | exec 5>/dev/null |
| 18518 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 18519 | exec 5>>config.log |
| 18520 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 18521 | # would make configure fail if this is the last instruction. |
| 18522 | $ac_cs_success || { (exit 1); exit 1; } |
| 18523 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18524 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 18525 | |
| 18526 | echo "creating Setup" |
| 18527 | if test ! -f Modules/Setup |
| 18528 | then |
| 18529 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 18530 | fi |
| 18531 | |
| 18532 | echo "creating Setup.local" |
| 18533 | if test ! -f Modules/Setup.local |
| 18534 | then |
| 18535 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 18536 | fi |
| 18537 | |
| 18538 | echo "creating Makefile" |
| 18539 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 18540 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 18541 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 18542 | mv config.c Modules |