Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 1.436 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.57 for python 2.4. |
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. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10 | ## --------------------- ## |
| 11 | ## M4sh Initialization. ## |
| 12 | ## --------------------- ## |
| 13 | |
| 14 | # Be Bourne compatible |
| 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16 | emulate sh |
| 17 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 19 | # is contrary to our usage. Disable this feature. |
| 20 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 22 | set -o posix |
| 23 | fi |
| 24 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25 | # Support unset when possible. |
| 26 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 27 | as_unset=unset |
| 28 | else |
| 29 | as_unset=false |
| 30 | fi |
| 31 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 32 | |
| 33 | # Work around bugs in pre-3.0 UWIN ksh. |
| 34 | $as_unset ENV MAIL MAILPATH |
| 35 | PS1='$ ' |
| 36 | PS2='> ' |
| 37 | PS4='+ ' |
| 38 | |
| 39 | # NLS nuisances. |
| 40 | for as_var in \ |
| 41 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 42 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 43 | LC_TELEPHONE LC_TIME |
| 44 | do |
| 45 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 46 | eval $as_var=C; export $as_var |
| 47 | else |
| 48 | $as_unset $as_var |
| 49 | fi |
| 50 | done |
| 51 | |
| 52 | # Required to use basename. |
| 53 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 54 | as_expr=expr |
| 55 | else |
| 56 | as_expr=false |
| 57 | fi |
| 58 | |
| 59 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 60 | as_basename=basename |
| 61 | else |
| 62 | as_basename=false |
| 63 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 64 | |
| 65 | |
| 66 | # Name of the executable. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 67 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 68 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 69 | X"$0" : 'X\(//\)$' \| \ |
| 70 | X"$0" : 'X\(/\)$' \| \ |
| 71 | . : '\(.\)' 2>/dev/null || |
| 72 | echo X/"$0" | |
| 73 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 74 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 75 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 76 | s/.*/./; q'` |
| 77 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 78 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 79 | # PATH needs CR, and LINENO needs CR and PATH. |
| 80 | # Avoid depending upon Character Ranges. |
| 81 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 82 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 83 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 84 | as_cr_digits='0123456789' |
| 85 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 86 | |
| 87 | # The user is always right. |
| 88 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 89 | echo "#! /bin/sh" >conf$$.sh |
| 90 | echo "exit 0" >>conf$$.sh |
| 91 | chmod +x conf$$.sh |
| 92 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 93 | PATH_SEPARATOR=';' |
| 94 | else |
| 95 | PATH_SEPARATOR=: |
| 96 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 97 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 98 | fi |
| 99 | |
| 100 | |
| 101 | as_lineno_1=$LINENO |
| 102 | as_lineno_2=$LINENO |
| 103 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 104 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 105 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 106 | # Find who we are. Look in the path if we contain no path at all |
| 107 | # relative or not. |
| 108 | case $0 in |
| 109 | *[\\/]* ) as_myself=$0 ;; |
| 110 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 111 | for as_dir in $PATH |
| 112 | do |
| 113 | IFS=$as_save_IFS |
| 114 | test -z "$as_dir" && as_dir=. |
| 115 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 116 | done |
| 117 | |
| 118 | ;; |
| 119 | esac |
| 120 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 121 | # in which case we are not to be found in the path. |
| 122 | if test "x$as_myself" = x; then |
| 123 | as_myself=$0 |
| 124 | fi |
| 125 | if test ! -f "$as_myself"; then |
| 126 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 127 | { (exit 1); exit 1; }; } |
| 128 | fi |
| 129 | case $CONFIG_SHELL in |
| 130 | '') |
| 131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 132 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 133 | do |
| 134 | IFS=$as_save_IFS |
| 135 | test -z "$as_dir" && as_dir=. |
| 136 | for as_base in sh bash ksh sh5; do |
| 137 | case $as_dir in |
| 138 | /*) |
| 139 | if ("$as_dir/$as_base" -c ' |
| 140 | as_lineno_1=$LINENO |
| 141 | as_lineno_2=$LINENO |
| 142 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 143 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 144 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 145 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 146 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 147 | CONFIG_SHELL=$as_dir/$as_base |
| 148 | export CONFIG_SHELL |
| 149 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 150 | fi;; |
| 151 | esac |
| 152 | done |
| 153 | done |
| 154 | ;; |
| 155 | esac |
| 156 | |
| 157 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 158 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 159 | # line-number line before each line; the second 'sed' does the real |
| 160 | # work. The second script uses 'N' to pair each line-number line |
| 161 | # with the numbered line, and appends trailing '-' during |
| 162 | # substitution so that $LINENO is not a special case at line end. |
| 163 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 164 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 165 | sed '=' <$as_myself | |
| 166 | sed ' |
| 167 | N |
| 168 | s,$,-, |
| 169 | : loop |
| 170 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 171 | t loop |
| 172 | s,-$,, |
| 173 | s,^['$as_cr_digits']*\n,, |
| 174 | ' >$as_me.lineno && |
| 175 | chmod +x $as_me.lineno || |
| 176 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 177 | { (exit 1); exit 1; }; } |
| 178 | |
| 179 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 180 | # (the dirname of $[0] is not the place where we might find the |
| 181 | # original and so on. Autoconf is especially sensible to this). |
| 182 | . ./$as_me.lineno |
| 183 | # Exit status is that of the last command. |
| 184 | exit |
| 185 | } |
| 186 | |
| 187 | |
| 188 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 189 | *c*,-n*) ECHO_N= ECHO_C=' |
| 190 | ' ECHO_T=' ' ;; |
| 191 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 192 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 193 | esac |
| 194 | |
| 195 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 196 | as_expr=expr |
| 197 | else |
| 198 | as_expr=false |
| 199 | fi |
| 200 | |
| 201 | rm -f conf$$ conf$$.exe conf$$.file |
| 202 | echo >conf$$.file |
| 203 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 204 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 205 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 206 | if test -f conf$$.exe; then |
| 207 | # Don't use ln at all; we don't have any links |
| 208 | as_ln_s='cp -p' |
| 209 | else |
| 210 | as_ln_s='ln -s' |
| 211 | fi |
| 212 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 213 | as_ln_s=ln |
| 214 | else |
| 215 | as_ln_s='cp -p' |
| 216 | fi |
| 217 | rm -f conf$$ conf$$.exe conf$$.file |
| 218 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 219 | if mkdir -p . 2>/dev/null; then |
| 220 | as_mkdir_p=: |
| 221 | else |
| 222 | as_mkdir_p=false |
| 223 | fi |
| 224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 225 | as_executable_p="test -f" |
| 226 | |
| 227 | # Sed expression to map a string onto a valid CPP name. |
| 228 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 229 | |
| 230 | # Sed expression to map a string onto a valid variable name. |
| 231 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 232 | |
| 233 | |
| 234 | # IFS |
| 235 | # We need space, tab and new line, in precisely that order. |
| 236 | as_nl=' |
| 237 | ' |
| 238 | IFS=" $as_nl" |
| 239 | |
| 240 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 241 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 242 | |
| 243 | |
| 244 | # Name of the host. |
| 245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 246 | # so uname gets run too. |
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 248 | |
| 249 | exec 6>&1 |
| 250 | |
| 251 | # |
| 252 | # Initializations. |
| 253 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 254 | ac_default_prefix=/usr/local |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 255 | ac_config_libobj_dir=. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 256 | cross_compiling=no |
| 257 | subdirs= |
| 258 | MFLAGS= |
| 259 | MAKEFLAGS= |
| 260 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 261 | |
| 262 | # Maximum number of lines to put in a shell here document. |
| 263 | # This variable seems obsolete. It should probably be removed, and |
| 264 | # only ac_max_sed_lines should be used. |
| 265 | : ${ac_max_here_lines=38} |
| 266 | |
| 267 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 268 | PACKAGE_NAME='python' |
| 269 | PACKAGE_TARNAME='python' |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 270 | PACKAGE_VERSION='2.4' |
| 271 | PACKAGE_STRING='python 2.4' |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 272 | PACKAGE_BUGREPORT='' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 273 | |
| 274 | ac_unique_file="Include/object.h" |
| 275 | # Factoring default headers for most tests. |
| 276 | ac_includes_default="\ |
| 277 | #include <stdio.h> |
| 278 | #if HAVE_SYS_TYPES_H |
| 279 | # include <sys/types.h> |
| 280 | #endif |
| 281 | #if HAVE_SYS_STAT_H |
| 282 | # include <sys/stat.h> |
| 283 | #endif |
| 284 | #if STDC_HEADERS |
| 285 | # include <stdlib.h> |
| 286 | # include <stddef.h> |
| 287 | #else |
| 288 | # if HAVE_STDLIB_H |
| 289 | # include <stdlib.h> |
| 290 | # endif |
| 291 | #endif |
| 292 | #if HAVE_STRING_H |
| 293 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 294 | # include <memory.h> |
| 295 | # endif |
| 296 | # include <string.h> |
| 297 | #endif |
| 298 | #if HAVE_STRINGS_H |
| 299 | # include <strings.h> |
| 300 | #endif |
| 301 | #if HAVE_INTTYPES_H |
| 302 | # include <inttypes.h> |
| 303 | #else |
| 304 | # if HAVE_STDINT_H |
| 305 | # include <stdint.h> |
| 306 | # endif |
| 307 | #endif |
| 308 | #if HAVE_UNISTD_H |
| 309 | # include <unistd.h> |
| 310 | #endif" |
| 311 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CXX MAINOBJ EXEEXT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS LIBTOOL_CRUFT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS' |
| 313 | ac_subst_files='' |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 314 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 315 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 316 | ac_init_help= |
| 317 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 318 | # The variables have the same names as the options, with |
| 319 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 320 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 321 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 322 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 323 | no_recursion= |
| 324 | prefix=NONE |
| 325 | program_prefix=NONE |
| 326 | program_suffix=NONE |
| 327 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 328 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 329 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 330 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 331 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 332 | x_includes=NONE |
| 333 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 334 | |
| 335 | # Installation directory options. |
| 336 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 337 | # and all the variables that are supposed to be based on exec_prefix |
| 338 | # by default will actually change. |
| 339 | # 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] | 340 | bindir='${exec_prefix}/bin' |
| 341 | sbindir='${exec_prefix}/sbin' |
| 342 | libexecdir='${exec_prefix}/libexec' |
| 343 | datadir='${prefix}/share' |
| 344 | sysconfdir='${prefix}/etc' |
| 345 | sharedstatedir='${prefix}/com' |
| 346 | localstatedir='${prefix}/var' |
| 347 | libdir='${exec_prefix}/lib' |
| 348 | includedir='${prefix}/include' |
| 349 | oldincludedir='/usr/include' |
| 350 | infodir='${prefix}/info' |
| 351 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 352 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 353 | ac_prev= |
| 354 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 355 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 356 | # If the previous option needs an argument, assign it. |
| 357 | if test -n "$ac_prev"; then |
| 358 | eval "$ac_prev=\$ac_option" |
| 359 | ac_prev= |
| 360 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 361 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 362 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
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 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 366 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 367 | case $ac_option in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 368 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 370 | ac_prev=bindir ;; |
| 371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 372 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 373 | |
| 374 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 375 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 377 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 378 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 381 | ac_prev=cache_file ;; |
| 382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 384 | cache_file=$ac_optarg ;; |
| 385 | |
| 386 | --config-cache | -C) |
| 387 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 388 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 390 | ac_prev=datadir ;; |
| 391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 392 | | --da=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 393 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 394 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 395 | -disable-* | --disable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 397 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 400 | { (exit 1); exit 1; }; } |
| 401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 402 | eval "enable_$ac_feature=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 403 | |
| 404 | -enable-* | --enable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 406 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 409 | { (exit 1); exit 1; }; } |
| 410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 411 | case $ac_option in |
| 412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 413 | *) ac_optarg=yes ;; |
| 414 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 416 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 419 | | --exec | --exe | --ex) |
| 420 | ac_prev=exec_prefix ;; |
| 421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 423 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 424 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 425 | |
| 426 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 427 | # Obsolete; use --with-gas. |
| 428 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 429 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 430 | -help | --help | --hel | --he | -h) |
| 431 | ac_init_help=long ;; |
| 432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 433 | ac_init_help=recursive ;; |
| 434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 435 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 436 | |
| 437 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 438 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 439 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 440 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 441 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 442 | -includedir | --includedir | --includedi | --included | --include \ |
| 443 | | --includ | --inclu | --incl | --inc) |
| 444 | ac_prev=includedir ;; |
| 445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 446 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 447 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 448 | |
| 449 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 450 | ac_prev=infodir ;; |
| 451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 452 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 453 | |
| 454 | -libdir | --libdir | --libdi | --libd) |
| 455 | ac_prev=libdir ;; |
| 456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 457 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 458 | |
| 459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 460 | | --libexe | --libex | --libe) |
| 461 | ac_prev=libexecdir ;; |
| 462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 463 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 464 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 465 | |
| 466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 467 | | --localstate | --localstat | --localsta | --localst \ |
| 468 | | --locals | --local | --loca | --loc | --lo) |
| 469 | ac_prev=localstatedir ;; |
| 470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 473 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 474 | |
| 475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 476 | ac_prev=mandir ;; |
| 477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 478 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 479 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 480 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 481 | # Obsolete; use --without-fp. |
| 482 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 483 | |
| 484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 485 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 486 | no_create=yes ;; |
| 487 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 490 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 491 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 494 | | --oldin | --oldi | --old | --ol | --o) |
| 495 | ac_prev=oldincludedir ;; |
| 496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 499 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 500 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 502 | ac_prev=prefix ;; |
| 503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 504 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 505 | |
| 506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 507 | | --program-pre | --program-pr | --program-p) |
| 508 | ac_prev=program_prefix ;; |
| 509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 511 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 512 | |
| 513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 514 | | --program-suf | --program-su | --program-s) |
| 515 | ac_prev=program_suffix ;; |
| 516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 518 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 519 | |
| 520 | -program-transform-name | --program-transform-name \ |
| 521 | | --program-transform-nam | --program-transform-na \ |
| 522 | | --program-transform-n | --program-transform- \ |
| 523 | | --program-transform | --program-transfor \ |
| 524 | | --program-transfo | --program-transf \ |
| 525 | | --program-trans | --program-tran \ |
| 526 | | --progr-tra | --program-tr | --program-t) |
| 527 | ac_prev=program_transform_name ;; |
| 528 | -program-transform-name=* | --program-transform-name=* \ |
| 529 | | --program-transform-nam=* | --program-transform-na=* \ |
| 530 | | --program-transform-n=* | --program-transform-=* \ |
| 531 | | --program-transform=* | --program-transfor=* \ |
| 532 | | --program-transfo=* | --program-transf=* \ |
| 533 | | --program-trans=* | --program-tran=* \ |
| 534 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 535 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 536 | |
| 537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 538 | | -silent | --silent | --silen | --sile | --sil) |
| 539 | silent=yes ;; |
| 540 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 542 | ac_prev=sbindir ;; |
| 543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 544 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 545 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 546 | |
| 547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 549 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 550 | | --sha | --sh) |
| 551 | ac_prev=sharedstatedir ;; |
| 552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 555 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 556 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 557 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 558 | -site | --site | --sit) |
| 559 | ac_prev=site ;; |
| 560 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 561 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 562 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 564 | ac_prev=srcdir ;; |
| 565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 566 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 567 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 569 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 570 | ac_prev=sysconfdir ;; |
| 571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 573 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 574 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 575 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 576 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 578 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 579 | |
| 580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 581 | verbose=yes ;; |
| 582 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 583 | -version | --version | --versio | --versi | --vers | -V) |
| 584 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 585 | |
| 586 | -with-* | --with-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 588 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 591 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 593 | case $ac_option in |
| 594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 595 | *) ac_optarg=yes ;; |
| 596 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 598 | |
| 599 | -without-* | --without-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 601 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 604 | { (exit 1); exit 1; }; } |
| 605 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 606 | eval "with_$ac_package=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 607 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 608 | --x) |
| 609 | # Obsolete; use --with-x. |
| 610 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 611 | |
| 612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 613 | | --x-incl | --x-inc | --x-in | --x-i) |
| 614 | ac_prev=x_includes ;; |
| 615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 617 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 618 | |
| 619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 621 | ac_prev=x_libraries ;; |
| 622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 623 | | --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] | 624 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 627 | Try \`$0 --help' for more information." >&2 |
| 628 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 629 | ;; |
| 630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 631 | *=*) |
| 632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 633 | # Reject names that are not valid shell variable names. |
| 634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 636 | { (exit 1); exit 1; }; } |
| 637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 638 | eval "$ac_envvar='$ac_optarg'" |
| 639 | export $ac_envvar ;; |
| 640 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 641 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 642 | # FIXME: should be removed in autoconf 3.0. |
| 643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 646 | : ${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] | 647 | ;; |
| 648 | |
| 649 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 650 | done |
| 651 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 652 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 654 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 655 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 656 | fi |
| 657 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 658 | # Be sure to have absolute paths. |
| 659 | for ac_var in exec_prefix prefix |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 660 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 661 | eval ac_val=$`echo $ac_var` |
| 662 | case $ac_val in |
| 663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 665 | { (exit 1); exit 1; }; };; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 666 | esac |
| 667 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 668 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 669 | # Be sure to have absolute paths. |
| 670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 671 | localstatedir libdir includedir oldincludedir infodir mandir |
| 672 | do |
| 673 | eval ac_val=$`echo $ac_var` |
| 674 | case $ac_val in |
| 675 | [\\/$]* | ?:[\\/]* ) ;; |
| 676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 677 | { (exit 1); exit 1; }; };; |
| 678 | esac |
| 679 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 680 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 681 | # There might be people who depend on the old broken behavior: `$host' |
| 682 | # used to hold the argument of --host etc. |
| 683 | # FIXME: To remove some day. |
| 684 | build=$build_alias |
| 685 | host=$host_alias |
| 686 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 687 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 688 | # FIXME: To remove some day. |
| 689 | if test "x$host_alias" != x; then |
| 690 | if test "x$build_alias" = x; then |
| 691 | cross_compiling=maybe |
| 692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 693 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 694 | elif test "x$build_alias" != "x$host_alias"; then |
| 695 | cross_compiling=yes |
| 696 | fi |
| 697 | fi |
| 698 | |
| 699 | ac_tool_prefix= |
| 700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 701 | |
| 702 | test "$silent" = yes && exec 6>/dev/null |
| 703 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 704 | |
| 705 | # Find the source files, if location was not specified. |
| 706 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 707 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 708 | # Try the directory containing this script, then its parent. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 711 | X"$0" : 'X\(//\)[^/]' \| \ |
| 712 | X"$0" : 'X\(//\)$' \| \ |
| 713 | X"$0" : 'X\(/\)' \| \ |
| 714 | . : '\(.\)' 2>/dev/null || |
| 715 | echo X"$0" | |
| 716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 718 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 719 | /^X\(\/\).*/{ s//\1/; q; } |
| 720 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 721 | srcdir=$ac_confdir |
| 722 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 723 | srcdir=.. |
| 724 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 725 | else |
| 726 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 727 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 728 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 729 | if test "$ac_srcdir_defaulted" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 731 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 732 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 734 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 735 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 736 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 739 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 741 | ac_env_build_alias_set=${build_alias+set} |
| 742 | ac_env_build_alias_value=$build_alias |
| 743 | ac_cv_env_build_alias_set=${build_alias+set} |
| 744 | ac_cv_env_build_alias_value=$build_alias |
| 745 | ac_env_host_alias_set=${host_alias+set} |
| 746 | ac_env_host_alias_value=$host_alias |
| 747 | ac_cv_env_host_alias_set=${host_alias+set} |
| 748 | ac_cv_env_host_alias_value=$host_alias |
| 749 | ac_env_target_alias_set=${target_alias+set} |
| 750 | ac_env_target_alias_value=$target_alias |
| 751 | ac_cv_env_target_alias_set=${target_alias+set} |
| 752 | ac_cv_env_target_alias_value=$target_alias |
| 753 | ac_env_CC_set=${CC+set} |
| 754 | ac_env_CC_value=$CC |
| 755 | ac_cv_env_CC_set=${CC+set} |
| 756 | ac_cv_env_CC_value=$CC |
| 757 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 758 | ac_env_CFLAGS_value=$CFLAGS |
| 759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 760 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 761 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 762 | ac_env_LDFLAGS_value=$LDFLAGS |
| 763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 764 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 766 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 769 | ac_env_CPP_set=${CPP+set} |
| 770 | ac_env_CPP_value=$CPP |
| 771 | ac_cv_env_CPP_set=${CPP+set} |
| 772 | ac_cv_env_CPP_value=$CPP |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 773 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 774 | # |
| 775 | # Report the --help message. |
| 776 | # |
| 777 | if test "$ac_init_help" = "long"; then |
| 778 | # Omit some internal or obsolete options to make the list less imposing. |
| 779 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 780 | cat <<_ACEOF |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 781 | \`configure' configures python 2.4 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 782 | |
| 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 784 | |
| 785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 786 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 787 | |
| 788 | Defaults for the options are specified in brackets. |
| 789 | |
| 790 | Configuration: |
| 791 | -h, --help display this help and exit |
| 792 | --help=short display options specific to this package |
| 793 | --help=recursive display the short help of all the included packages |
| 794 | -V, --version display version information and exit |
| 795 | -q, --quiet, --silent do not print \`checking...' messages |
| 796 | --cache-file=FILE cache test results in FILE [disabled] |
| 797 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 798 | -n, --no-create do not create output files |
| 799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 800 | |
| 801 | _ACEOF |
| 802 | |
| 803 | cat <<_ACEOF |
| 804 | Installation directories: |
| 805 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 806 | [$ac_default_prefix] |
| 807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 808 | [PREFIX] |
| 809 | |
| 810 | By default, \`make install' will install all the files in |
| 811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 813 | for instance \`--prefix=\$HOME'. |
| 814 | |
| 815 | For better control, use the options below. |
| 816 | |
| 817 | Fine tuning of the installation directories: |
| 818 | --bindir=DIR user executables [EPREFIX/bin] |
| 819 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 820 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 825 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 826 | --includedir=DIR C header files [PREFIX/include] |
| 827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 828 | --infodir=DIR info documentation [PREFIX/info] |
| 829 | --mandir=DIR man documentation [PREFIX/man] |
| 830 | _ACEOF |
| 831 | |
| 832 | cat <<\_ACEOF |
| 833 | _ACEOF |
| 834 | fi |
| 835 | |
| 836 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 837 | case $ac_init_help in |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 838 | short | recursive ) echo "Configuration of python 2.4:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 839 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 840 | cat <<\_ACEOF |
| 841 | |
| 842 | Optional Features: |
| 843 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 844 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 845 | --enable-framework[=INSTALLDIR] |
| 846 | Build (MacOSX|Darwin) framework |
| 847 | --enable-shared disable/enable building shared python library |
| 848 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 849 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 850 | --disable-ipv6 Disable ipv6 support |
| 851 | --enable-unicode[=ucs[24]] |
| 852 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 853 | |
| 854 | Optional Packages: |
| 855 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 856 | --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] | 857 | --without-gcc never use gcc |
| 858 | --with-cxx=<compiler> enable C++ support |
| 859 | --with-suffix=.exe set executable suffix |
| 860 | --with-pydebug build with Py_DEBUG defined |
| 861 | --with-libs='lib1 ...' link against additional libs |
| 862 | --with-signal-module disable/enable signal module |
| 863 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 864 | --with(out)-threads[=DIRECTORY] |
| 865 | disable/enable thread support |
| 866 | --with(out)-thread[=DIRECTORY] |
| 867 | deprecated; use --with(out)-threads |
| 868 | --with-pth use GNU pth threading libraries |
| 869 | --with(out)-universal-newlines |
| 870 | disable/enable foreign newlines |
| 871 | --with(out)-doc-strings disable/enable documentation strings |
| 872 | --with(out)-pymalloc disable/enable specialized mallocs |
| 873 | --with-wctype-functions use wctype.h functions |
| 874 | --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking |
| 875 | --with-dl-dld=DL_DIR GNU dynamic linking |
| 876 | --with-fpectl enable SIGFPE catching |
| 877 | --with-libm=STRING math library |
| 878 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 879 | |
| 880 | Some influential environment variables: |
| 881 | CC C compiler command |
| 882 | CFLAGS C compiler flags |
| 883 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 884 | nonstandard directory <lib dir> |
| 885 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 886 | headers in a nonstandard directory <include dir> |
| 887 | CPP C preprocessor |
| 888 | |
| 889 | Use these variables to override the choices made by `configure' or to help |
| 890 | it to find libraries and programs with nonstandard names/locations. |
| 891 | |
| 892 | _ACEOF |
| 893 | fi |
| 894 | |
| 895 | if test "$ac_init_help" = "recursive"; then |
| 896 | # If there are subdirs, report their specific --help. |
| 897 | ac_popdir=`pwd` |
| 898 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 899 | test -d $ac_dir || continue |
| 900 | ac_builddir=. |
| 901 | |
| 902 | if test "$ac_dir" != .; then |
| 903 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 904 | # A "../" for each directory in $ac_dir_suffix. |
| 905 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 906 | else |
| 907 | ac_dir_suffix= ac_top_builddir= |
| 908 | fi |
| 909 | |
| 910 | case $srcdir in |
| 911 | .) # No --srcdir option. We are building in place. |
| 912 | ac_srcdir=. |
| 913 | if test -z "$ac_top_builddir"; then |
| 914 | ac_top_srcdir=. |
| 915 | else |
| 916 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 917 | fi ;; |
| 918 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 919 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 920 | ac_top_srcdir=$srcdir ;; |
| 921 | *) # Relative path. |
| 922 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 923 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 924 | esac |
| 925 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 926 | # absolute. |
| 927 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 928 | 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] | 929 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 930 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 931 | |
| 932 | cd $ac_dir |
| 933 | # Check for guested configure; otherwise get Cygnus style configure. |
| 934 | if test -f $ac_srcdir/configure.gnu; then |
| 935 | echo |
| 936 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 937 | elif test -f $ac_srcdir/configure; then |
| 938 | echo |
| 939 | $SHELL $ac_srcdir/configure --help=recursive |
| 940 | elif test -f $ac_srcdir/configure.ac || |
| 941 | test -f $ac_srcdir/configure.in; then |
| 942 | echo |
| 943 | $ac_configure --help |
| 944 | else |
| 945 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 946 | fi |
| 947 | cd $ac_popdir |
| 948 | done |
| 949 | fi |
| 950 | |
| 951 | test -n "$ac_init_help" && exit 0 |
| 952 | if $ac_init_version; then |
| 953 | cat <<\_ACEOF |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 954 | python configure 2.4 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 955 | generated by GNU Autoconf 2.57 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 956 | |
| 957 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 958 | Free Software Foundation, Inc. |
| 959 | This configure script is free software; the Free Software Foundation |
| 960 | gives unlimited permission to copy, distribute and modify it. |
| 961 | _ACEOF |
| 962 | exit 0 |
| 963 | fi |
| 964 | exec 5>config.log |
| 965 | cat >&5 <<_ACEOF |
| 966 | This file contains any messages produced by compilers while |
| 967 | running configure, to aid debugging if configure makes a mistake. |
| 968 | |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 969 | It was created by python $as_me 2.4, which was |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 970 | generated by GNU Autoconf 2.57. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 971 | |
| 972 | $ $0 $@ |
| 973 | |
| 974 | _ACEOF |
| 975 | { |
| 976 | cat <<_ASUNAME |
| 977 | ## --------- ## |
| 978 | ## Platform. ## |
| 979 | ## --------- ## |
| 980 | |
| 981 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 982 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 983 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 984 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 985 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 986 | |
| 987 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 988 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 989 | |
| 990 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 991 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 992 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 993 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 994 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 995 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 996 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 997 | |
| 998 | _ASUNAME |
| 999 | |
| 1000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1001 | for as_dir in $PATH |
| 1002 | do |
| 1003 | IFS=$as_save_IFS |
| 1004 | test -z "$as_dir" && as_dir=. |
| 1005 | echo "PATH: $as_dir" |
| 1006 | done |
| 1007 | |
| 1008 | } >&5 |
| 1009 | |
| 1010 | cat >&5 <<_ACEOF |
| 1011 | |
| 1012 | |
| 1013 | ## ----------- ## |
| 1014 | ## Core tests. ## |
| 1015 | ## ----------- ## |
| 1016 | |
| 1017 | _ACEOF |
| 1018 | |
| 1019 | |
| 1020 | # Keep a trace of the command line. |
| 1021 | # Strip out --no-create and --no-recursion so they do not pile up. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1022 | # Strip out --silent because we don't want to record it for future runs. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1023 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1024 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1025 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1026 | ac_configure_args0= |
| 1027 | ac_configure_args1= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1028 | ac_sep= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1029 | ac_must_keep_next=false |
| 1030 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1031 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1032 | for ac_arg |
| 1033 | do |
| 1034 | case $ac_arg in |
| 1035 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1036 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1037 | | -silent | --silent | --silen | --sile | --sil) |
| 1038 | continue ;; |
| 1039 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1040 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1041 | esac |
| 1042 | case $ac_pass in |
| 1043 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1044 | 2) |
| 1045 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1046 | if test $ac_must_keep_next = true; then |
| 1047 | ac_must_keep_next=false # Got value, back to normal. |
| 1048 | else |
| 1049 | case $ac_arg in |
| 1050 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1051 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1052 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1053 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1054 | case "$ac_configure_args0 " in |
| 1055 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1056 | esac |
| 1057 | ;; |
| 1058 | -* ) ac_must_keep_next=true ;; |
| 1059 | esac |
| 1060 | fi |
| 1061 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1062 | # Get rid of the leading space. |
| 1063 | ac_sep=" " |
| 1064 | ;; |
| 1065 | esac |
| 1066 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1067 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1068 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1069 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1070 | |
| 1071 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1072 | # config.log. We remove comments because anyway the quotes in there |
| 1073 | # would cause problems or look ugly. |
| 1074 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1075 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1076 | trap 'exit_status=$? |
| 1077 | # Save into config.log some information that might help in debugging. |
| 1078 | { |
| 1079 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1080 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1081 | cat <<\_ASBOX |
| 1082 | ## ---------------- ## |
| 1083 | ## Cache variables. ## |
| 1084 | ## ---------------- ## |
| 1085 | _ASBOX |
| 1086 | echo |
| 1087 | # The following way of writing the cache mishandles newlines in values, |
| 1088 | { |
| 1089 | (set) 2>&1 | |
| 1090 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1091 | *ac_space=\ *) |
| 1092 | sed -n \ |
| 1093 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1094 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1095 | ;; |
| 1096 | *) |
| 1097 | sed -n \ |
| 1098 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1099 | ;; |
| 1100 | esac; |
| 1101 | } |
| 1102 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1103 | |
| 1104 | cat <<\_ASBOX |
| 1105 | ## ----------------- ## |
| 1106 | ## Output variables. ## |
| 1107 | ## ----------------- ## |
| 1108 | _ASBOX |
| 1109 | echo |
| 1110 | for ac_var in $ac_subst_vars |
| 1111 | do |
| 1112 | eval ac_val=$`echo $ac_var` |
| 1113 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1114 | done | sort |
| 1115 | echo |
| 1116 | |
| 1117 | if test -n "$ac_subst_files"; then |
| 1118 | cat <<\_ASBOX |
| 1119 | ## ------------- ## |
| 1120 | ## Output files. ## |
| 1121 | ## ------------- ## |
| 1122 | _ASBOX |
| 1123 | echo |
| 1124 | for ac_var in $ac_subst_files |
| 1125 | do |
| 1126 | eval ac_val=$`echo $ac_var` |
| 1127 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1128 | done | sort |
| 1129 | echo |
| 1130 | fi |
| 1131 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1132 | if test -s confdefs.h; then |
| 1133 | cat <<\_ASBOX |
| 1134 | ## ----------- ## |
| 1135 | ## confdefs.h. ## |
| 1136 | ## ----------- ## |
| 1137 | _ASBOX |
| 1138 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1139 | sed "/^$/d" confdefs.h | sort |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1140 | echo |
| 1141 | fi |
| 1142 | test "$ac_signal" != 0 && |
| 1143 | echo "$as_me: caught signal $ac_signal" |
| 1144 | echo "$as_me: exit $exit_status" |
| 1145 | } >&5 |
| 1146 | rm -f core core.* *.core && |
| 1147 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1148 | exit $exit_status |
| 1149 | ' 0 |
| 1150 | for ac_signal in 1 2 13 15; do |
| 1151 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1152 | done |
| 1153 | ac_signal=0 |
| 1154 | |
| 1155 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1156 | rm -rf conftest* confdefs.h |
| 1157 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1158 | echo >confdefs.h |
| 1159 | |
| 1160 | # Predefined preprocessor variables. |
| 1161 | |
| 1162 | cat >>confdefs.h <<_ACEOF |
| 1163 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1164 | _ACEOF |
| 1165 | |
| 1166 | |
| 1167 | cat >>confdefs.h <<_ACEOF |
| 1168 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1169 | _ACEOF |
| 1170 | |
| 1171 | |
| 1172 | cat >>confdefs.h <<_ACEOF |
| 1173 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1174 | _ACEOF |
| 1175 | |
| 1176 | |
| 1177 | cat >>confdefs.h <<_ACEOF |
| 1178 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1179 | _ACEOF |
| 1180 | |
| 1181 | |
| 1182 | cat >>confdefs.h <<_ACEOF |
| 1183 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1184 | _ACEOF |
| 1185 | |
| 1186 | |
| 1187 | # 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] | 1188 | # Prefer explicitly selected file to automatically selected ones. |
| 1189 | if test -z "$CONFIG_SITE"; then |
| 1190 | if test "x$prefix" != xNONE; then |
| 1191 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1192 | else |
| 1193 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1194 | fi |
| 1195 | fi |
| 1196 | for ac_site_file in $CONFIG_SITE; do |
| 1197 | if test -r "$ac_site_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1198 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1199 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1200 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1201 | . "$ac_site_file" |
| 1202 | fi |
| 1203 | done |
| 1204 | |
| 1205 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1206 | # Some versions of bash will fail to source /dev/null (special |
| 1207 | # files actually), so we avoid doing that. |
| 1208 | if test -f "$cache_file"; then |
| 1209 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1210 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1211 | case $cache_file in |
| 1212 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1213 | *) . ./$cache_file;; |
| 1214 | esac |
| 1215 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1216 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1217 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1218 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1219 | >$cache_file |
| 1220 | fi |
| 1221 | |
| 1222 | # Check that the precious variables saved in the cache have kept the same |
| 1223 | # value. |
| 1224 | ac_cache_corrupted=false |
| 1225 | for ac_var in `(set) 2>&1 | |
| 1226 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1227 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1228 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1229 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1230 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1231 | case $ac_old_set,$ac_new_set in |
| 1232 | set,) |
| 1233 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1234 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1235 | ac_cache_corrupted=: ;; |
| 1236 | ,set) |
| 1237 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1238 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1239 | ac_cache_corrupted=: ;; |
| 1240 | ,);; |
| 1241 | *) |
| 1242 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1243 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1244 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1245 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1246 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1247 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1248 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1249 | ac_cache_corrupted=: |
| 1250 | fi;; |
| 1251 | esac |
| 1252 | # Pass precious variables to config.status. |
| 1253 | if test "$ac_new_set" = set; then |
| 1254 | case $ac_new_val in |
| 1255 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1256 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1257 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1258 | esac |
| 1259 | case " $ac_configure_args " in |
| 1260 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1261 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1262 | esac |
| 1263 | fi |
| 1264 | done |
| 1265 | if $ac_cache_corrupted; then |
| 1266 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1267 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1268 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1269 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1270 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1271 | fi |
| 1272 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1273 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1274 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1275 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1276 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1277 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1278 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1279 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1280 | |
| 1281 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1282 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1283 | |
| 1284 | |
| 1285 | |
| 1286 | |
| 1287 | |
| 1288 | |
| 1289 | |
| 1290 | |
| 1291 | |
| 1292 | |
| 1293 | |
| 1294 | |
| 1295 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1296 | |
| 1297 | |
| 1298 | |
| 1299 | |
| 1300 | |
| 1301 | |
| 1302 | |
| 1303 | |
| 1304 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1305 | |
| 1306 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1307 | |
| 1308 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1309 | |
| 1310 | |
| 1311 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1312 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1313 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1314 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1315 | # with other autoconf-based packages that include Python.h |
| 1316 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1317 | rm confdefs.h |
| 1318 | mv confdefs.h.new confdefs.h |
| 1319 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1320 | |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 1321 | VERSION=2.4 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1322 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1323 | |
| 1324 | SOVERSION=1.0 |
| 1325 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1326 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1327 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1328 | |
| 1329 | cat >>confdefs.h <<\_ACEOF |
| 1330 | #define _GNU_SOURCE 1 |
| 1331 | _ACEOF |
| 1332 | |
| 1333 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1334 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1335 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1336 | # them. |
| 1337 | |
| 1338 | cat >>confdefs.h <<\_ACEOF |
| 1339 | #define _NETBSD_SOURCE 1 |
| 1340 | _ACEOF |
| 1341 | |
| 1342 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1343 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1344 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1345 | # them. |
| 1346 | |
| 1347 | cat >>confdefs.h <<\_ACEOF |
| 1348 | #define __BSD_VISIBLE 1 |
| 1349 | _ACEOF |
| 1350 | |
| 1351 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1352 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1353 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1354 | # Arguments passed to configure. |
| 1355 | |
| 1356 | CONFIG_ARGS="$ac_configure_args" |
| 1357 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1358 | # Check whether --enable-framework or --disable-framework was given. |
| 1359 | if test "${enable_framework+set}" = set; then |
| 1360 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1361 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1362 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1363 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1364 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1365 | esac |
| 1366 | case $enableval in |
| 1367 | no) |
| 1368 | PYTHONFRAMEWORK= |
| 1369 | PYTHONFRAMEWORKDIR=no-framework |
| 1370 | PYTHONFRAMEWORKPREFIX= |
| 1371 | PYTHONFRAMEWORKINSTALLDIR= |
| 1372 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1373 | ;; |
| 1374 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1375 | PYTHONFRAMEWORK=Python |
| 1376 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1377 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1378 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1379 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1380 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1381 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1382 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1383 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1384 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1385 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1386 | PYTHONFRAMEWORKPREFIX= |
| 1387 | PYTHONFRAMEWORKINSTALLDIR= |
| 1388 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1389 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1390 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1391 | |
| 1392 | |
| 1393 | |
| 1394 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1395 | |
| 1396 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1397 | ## AC_HELP_STRING(--with-dyld, |
| 1398 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1399 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1400 | # Set name for machine-dependent library files |
| 1401 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1402 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1403 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1404 | if test -z "$MACHDEP" |
| 1405 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1406 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1407 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1408 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1409 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1410 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1411 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1412 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1413 | ac_md_system=`echo $ac_sys_system | |
| 1414 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1415 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1416 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1417 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1418 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1419 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1420 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1421 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1422 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 1423 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1424 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1425 | esac |
| 1426 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1427 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1428 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 1429 | # disable features if it is defined, without any means to access these |
| 1430 | # features as extensions. For these systems, we skip the definition of |
| 1431 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 1432 | # some feature, make sure there is no alternative way to access this |
| 1433 | # feature. Also, when using wildcards, make sure you have verified the |
| 1434 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 1435 | # wildcard, and that the wildcard does not include future systems |
| 1436 | # (which may remove their limitations). |
| 1437 | case $ac_sys_system/$ac_sys_release in |
| 1438 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 1439 | # even though select is a POSIX function. Reported by J. Ribbens. |
Martin v. Löwis | 858f817 | 2003-05-24 12:35:47 +0000 | [diff] [blame] | 1440 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm. |
| 1441 | OpenBSD/2.* | OpenBSD/3.[0123]) |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1442 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 1443 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 1444 | # of union __?sigval. Reported by Stuart Bishop. |
| 1445 | SunOS/5.6) |
| 1446 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1447 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 1448 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
| 1449 | OpenUNIX/8.0.0| UnixWare/7.1.[0-3]) |
| 1450 | define_xopen_source=no;; |
| 1451 | # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 1452 | # but used in struct sockaddr.sa_family. Reported by Tim Rice. |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1453 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 1454 | define_xopen_source=no;; |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1455 | esac |
| 1456 | |
| 1457 | if test $define_xopen_source = yes |
| 1458 | then |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1459 | |
| 1460 | cat >>confdefs.h <<\_ACEOF |
| 1461 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1462 | _ACEOF |
| 1463 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1464 | |
| 1465 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 1466 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 1467 | # several APIs are not declared. Since this is also needed in some |
| 1468 | # cases for HP-UX, we define it globally. |
| 1469 | |
| 1470 | |
| 1471 | cat >>confdefs.h <<\_ACEOF |
| 1472 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 1473 | _ACEOF |
| 1474 | |
| 1475 | |
| 1476 | cat >>confdefs.h <<\_ACEOF |
| 1477 | #define _POSIX_C_SOURCE 200112L |
| 1478 | _ACEOF |
| 1479 | |
| 1480 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1481 | fi |
| 1482 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1483 | # |
| 1484 | # SGI compilers allow the specification of the both the ABI and the |
| 1485 | # ISA on the command line. Depending on the values of these switches, |
| 1486 | # different and often incompatable code will be generated. |
| 1487 | # |
| 1488 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1489 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1490 | # variable is also adjusted. |
| 1491 | # |
| 1492 | |
| 1493 | if test ! -z "$SGI_ABI" |
| 1494 | then |
| 1495 | CC="cc $SGI_ABI" |
| 1496 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1497 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1498 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1499 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1500 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1501 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1502 | # And add extra plat-mac for darwin |
| 1503 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1504 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1505 | echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 1506 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6 |
| 1507 | if test -z "$EXTRAPLATDIR" |
| 1508 | then |
| 1509 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1510 | darwin) |
| 1511 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 1512 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 1513 | ;; |
| 1514 | *) |
| 1515 | EXTRAPLATDIR="" |
| 1516 | EXTRAMACHDEPPATH="" |
| 1517 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1518 | esac |
| 1519 | fi |
| 1520 | echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 1521 | echo "${ECHO_T}$EXTRAPLATDIR" >&6 |
| 1522 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1523 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1524 | |
| 1525 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 1526 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 1527 | # just to get things to compile and link. Users are free to override OPT |
| 1528 | # when running configure or make. The build should not break if they do. |
| 1529 | # BASECFLAGS should generally not be messed with, however. |
| 1530 | |
| 1531 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 1532 | # on that fiddles with OPT and BASECFLAGS? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1533 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1534 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1535 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1536 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1537 | if test "${with_gcc+set}" = set; then |
| 1538 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1539 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1540 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1541 | no) CC=cc |
| 1542 | without_gcc=yes;; |
| 1543 | yes) CC=gcc |
| 1544 | without_gcc=no;; |
| 1545 | *) CC=$withval |
| 1546 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1547 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1548 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1549 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1550 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1551 | AIX*) CC=cc_r |
| 1552 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1553 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1554 | case $BE_HOST_CPU in |
| 1555 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1556 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1557 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1558 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 1559 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1560 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1561 | ;; |
| 1562 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1563 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1564 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1565 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1566 | ;; |
| 1567 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1568 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1569 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1570 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1571 | ;; |
| 1572 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1573 | AR="\$(srcdir)/Modules/ar_beos" |
| 1574 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1575 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1576 | Monterey*) |
| 1577 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1578 | without_gcc=;; |
| 1579 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1580 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1581 | fi; |
| 1582 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1583 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1584 | |
| 1585 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1586 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1587 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1588 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1589 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1590 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1591 | # Check whether --with-cxx or --without-cxx was given. |
| 1592 | if test "${with_cxx+set}" = set; then |
| 1593 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1594 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1595 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1596 | case $withval in |
| 1597 | no) CXX= |
| 1598 | with_cxx=no;; |
| 1599 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1600 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1601 | with_cxx=$withval;; |
| 1602 | esac |
| 1603 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1604 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1605 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1606 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1607 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1608 | fi; |
| 1609 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1610 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1611 | |
| 1612 | if test "$with_cxx" = "yes" |
| 1613 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1614 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1615 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1616 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1617 | fi |
| 1618 | |
| 1619 | |
| 1620 | |
| 1621 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1622 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1623 | then |
| 1624 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1625 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1626 | # 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] | 1627 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1628 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1629 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1630 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1632 | else |
| 1633 | if test -n "$CXX"; then |
| 1634 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1635 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1637 | for as_dir in $PATH |
| 1638 | do |
| 1639 | IFS=$as_save_IFS |
| 1640 | test -z "$as_dir" && as_dir=. |
| 1641 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1642 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1643 | ac_cv_prog_CXX="$ac_prog" |
| 1644 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1645 | break 2 |
| 1646 | fi |
| 1647 | done |
| 1648 | done |
| 1649 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1650 | fi |
| 1651 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1652 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1653 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1654 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1655 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1656 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1657 | echo "$as_me:$LINENO: result: no" >&5 |
| 1658 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1659 | fi |
| 1660 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1661 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1662 | done |
| 1663 | test -n "$CXX" || CXX="notfound" |
| 1664 | |
| 1665 | if test "$CXX" = "notfound" |
| 1666 | then |
| 1667 | CXX= |
| 1668 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1669 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1670 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1671 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1672 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1673 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1674 | cat >conftest.$ac_ext <<_ACEOF |
| 1675 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1676 | /* confdefs.h. */ |
| 1677 | _ACEOF |
| 1678 | cat confdefs.h >>conftest.$ac_ext |
| 1679 | cat >>conftest.$ac_ext <<_ACEOF |
| 1680 | /* end confdefs.h. */ |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1681 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1682 | int |
| 1683 | main () |
| 1684 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1685 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1686 | ; |
| 1687 | return 0; |
| 1688 | } |
| 1689 | _ACEOF |
| 1690 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1691 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1692 | # Try to create an executable without -o first, disregard a.out. |
| 1693 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1694 | # of exeext. |
| 1695 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 1696 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 1697 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1698 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1699 | (eval $ac_link_default) 2>&5 |
| 1700 | ac_status=$? |
| 1701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1702 | (exit $ac_status); }; then |
| 1703 | # Find the output, starting from the most likely. This scheme is |
| 1704 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1705 | # resort. |
| 1706 | |
| 1707 | # Be careful to initialize this variable, since it used to be cached. |
| 1708 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1709 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1710 | # b.out is created by i960 compilers. |
| 1711 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1712 | do |
| 1713 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1714 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1715 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1716 | ;; |
| 1717 | conftest.$ac_ext ) |
| 1718 | # This is the source file. |
| 1719 | ;; |
| 1720 | [ab].out ) |
| 1721 | # We found the default executable, but exeext='' is most |
| 1722 | # certainly right. |
| 1723 | break;; |
| 1724 | *.* ) |
| 1725 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1726 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1727 | # but it would be cool to find out if it's true. Does anybody |
| 1728 | # maintain Libtool? --akim. |
| 1729 | export ac_cv_exeext |
| 1730 | break;; |
| 1731 | * ) |
| 1732 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1733 | esac |
| 1734 | done |
| 1735 | else |
| 1736 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1738 | |
| 1739 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
| 1740 | See \`config.log' for more details." >&5 |
| 1741 | echo "$as_me: error: C++ compiler cannot create executables |
| 1742 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1743 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1744 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1745 | |
| 1746 | ac_exeext=$ac_cv_exeext |
| 1747 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1748 | echo "${ECHO_T}$ac_file" >&6 |
| 1749 | |
| 1750 | # Check the compiler produces executables we can run. If not, either |
| 1751 | # the compiler is broken, or we cross compile. |
| 1752 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1753 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1754 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1755 | # If not cross compiling, check that we can run a simple program. |
| 1756 | if test "$cross_compiling" != yes; then |
| 1757 | if { ac_try='./$ac_file' |
| 1758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1759 | (eval $ac_try) 2>&5 |
| 1760 | ac_status=$? |
| 1761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1762 | (exit $ac_status); }; }; then |
| 1763 | cross_compiling=no |
| 1764 | else |
| 1765 | if test "$cross_compiling" = maybe; then |
| 1766 | cross_compiling=yes |
| 1767 | else |
| 1768 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1769 | If you meant to cross compile, use \`--host'. |
| 1770 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1771 | echo "$as_me: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1772 | If you meant to cross compile, use \`--host'. |
| 1773 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1774 | { (exit 1); exit 1; }; } |
| 1775 | fi |
| 1776 | fi |
| 1777 | fi |
| 1778 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1779 | echo "${ECHO_T}yes" >&6 |
| 1780 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1781 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1782 | ac_clean_files=$ac_clean_files_save |
| 1783 | # Check the compiler produces executables we can run. If not, either |
| 1784 | # the compiler is broken, or we cross compile. |
| 1785 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1786 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1787 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1788 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1789 | |
| 1790 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1791 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1792 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1793 | (eval $ac_link) 2>&5 |
| 1794 | ac_status=$? |
| 1795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1796 | (exit $ac_status); }; then |
| 1797 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1798 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1799 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1800 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1801 | for ac_file in conftest.exe conftest conftest.*; do |
| 1802 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1803 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1804 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1805 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1806 | export ac_cv_exeext |
| 1807 | break;; |
| 1808 | * ) break;; |
| 1809 | esac |
| 1810 | done |
| 1811 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1812 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1813 | See \`config.log' for more details." >&5 |
| 1814 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1815 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1816 | { (exit 1); exit 1; }; } |
| 1817 | fi |
| 1818 | |
| 1819 | rm -f conftest$ac_cv_exeext |
| 1820 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1821 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1822 | |
| 1823 | rm -f conftest.$ac_ext |
| 1824 | EXEEXT=$ac_cv_exeext |
| 1825 | ac_exeext=$EXEEXT |
| 1826 | |
| 1827 | ac_ext=c |
| 1828 | ac_cpp='$CPP $CPPFLAGS' |
| 1829 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1830 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1831 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1832 | |
| 1833 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1834 | |
| 1835 | fi |
| 1836 | fi |
| 1837 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1838 | # If the user switches compilers, we can't believe the cache |
| 1839 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1840 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1841 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1842 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1843 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1844 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1845 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1846 | fi |
| 1847 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1848 | ac_ext=c |
| 1849 | ac_cpp='$CPP $CPPFLAGS' |
| 1850 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1851 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1852 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1853 | if test -n "$ac_tool_prefix"; then |
| 1854 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1855 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1856 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1857 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1858 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1860 | else |
| 1861 | if test -n "$CC"; then |
| 1862 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1863 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1865 | for as_dir in $PATH |
| 1866 | do |
| 1867 | IFS=$as_save_IFS |
| 1868 | test -z "$as_dir" && as_dir=. |
| 1869 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1870 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1871 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1872 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1873 | break 2 |
| 1874 | fi |
| 1875 | done |
| 1876 | done |
| 1877 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1878 | fi |
| 1879 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1880 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1881 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1882 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1883 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1884 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1885 | echo "$as_me:$LINENO: result: no" >&5 |
| 1886 | echo "${ECHO_T}no" >&6 |
| 1887 | fi |
| 1888 | |
| 1889 | fi |
| 1890 | if test -z "$ac_cv_prog_CC"; then |
| 1891 | ac_ct_CC=$CC |
| 1892 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1893 | set dummy gcc; ac_word=$2 |
| 1894 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1895 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1896 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1898 | else |
| 1899 | if test -n "$ac_ct_CC"; then |
| 1900 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1901 | else |
| 1902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1903 | for as_dir in $PATH |
| 1904 | do |
| 1905 | IFS=$as_save_IFS |
| 1906 | test -z "$as_dir" && as_dir=. |
| 1907 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1908 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1909 | ac_cv_prog_ac_ct_CC="gcc" |
| 1910 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1911 | break 2 |
| 1912 | fi |
| 1913 | done |
| 1914 | done |
| 1915 | |
| 1916 | fi |
| 1917 | fi |
| 1918 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1919 | if test -n "$ac_ct_CC"; then |
| 1920 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1921 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1922 | else |
| 1923 | echo "$as_me:$LINENO: result: no" >&5 |
| 1924 | echo "${ECHO_T}no" >&6 |
| 1925 | fi |
| 1926 | |
| 1927 | CC=$ac_ct_CC |
| 1928 | else |
| 1929 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1930 | fi |
| 1931 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1932 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1933 | if test -n "$ac_tool_prefix"; then |
| 1934 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1935 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1936 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1937 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1938 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1940 | else |
| 1941 | if test -n "$CC"; then |
| 1942 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1943 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1945 | for as_dir in $PATH |
| 1946 | do |
| 1947 | IFS=$as_save_IFS |
| 1948 | test -z "$as_dir" && as_dir=. |
| 1949 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1950 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1951 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1952 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1953 | break 2 |
| 1954 | fi |
| 1955 | done |
| 1956 | done |
| 1957 | |
| 1958 | fi |
| 1959 | fi |
| 1960 | CC=$ac_cv_prog_CC |
| 1961 | if test -n "$CC"; then |
| 1962 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1963 | echo "${ECHO_T}$CC" >&6 |
| 1964 | else |
| 1965 | echo "$as_me:$LINENO: result: no" >&5 |
| 1966 | echo "${ECHO_T}no" >&6 |
| 1967 | fi |
| 1968 | |
| 1969 | fi |
| 1970 | if test -z "$ac_cv_prog_CC"; then |
| 1971 | ac_ct_CC=$CC |
| 1972 | # Extract the first word of "cc", so it can be a program name with args. |
| 1973 | set dummy cc; ac_word=$2 |
| 1974 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1975 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1976 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1978 | else |
| 1979 | if test -n "$ac_ct_CC"; then |
| 1980 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1981 | else |
| 1982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1983 | for as_dir in $PATH |
| 1984 | do |
| 1985 | IFS=$as_save_IFS |
| 1986 | test -z "$as_dir" && as_dir=. |
| 1987 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1988 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1989 | ac_cv_prog_ac_ct_CC="cc" |
| 1990 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1991 | break 2 |
| 1992 | fi |
| 1993 | done |
| 1994 | done |
| 1995 | |
| 1996 | fi |
| 1997 | fi |
| 1998 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1999 | if test -n "$ac_ct_CC"; then |
| 2000 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2001 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2002 | else |
| 2003 | echo "$as_me:$LINENO: result: no" >&5 |
| 2004 | echo "${ECHO_T}no" >&6 |
| 2005 | fi |
| 2006 | |
| 2007 | CC=$ac_ct_CC |
| 2008 | else |
| 2009 | CC="$ac_cv_prog_CC" |
| 2010 | fi |
| 2011 | |
| 2012 | fi |
| 2013 | if test -z "$CC"; then |
| 2014 | # Extract the first word of "cc", so it can be a program name with args. |
| 2015 | set dummy cc; ac_word=$2 |
| 2016 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2017 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2018 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2020 | else |
| 2021 | if test -n "$CC"; then |
| 2022 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2023 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2024 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2026 | for as_dir in $PATH |
| 2027 | do |
| 2028 | IFS=$as_save_IFS |
| 2029 | test -z "$as_dir" && as_dir=. |
| 2030 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2031 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2032 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2033 | ac_prog_rejected=yes |
| 2034 | continue |
| 2035 | fi |
| 2036 | ac_cv_prog_CC="cc" |
| 2037 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2038 | break 2 |
| 2039 | fi |
| 2040 | done |
| 2041 | done |
| 2042 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2043 | if test $ac_prog_rejected = yes; then |
| 2044 | # We found a bogon in the path, so make sure we never use it. |
| 2045 | set dummy $ac_cv_prog_CC |
| 2046 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2047 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2048 | # We chose a different compiler from the bogus one. |
| 2049 | # However, it has the same basename, so the bogon will be chosen |
| 2050 | # first if we set CC to just the basename; use the full file name. |
| 2051 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2052 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2053 | fi |
| 2054 | fi |
| 2055 | fi |
| 2056 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2057 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2058 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2059 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2060 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2061 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2062 | echo "$as_me:$LINENO: result: no" >&5 |
| 2063 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2064 | fi |
| 2065 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2066 | fi |
| 2067 | if test -z "$CC"; then |
| 2068 | if test -n "$ac_tool_prefix"; then |
| 2069 | for ac_prog in cl |
| 2070 | do |
| 2071 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2072 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2073 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2074 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2075 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2077 | else |
| 2078 | if test -n "$CC"; then |
| 2079 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2080 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2082 | for as_dir in $PATH |
| 2083 | do |
| 2084 | IFS=$as_save_IFS |
| 2085 | test -z "$as_dir" && as_dir=. |
| 2086 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2087 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2088 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2089 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2090 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2091 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2092 | done |
| 2093 | done |
| 2094 | |
| 2095 | fi |
| 2096 | fi |
| 2097 | CC=$ac_cv_prog_CC |
| 2098 | if test -n "$CC"; then |
| 2099 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2100 | echo "${ECHO_T}$CC" >&6 |
| 2101 | else |
| 2102 | echo "$as_me:$LINENO: result: no" >&5 |
| 2103 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2104 | fi |
| 2105 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2106 | test -n "$CC" && break |
| 2107 | done |
| 2108 | fi |
| 2109 | if test -z "$CC"; then |
| 2110 | ac_ct_CC=$CC |
| 2111 | for ac_prog in cl |
| 2112 | do |
| 2113 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2114 | set dummy $ac_prog; ac_word=$2 |
| 2115 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2116 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2117 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2119 | else |
| 2120 | if test -n "$ac_ct_CC"; then |
| 2121 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2122 | else |
| 2123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2124 | for as_dir in $PATH |
| 2125 | do |
| 2126 | IFS=$as_save_IFS |
| 2127 | test -z "$as_dir" && as_dir=. |
| 2128 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2129 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2130 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2131 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2132 | break 2 |
| 2133 | fi |
| 2134 | done |
| 2135 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2136 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2137 | fi |
| 2138 | fi |
| 2139 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2140 | if test -n "$ac_ct_CC"; then |
| 2141 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2142 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2143 | else |
| 2144 | echo "$as_me:$LINENO: result: no" >&5 |
| 2145 | echo "${ECHO_T}no" >&6 |
| 2146 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2147 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2148 | test -n "$ac_ct_CC" && break |
| 2149 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2151 | CC=$ac_ct_CC |
| 2152 | fi |
| 2153 | |
| 2154 | fi |
| 2155 | |
| 2156 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2157 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2158 | See \`config.log' for more details." >&5 |
| 2159 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2160 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2161 | { (exit 1); exit 1; }; } |
| 2162 | |
| 2163 | # Provide some information about the compiler. |
| 2164 | echo "$as_me:$LINENO:" \ |
| 2165 | "checking for C compiler version" >&5 |
| 2166 | ac_compiler=`set X $ac_compile; echo $2` |
| 2167 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2168 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2169 | ac_status=$? |
| 2170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2171 | (exit $ac_status); } |
| 2172 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2173 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2174 | ac_status=$? |
| 2175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2176 | (exit $ac_status); } |
| 2177 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2178 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2179 | ac_status=$? |
| 2180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2181 | (exit $ac_status); } |
| 2182 | |
| 2183 | cat >conftest.$ac_ext <<_ACEOF |
| 2184 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2185 | /* confdefs.h. */ |
| 2186 | _ACEOF |
| 2187 | cat confdefs.h >>conftest.$ac_ext |
| 2188 | cat >>conftest.$ac_ext <<_ACEOF |
| 2189 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2190 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2191 | int |
| 2192 | main () |
| 2193 | { |
| 2194 | |
| 2195 | ; |
| 2196 | return 0; |
| 2197 | } |
| 2198 | _ACEOF |
| 2199 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2200 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2201 | # Try to create an executable without -o first, disregard a.out. |
| 2202 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2203 | # of exeext. |
| 2204 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2205 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2206 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2207 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2208 | (eval $ac_link_default) 2>&5 |
| 2209 | ac_status=$? |
| 2210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2211 | (exit $ac_status); }; then |
| 2212 | # Find the output, starting from the most likely. This scheme is |
| 2213 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2214 | # resort. |
| 2215 | |
| 2216 | # Be careful to initialize this variable, since it used to be cached. |
| 2217 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2218 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2219 | # b.out is created by i960 compilers. |
| 2220 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2221 | do |
| 2222 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2223 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2224 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 2225 | ;; |
| 2226 | conftest.$ac_ext ) |
| 2227 | # This is the source file. |
| 2228 | ;; |
| 2229 | [ab].out ) |
| 2230 | # We found the default executable, but exeext='' is most |
| 2231 | # certainly right. |
| 2232 | break;; |
| 2233 | *.* ) |
| 2234 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2235 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2236 | # but it would be cool to find out if it's true. Does anybody |
| 2237 | # maintain Libtool? --akim. |
| 2238 | export ac_cv_exeext |
| 2239 | break;; |
| 2240 | * ) |
| 2241 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2242 | esac |
| 2243 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2244 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2245 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2247 | |
| 2248 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2249 | See \`config.log' for more details." >&5 |
| 2250 | echo "$as_me: error: C compiler cannot create executables |
| 2251 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2252 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2253 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2254 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2255 | ac_exeext=$ac_cv_exeext |
| 2256 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2257 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2258 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2259 | # Check the compiler produces executables we can run. If not, either |
| 2260 | # the compiler is broken, or we cross compile. |
| 2261 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2262 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2263 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2264 | # If not cross compiling, check that we can run a simple program. |
| 2265 | if test "$cross_compiling" != yes; then |
| 2266 | if { ac_try='./$ac_file' |
| 2267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2268 | (eval $ac_try) 2>&5 |
| 2269 | ac_status=$? |
| 2270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2271 | (exit $ac_status); }; }; then |
| 2272 | cross_compiling=no |
| 2273 | else |
| 2274 | if test "$cross_compiling" = maybe; then |
| 2275 | cross_compiling=yes |
| 2276 | else |
| 2277 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2278 | If you meant to cross compile, use \`--host'. |
| 2279 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2280 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2281 | If you meant to cross compile, use \`--host'. |
| 2282 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2283 | { (exit 1); exit 1; }; } |
| 2284 | fi |
| 2285 | fi |
| 2286 | fi |
| 2287 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2288 | echo "${ECHO_T}yes" >&6 |
| 2289 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2290 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2291 | ac_clean_files=$ac_clean_files_save |
| 2292 | # Check the compiler produces executables we can run. If not, either |
| 2293 | # the compiler is broken, or we cross compile. |
| 2294 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2295 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2296 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2297 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2298 | |
| 2299 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2300 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2301 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2302 | (eval $ac_link) 2>&5 |
| 2303 | ac_status=$? |
| 2304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2305 | (exit $ac_status); }; then |
| 2306 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2307 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2308 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2309 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2310 | for ac_file in conftest.exe conftest conftest.*; do |
| 2311 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2312 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2313 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2314 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2315 | export ac_cv_exeext |
| 2316 | break;; |
| 2317 | * ) break;; |
| 2318 | esac |
| 2319 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2320 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2321 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2322 | See \`config.log' for more details." >&5 |
| 2323 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2324 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2325 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2326 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2327 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2328 | rm -f conftest$ac_cv_exeext |
| 2329 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2330 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2331 | |
| 2332 | rm -f conftest.$ac_ext |
| 2333 | EXEEXT=$ac_cv_exeext |
| 2334 | ac_exeext=$EXEEXT |
| 2335 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2336 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2337 | if test "${ac_cv_objext+set}" = set; then |
| 2338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2339 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2340 | cat >conftest.$ac_ext <<_ACEOF |
| 2341 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2342 | /* confdefs.h. */ |
| 2343 | _ACEOF |
| 2344 | cat confdefs.h >>conftest.$ac_ext |
| 2345 | cat >>conftest.$ac_ext <<_ACEOF |
| 2346 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2347 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2348 | int |
| 2349 | main () |
| 2350 | { |
| 2351 | |
| 2352 | ; |
| 2353 | return 0; |
| 2354 | } |
| 2355 | _ACEOF |
| 2356 | rm -f conftest.o conftest.obj |
| 2357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2358 | (eval $ac_compile) 2>&5 |
| 2359 | ac_status=$? |
| 2360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2361 | (exit $ac_status); }; then |
| 2362 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2363 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2364 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2365 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2366 | break;; |
| 2367 | esac |
| 2368 | done |
| 2369 | else |
| 2370 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2371 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2372 | |
| 2373 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2374 | See \`config.log' for more details." >&5 |
| 2375 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2376 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2377 | { (exit 1); exit 1; }; } |
| 2378 | fi |
| 2379 | |
| 2380 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2381 | fi |
| 2382 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2383 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2384 | OBJEXT=$ac_cv_objext |
| 2385 | ac_objext=$OBJEXT |
| 2386 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2387 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2388 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2390 | else |
| 2391 | cat >conftest.$ac_ext <<_ACEOF |
| 2392 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2393 | /* confdefs.h. */ |
| 2394 | _ACEOF |
| 2395 | cat confdefs.h >>conftest.$ac_ext |
| 2396 | cat >>conftest.$ac_ext <<_ACEOF |
| 2397 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2398 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2399 | int |
| 2400 | main () |
| 2401 | { |
| 2402 | #ifndef __GNUC__ |
| 2403 | choke me |
| 2404 | #endif |
| 2405 | |
| 2406 | ; |
| 2407 | return 0; |
| 2408 | } |
| 2409 | _ACEOF |
| 2410 | rm -f conftest.$ac_objext |
| 2411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2412 | (eval $ac_compile) 2>&5 |
| 2413 | ac_status=$? |
| 2414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2415 | (exit $ac_status); } && |
| 2416 | { ac_try='test -s conftest.$ac_objext' |
| 2417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2418 | (eval $ac_try) 2>&5 |
| 2419 | ac_status=$? |
| 2420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2421 | (exit $ac_status); }; }; then |
| 2422 | ac_compiler_gnu=yes |
| 2423 | else |
| 2424 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2426 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2427 | ac_compiler_gnu=no |
| 2428 | fi |
| 2429 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2430 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2431 | |
| 2432 | fi |
| 2433 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2434 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2435 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2436 | ac_test_CFLAGS=${CFLAGS+set} |
| 2437 | ac_save_CFLAGS=$CFLAGS |
| 2438 | CFLAGS="-g" |
| 2439 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2440 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2441 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2443 | else |
| 2444 | cat >conftest.$ac_ext <<_ACEOF |
| 2445 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2446 | /* confdefs.h. */ |
| 2447 | _ACEOF |
| 2448 | cat confdefs.h >>conftest.$ac_ext |
| 2449 | cat >>conftest.$ac_ext <<_ACEOF |
| 2450 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2451 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2452 | int |
| 2453 | main () |
| 2454 | { |
| 2455 | |
| 2456 | ; |
| 2457 | return 0; |
| 2458 | } |
| 2459 | _ACEOF |
| 2460 | rm -f conftest.$ac_objext |
| 2461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2462 | (eval $ac_compile) 2>&5 |
| 2463 | ac_status=$? |
| 2464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2465 | (exit $ac_status); } && |
| 2466 | { ac_try='test -s conftest.$ac_objext' |
| 2467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2468 | (eval $ac_try) 2>&5 |
| 2469 | ac_status=$? |
| 2470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2471 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2472 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2473 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2474 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2476 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2477 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2478 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2479 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2480 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2481 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2482 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2483 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2484 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2485 | elif test $ac_cv_prog_cc_g = yes; then |
| 2486 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2487 | CFLAGS="-g -O2" |
| 2488 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2489 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2490 | fi |
| 2491 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2492 | if test "$GCC" = yes; then |
| 2493 | CFLAGS="-O2" |
| 2494 | else |
| 2495 | CFLAGS= |
| 2496 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2497 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2498 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2499 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2500 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2502 | else |
| 2503 | ac_cv_prog_cc_stdc=no |
| 2504 | ac_save_CC=$CC |
| 2505 | cat >conftest.$ac_ext <<_ACEOF |
| 2506 | #line $LINENO "configure" |
| 2507 | /* confdefs.h. */ |
| 2508 | _ACEOF |
| 2509 | cat confdefs.h >>conftest.$ac_ext |
| 2510 | cat >>conftest.$ac_ext <<_ACEOF |
| 2511 | /* end confdefs.h. */ |
| 2512 | #include <stdarg.h> |
| 2513 | #include <stdio.h> |
| 2514 | #include <sys/types.h> |
| 2515 | #include <sys/stat.h> |
| 2516 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2517 | struct buf { int x; }; |
| 2518 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2519 | static char *e (p, i) |
| 2520 | char **p; |
| 2521 | int i; |
| 2522 | { |
| 2523 | return p[i]; |
| 2524 | } |
| 2525 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2526 | { |
| 2527 | char *s; |
| 2528 | va_list v; |
| 2529 | va_start (v,p); |
| 2530 | s = g (p, va_arg (v,int)); |
| 2531 | va_end (v); |
| 2532 | return s; |
| 2533 | } |
| 2534 | int test (int i, double x); |
| 2535 | struct s1 {int (*f) (int a);}; |
| 2536 | struct s2 {int (*f) (double a);}; |
| 2537 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2538 | int argc; |
| 2539 | char **argv; |
| 2540 | int |
| 2541 | main () |
| 2542 | { |
| 2543 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2544 | ; |
| 2545 | return 0; |
| 2546 | } |
| 2547 | _ACEOF |
| 2548 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2549 | # breaks some systems' header files. |
| 2550 | # AIX -qlanglvl=ansi |
| 2551 | # Ultrix and OSF/1 -std1 |
| 2552 | # HP-UX 10.20 and later -Ae |
| 2553 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2554 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2555 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2556 | do |
| 2557 | CC="$ac_save_CC $ac_arg" |
| 2558 | rm -f conftest.$ac_objext |
| 2559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2560 | (eval $ac_compile) 2>&5 |
| 2561 | ac_status=$? |
| 2562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2563 | (exit $ac_status); } && |
| 2564 | { ac_try='test -s conftest.$ac_objext' |
| 2565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2566 | (eval $ac_try) 2>&5 |
| 2567 | ac_status=$? |
| 2568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2569 | (exit $ac_status); }; }; then |
| 2570 | ac_cv_prog_cc_stdc=$ac_arg |
| 2571 | break |
| 2572 | else |
| 2573 | echo "$as_me: failed program was:" >&5 |
| 2574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2575 | |
| 2576 | fi |
| 2577 | rm -f conftest.$ac_objext |
| 2578 | done |
| 2579 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2580 | CC=$ac_save_CC |
| 2581 | |
| 2582 | fi |
| 2583 | |
| 2584 | case "x$ac_cv_prog_cc_stdc" in |
| 2585 | x|xno) |
| 2586 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2587 | echo "${ECHO_T}none needed" >&6 ;; |
| 2588 | *) |
| 2589 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2590 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2591 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2592 | esac |
| 2593 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2594 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2595 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2596 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2597 | # the declaration of exit, since it's the most demanding environment. |
| 2598 | cat >conftest.$ac_ext <<_ACEOF |
| 2599 | #ifndef __cplusplus |
| 2600 | choke me |
| 2601 | #endif |
| 2602 | _ACEOF |
| 2603 | rm -f conftest.$ac_objext |
| 2604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2605 | (eval $ac_compile) 2>&5 |
| 2606 | ac_status=$? |
| 2607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2608 | (exit $ac_status); } && |
| 2609 | { ac_try='test -s conftest.$ac_objext' |
| 2610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2611 | (eval $ac_try) 2>&5 |
| 2612 | ac_status=$? |
| 2613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2614 | (exit $ac_status); }; }; then |
| 2615 | for ac_declaration in \ |
| 2616 | ''\ |
| 2617 | '#include <stdlib.h>' \ |
| 2618 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2619 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2620 | 'extern "C" void exit (int) throw ();' \ |
| 2621 | 'extern "C" void exit (int);' \ |
| 2622 | 'void exit (int);' |
| 2623 | do |
| 2624 | cat >conftest.$ac_ext <<_ACEOF |
| 2625 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2626 | /* confdefs.h. */ |
| 2627 | _ACEOF |
| 2628 | cat confdefs.h >>conftest.$ac_ext |
| 2629 | cat >>conftest.$ac_ext <<_ACEOF |
| 2630 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2631 | #include <stdlib.h> |
| 2632 | $ac_declaration |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2633 | int |
| 2634 | main () |
| 2635 | { |
| 2636 | exit (42); |
| 2637 | ; |
| 2638 | return 0; |
| 2639 | } |
| 2640 | _ACEOF |
| 2641 | rm -f conftest.$ac_objext |
| 2642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2643 | (eval $ac_compile) 2>&5 |
| 2644 | ac_status=$? |
| 2645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2646 | (exit $ac_status); } && |
| 2647 | { ac_try='test -s conftest.$ac_objext' |
| 2648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2649 | (eval $ac_try) 2>&5 |
| 2650 | ac_status=$? |
| 2651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2652 | (exit $ac_status); }; }; then |
| 2653 | : |
| 2654 | else |
| 2655 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2657 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2658 | continue |
| 2659 | fi |
| 2660 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2661 | cat >conftest.$ac_ext <<_ACEOF |
| 2662 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2663 | /* confdefs.h. */ |
| 2664 | _ACEOF |
| 2665 | cat confdefs.h >>conftest.$ac_ext |
| 2666 | cat >>conftest.$ac_ext <<_ACEOF |
| 2667 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2668 | $ac_declaration |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2669 | int |
| 2670 | main () |
| 2671 | { |
| 2672 | exit (42); |
| 2673 | ; |
| 2674 | return 0; |
| 2675 | } |
| 2676 | _ACEOF |
| 2677 | rm -f conftest.$ac_objext |
| 2678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2679 | (eval $ac_compile) 2>&5 |
| 2680 | ac_status=$? |
| 2681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2682 | (exit $ac_status); } && |
| 2683 | { ac_try='test -s conftest.$ac_objext' |
| 2684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2685 | (eval $ac_try) 2>&5 |
| 2686 | ac_status=$? |
| 2687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2688 | (exit $ac_status); }; }; then |
| 2689 | break |
| 2690 | else |
| 2691 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2693 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2694 | fi |
| 2695 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2696 | done |
| 2697 | rm -f conftest* |
| 2698 | if test -n "$ac_declaration"; then |
| 2699 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2700 | echo $ac_declaration >>confdefs.h |
| 2701 | echo '#endif' >>confdefs.h |
| 2702 | fi |
| 2703 | |
| 2704 | else |
| 2705 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2706 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2707 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2708 | fi |
| 2709 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2710 | ac_ext=c |
| 2711 | ac_cpp='$CPP $CPPFLAGS' |
| 2712 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2713 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2714 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2715 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2716 | |
| 2717 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2718 | |
| 2719 | ac_ext=c |
| 2720 | ac_cpp='$CPP $CPPFLAGS' |
| 2721 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2722 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2723 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2724 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2725 | 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] | 2726 | # On Suns, sometimes $CPP names a directory. |
| 2727 | if test -n "$CPP" && test -d "$CPP"; then |
| 2728 | CPP= |
| 2729 | fi |
| 2730 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2731 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2733 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2734 | # Double quotes because CPP needs to be expanded |
| 2735 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2736 | do |
| 2737 | ac_preproc_ok=false |
| 2738 | for ac_c_preproc_warn_flag in '' yes |
| 2739 | do |
| 2740 | # Use a header file that comes with gcc, so configuring glibc |
| 2741 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2742 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2743 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2744 | # 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] | 2745 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2746 | cat >conftest.$ac_ext <<_ACEOF |
| 2747 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2748 | /* confdefs.h. */ |
| 2749 | _ACEOF |
| 2750 | cat confdefs.h >>conftest.$ac_ext |
| 2751 | cat >>conftest.$ac_ext <<_ACEOF |
| 2752 | /* end confdefs.h. */ |
| 2753 | #ifdef __STDC__ |
| 2754 | # include <limits.h> |
| 2755 | #else |
| 2756 | # include <assert.h> |
| 2757 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2758 | Syntax error |
| 2759 | _ACEOF |
| 2760 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2761 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2762 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2763 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2764 | rm -f conftest.er1 |
| 2765 | cat conftest.err >&5 |
| 2766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2767 | (exit $ac_status); } >/dev/null; then |
| 2768 | if test -s conftest.err; then |
| 2769 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2770 | else |
| 2771 | ac_cpp_err= |
| 2772 | fi |
| 2773 | else |
| 2774 | ac_cpp_err=yes |
| 2775 | fi |
| 2776 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2777 | : |
| 2778 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2779 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2781 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2782 | # Broken: fails on valid input. |
| 2783 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2784 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2785 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2786 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2787 | # OK, works on sane cases. Now check whether non-existent headers |
| 2788 | # can be detected and how. |
| 2789 | cat >conftest.$ac_ext <<_ACEOF |
| 2790 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2791 | /* confdefs.h. */ |
| 2792 | _ACEOF |
| 2793 | cat confdefs.h >>conftest.$ac_ext |
| 2794 | cat >>conftest.$ac_ext <<_ACEOF |
| 2795 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2796 | #include <ac_nonexistent.h> |
| 2797 | _ACEOF |
| 2798 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2799 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2800 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2801 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2802 | rm -f conftest.er1 |
| 2803 | cat conftest.err >&5 |
| 2804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2805 | (exit $ac_status); } >/dev/null; then |
| 2806 | if test -s conftest.err; then |
| 2807 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2808 | else |
| 2809 | ac_cpp_err= |
| 2810 | fi |
| 2811 | else |
| 2812 | ac_cpp_err=yes |
| 2813 | fi |
| 2814 | if test -z "$ac_cpp_err"; then |
| 2815 | # Broken: success on invalid input. |
| 2816 | continue |
| 2817 | else |
| 2818 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2821 | # Passes both tests. |
| 2822 | ac_preproc_ok=: |
| 2823 | break |
| 2824 | fi |
| 2825 | rm -f conftest.err conftest.$ac_ext |
| 2826 | |
| 2827 | done |
| 2828 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2829 | rm -f conftest.err conftest.$ac_ext |
| 2830 | if $ac_preproc_ok; then |
| 2831 | break |
| 2832 | fi |
| 2833 | |
| 2834 | done |
| 2835 | ac_cv_prog_CPP=$CPP |
| 2836 | |
| 2837 | fi |
| 2838 | CPP=$ac_cv_prog_CPP |
| 2839 | else |
| 2840 | ac_cv_prog_CPP=$CPP |
| 2841 | fi |
| 2842 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2843 | echo "${ECHO_T}$CPP" >&6 |
| 2844 | ac_preproc_ok=false |
| 2845 | for ac_c_preproc_warn_flag in '' yes |
| 2846 | do |
| 2847 | # Use a header file that comes with gcc, so configuring glibc |
| 2848 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2849 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2850 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2851 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2852 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2853 | cat >conftest.$ac_ext <<_ACEOF |
| 2854 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2855 | /* confdefs.h. */ |
| 2856 | _ACEOF |
| 2857 | cat confdefs.h >>conftest.$ac_ext |
| 2858 | cat >>conftest.$ac_ext <<_ACEOF |
| 2859 | /* end confdefs.h. */ |
| 2860 | #ifdef __STDC__ |
| 2861 | # include <limits.h> |
| 2862 | #else |
| 2863 | # include <assert.h> |
| 2864 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2865 | Syntax error |
| 2866 | _ACEOF |
| 2867 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2868 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2869 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2870 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2871 | rm -f conftest.er1 |
| 2872 | cat conftest.err >&5 |
| 2873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2874 | (exit $ac_status); } >/dev/null; then |
| 2875 | if test -s conftest.err; then |
| 2876 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2877 | else |
| 2878 | ac_cpp_err= |
| 2879 | fi |
| 2880 | else |
| 2881 | ac_cpp_err=yes |
| 2882 | fi |
| 2883 | if test -z "$ac_cpp_err"; then |
| 2884 | : |
| 2885 | else |
| 2886 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2888 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2889 | # Broken: fails on valid input. |
| 2890 | continue |
| 2891 | fi |
| 2892 | rm -f conftest.err conftest.$ac_ext |
| 2893 | |
| 2894 | # OK, works on sane cases. Now check whether non-existent headers |
| 2895 | # can be detected and how. |
| 2896 | cat >conftest.$ac_ext <<_ACEOF |
| 2897 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2898 | /* confdefs.h. */ |
| 2899 | _ACEOF |
| 2900 | cat confdefs.h >>conftest.$ac_ext |
| 2901 | cat >>conftest.$ac_ext <<_ACEOF |
| 2902 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2903 | #include <ac_nonexistent.h> |
| 2904 | _ACEOF |
| 2905 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2906 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2907 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2908 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2909 | rm -f conftest.er1 |
| 2910 | cat conftest.err >&5 |
| 2911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2912 | (exit $ac_status); } >/dev/null; then |
| 2913 | if test -s conftest.err; then |
| 2914 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2915 | else |
| 2916 | ac_cpp_err= |
| 2917 | fi |
| 2918 | else |
| 2919 | ac_cpp_err=yes |
| 2920 | fi |
| 2921 | if test -z "$ac_cpp_err"; then |
| 2922 | # Broken: success on invalid input. |
| 2923 | continue |
| 2924 | else |
| 2925 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2926 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2927 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2928 | # Passes both tests. |
| 2929 | ac_preproc_ok=: |
| 2930 | break |
| 2931 | fi |
| 2932 | rm -f conftest.err conftest.$ac_ext |
| 2933 | |
| 2934 | done |
| 2935 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2936 | rm -f conftest.err conftest.$ac_ext |
| 2937 | if $ac_preproc_ok; then |
| 2938 | : |
| 2939 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2940 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2941 | See \`config.log' for more details." >&5 |
| 2942 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2943 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2944 | { (exit 1); exit 1; }; } |
| 2945 | fi |
| 2946 | |
| 2947 | ac_ext=c |
| 2948 | ac_cpp='$CPP $CPPFLAGS' |
| 2949 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2950 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2951 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2952 | |
| 2953 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2954 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 2955 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 2956 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 2957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2958 | else |
| 2959 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2960 | then ac_cv_prog_egrep='grep -E' |
| 2961 | else ac_cv_prog_egrep='egrep' |
| 2962 | fi |
| 2963 | fi |
| 2964 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 2965 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 2966 | EGREP=$ac_cv_prog_egrep |
| 2967 | |
| 2968 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2969 | |
| 2970 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2971 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2972 | cat >conftest.$ac_ext <<_ACEOF |
| 2973 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2974 | /* confdefs.h. */ |
| 2975 | _ACEOF |
| 2976 | cat confdefs.h >>conftest.$ac_ext |
| 2977 | cat >>conftest.$ac_ext <<_ACEOF |
| 2978 | /* end confdefs.h. */ |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2979 | #ifdef _AIX |
| 2980 | yes |
| 2981 | #endif |
| 2982 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2983 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2984 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2985 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2986 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2987 | echo "${ECHO_T}yes" >&6 |
| 2988 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2989 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2990 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2991 | |
| 2992 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2993 | echo "$as_me:$LINENO: result: no" >&5 |
| 2994 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2995 | fi |
| 2996 | rm -f conftest* |
| 2997 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2998 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2999 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3000 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3001 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3003 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3004 | cat >conftest.$ac_ext <<_ACEOF |
| 3005 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3006 | /* confdefs.h. */ |
| 3007 | _ACEOF |
| 3008 | cat confdefs.h >>conftest.$ac_ext |
| 3009 | cat >>conftest.$ac_ext <<_ACEOF |
| 3010 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3011 | #include <stdlib.h> |
| 3012 | #include <stdarg.h> |
| 3013 | #include <string.h> |
| 3014 | #include <float.h> |
| 3015 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3016 | int |
| 3017 | main () |
| 3018 | { |
| 3019 | |
| 3020 | ; |
| 3021 | return 0; |
| 3022 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3023 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3024 | rm -f conftest.$ac_objext |
| 3025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3026 | (eval $ac_compile) 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3027 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3029 | (exit $ac_status); } && |
| 3030 | { ac_try='test -s conftest.$ac_objext' |
| 3031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3032 | (eval $ac_try) 2>&5 |
| 3033 | ac_status=$? |
| 3034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3035 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3036 | ac_cv_header_stdc=yes |
| 3037 | else |
| 3038 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3040 | |
| 3041 | ac_cv_header_stdc=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3042 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3043 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3044 | |
| 3045 | if test $ac_cv_header_stdc = yes; then |
| 3046 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3047 | cat >conftest.$ac_ext <<_ACEOF |
| 3048 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3049 | /* confdefs.h. */ |
| 3050 | _ACEOF |
| 3051 | cat confdefs.h >>conftest.$ac_ext |
| 3052 | cat >>conftest.$ac_ext <<_ACEOF |
| 3053 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3054 | #include <string.h> |
| 3055 | |
| 3056 | _ACEOF |
| 3057 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3058 | $EGREP "memchr" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3059 | : |
| 3060 | else |
| 3061 | ac_cv_header_stdc=no |
| 3062 | fi |
| 3063 | rm -f conftest* |
| 3064 | |
| 3065 | fi |
| 3066 | |
| 3067 | if test $ac_cv_header_stdc = yes; then |
| 3068 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3069 | cat >conftest.$ac_ext <<_ACEOF |
| 3070 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3071 | /* confdefs.h. */ |
| 3072 | _ACEOF |
| 3073 | cat confdefs.h >>conftest.$ac_ext |
| 3074 | cat >>conftest.$ac_ext <<_ACEOF |
| 3075 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3076 | #include <stdlib.h> |
| 3077 | |
| 3078 | _ACEOF |
| 3079 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3080 | $EGREP "free" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3081 | : |
| 3082 | else |
| 3083 | ac_cv_header_stdc=no |
| 3084 | fi |
| 3085 | rm -f conftest* |
| 3086 | |
| 3087 | fi |
| 3088 | |
| 3089 | if test $ac_cv_header_stdc = yes; then |
| 3090 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3091 | if test "$cross_compiling" = yes; then |
| 3092 | : |
| 3093 | else |
| 3094 | cat >conftest.$ac_ext <<_ACEOF |
| 3095 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3096 | /* confdefs.h. */ |
| 3097 | _ACEOF |
| 3098 | cat confdefs.h >>conftest.$ac_ext |
| 3099 | cat >>conftest.$ac_ext <<_ACEOF |
| 3100 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3101 | #include <ctype.h> |
| 3102 | #if ((' ' & 0x0FF) == 0x020) |
| 3103 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3104 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3105 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3106 | # define ISLOWER(c) \ |
| 3107 | (('a' <= (c) && (c) <= 'i') \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3108 | || ('j' <= (c) && (c) <= 'r') \ |
| 3109 | || ('s' <= (c) && (c) <= 'z')) |
| 3110 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3111 | #endif |
| 3112 | |
| 3113 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3114 | int |
| 3115 | main () |
| 3116 | { |
| 3117 | int i; |
| 3118 | for (i = 0; i < 256; i++) |
| 3119 | if (XOR (islower (i), ISLOWER (i)) |
| 3120 | || toupper (i) != TOUPPER (i)) |
| 3121 | exit(2); |
| 3122 | exit (0); |
| 3123 | } |
| 3124 | _ACEOF |
| 3125 | rm -f conftest$ac_exeext |
| 3126 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3127 | (eval $ac_link) 2>&5 |
| 3128 | ac_status=$? |
| 3129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3130 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3132 | (eval $ac_try) 2>&5 |
| 3133 | ac_status=$? |
| 3134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3135 | (exit $ac_status); }; }; then |
| 3136 | : |
| 3137 | else |
| 3138 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3139 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3141 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3142 | ( exit $ac_status ) |
| 3143 | ac_cv_header_stdc=no |
| 3144 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3145 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3146 | fi |
| 3147 | fi |
| 3148 | fi |
| 3149 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3150 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 3151 | if test $ac_cv_header_stdc = yes; then |
| 3152 | |
| 3153 | cat >>confdefs.h <<\_ACEOF |
| 3154 | #define STDC_HEADERS 1 |
| 3155 | _ACEOF |
| 3156 | |
| 3157 | fi |
| 3158 | |
| 3159 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3160 | |
| 3161 | |
| 3162 | |
| 3163 | |
| 3164 | |
| 3165 | |
| 3166 | |
| 3167 | |
| 3168 | |
| 3169 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3170 | inttypes.h stdint.h unistd.h |
| 3171 | do |
| 3172 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3173 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3174 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3175 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3177 | else |
| 3178 | cat >conftest.$ac_ext <<_ACEOF |
| 3179 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3180 | /* confdefs.h. */ |
| 3181 | _ACEOF |
| 3182 | cat confdefs.h >>conftest.$ac_ext |
| 3183 | cat >>conftest.$ac_ext <<_ACEOF |
| 3184 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3185 | $ac_includes_default |
| 3186 | |
| 3187 | #include <$ac_header> |
| 3188 | _ACEOF |
| 3189 | rm -f conftest.$ac_objext |
| 3190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3191 | (eval $ac_compile) 2>&5 |
| 3192 | ac_status=$? |
| 3193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3194 | (exit $ac_status); } && |
| 3195 | { ac_try='test -s conftest.$ac_objext' |
| 3196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3197 | (eval $ac_try) 2>&5 |
| 3198 | ac_status=$? |
| 3199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3200 | (exit $ac_status); }; }; then |
| 3201 | eval "$as_ac_Header=yes" |
| 3202 | else |
| 3203 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3205 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3206 | eval "$as_ac_Header=no" |
| 3207 | fi |
| 3208 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3209 | fi |
| 3210 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3211 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3212 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3213 | cat >>confdefs.h <<_ACEOF |
| 3214 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3215 | _ACEOF |
| 3216 | |
| 3217 | fi |
| 3218 | |
| 3219 | done |
| 3220 | |
| 3221 | |
| 3222 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 3223 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 3224 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 3225 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 3226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3227 | fi |
| 3228 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 3229 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 3230 | else |
| 3231 | # Is the header compilable? |
| 3232 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 3233 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 |
| 3234 | cat >conftest.$ac_ext <<_ACEOF |
| 3235 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3236 | /* confdefs.h. */ |
| 3237 | _ACEOF |
| 3238 | cat confdefs.h >>conftest.$ac_ext |
| 3239 | cat >>conftest.$ac_ext <<_ACEOF |
| 3240 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3241 | $ac_includes_default |
| 3242 | #include <minix/config.h> |
| 3243 | _ACEOF |
| 3244 | rm -f conftest.$ac_objext |
| 3245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3246 | (eval $ac_compile) 2>&5 |
| 3247 | ac_status=$? |
| 3248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3249 | (exit $ac_status); } && |
| 3250 | { ac_try='test -s conftest.$ac_objext' |
| 3251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3252 | (eval $ac_try) 2>&5 |
| 3253 | ac_status=$? |
| 3254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3255 | (exit $ac_status); }; }; then |
| 3256 | ac_header_compiler=yes |
| 3257 | else |
| 3258 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3260 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3261 | ac_header_compiler=no |
| 3262 | fi |
| 3263 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3264 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3265 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3266 | |
| 3267 | # Is the header present? |
| 3268 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 3269 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 |
| 3270 | cat >conftest.$ac_ext <<_ACEOF |
| 3271 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3272 | /* confdefs.h. */ |
| 3273 | _ACEOF |
| 3274 | cat confdefs.h >>conftest.$ac_ext |
| 3275 | cat >>conftest.$ac_ext <<_ACEOF |
| 3276 | /* end confdefs.h. */ |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3277 | #include <minix/config.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3278 | _ACEOF |
| 3279 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3280 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3281 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3282 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3283 | rm -f conftest.er1 |
| 3284 | cat conftest.err >&5 |
| 3285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3286 | (exit $ac_status); } >/dev/null; then |
| 3287 | if test -s conftest.err; then |
| 3288 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3289 | else |
| 3290 | ac_cpp_err= |
| 3291 | fi |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3292 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3293 | ac_cpp_err=yes |
| 3294 | fi |
| 3295 | if test -z "$ac_cpp_err"; then |
| 3296 | ac_header_preproc=yes |
| 3297 | else |
| 3298 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3300 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3301 | ac_header_preproc=no |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3302 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3303 | rm -f conftest.err conftest.$ac_ext |
| 3304 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3305 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3306 | |
| 3307 | # So? What about this header? |
| 3308 | case $ac_header_compiler:$ac_header_preproc in |
| 3309 | yes:no ) |
| 3310 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3311 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3312 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3313 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} |
| 3314 | ( |
| 3315 | cat <<\_ASBOX |
| 3316 | ## ------------------------------------ ## |
| 3317 | ## Report this to bug-autoconf@gnu.org. ## |
| 3318 | ## ------------------------------------ ## |
| 3319 | _ASBOX |
| 3320 | ) | |
| 3321 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3322 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3323 | no:yes ) |
| 3324 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 3325 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 3326 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 3327 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 3328 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3329 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} |
| 3330 | ( |
| 3331 | cat <<\_ASBOX |
| 3332 | ## ------------------------------------ ## |
| 3333 | ## Report this to bug-autoconf@gnu.org. ## |
| 3334 | ## ------------------------------------ ## |
| 3335 | _ASBOX |
| 3336 | ) | |
| 3337 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3338 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3339 | esac |
| 3340 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 3341 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 3342 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 3343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3344 | else |
| 3345 | ac_cv_header_minix_config_h=$ac_header_preproc |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3346 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3347 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 3348 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 3349 | |
| 3350 | fi |
| 3351 | if test $ac_cv_header_minix_config_h = yes; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3352 | MINIX=yes |
| 3353 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3354 | MINIX= |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3355 | fi |
| 3356 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3357 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3358 | if test "$MINIX" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3359 | |
| 3360 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3361 | #define _POSIX_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3362 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3363 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3364 | |
| 3365 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3366 | #define _POSIX_1_SOURCE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3367 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3368 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3369 | |
| 3370 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3371 | #define _MINIX 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3372 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3373 | |
| 3374 | fi |
| 3375 | |
| 3376 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3377 | # Check for unsupported systems |
| 3378 | case $ac_sys_system/$ac_sys_release in |
| 3379 | SunOS/4*|DYNIX/*|dgux*/*|IRIX/4*|Linux*/1*) |
| 3380 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3381 | echo See README for details. |
| 3382 | exit 1;; |
| 3383 | esac |
| 3384 | |
| 3385 | if test "$MINIX" = yes; then |
| 3386 | echo This system \(MINIX\) is no longer supported. |
| 3387 | echo Read README for details. |
| 3388 | exit 1 |
| 3389 | fi |
| 3390 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3391 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3392 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3393 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3394 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3395 | # Check whether --with-suffix or --without-suffix was given. |
| 3396 | if test "${with_suffix+set}" = set; then |
| 3397 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3398 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3399 | case $withval in |
| 3400 | no) EXEEXT=;; |
| 3401 | yes) EXEEXT=.exe;; |
| 3402 | *) EXEEXT=$withval;; |
| 3403 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3404 | fi; |
| 3405 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3406 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3407 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3408 | # Test whether we're running on a non-case-sensitive system, in which |
| 3409 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3410 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3411 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3412 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3413 | if test ! -d CaseSensitiveTestDir; then |
| 3414 | mkdir CaseSensitiveTestDir |
| 3415 | fi |
| 3416 | |
| 3417 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3418 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3419 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3420 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3421 | BUILDEXEEXT=.exe |
| 3422 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3423 | echo "$as_me:$LINENO: result: no" >&5 |
| 3424 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3425 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3426 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3427 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3428 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3429 | case $MACHDEP in |
| 3430 | bsdos*) |
| 3431 | case $CC in |
| 3432 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3433 | esac;; |
| 3434 | esac |
| 3435 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3436 | case $ac_sys_system in |
| 3437 | hp*|HP*) |
| 3438 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3439 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3440 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3441 | Monterey*) |
| 3442 | case $CC in |
| 3443 | cc) CC="$CC -Wl,-Bexport";; |
| 3444 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3445 | SunOS*) |
| 3446 | # 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] | 3447 | |
| 3448 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3449 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3450 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3451 | |
| 3452 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3453 | esac |
| 3454 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3455 | |
| 3456 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3457 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3458 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3459 | if test -z "$LIBRARY" |
| 3460 | then |
| 3461 | LIBRARY='libpython$(VERSION).a' |
| 3462 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3463 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3464 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3465 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3466 | # 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] | 3467 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3468 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3469 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3470 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3471 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3472 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3473 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3474 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3475 | # RUNSHARED is used to run shared python without installed libraries |
| 3476 | # |
| 3477 | # INSTSONAME is the name of the shared library that will be use to install |
| 3478 | # on the system - some systems like version suffix, others don't |
| 3479 | |
| 3480 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3481 | |
| 3482 | |
| 3483 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3484 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3485 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3486 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3487 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3488 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3489 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3490 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3491 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3492 | # 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] | 3493 | # If CXX is set, and if it is needed to link a main function that was |
| 3494 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3495 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3496 | # 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] | 3497 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3498 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3499 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3500 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3501 | if test -z "$LINKCC" |
| 3502 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3503 | if test -z "$CXX"; then |
| 3504 | LINKCC="\$(PURIFY) \$(CC)" |
| 3505 | else |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3506 | 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] | 3507 | $CXX -c conftest.$ac_ext 2>&5 |
| 3508 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3509 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3510 | then |
| 3511 | LINKCC="\$(PURIFY) \$(CC)" |
| 3512 | else |
| 3513 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3514 | fi |
| 3515 | rm -fr conftest* |
| 3516 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3517 | case $ac_sys_system in |
| 3518 | AIX*) |
Neal Norwitz | 0b27ff9 | 2003-03-31 15:53:49 +0000 | [diff] [blame] | 3519 | exp_extra="\"\"" |
| 3520 | if test $ac_sys_release -ge 5 -o \ |
| 3521 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3522 | exp_extra="." |
| 3523 | fi |
| 3524 | 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] | 3525 | dgux*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3526 | LINKCC="LD_RUN_PATH=$libdir $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3527 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3528 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3529 | esac |
| 3530 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3531 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3532 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3533 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3534 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3535 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3536 | # Check whether --enable-shared or --disable-shared was given. |
| 3537 | if test "${enable_shared+set}" = set; then |
| 3538 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3539 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3540 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3541 | |
| 3542 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3543 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3544 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3545 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3546 | enable_shared="yes";; |
| 3547 | *) |
| 3548 | enable_shared="no";; |
| 3549 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3550 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3551 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3552 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3553 | |
| 3554 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3555 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3556 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3557 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3558 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3559 | # library that we build, but we do not want to link against it (we |
| 3560 | # will find it with a -framework option). For this reason there is an |
| 3561 | # extra variable BLDLIBRARY against which Python and the extension |
| 3562 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3563 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3564 | if test "$enable_framework" |
| 3565 | then |
| 3566 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 3567 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3568 | BLDLIBRARY='' |
| 3569 | else |
| 3570 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3571 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3572 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3573 | # Other platforms follow |
| 3574 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3575 | |
| 3576 | cat >>confdefs.h <<\_ACEOF |
| 3577 | #define Py_ENABLE_SHARED 1 |
| 3578 | _ACEOF |
| 3579 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3580 | case $ac_sys_system in |
| 3581 | BeOS*) |
| 3582 | LDLIBRARY='libpython$(VERSION).so' |
| 3583 | ;; |
| 3584 | CYGWIN*) |
| 3585 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3586 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3587 | ;; |
| 3588 | SunOS*) |
| 3589 | LDLIBRARY='libpython$(VERSION).so' |
Martin v. Löwis | d141a8c | 2003-06-14 15:20:28 +0000 | [diff] [blame] | 3590 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3591 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3592 | ;; |
Martin v. Löwis | 96ce805 | 2003-05-31 07:58:45 +0000 | [diff] [blame] | 3593 | Linux*|GNU*|NetBSD*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3594 | LDLIBRARY='libpython$(VERSION).so' |
| 3595 | BLDLIBRARY='-L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3596 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3597 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3598 | ;; |
| 3599 | hp*|HP*) |
| 3600 | LDLIBRARY='libpython$(VERSION).sl' |
| 3601 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3602 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3603 | ;; |
| 3604 | OSF*) |
| 3605 | LDLIBRARY='libpython$(VERSION).so' |
| 3606 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3607 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3608 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3609 | atheos*) |
| 3610 | LDLIBRARY='libpython$(VERSION).so' |
| 3611 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3612 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3613 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3614 | esac |
| 3615 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 3616 | case $MACHDEP in |
| 3617 | dguxR4) |
| 3618 | LDLIBRARY='libpython$(VERSION).so' |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3619 | BASECFLAGS="$BASECFLAGS -pic" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3620 | ;; |
| 3621 | esac |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 3622 | else # shared is disabled |
| 3623 | case $ac_sys_system in |
| 3624 | CYGWIN*) |
| 3625 | BLDLIBRARY='$(LIBRARY)' |
| 3626 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3627 | ;; |
| 3628 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3629 | fi |
| 3630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3631 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3632 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3633 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3634 | if test -n "$ac_tool_prefix"; then |
| 3635 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3636 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3637 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3638 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3639 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3641 | else |
| 3642 | if test -n "$RANLIB"; then |
| 3643 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3644 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3646 | for as_dir in $PATH |
| 3647 | do |
| 3648 | IFS=$as_save_IFS |
| 3649 | test -z "$as_dir" && as_dir=. |
| 3650 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3651 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3652 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3653 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3654 | break 2 |
| 3655 | fi |
| 3656 | done |
| 3657 | done |
| 3658 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3659 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3660 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3661 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3662 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3663 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3664 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3665 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3666 | echo "$as_me:$LINENO: result: no" >&5 |
| 3667 | echo "${ECHO_T}no" >&6 |
| 3668 | fi |
| 3669 | |
| 3670 | fi |
| 3671 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3672 | ac_ct_RANLIB=$RANLIB |
| 3673 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3674 | set dummy ranlib; ac_word=$2 |
| 3675 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3676 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3677 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3679 | else |
| 3680 | if test -n "$ac_ct_RANLIB"; then |
| 3681 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3682 | else |
| 3683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3684 | for as_dir in $PATH |
| 3685 | do |
| 3686 | IFS=$as_save_IFS |
| 3687 | test -z "$as_dir" && as_dir=. |
| 3688 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3689 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3690 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3691 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3692 | break 2 |
| 3693 | fi |
| 3694 | done |
| 3695 | done |
| 3696 | |
| 3697 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3698 | fi |
| 3699 | fi |
| 3700 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3701 | if test -n "$ac_ct_RANLIB"; then |
| 3702 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3703 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3704 | else |
| 3705 | echo "$as_me:$LINENO: result: no" >&5 |
| 3706 | echo "${ECHO_T}no" >&6 |
| 3707 | fi |
| 3708 | |
| 3709 | RANLIB=$ac_ct_RANLIB |
| 3710 | else |
| 3711 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3712 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3713 | |
| 3714 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3715 | for ac_prog in ar aal |
| 3716 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3717 | # 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] | 3718 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3719 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3720 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3721 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3723 | else |
| 3724 | if test -n "$AR"; then |
| 3725 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3726 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3728 | for as_dir in $PATH |
| 3729 | do |
| 3730 | IFS=$as_save_IFS |
| 3731 | test -z "$as_dir" && as_dir=. |
| 3732 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3733 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3734 | ac_cv_prog_AR="$ac_prog" |
| 3735 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3736 | break 2 |
| 3737 | fi |
| 3738 | done |
| 3739 | done |
| 3740 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3741 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3742 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3743 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3744 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3745 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3746 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3747 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3748 | echo "$as_me:$LINENO: result: no" >&5 |
| 3749 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3750 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3751 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3752 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3753 | done |
| 3754 | test -n "$AR" || AR="ar" |
| 3755 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3756 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3757 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3758 | bsdos*|hp*|HP*) |
| 3759 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3760 | if test -z "$INSTALL" |
| 3761 | then |
| 3762 | INSTALL="${srcdir}/install-sh -c" |
| 3763 | fi |
| 3764 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3765 | ac_aux_dir= |
| 3766 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3767 | if test -f $ac_dir/install-sh; then |
| 3768 | ac_aux_dir=$ac_dir |
| 3769 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3770 | break |
| 3771 | elif test -f $ac_dir/install.sh; then |
| 3772 | ac_aux_dir=$ac_dir |
| 3773 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3774 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3775 | elif test -f $ac_dir/shtool; then |
| 3776 | ac_aux_dir=$ac_dir |
| 3777 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3778 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3779 | fi |
| 3780 | done |
| 3781 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3782 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3783 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3784 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3785 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3786 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3787 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3788 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3789 | |
| 3790 | # Find a good install program. We prefer a C program (faster), |
| 3791 | # so one script is as good as another. But avoid the broken or |
| 3792 | # incompatible versions: |
| 3793 | # SysV /etc/install, /usr/sbin/install |
| 3794 | # SunOS /usr/etc/install |
| 3795 | # IRIX /sbin/install |
| 3796 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3797 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3798 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3799 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3800 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3801 | # ./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] | 3802 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3803 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3804 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3805 | if test "${ac_cv_path_install+set}" = set; then |
| 3806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3807 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3809 | for as_dir in $PATH |
| 3810 | do |
| 3811 | IFS=$as_save_IFS |
| 3812 | test -z "$as_dir" && as_dir=. |
| 3813 | # Account for people who put trailing slashes in PATH elements. |
| 3814 | case $as_dir/ in |
| 3815 | ./ | .// | /cC/* | \ |
| 3816 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3817 | /usr/ucb/* ) ;; |
| 3818 | *) |
| 3819 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3820 | # Don't use installbsd from OSF since it installs stuff as root |
| 3821 | # by default. |
| 3822 | for ac_prog in ginstall scoinst install; do |
| 3823 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3824 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3825 | if test $ac_prog = install && |
| 3826 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3827 | # AIX install. It has an incompatible calling convention. |
| 3828 | : |
| 3829 | elif test $ac_prog = install && |
| 3830 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3831 | # program-specific install script used by HP pwplus--don't use. |
| 3832 | : |
| 3833 | else |
| 3834 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3835 | break 3 |
| 3836 | fi |
| 3837 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3838 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3839 | done |
| 3840 | ;; |
| 3841 | esac |
| 3842 | done |
| 3843 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3844 | |
| 3845 | fi |
| 3846 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3847 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3848 | else |
| 3849 | # As a last resort, use the slow shell script. We don't cache a |
| 3850 | # path for INSTALL within a source directory, because that will |
| 3851 | # break other packages using the cache if that directory is |
| 3852 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3853 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3854 | fi |
| 3855 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3856 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3857 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3858 | |
| 3859 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3860 | # It thinks the first close brace ends the variable substitution. |
| 3861 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3862 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3863 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3864 | |
| 3865 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3866 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3867 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3868 | # Not every filesystem supports hard links |
| 3869 | |
| 3870 | if test -z "$LN" ; then |
| 3871 | case $ac_sys_system in |
| 3872 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3873 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3874 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3875 | *) LN=ln;; |
| 3876 | esac |
| 3877 | fi |
| 3878 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3879 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3880 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3881 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3882 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3883 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3884 | if test "${with_pydebug+set}" = set; then |
| 3885 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3886 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3887 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3888 | then |
| 3889 | |
| 3890 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3891 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3892 | _ACEOF |
| 3893 | |
| 3894 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3895 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3896 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3897 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3898 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3899 | fi |
| 3900 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3901 | echo "$as_me:$LINENO: result: no" >&5 |
| 3902 | echo "${ECHO_T}no" >&6 |
| 3903 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3904 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3905 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 3906 | # merged with this chunk of code? |
| 3907 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3908 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3909 | # ------------------------ |
| 3910 | # (The following bit of code is complicated enough - please keep things |
| 3911 | # indented properly. Just pretend you're editing Python code. ;-) |
| 3912 | |
| 3913 | # There are two parallel sets of case statements below, one that checks to |
| 3914 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 3915 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 3916 | # user set OPT. |
| 3917 | |
| 3918 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 3919 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3920 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3921 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3922 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3923 | case $GCC in |
| 3924 | yes) |
| 3925 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3926 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3927 | if test "$Py_DEBUG" = 'true' ; then |
| 3928 | # Optimization messes up debuggers, so turn it off for |
| 3929 | # debug builds. |
| 3930 | OPT="-g -Wall -Wstrict-prototypes" |
| 3931 | else |
| 3932 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3933 | fi |
| 3934 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3935 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3936 | OPT="-O3 -Wall -Wstrict-prototypes" |
| 3937 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3938 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3939 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3940 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 3941 | ;; |
| 3942 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3943 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3944 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3945 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3946 | OPT="-O" |
| 3947 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3948 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3949 | |
| 3950 | # The current (beta) Monterey compiler dies with optimizations |
| 3951 | # 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] | 3952 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3953 | Monterey*) |
| 3954 | OPT="" |
| 3955 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3956 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3957 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3958 | fi |
| 3959 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3960 | |
| 3961 | # tweak BASECFLAGS based on compiler and platform |
| 3962 | case $GCC in |
| 3963 | yes) |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3964 | # Python violates C99 rules, by casting between incompatible |
| 3965 | # pointer types. GCC may generate bad code as a result of that, |
| 3966 | # so use -fno-strict-aliasing if supported. |
| 3967 | echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 3968 | echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6 |
| 3969 | ac_save_cc="$CC" |
| 3970 | CC="$CC -fno-strict-aliasing" |
| 3971 | if test "$cross_compiling" = yes; then |
| 3972 | ac_cv_no_strict_aliasing_ok=no |
| 3973 | else |
| 3974 | cat >conftest.$ac_ext <<_ACEOF |
| 3975 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3976 | /* confdefs.h. */ |
| 3977 | _ACEOF |
| 3978 | cat confdefs.h >>conftest.$ac_ext |
| 3979 | cat >>conftest.$ac_ext <<_ACEOF |
| 3980 | /* end confdefs.h. */ |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3981 | int main() { return 0; } |
| 3982 | _ACEOF |
| 3983 | rm -f conftest$ac_exeext |
| 3984 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3985 | (eval $ac_link) 2>&5 |
| 3986 | ac_status=$? |
| 3987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3988 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3990 | (eval $ac_try) 2>&5 |
| 3991 | ac_status=$? |
| 3992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3993 | (exit $ac_status); }; }; then |
| 3994 | ac_cv_no_strict_aliasing_ok=yes |
| 3995 | else |
| 3996 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3997 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3998 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3999 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4000 | ( exit $ac_status ) |
| 4001 | ac_cv_no_strict_aliasing_ok=no |
| 4002 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4003 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4004 | fi |
| 4005 | CC="$ac_save_cc" |
| 4006 | echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 4007 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6 |
| 4008 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 4009 | then |
| 4010 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 4011 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4012 | case $ac_sys_system in |
| 4013 | SCO_SV*) |
| 4014 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 4015 | ;; |
| 4016 | # is there any other compiler on Darwin besides gcc? |
| 4017 | Darwin*) |
Jack Jansen | e004041 | 2003-07-23 22:17:28 +0000 | [diff] [blame] | 4018 | BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4019 | ;; |
| 4020 | esac |
| 4021 | ;; |
| 4022 | |
| 4023 | *) |
| 4024 | case $ac_sys_system in |
| 4025 | OpenUNIX*|UnixWare*) |
| 4026 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 4027 | ;; |
Neal Norwitz | b44f165 | 2003-05-26 14:11:55 +0000 | [diff] [blame] | 4028 | OSF*) |
| 4029 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 4030 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4031 | SCO_SV*) |
| 4032 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 4033 | ;; |
| 4034 | esac |
| 4035 | ;; |
| 4036 | esac |
| 4037 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 4038 | if test "$Py_DEBUG" = 'true'; then |
| 4039 | : |
| 4040 | else |
| 4041 | OPT="-DNDEBUG $OPT" |
| 4042 | fi |
| 4043 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 4044 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 4045 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4046 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 4047 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4048 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4049 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 4050 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 4051 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 4052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4053 | else |
| 4054 | ac_save_cc="$CC" |
| 4055 | CC="$CC -OPT:Olimit=0" |
| 4056 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 4057 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4058 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4059 | cat >conftest.$ac_ext <<_ACEOF |
| 4060 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4061 | /* confdefs.h. */ |
| 4062 | _ACEOF |
| 4063 | cat confdefs.h >>conftest.$ac_ext |
| 4064 | cat >>conftest.$ac_ext <<_ACEOF |
| 4065 | /* end confdefs.h. */ |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4066 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4067 | _ACEOF |
| 4068 | rm -f conftest$ac_exeext |
| 4069 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4070 | (eval $ac_link) 2>&5 |
| 4071 | ac_status=$? |
| 4072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4073 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4075 | (eval $ac_try) 2>&5 |
| 4076 | ac_status=$? |
| 4077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4078 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4079 | ac_cv_opt_olimit_ok=yes |
| 4080 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4081 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4082 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4084 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4085 | ( exit $ac_status ) |
| 4086 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4087 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4088 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4089 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4090 | CC="$ac_save_cc" |
| 4091 | fi |
| 4092 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4093 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 4094 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 4095 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4096 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4097 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 4098 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 4099 | # environment? |
| 4100 | Darwin*) |
| 4101 | ;; |
| 4102 | *) |
| 4103 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 4104 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4105 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4106 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4107 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 4108 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 4109 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 4110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4111 | else |
| 4112 | ac_save_cc="$CC" |
| 4113 | CC="$CC -Olimit 1500" |
| 4114 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 4115 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4116 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4117 | cat >conftest.$ac_ext <<_ACEOF |
| 4118 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4119 | /* confdefs.h. */ |
| 4120 | _ACEOF |
| 4121 | cat confdefs.h >>conftest.$ac_ext |
| 4122 | cat >>conftest.$ac_ext <<_ACEOF |
| 4123 | /* end confdefs.h. */ |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4124 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4125 | _ACEOF |
| 4126 | rm -f conftest$ac_exeext |
| 4127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4128 | (eval $ac_link) 2>&5 |
| 4129 | ac_status=$? |
| 4130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4131 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4133 | (eval $ac_try) 2>&5 |
| 4134 | ac_status=$? |
| 4135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4136 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4137 | ac_cv_olimit_ok=yes |
| 4138 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4139 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4140 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4141 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4142 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4143 | ( exit $ac_status ) |
| 4144 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 4145 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4146 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4147 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4148 | CC="$ac_save_cc" |
| 4149 | fi |
| 4150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4151 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 4152 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4153 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4154 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4155 | fi |
| 4156 | fi |
| 4157 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4158 | # On some compilers, pthreads are available without further options |
| 4159 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 4160 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 4161 | # So we have to see first whether pthreads are available without |
| 4162 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4163 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 4164 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 4165 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 4166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4167 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4168 | if test "$cross_compiling" = yes; then |
| 4169 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4170 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4171 | cat >conftest.$ac_ext <<_ACEOF |
| 4172 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4173 | /* confdefs.h. */ |
| 4174 | _ACEOF |
| 4175 | cat confdefs.h >>conftest.$ac_ext |
| 4176 | cat >>conftest.$ac_ext <<_ACEOF |
| 4177 | /* end confdefs.h. */ |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4178 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4179 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4180 | |
| 4181 | void* routine(void* p){return NULL;} |
| 4182 | |
| 4183 | int main(){ |
| 4184 | pthread_t p; |
| 4185 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4186 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4187 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4188 | return 0; |
| 4189 | } |
| 4190 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4191 | _ACEOF |
| 4192 | rm -f conftest$ac_exeext |
| 4193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4194 | (eval $ac_link) 2>&5 |
| 4195 | ac_status=$? |
| 4196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4197 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4199 | (eval $ac_try) 2>&5 |
| 4200 | ac_status=$? |
| 4201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4202 | (exit $ac_status); }; }; then |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4203 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4204 | ac_cv_pthread_is_default=yes |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4205 | ac_cv_kthread=no |
| 4206 | ac_cv_pthread=no |
| 4207 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4208 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4209 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4210 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4211 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4212 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4213 | ( exit $ac_status ) |
| 4214 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4215 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4216 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4217 | fi |
| 4218 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4219 | fi |
| 4220 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4221 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 4222 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4223 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4225 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4226 | then |
| 4227 | ac_cv_kpthread=no |
| 4228 | else |
| 4229 | # -Kpthread, if available, provides the right #defines |
| 4230 | # and linker options to make pthread_create available |
| 4231 | # Some compilers won't report that they do not support -Kpthread, |
| 4232 | # so we need to run a program to see whether it really made the |
| 4233 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4234 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 4235 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 4236 | if test "${ac_cv_kpthread+set}" = set; then |
| 4237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4238 | else |
| 4239 | ac_save_cc="$CC" |
| 4240 | CC="$CC -Kpthread" |
| 4241 | if test "$cross_compiling" = yes; then |
| 4242 | ac_cv_kpthread=no |
| 4243 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4244 | cat >conftest.$ac_ext <<_ACEOF |
| 4245 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4246 | /* confdefs.h. */ |
| 4247 | _ACEOF |
| 4248 | cat confdefs.h >>conftest.$ac_ext |
| 4249 | cat >>conftest.$ac_ext <<_ACEOF |
| 4250 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4251 | |
| 4252 | #include <pthread.h> |
| 4253 | |
| 4254 | void* routine(void* p){return NULL;} |
| 4255 | |
| 4256 | int main(){ |
| 4257 | pthread_t p; |
| 4258 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4259 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4260 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4261 | return 0; |
| 4262 | } |
| 4263 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4264 | _ACEOF |
| 4265 | rm -f conftest$ac_exeext |
| 4266 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4267 | (eval $ac_link) 2>&5 |
| 4268 | ac_status=$? |
| 4269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4270 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4272 | (eval $ac_try) 2>&5 |
| 4273 | ac_status=$? |
| 4274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4275 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4276 | ac_cv_kpthread=yes |
| 4277 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4278 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4279 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4281 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4282 | ( exit $ac_status ) |
| 4283 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4284 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4285 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4286 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4287 | CC="$ac_save_cc" |
| 4288 | fi |
| 4289 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4290 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 4291 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4292 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4293 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4294 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4295 | then |
| 4296 | # -Kthread, if available, provides the right #defines |
| 4297 | # and linker options to make pthread_create available |
| 4298 | # Some compilers won't report that they do not support -Kthread, |
| 4299 | # so we need to run a program to see whether it really made the |
| 4300 | # function available. |
| 4301 | echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 4302 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6 |
| 4303 | if test "${ac_cv_kthread+set}" = set; then |
| 4304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4305 | else |
| 4306 | ac_save_cc="$CC" |
| 4307 | CC="$CC -Kthread" |
| 4308 | if test "$cross_compiling" = yes; then |
| 4309 | ac_cv_kthread=no |
| 4310 | else |
| 4311 | cat >conftest.$ac_ext <<_ACEOF |
| 4312 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4313 | /* confdefs.h. */ |
| 4314 | _ACEOF |
| 4315 | cat confdefs.h >>conftest.$ac_ext |
| 4316 | cat >>conftest.$ac_ext <<_ACEOF |
| 4317 | /* end confdefs.h. */ |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4318 | |
| 4319 | #include <pthread.h> |
| 4320 | |
| 4321 | void* routine(void* p){return NULL;} |
| 4322 | |
| 4323 | int main(){ |
| 4324 | pthread_t p; |
| 4325 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4326 | return 1; |
| 4327 | (void)pthread_detach(p); |
| 4328 | return 0; |
| 4329 | } |
| 4330 | |
| 4331 | _ACEOF |
| 4332 | rm -f conftest$ac_exeext |
| 4333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4334 | (eval $ac_link) 2>&5 |
| 4335 | ac_status=$? |
| 4336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4337 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4339 | (eval $ac_try) 2>&5 |
| 4340 | ac_status=$? |
| 4341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4342 | (exit $ac_status); }; }; then |
| 4343 | ac_cv_kthread=yes |
| 4344 | else |
| 4345 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4346 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4347 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4348 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4349 | ( exit $ac_status ) |
| 4350 | ac_cv_kthread=no |
| 4351 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4352 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4353 | fi |
| 4354 | CC="$ac_save_cc" |
| 4355 | fi |
| 4356 | |
| 4357 | echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 4358 | echo "${ECHO_T}$ac_cv_kthread" >&6 |
| 4359 | fi |
| 4360 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4361 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4362 | then |
| 4363 | # -pthread, if available, provides the right #defines |
| 4364 | # and linker options to make pthread_create available |
| 4365 | # Some compilers won't report that they do not support -pthread, |
| 4366 | # so we need to run a program to see whether it really made the |
| 4367 | # function available. |
| 4368 | echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 4369 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6 |
| 4370 | if test "${ac_cv_thread+set}" = set; then |
| 4371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4372 | else |
| 4373 | ac_save_cc="$CC" |
| 4374 | CC="$CC -pthread" |
| 4375 | if test "$cross_compiling" = yes; then |
| 4376 | ac_cv_pthread=no |
| 4377 | else |
| 4378 | cat >conftest.$ac_ext <<_ACEOF |
| 4379 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4380 | /* confdefs.h. */ |
| 4381 | _ACEOF |
| 4382 | cat confdefs.h >>conftest.$ac_ext |
| 4383 | cat >>conftest.$ac_ext <<_ACEOF |
| 4384 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4385 | |
| 4386 | #include <pthread.h> |
| 4387 | |
| 4388 | void* routine(void* p){return NULL;} |
| 4389 | |
| 4390 | int main(){ |
| 4391 | pthread_t p; |
| 4392 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4393 | return 1; |
| 4394 | (void)pthread_detach(p); |
| 4395 | return 0; |
| 4396 | } |
| 4397 | |
| 4398 | _ACEOF |
| 4399 | rm -f conftest$ac_exeext |
| 4400 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4401 | (eval $ac_link) 2>&5 |
| 4402 | ac_status=$? |
| 4403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4404 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4406 | (eval $ac_try) 2>&5 |
| 4407 | ac_status=$? |
| 4408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4409 | (exit $ac_status); }; }; then |
| 4410 | ac_cv_pthread=yes |
| 4411 | else |
| 4412 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4413 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4415 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4416 | ( exit $ac_status ) |
| 4417 | ac_cv_pthread=no |
| 4418 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4419 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4420 | fi |
| 4421 | CC="$ac_save_cc" |
| 4422 | fi |
| 4423 | |
| 4424 | echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 4425 | echo "${ECHO_T}$ac_cv_pthread" >&6 |
| 4426 | fi |
| 4427 | |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4428 | # If we have set a CC compiler flag for thread support then |
| 4429 | # check if it works for CXX, too. |
| 4430 | ac_cv_cxx_thread=no |
| 4431 | if test ! -z "$CXX" |
| 4432 | then |
| 4433 | echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 4434 | echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6 |
| 4435 | ac_save_cxx="$CXX" |
| 4436 | |
| 4437 | if test "$ac_cv_kpthread" = "yes" |
| 4438 | then |
| 4439 | CXX="$CXX -Kpthread" |
| 4440 | ac_cv_cxx_thread=yes |
| 4441 | elif test "$ac_cv_kthread" = "yes" |
| 4442 | then |
| 4443 | CXX="$CXX -Kthread" |
| 4444 | ac_cv_cxx_thread=yes |
| 4445 | elif test "$ac_cv_pthread" = "yes" |
| 4446 | then |
| 4447 | CXX="$CXX -pthread" |
| 4448 | ac_cv_cxx_thread=yes |
| 4449 | fi |
| 4450 | |
| 4451 | if test $ac_cv_cxx_thread = yes |
| 4452 | then |
| 4453 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 4454 | $CXX -c conftest.$ac_ext 2>&5 |
| 4455 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 4456 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 4457 | then |
| 4458 | ac_cv_cxx_thread=yes |
| 4459 | else |
| 4460 | ac_cv_cxx_thread=no |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4461 | fi |
| 4462 | rm -fr conftest* |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4463 | fi |
| 4464 | fi |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 4465 | CXX="$ac_save_cxx" |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4466 | echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 4467 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6 |
| 4468 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4469 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4470 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4471 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4472 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4473 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4475 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4476 | cat >conftest.$ac_ext <<_ACEOF |
| 4477 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4478 | /* confdefs.h. */ |
| 4479 | _ACEOF |
| 4480 | cat confdefs.h >>conftest.$ac_ext |
| 4481 | cat >>conftest.$ac_ext <<_ACEOF |
| 4482 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4483 | #include <stdlib.h> |
| 4484 | #include <stdarg.h> |
| 4485 | #include <string.h> |
| 4486 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4487 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4488 | int |
| 4489 | main () |
| 4490 | { |
| 4491 | |
| 4492 | ; |
| 4493 | return 0; |
| 4494 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4495 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4496 | rm -f conftest.$ac_objext |
| 4497 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4498 | (eval $ac_compile) 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4499 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4501 | (exit $ac_status); } && |
| 4502 | { ac_try='test -s conftest.$ac_objext' |
| 4503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4504 | (eval $ac_try) 2>&5 |
| 4505 | ac_status=$? |
| 4506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4507 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4508 | ac_cv_header_stdc=yes |
| 4509 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4510 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4511 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4512 | |
| 4513 | ac_cv_header_stdc=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4514 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4515 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4516 | |
| 4517 | if test $ac_cv_header_stdc = yes; then |
| 4518 | # 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] | 4519 | cat >conftest.$ac_ext <<_ACEOF |
| 4520 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4521 | /* confdefs.h. */ |
| 4522 | _ACEOF |
| 4523 | cat confdefs.h >>conftest.$ac_ext |
| 4524 | cat >>conftest.$ac_ext <<_ACEOF |
| 4525 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4526 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4527 | |
| 4528 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4529 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4530 | $EGREP "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4531 | : |
| 4532 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4533 | ac_cv_header_stdc=no |
| 4534 | fi |
| 4535 | rm -f conftest* |
| 4536 | |
| 4537 | fi |
| 4538 | |
| 4539 | if test $ac_cv_header_stdc = yes; then |
| 4540 | # 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] | 4541 | cat >conftest.$ac_ext <<_ACEOF |
| 4542 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4543 | /* confdefs.h. */ |
| 4544 | _ACEOF |
| 4545 | cat confdefs.h >>conftest.$ac_ext |
| 4546 | cat >>conftest.$ac_ext <<_ACEOF |
| 4547 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4548 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4549 | |
| 4550 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4551 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4552 | $EGREP "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4553 | : |
| 4554 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4555 | ac_cv_header_stdc=no |
| 4556 | fi |
| 4557 | rm -f conftest* |
| 4558 | |
| 4559 | fi |
| 4560 | |
| 4561 | if test $ac_cv_header_stdc = yes; then |
| 4562 | # /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] | 4563 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4564 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4565 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4566 | cat >conftest.$ac_ext <<_ACEOF |
| 4567 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4568 | /* confdefs.h. */ |
| 4569 | _ACEOF |
| 4570 | cat confdefs.h >>conftest.$ac_ext |
| 4571 | cat >>conftest.$ac_ext <<_ACEOF |
| 4572 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4573 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4574 | #if ((' ' & 0x0FF) == 0x020) |
| 4575 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4576 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4577 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4578 | # define ISLOWER(c) \ |
| 4579 | (('a' <= (c) && (c) <= 'i') \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4580 | || ('j' <= (c) && (c) <= 'r') \ |
| 4581 | || ('s' <= (c) && (c) <= 'z')) |
| 4582 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4583 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4585 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4586 | int |
| 4587 | main () |
| 4588 | { |
| 4589 | int i; |
| 4590 | for (i = 0; i < 256; i++) |
| 4591 | if (XOR (islower (i), ISLOWER (i)) |
| 4592 | || toupper (i) != TOUPPER (i)) |
| 4593 | exit(2); |
| 4594 | exit (0); |
| 4595 | } |
| 4596 | _ACEOF |
| 4597 | rm -f conftest$ac_exeext |
| 4598 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4599 | (eval $ac_link) 2>&5 |
| 4600 | ac_status=$? |
| 4601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4602 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4604 | (eval $ac_try) 2>&5 |
| 4605 | ac_status=$? |
| 4606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4607 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4608 | : |
| 4609 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4610 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4611 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4612 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4613 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4614 | ( exit $ac_status ) |
| 4615 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4616 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4617 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4618 | fi |
| 4619 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4620 | fi |
| 4621 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4622 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4623 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4624 | |
| 4625 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4626 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4627 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4628 | |
| 4629 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4631 | |
| 4632 | |
| 4633 | |
| 4634 | |
| 4635 | |
| 4636 | |
| 4637 | |
| 4638 | |
| 4639 | |
| 4640 | |
| 4641 | |
| 4642 | |
| 4643 | |
| 4644 | |
| 4645 | |
| 4646 | |
| 4647 | |
| 4648 | |
| 4649 | |
| 4650 | |
| 4651 | |
| 4652 | |
| 4653 | |
| 4654 | |
| 4655 | |
| 4656 | |
| 4657 | |
| 4658 | |
| 4659 | |
| 4660 | |
| 4661 | |
| 4662 | |
| 4663 | |
| 4664 | |
| 4665 | |
| 4666 | |
| 4667 | |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4668 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4669 | |
Neal Norwitz | 8225103 | 2003-05-23 14:35:24 +0000 | [diff] [blame] | 4670 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4671 | 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] | 4672 | libintl.h locale.h ncurses.h poll.h pthread.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4673 | signal.h stdarg.h stddef.h stdlib.h stropts.h termios.h thread.h \ |
| 4674 | unistd.h utime.h \ |
Neal Norwitz | 8225103 | 2003-05-23 14:35:24 +0000 | [diff] [blame] | 4675 | sys/audioio.h sys/bsdtty.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] | 4676 | 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] | 4677 | 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] | 4678 | sys/resource.h netpacket/packet.h sysexits.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4679 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4680 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4681 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4682 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4683 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4684 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4686 | fi |
| 4687 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4688 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4689 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4690 | # Is the header compilable? |
| 4691 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4692 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4693 | cat >conftest.$ac_ext <<_ACEOF |
| 4694 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4695 | /* confdefs.h. */ |
| 4696 | _ACEOF |
| 4697 | cat confdefs.h >>conftest.$ac_ext |
| 4698 | cat >>conftest.$ac_ext <<_ACEOF |
| 4699 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4700 | $ac_includes_default |
| 4701 | #include <$ac_header> |
| 4702 | _ACEOF |
| 4703 | rm -f conftest.$ac_objext |
| 4704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4705 | (eval $ac_compile) 2>&5 |
| 4706 | ac_status=$? |
| 4707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4708 | (exit $ac_status); } && |
| 4709 | { ac_try='test -s conftest.$ac_objext' |
| 4710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4711 | (eval $ac_try) 2>&5 |
| 4712 | ac_status=$? |
| 4713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4714 | (exit $ac_status); }; }; then |
| 4715 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4716 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4717 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4719 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4720 | ac_header_compiler=no |
| 4721 | fi |
| 4722 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4723 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4724 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4725 | |
| 4726 | # Is the header present? |
| 4727 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4728 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4729 | cat >conftest.$ac_ext <<_ACEOF |
| 4730 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4731 | /* confdefs.h. */ |
| 4732 | _ACEOF |
| 4733 | cat confdefs.h >>conftest.$ac_ext |
| 4734 | cat >>conftest.$ac_ext <<_ACEOF |
| 4735 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4736 | #include <$ac_header> |
| 4737 | _ACEOF |
| 4738 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4739 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4740 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4741 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4742 | rm -f conftest.er1 |
| 4743 | cat conftest.err >&5 |
| 4744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4745 | (exit $ac_status); } >/dev/null; then |
| 4746 | if test -s conftest.err; then |
| 4747 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4748 | else |
| 4749 | ac_cpp_err= |
| 4750 | fi |
| 4751 | else |
| 4752 | ac_cpp_err=yes |
| 4753 | fi |
| 4754 | if test -z "$ac_cpp_err"; then |
| 4755 | ac_header_preproc=yes |
| 4756 | else |
| 4757 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4759 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4760 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4761 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4762 | rm -f conftest.err conftest.$ac_ext |
| 4763 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4764 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4765 | |
| 4766 | # So? What about this header? |
| 4767 | case $ac_header_compiler:$ac_header_preproc in |
| 4768 | yes:no ) |
| 4769 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4770 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4771 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4772 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4773 | ( |
| 4774 | cat <<\_ASBOX |
| 4775 | ## ------------------------------------ ## |
| 4776 | ## Report this to bug-autoconf@gnu.org. ## |
| 4777 | ## ------------------------------------ ## |
| 4778 | _ASBOX |
| 4779 | ) | |
| 4780 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4781 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4782 | no:yes ) |
| 4783 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4784 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4785 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4786 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4787 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4788 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4789 | ( |
| 4790 | cat <<\_ASBOX |
| 4791 | ## ------------------------------------ ## |
| 4792 | ## Report this to bug-autoconf@gnu.org. ## |
| 4793 | ## ------------------------------------ ## |
| 4794 | _ASBOX |
| 4795 | ) | |
| 4796 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4797 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4798 | esac |
| 4799 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4800 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4801 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4803 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4804 | eval "$as_ac_Header=$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4805 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4806 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4807 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4808 | |
| 4809 | fi |
| 4810 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4811 | cat >>confdefs.h <<_ACEOF |
| 4812 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4813 | _ACEOF |
| 4814 | |
| 4815 | fi |
| 4816 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4817 | done |
| 4818 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4819 | |
| 4820 | |
| 4821 | |
| 4822 | |
| 4823 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4824 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4825 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4826 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4827 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4828 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4829 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4831 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4832 | cat >conftest.$ac_ext <<_ACEOF |
| 4833 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4834 | /* confdefs.h. */ |
| 4835 | _ACEOF |
| 4836 | cat confdefs.h >>conftest.$ac_ext |
| 4837 | cat >>conftest.$ac_ext <<_ACEOF |
| 4838 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4839 | #include <sys/types.h> |
| 4840 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4841 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4842 | int |
| 4843 | main () |
| 4844 | { |
| 4845 | if ((DIR *) 0) |
| 4846 | return 0; |
| 4847 | ; |
| 4848 | return 0; |
| 4849 | } |
| 4850 | _ACEOF |
| 4851 | rm -f conftest.$ac_objext |
| 4852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4853 | (eval $ac_compile) 2>&5 |
| 4854 | ac_status=$? |
| 4855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4856 | (exit $ac_status); } && |
| 4857 | { ac_try='test -s conftest.$ac_objext' |
| 4858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4859 | (eval $ac_try) 2>&5 |
| 4860 | ac_status=$? |
| 4861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4862 | (exit $ac_status); }; }; then |
| 4863 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4864 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4865 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4867 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4868 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4869 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4870 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4871 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4872 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4873 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4874 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4875 | cat >>confdefs.h <<_ACEOF |
| 4876 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4877 | _ACEOF |
| 4878 | |
| 4879 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4880 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4881 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4882 | done |
| 4883 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4884 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4885 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4886 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4887 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4889 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4890 | ac_func_search_save_LIBS=$LIBS |
| 4891 | ac_cv_search_opendir=no |
| 4892 | cat >conftest.$ac_ext <<_ACEOF |
| 4893 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4894 | /* confdefs.h. */ |
| 4895 | _ACEOF |
| 4896 | cat confdefs.h >>conftest.$ac_ext |
| 4897 | cat >>conftest.$ac_ext <<_ACEOF |
| 4898 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4899 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4900 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4901 | #ifdef __cplusplus |
| 4902 | extern "C" |
| 4903 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4904 | /* 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] | 4905 | builtin and then its argument prototype would still apply. */ |
| 4906 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4907 | int |
| 4908 | main () |
| 4909 | { |
| 4910 | opendir (); |
| 4911 | ; |
| 4912 | return 0; |
| 4913 | } |
| 4914 | _ACEOF |
| 4915 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4916 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4917 | (eval $ac_link) 2>&5 |
| 4918 | ac_status=$? |
| 4919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4920 | (exit $ac_status); } && |
| 4921 | { ac_try='test -s conftest$ac_exeext' |
| 4922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4923 | (eval $ac_try) 2>&5 |
| 4924 | ac_status=$? |
| 4925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4926 | (exit $ac_status); }; }; then |
| 4927 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4928 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4929 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4931 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4932 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4933 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4934 | if test "$ac_cv_search_opendir" = no; then |
| 4935 | for ac_lib in dir; do |
| 4936 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4937 | cat >conftest.$ac_ext <<_ACEOF |
| 4938 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4939 | /* confdefs.h. */ |
| 4940 | _ACEOF |
| 4941 | cat confdefs.h >>conftest.$ac_ext |
| 4942 | cat >>conftest.$ac_ext <<_ACEOF |
| 4943 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4944 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4945 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4946 | #ifdef __cplusplus |
| 4947 | extern "C" |
| 4948 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4949 | /* 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] | 4950 | builtin and then its argument prototype would still apply. */ |
| 4951 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4952 | int |
| 4953 | main () |
| 4954 | { |
| 4955 | opendir (); |
| 4956 | ; |
| 4957 | return 0; |
| 4958 | } |
| 4959 | _ACEOF |
| 4960 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4961 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4962 | (eval $ac_link) 2>&5 |
| 4963 | ac_status=$? |
| 4964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4965 | (exit $ac_status); } && |
| 4966 | { ac_try='test -s conftest$ac_exeext' |
| 4967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4968 | (eval $ac_try) 2>&5 |
| 4969 | ac_status=$? |
| 4970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4971 | (exit $ac_status); }; }; then |
| 4972 | ac_cv_search_opendir="-l$ac_lib" |
| 4973 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4974 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4975 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4977 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4978 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4979 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4980 | done |
| 4981 | fi |
| 4982 | LIBS=$ac_func_search_save_LIBS |
| 4983 | fi |
| 4984 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4985 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4986 | if test "$ac_cv_search_opendir" != no; then |
| 4987 | 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] | 4988 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4989 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4990 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4991 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4992 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4993 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4994 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4996 | else |
| 4997 | ac_func_search_save_LIBS=$LIBS |
| 4998 | ac_cv_search_opendir=no |
| 4999 | cat >conftest.$ac_ext <<_ACEOF |
| 5000 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5001 | /* confdefs.h. */ |
| 5002 | _ACEOF |
| 5003 | cat confdefs.h >>conftest.$ac_ext |
| 5004 | cat >>conftest.$ac_ext <<_ACEOF |
| 5005 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5006 | |
| 5007 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5008 | #ifdef __cplusplus |
| 5009 | extern "C" |
| 5010 | #endif |
| 5011 | /* We use char because int might match the return type of a gcc2 |
| 5012 | builtin and then its argument prototype would still apply. */ |
| 5013 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5014 | int |
| 5015 | main () |
| 5016 | { |
| 5017 | opendir (); |
| 5018 | ; |
| 5019 | return 0; |
| 5020 | } |
| 5021 | _ACEOF |
| 5022 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5023 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5024 | (eval $ac_link) 2>&5 |
| 5025 | ac_status=$? |
| 5026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5027 | (exit $ac_status); } && |
| 5028 | { ac_try='test -s conftest$ac_exeext' |
| 5029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5030 | (eval $ac_try) 2>&5 |
| 5031 | ac_status=$? |
| 5032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5033 | (exit $ac_status); }; }; then |
| 5034 | ac_cv_search_opendir="none required" |
| 5035 | else |
| 5036 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5038 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5039 | fi |
| 5040 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5041 | if test "$ac_cv_search_opendir" = no; then |
| 5042 | for ac_lib in x; do |
| 5043 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 5044 | cat >conftest.$ac_ext <<_ACEOF |
| 5045 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5046 | /* confdefs.h. */ |
| 5047 | _ACEOF |
| 5048 | cat confdefs.h >>conftest.$ac_ext |
| 5049 | cat >>conftest.$ac_ext <<_ACEOF |
| 5050 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5051 | |
| 5052 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5053 | #ifdef __cplusplus |
| 5054 | extern "C" |
| 5055 | #endif |
| 5056 | /* We use char because int might match the return type of a gcc2 |
| 5057 | builtin and then its argument prototype would still apply. */ |
| 5058 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5059 | int |
| 5060 | main () |
| 5061 | { |
| 5062 | opendir (); |
| 5063 | ; |
| 5064 | return 0; |
| 5065 | } |
| 5066 | _ACEOF |
| 5067 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5069 | (eval $ac_link) 2>&5 |
| 5070 | ac_status=$? |
| 5071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5072 | (exit $ac_status); } && |
| 5073 | { ac_try='test -s conftest$ac_exeext' |
| 5074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5075 | (eval $ac_try) 2>&5 |
| 5076 | ac_status=$? |
| 5077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5078 | (exit $ac_status); }; }; then |
| 5079 | ac_cv_search_opendir="-l$ac_lib" |
| 5080 | break |
| 5081 | else |
| 5082 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5084 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5085 | fi |
| 5086 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5087 | done |
| 5088 | fi |
| 5089 | LIBS=$ac_func_search_save_LIBS |
| 5090 | fi |
| 5091 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5092 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 5093 | if test "$ac_cv_search_opendir" != no; then |
| 5094 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 5095 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5096 | fi |
| 5097 | |
| 5098 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5099 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5100 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 5101 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 5102 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 5103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5104 | else |
| 5105 | cat >conftest.$ac_ext <<_ACEOF |
| 5106 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5107 | /* confdefs.h. */ |
| 5108 | _ACEOF |
| 5109 | cat confdefs.h >>conftest.$ac_ext |
| 5110 | cat >>conftest.$ac_ext <<_ACEOF |
| 5111 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5112 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5113 | int |
| 5114 | main () |
| 5115 | { |
| 5116 | return makedev(0, 0); |
| 5117 | ; |
| 5118 | return 0; |
| 5119 | } |
| 5120 | _ACEOF |
| 5121 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5123 | (eval $ac_link) 2>&5 |
| 5124 | ac_status=$? |
| 5125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5126 | (exit $ac_status); } && |
| 5127 | { ac_try='test -s conftest$ac_exeext' |
| 5128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5129 | (eval $ac_try) 2>&5 |
| 5130 | ac_status=$? |
| 5131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5132 | (exit $ac_status); }; }; then |
| 5133 | ac_cv_header_sys_types_h_makedev=yes |
| 5134 | else |
| 5135 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5137 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5138 | ac_cv_header_sys_types_h_makedev=no |
| 5139 | fi |
| 5140 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5141 | |
| 5142 | fi |
| 5143 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 5144 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 5145 | |
| 5146 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 5147 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5148 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5149 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5150 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5152 | fi |
| 5153 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5154 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5155 | else |
| 5156 | # Is the header compilable? |
| 5157 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 5158 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 5159 | cat >conftest.$ac_ext <<_ACEOF |
| 5160 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5161 | /* confdefs.h. */ |
| 5162 | _ACEOF |
| 5163 | cat confdefs.h >>conftest.$ac_ext |
| 5164 | cat >>conftest.$ac_ext <<_ACEOF |
| 5165 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5166 | $ac_includes_default |
| 5167 | #include <sys/mkdev.h> |
| 5168 | _ACEOF |
| 5169 | rm -f conftest.$ac_objext |
| 5170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5171 | (eval $ac_compile) 2>&5 |
| 5172 | ac_status=$? |
| 5173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5174 | (exit $ac_status); } && |
| 5175 | { ac_try='test -s conftest.$ac_objext' |
| 5176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5177 | (eval $ac_try) 2>&5 |
| 5178 | ac_status=$? |
| 5179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5180 | (exit $ac_status); }; }; then |
| 5181 | ac_header_compiler=yes |
| 5182 | else |
| 5183 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5185 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5186 | ac_header_compiler=no |
| 5187 | fi |
| 5188 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5189 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5190 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5191 | |
| 5192 | # Is the header present? |
| 5193 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 5194 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 5195 | cat >conftest.$ac_ext <<_ACEOF |
| 5196 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5197 | /* confdefs.h. */ |
| 5198 | _ACEOF |
| 5199 | cat confdefs.h >>conftest.$ac_ext |
| 5200 | cat >>conftest.$ac_ext <<_ACEOF |
| 5201 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5202 | #include <sys/mkdev.h> |
| 5203 | _ACEOF |
| 5204 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5205 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5206 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5207 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5208 | rm -f conftest.er1 |
| 5209 | cat conftest.err >&5 |
| 5210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5211 | (exit $ac_status); } >/dev/null; then |
| 5212 | if test -s conftest.err; then |
| 5213 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5214 | else |
| 5215 | ac_cpp_err= |
| 5216 | fi |
| 5217 | else |
| 5218 | ac_cpp_err=yes |
| 5219 | fi |
| 5220 | if test -z "$ac_cpp_err"; then |
| 5221 | ac_header_preproc=yes |
| 5222 | else |
| 5223 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5225 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5226 | ac_header_preproc=no |
| 5227 | fi |
| 5228 | rm -f conftest.err conftest.$ac_ext |
| 5229 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5230 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5231 | |
| 5232 | # So? What about this header? |
| 5233 | case $ac_header_compiler:$ac_header_preproc in |
| 5234 | yes:no ) |
| 5235 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5236 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5237 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5238 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 5239 | ( |
| 5240 | cat <<\_ASBOX |
| 5241 | ## ------------------------------------ ## |
| 5242 | ## Report this to bug-autoconf@gnu.org. ## |
| 5243 | ## ------------------------------------ ## |
| 5244 | _ASBOX |
| 5245 | ) | |
| 5246 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5247 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5248 | no:yes ) |
| 5249 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 5250 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 5251 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 5252 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 5253 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5254 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 5255 | ( |
| 5256 | cat <<\_ASBOX |
| 5257 | ## ------------------------------------ ## |
| 5258 | ## Report this to bug-autoconf@gnu.org. ## |
| 5259 | ## ------------------------------------ ## |
| 5260 | _ASBOX |
| 5261 | ) | |
| 5262 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5263 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5264 | esac |
| 5265 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5266 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5267 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5269 | else |
| 5270 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 5271 | fi |
| 5272 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5273 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5274 | |
| 5275 | fi |
| 5276 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 5277 | |
| 5278 | cat >>confdefs.h <<\_ACEOF |
| 5279 | #define MAJOR_IN_MKDEV 1 |
| 5280 | _ACEOF |
| 5281 | |
| 5282 | fi |
| 5283 | |
| 5284 | |
| 5285 | |
| 5286 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 5287 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5288 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5289 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5290 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5292 | fi |
| 5293 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5294 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5295 | else |
| 5296 | # Is the header compilable? |
| 5297 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 5298 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 5299 | cat >conftest.$ac_ext <<_ACEOF |
| 5300 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5301 | /* confdefs.h. */ |
| 5302 | _ACEOF |
| 5303 | cat confdefs.h >>conftest.$ac_ext |
| 5304 | cat >>conftest.$ac_ext <<_ACEOF |
| 5305 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5306 | $ac_includes_default |
| 5307 | #include <sys/sysmacros.h> |
| 5308 | _ACEOF |
| 5309 | rm -f conftest.$ac_objext |
| 5310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5311 | (eval $ac_compile) 2>&5 |
| 5312 | ac_status=$? |
| 5313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5314 | (exit $ac_status); } && |
| 5315 | { ac_try='test -s conftest.$ac_objext' |
| 5316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5317 | (eval $ac_try) 2>&5 |
| 5318 | ac_status=$? |
| 5319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5320 | (exit $ac_status); }; }; then |
| 5321 | ac_header_compiler=yes |
| 5322 | else |
| 5323 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5325 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5326 | ac_header_compiler=no |
| 5327 | fi |
| 5328 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5329 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5330 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5331 | |
| 5332 | # Is the header present? |
| 5333 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 5334 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 5335 | cat >conftest.$ac_ext <<_ACEOF |
| 5336 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5337 | /* confdefs.h. */ |
| 5338 | _ACEOF |
| 5339 | cat confdefs.h >>conftest.$ac_ext |
| 5340 | cat >>conftest.$ac_ext <<_ACEOF |
| 5341 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5342 | #include <sys/sysmacros.h> |
| 5343 | _ACEOF |
| 5344 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5345 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5346 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5347 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5348 | rm -f conftest.er1 |
| 5349 | cat conftest.err >&5 |
| 5350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5351 | (exit $ac_status); } >/dev/null; then |
| 5352 | if test -s conftest.err; then |
| 5353 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5354 | else |
| 5355 | ac_cpp_err= |
| 5356 | fi |
| 5357 | else |
| 5358 | ac_cpp_err=yes |
| 5359 | fi |
| 5360 | if test -z "$ac_cpp_err"; then |
| 5361 | ac_header_preproc=yes |
| 5362 | else |
| 5363 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5365 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5366 | ac_header_preproc=no |
| 5367 | fi |
| 5368 | rm -f conftest.err conftest.$ac_ext |
| 5369 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5370 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5371 | |
| 5372 | # So? What about this header? |
| 5373 | case $ac_header_compiler:$ac_header_preproc in |
| 5374 | yes:no ) |
| 5375 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5376 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5377 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5378 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 5379 | ( |
| 5380 | cat <<\_ASBOX |
| 5381 | ## ------------------------------------ ## |
| 5382 | ## Report this to bug-autoconf@gnu.org. ## |
| 5383 | ## ------------------------------------ ## |
| 5384 | _ASBOX |
| 5385 | ) | |
| 5386 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5387 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5388 | no:yes ) |
| 5389 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 5390 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 5391 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 5392 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 5393 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5394 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 5395 | ( |
| 5396 | cat <<\_ASBOX |
| 5397 | ## ------------------------------------ ## |
| 5398 | ## Report this to bug-autoconf@gnu.org. ## |
| 5399 | ## ------------------------------------ ## |
| 5400 | _ASBOX |
| 5401 | ) | |
| 5402 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5403 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5404 | esac |
| 5405 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5406 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5407 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5409 | else |
| 5410 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 5411 | fi |
| 5412 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5413 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5414 | |
| 5415 | fi |
| 5416 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 5417 | |
| 5418 | cat >>confdefs.h <<\_ACEOF |
| 5419 | #define MAJOR_IN_SYSMACROS 1 |
| 5420 | _ACEOF |
| 5421 | |
| 5422 | fi |
| 5423 | |
| 5424 | |
| 5425 | fi |
| 5426 | fi |
| 5427 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5428 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5429 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5430 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5431 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 5432 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 5433 | cat >conftest.$ac_ext <<_ACEOF |
| 5434 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5435 | /* confdefs.h. */ |
| 5436 | _ACEOF |
| 5437 | cat confdefs.h >>conftest.$ac_ext |
| 5438 | cat >>conftest.$ac_ext <<_ACEOF |
| 5439 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5440 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5441 | |
| 5442 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5443 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5444 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5445 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5446 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5447 | |
| 5448 | |
| 5449 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5450 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5451 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5452 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 5453 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5454 | fi |
| 5455 | rm -f conftest* |
| 5456 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5457 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 5458 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5459 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5460 | # Check whether using makedev requires defining _OSF_SOURCE |
| 5461 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 5462 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 5463 | cat >conftest.$ac_ext <<_ACEOF |
| 5464 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5465 | /* confdefs.h. */ |
| 5466 | _ACEOF |
| 5467 | cat confdefs.h >>conftest.$ac_ext |
| 5468 | cat >>conftest.$ac_ext <<_ACEOF |
| 5469 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5470 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5471 | int |
| 5472 | main () |
| 5473 | { |
| 5474 | makedev(0, 0) |
| 5475 | ; |
| 5476 | return 0; |
| 5477 | } |
| 5478 | _ACEOF |
| 5479 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5480 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5481 | (eval $ac_link) 2>&5 |
| 5482 | ac_status=$? |
| 5483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5484 | (exit $ac_status); } && |
| 5485 | { ac_try='test -s conftest$ac_exeext' |
| 5486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5487 | (eval $ac_try) 2>&5 |
| 5488 | ac_status=$? |
| 5489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5490 | (exit $ac_status); }; }; then |
| 5491 | ac_cv_has_makedev=yes |
| 5492 | else |
| 5493 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5495 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5496 | ac_cv_has_makedev=no |
| 5497 | fi |
| 5498 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5499 | if test "$ac_cv_has_makedev" = "no"; then |
| 5500 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 5501 | cat >conftest.$ac_ext <<_ACEOF |
| 5502 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5503 | /* confdefs.h. */ |
| 5504 | _ACEOF |
| 5505 | cat confdefs.h >>conftest.$ac_ext |
| 5506 | cat >>conftest.$ac_ext <<_ACEOF |
| 5507 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5508 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5509 | #define _OSF_SOURCE 1 |
| 5510 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5511 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5512 | int |
| 5513 | main () |
| 5514 | { |
| 5515 | makedev(0, 0) |
| 5516 | ; |
| 5517 | return 0; |
| 5518 | } |
| 5519 | _ACEOF |
| 5520 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5521 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5522 | (eval $ac_link) 2>&5 |
| 5523 | ac_status=$? |
| 5524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5525 | (exit $ac_status); } && |
| 5526 | { ac_try='test -s conftest$ac_exeext' |
| 5527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5528 | (eval $ac_try) 2>&5 |
| 5529 | ac_status=$? |
| 5530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5531 | (exit $ac_status); }; }; then |
| 5532 | ac_cv_has_makedev=yes |
| 5533 | else |
| 5534 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5535 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5536 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5537 | ac_cv_has_makedev=no |
| 5538 | fi |
| 5539 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5540 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5541 | |
| 5542 | cat >>confdefs.h <<\_ACEOF |
| 5543 | #define _OSF_SOURCE 1 |
| 5544 | _ACEOF |
| 5545 | |
| 5546 | fi |
| 5547 | fi |
| 5548 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 5549 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 5550 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5551 | |
| 5552 | cat >>confdefs.h <<\_ACEOF |
| 5553 | #define HAVE_MAKEDEV 1 |
| 5554 | _ACEOF |
| 5555 | |
| 5556 | fi |
| 5557 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5558 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 5559 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 5560 | # defined, but the compiler does not support pragma redefine_extname, |
| 5561 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 5562 | # structures (such as rlimit64) without declaring them. As a |
| 5563 | # work-around, disable LFS on such configurations |
| 5564 | |
| 5565 | use_lfs=yes |
| 5566 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 5567 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 5568 | cat >conftest.$ac_ext <<_ACEOF |
| 5569 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5570 | /* confdefs.h. */ |
| 5571 | _ACEOF |
| 5572 | cat confdefs.h >>conftest.$ac_ext |
| 5573 | cat >>conftest.$ac_ext <<_ACEOF |
| 5574 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5575 | |
| 5576 | #define _LARGEFILE_SOURCE 1 |
| 5577 | #define _FILE_OFFSET_BITS 64 |
| 5578 | #include <sys/resource.h> |
| 5579 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5580 | int |
| 5581 | main () |
| 5582 | { |
| 5583 | struct rlimit foo; |
| 5584 | ; |
| 5585 | return 0; |
| 5586 | } |
| 5587 | _ACEOF |
| 5588 | rm -f conftest.$ac_objext |
| 5589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5590 | (eval $ac_compile) 2>&5 |
| 5591 | ac_status=$? |
| 5592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5593 | (exit $ac_status); } && |
| 5594 | { ac_try='test -s conftest.$ac_objext' |
| 5595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5596 | (eval $ac_try) 2>&5 |
| 5597 | ac_status=$? |
| 5598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5599 | (exit $ac_status); }; }; then |
| 5600 | sol_lfs_bug=no |
| 5601 | else |
| 5602 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5603 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5604 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5605 | sol_lfs_bug=yes |
| 5606 | fi |
| 5607 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5608 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 5609 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 5610 | if test "$sol_lfs_bug" = "yes"; then |
| 5611 | use_lfs=no |
| 5612 | fi |
| 5613 | |
| 5614 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5615 | # Two defines needed to enable largefile support on various platforms |
| 5616 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5617 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5618 | cat >>confdefs.h <<\_ACEOF |
| 5619 | #define _LARGEFILE_SOURCE 1 |
| 5620 | _ACEOF |
| 5621 | |
| 5622 | |
| 5623 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5624 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5625 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5626 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5627 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5628 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 5629 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 5630 | cat >> confdefs.h <<\EOF |
| 5631 | #if defined(SCO_DS) |
| 5632 | #undef _OFF_T |
| 5633 | #endif |
| 5634 | EOF |
| 5635 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5636 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5637 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 5638 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 5639 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 5640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5641 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5642 | cat >conftest.$ac_ext <<_ACEOF |
| 5643 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5644 | /* confdefs.h. */ |
| 5645 | _ACEOF |
| 5646 | cat confdefs.h >>conftest.$ac_ext |
| 5647 | cat >>conftest.$ac_ext <<_ACEOF |
| 5648 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5649 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5650 | int |
| 5651 | main () |
| 5652 | { |
| 5653 | if ((mode_t *) 0) |
| 5654 | return 0; |
| 5655 | if (sizeof (mode_t)) |
| 5656 | return 0; |
| 5657 | ; |
| 5658 | return 0; |
| 5659 | } |
| 5660 | _ACEOF |
| 5661 | rm -f conftest.$ac_objext |
| 5662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5663 | (eval $ac_compile) 2>&5 |
| 5664 | ac_status=$? |
| 5665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5666 | (exit $ac_status); } && |
| 5667 | { ac_try='test -s conftest.$ac_objext' |
| 5668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5669 | (eval $ac_try) 2>&5 |
| 5670 | ac_status=$? |
| 5671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5672 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5673 | ac_cv_type_mode_t=yes |
| 5674 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5675 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5677 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5678 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5679 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5680 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5681 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5682 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 5683 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 5684 | if test $ac_cv_type_mode_t = yes; then |
| 5685 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5686 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5687 | |
| 5688 | cat >>confdefs.h <<_ACEOF |
| 5689 | #define mode_t int |
| 5690 | _ACEOF |
| 5691 | |
| 5692 | fi |
| 5693 | |
| 5694 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5695 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 5696 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5698 | else |
| 5699 | cat >conftest.$ac_ext <<_ACEOF |
| 5700 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5701 | /* confdefs.h. */ |
| 5702 | _ACEOF |
| 5703 | cat confdefs.h >>conftest.$ac_ext |
| 5704 | cat >>conftest.$ac_ext <<_ACEOF |
| 5705 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5706 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5707 | int |
| 5708 | main () |
| 5709 | { |
| 5710 | if ((off_t *) 0) |
| 5711 | return 0; |
| 5712 | if (sizeof (off_t)) |
| 5713 | return 0; |
| 5714 | ; |
| 5715 | return 0; |
| 5716 | } |
| 5717 | _ACEOF |
| 5718 | rm -f conftest.$ac_objext |
| 5719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5720 | (eval $ac_compile) 2>&5 |
| 5721 | ac_status=$? |
| 5722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5723 | (exit $ac_status); } && |
| 5724 | { ac_try='test -s conftest.$ac_objext' |
| 5725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5726 | (eval $ac_try) 2>&5 |
| 5727 | ac_status=$? |
| 5728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5729 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5730 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5731 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5732 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5734 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5735 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5736 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5737 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5738 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5739 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5740 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 5741 | if test $ac_cv_type_off_t = yes; then |
| 5742 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5743 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5744 | |
| 5745 | cat >>confdefs.h <<_ACEOF |
| 5746 | #define off_t long |
| 5747 | _ACEOF |
| 5748 | |
| 5749 | fi |
| 5750 | |
| 5751 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 5752 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 5753 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 5754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5755 | else |
| 5756 | cat >conftest.$ac_ext <<_ACEOF |
| 5757 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5758 | /* confdefs.h. */ |
| 5759 | _ACEOF |
| 5760 | cat confdefs.h >>conftest.$ac_ext |
| 5761 | cat >>conftest.$ac_ext <<_ACEOF |
| 5762 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5763 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5764 | int |
| 5765 | main () |
| 5766 | { |
| 5767 | if ((pid_t *) 0) |
| 5768 | return 0; |
| 5769 | if (sizeof (pid_t)) |
| 5770 | return 0; |
| 5771 | ; |
| 5772 | return 0; |
| 5773 | } |
| 5774 | _ACEOF |
| 5775 | rm -f conftest.$ac_objext |
| 5776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5777 | (eval $ac_compile) 2>&5 |
| 5778 | ac_status=$? |
| 5779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5780 | (exit $ac_status); } && |
| 5781 | { ac_try='test -s conftest.$ac_objext' |
| 5782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5783 | (eval $ac_try) 2>&5 |
| 5784 | ac_status=$? |
| 5785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5786 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5787 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5788 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5789 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5791 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5792 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5793 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5794 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5795 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5796 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 5797 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 5798 | if test $ac_cv_type_pid_t = yes; then |
| 5799 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5800 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5801 | |
| 5802 | cat >>confdefs.h <<_ACEOF |
| 5803 | #define pid_t int |
| 5804 | _ACEOF |
| 5805 | |
| 5806 | fi |
| 5807 | |
| 5808 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 5809 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 5810 | if test "${ac_cv_type_signal+set}" = set; then |
| 5811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5812 | else |
| 5813 | cat >conftest.$ac_ext <<_ACEOF |
| 5814 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5815 | /* confdefs.h. */ |
| 5816 | _ACEOF |
| 5817 | cat confdefs.h >>conftest.$ac_ext |
| 5818 | cat >>conftest.$ac_ext <<_ACEOF |
| 5819 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5820 | #include <sys/types.h> |
| 5821 | #include <signal.h> |
| 5822 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5823 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5824 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5825 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5826 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 5827 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5828 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5829 | #endif |
| 5830 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5831 | int |
| 5832 | main () |
| 5833 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5834 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5835 | ; |
| 5836 | return 0; |
| 5837 | } |
| 5838 | _ACEOF |
| 5839 | rm -f conftest.$ac_objext |
| 5840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5841 | (eval $ac_compile) 2>&5 |
| 5842 | ac_status=$? |
| 5843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5844 | (exit $ac_status); } && |
| 5845 | { ac_try='test -s conftest.$ac_objext' |
| 5846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5847 | (eval $ac_try) 2>&5 |
| 5848 | ac_status=$? |
| 5849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5850 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5851 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5852 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5853 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5855 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5856 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5857 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5858 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5859 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5860 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 5861 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5862 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5863 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5864 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5865 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5866 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5867 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5868 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5869 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 5870 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5872 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5873 | cat >conftest.$ac_ext <<_ACEOF |
| 5874 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5875 | /* confdefs.h. */ |
| 5876 | _ACEOF |
| 5877 | cat confdefs.h >>conftest.$ac_ext |
| 5878 | cat >>conftest.$ac_ext <<_ACEOF |
| 5879 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5880 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5881 | int |
| 5882 | main () |
| 5883 | { |
| 5884 | if ((size_t *) 0) |
| 5885 | return 0; |
| 5886 | if (sizeof (size_t)) |
| 5887 | return 0; |
| 5888 | ; |
| 5889 | return 0; |
| 5890 | } |
| 5891 | _ACEOF |
| 5892 | rm -f conftest.$ac_objext |
| 5893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5894 | (eval $ac_compile) 2>&5 |
| 5895 | ac_status=$? |
| 5896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5897 | (exit $ac_status); } && |
| 5898 | { ac_try='test -s conftest.$ac_objext' |
| 5899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5900 | (eval $ac_try) 2>&5 |
| 5901 | ac_status=$? |
| 5902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5903 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5904 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5905 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5906 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5908 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5909 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5910 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5911 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5912 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5913 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5914 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 5915 | if test $ac_cv_type_size_t = yes; then |
| 5916 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5917 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5918 | |
| 5919 | cat >>confdefs.h <<_ACEOF |
| 5920 | #define size_t unsigned |
| 5921 | _ACEOF |
| 5922 | |
| 5923 | fi |
| 5924 | |
| 5925 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 5926 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 5927 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 5928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5929 | else |
| 5930 | cat >conftest.$ac_ext <<_ACEOF |
| 5931 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5932 | /* confdefs.h. */ |
| 5933 | _ACEOF |
| 5934 | cat confdefs.h >>conftest.$ac_ext |
| 5935 | cat >>conftest.$ac_ext <<_ACEOF |
| 5936 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5937 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5938 | |
| 5939 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5940 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5941 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5942 | ac_cv_type_uid_t=yes |
| 5943 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5944 | ac_cv_type_uid_t=no |
| 5945 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5946 | rm -f conftest* |
| 5947 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5948 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5949 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 5950 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5951 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5952 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5953 | cat >>confdefs.h <<\_ACEOF |
| 5954 | #define uid_t int |
| 5955 | _ACEOF |
| 5956 | |
| 5957 | |
| 5958 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5959 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5960 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5961 | |
| 5962 | fi |
| 5963 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5964 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5965 | # Sizes of various common basic types |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5966 | echo "$as_me:$LINENO: checking for int" >&5 |
| 5967 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 5968 | if test "${ac_cv_type_int+set}" = set; then |
| 5969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5970 | else |
| 5971 | cat >conftest.$ac_ext <<_ACEOF |
| 5972 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5973 | /* confdefs.h. */ |
| 5974 | _ACEOF |
| 5975 | cat confdefs.h >>conftest.$ac_ext |
| 5976 | cat >>conftest.$ac_ext <<_ACEOF |
| 5977 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5978 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5979 | int |
| 5980 | main () |
| 5981 | { |
| 5982 | if ((int *) 0) |
| 5983 | return 0; |
| 5984 | if (sizeof (int)) |
| 5985 | return 0; |
| 5986 | ; |
| 5987 | return 0; |
| 5988 | } |
| 5989 | _ACEOF |
| 5990 | rm -f conftest.$ac_objext |
| 5991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5992 | (eval $ac_compile) 2>&5 |
| 5993 | ac_status=$? |
| 5994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5995 | (exit $ac_status); } && |
| 5996 | { ac_try='test -s conftest.$ac_objext' |
| 5997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5998 | (eval $ac_try) 2>&5 |
| 5999 | ac_status=$? |
| 6000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6001 | (exit $ac_status); }; }; then |
| 6002 | ac_cv_type_int=yes |
| 6003 | else |
| 6004 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6006 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6007 | ac_cv_type_int=no |
| 6008 | fi |
| 6009 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6010 | fi |
| 6011 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 6012 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 6013 | |
| 6014 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 6015 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 6016 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 6017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6018 | else |
| 6019 | if test "$ac_cv_type_int" = yes; then |
| 6020 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6021 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6022 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6023 | # This bug is HP SR number 8606223364. |
| 6024 | if test "$cross_compiling" = yes; then |
| 6025 | # Depending upon the size, compute the lo and hi bounds. |
| 6026 | cat >conftest.$ac_ext <<_ACEOF |
| 6027 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6028 | /* confdefs.h. */ |
| 6029 | _ACEOF |
| 6030 | cat confdefs.h >>conftest.$ac_ext |
| 6031 | cat >>conftest.$ac_ext <<_ACEOF |
| 6032 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6033 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6034 | int |
| 6035 | main () |
| 6036 | { |
| 6037 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 6038 | test_array [0] = 0 |
| 6039 | |
| 6040 | ; |
| 6041 | return 0; |
| 6042 | } |
| 6043 | _ACEOF |
| 6044 | rm -f conftest.$ac_objext |
| 6045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6046 | (eval $ac_compile) 2>&5 |
| 6047 | ac_status=$? |
| 6048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6049 | (exit $ac_status); } && |
| 6050 | { ac_try='test -s conftest.$ac_objext' |
| 6051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6052 | (eval $ac_try) 2>&5 |
| 6053 | ac_status=$? |
| 6054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6055 | (exit $ac_status); }; }; then |
| 6056 | ac_lo=0 ac_mid=0 |
| 6057 | while :; do |
| 6058 | cat >conftest.$ac_ext <<_ACEOF |
| 6059 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6060 | /* confdefs.h. */ |
| 6061 | _ACEOF |
| 6062 | cat confdefs.h >>conftest.$ac_ext |
| 6063 | cat >>conftest.$ac_ext <<_ACEOF |
| 6064 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6065 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6066 | int |
| 6067 | main () |
| 6068 | { |
| 6069 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6070 | test_array [0] = 0 |
| 6071 | |
| 6072 | ; |
| 6073 | return 0; |
| 6074 | } |
| 6075 | _ACEOF |
| 6076 | rm -f conftest.$ac_objext |
| 6077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6078 | (eval $ac_compile) 2>&5 |
| 6079 | ac_status=$? |
| 6080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6081 | (exit $ac_status); } && |
| 6082 | { ac_try='test -s conftest.$ac_objext' |
| 6083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6084 | (eval $ac_try) 2>&5 |
| 6085 | ac_status=$? |
| 6086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6087 | (exit $ac_status); }; }; then |
| 6088 | ac_hi=$ac_mid; break |
| 6089 | else |
| 6090 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6092 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6093 | ac_lo=`expr $ac_mid + 1` |
| 6094 | if test $ac_lo -le $ac_mid; then |
| 6095 | ac_lo= ac_hi= |
| 6096 | break |
| 6097 | fi |
| 6098 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6099 | fi |
| 6100 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6101 | done |
| 6102 | else |
| 6103 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6105 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6106 | cat >conftest.$ac_ext <<_ACEOF |
| 6107 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6108 | /* confdefs.h. */ |
| 6109 | _ACEOF |
| 6110 | cat confdefs.h >>conftest.$ac_ext |
| 6111 | cat >>conftest.$ac_ext <<_ACEOF |
| 6112 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6113 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6114 | int |
| 6115 | main () |
| 6116 | { |
| 6117 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 6118 | test_array [0] = 0 |
| 6119 | |
| 6120 | ; |
| 6121 | return 0; |
| 6122 | } |
| 6123 | _ACEOF |
| 6124 | rm -f conftest.$ac_objext |
| 6125 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6126 | (eval $ac_compile) 2>&5 |
| 6127 | ac_status=$? |
| 6128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6129 | (exit $ac_status); } && |
| 6130 | { ac_try='test -s conftest.$ac_objext' |
| 6131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6132 | (eval $ac_try) 2>&5 |
| 6133 | ac_status=$? |
| 6134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6135 | (exit $ac_status); }; }; then |
| 6136 | ac_hi=-1 ac_mid=-1 |
| 6137 | while :; do |
| 6138 | cat >conftest.$ac_ext <<_ACEOF |
| 6139 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6140 | /* confdefs.h. */ |
| 6141 | _ACEOF |
| 6142 | cat confdefs.h >>conftest.$ac_ext |
| 6143 | cat >>conftest.$ac_ext <<_ACEOF |
| 6144 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6145 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6146 | int |
| 6147 | main () |
| 6148 | { |
| 6149 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 6150 | test_array [0] = 0 |
| 6151 | |
| 6152 | ; |
| 6153 | return 0; |
| 6154 | } |
| 6155 | _ACEOF |
| 6156 | rm -f conftest.$ac_objext |
| 6157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6158 | (eval $ac_compile) 2>&5 |
| 6159 | ac_status=$? |
| 6160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6161 | (exit $ac_status); } && |
| 6162 | { ac_try='test -s conftest.$ac_objext' |
| 6163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6164 | (eval $ac_try) 2>&5 |
| 6165 | ac_status=$? |
| 6166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6167 | (exit $ac_status); }; }; then |
| 6168 | ac_lo=$ac_mid; break |
| 6169 | else |
| 6170 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6172 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6173 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6174 | if test $ac_mid -le $ac_hi; then |
| 6175 | ac_lo= ac_hi= |
| 6176 | break |
| 6177 | fi |
| 6178 | ac_mid=`expr 2 '*' $ac_mid` |
| 6179 | fi |
| 6180 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6181 | done |
| 6182 | else |
| 6183 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6185 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6186 | ac_lo= ac_hi= |
| 6187 | fi |
| 6188 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6189 | fi |
| 6190 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6191 | # Binary search between lo and hi bounds. |
| 6192 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6193 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6194 | cat >conftest.$ac_ext <<_ACEOF |
| 6195 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6196 | /* confdefs.h. */ |
| 6197 | _ACEOF |
| 6198 | cat confdefs.h >>conftest.$ac_ext |
| 6199 | cat >>conftest.$ac_ext <<_ACEOF |
| 6200 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6201 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6202 | int |
| 6203 | main () |
| 6204 | { |
| 6205 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6206 | test_array [0] = 0 |
| 6207 | |
| 6208 | ; |
| 6209 | return 0; |
| 6210 | } |
| 6211 | _ACEOF |
| 6212 | rm -f conftest.$ac_objext |
| 6213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6214 | (eval $ac_compile) 2>&5 |
| 6215 | ac_status=$? |
| 6216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6217 | (exit $ac_status); } && |
| 6218 | { ac_try='test -s conftest.$ac_objext' |
| 6219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6220 | (eval $ac_try) 2>&5 |
| 6221 | ac_status=$? |
| 6222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6223 | (exit $ac_status); }; }; then |
| 6224 | ac_hi=$ac_mid |
| 6225 | else |
| 6226 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6227 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6228 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6229 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6230 | fi |
| 6231 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6232 | done |
| 6233 | case $ac_lo in |
| 6234 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6235 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6236 | See \`config.log' for more details." >&5 |
| 6237 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6238 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6239 | { (exit 1); exit 1; }; } ;; |
| 6240 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6241 | else |
| 6242 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6243 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6244 | See \`config.log' for more details." >&5 |
| 6245 | echo "$as_me: error: cannot run test program while cross compiling |
| 6246 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6247 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6248 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6249 | cat >conftest.$ac_ext <<_ACEOF |
| 6250 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6251 | /* confdefs.h. */ |
| 6252 | _ACEOF |
| 6253 | cat confdefs.h >>conftest.$ac_ext |
| 6254 | cat >>conftest.$ac_ext <<_ACEOF |
| 6255 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6256 | $ac_includes_default |
| 6257 | long longval () { return (long) (sizeof (int)); } |
| 6258 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6259 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6260 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6261 | int |
| 6262 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6263 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6264 | |
| 6265 | FILE *f = fopen ("conftest.val", "w"); |
| 6266 | if (! f) |
| 6267 | exit (1); |
| 6268 | if (((long) (sizeof (int))) < 0) |
| 6269 | { |
| 6270 | long i = longval (); |
| 6271 | if (i != ((long) (sizeof (int)))) |
| 6272 | exit (1); |
| 6273 | fprintf (f, "%ld\n", i); |
| 6274 | } |
| 6275 | else |
| 6276 | { |
| 6277 | unsigned long i = ulongval (); |
| 6278 | if (i != ((long) (sizeof (int)))) |
| 6279 | exit (1); |
| 6280 | fprintf (f, "%lu\n", i); |
| 6281 | } |
| 6282 | exit (ferror (f) || fclose (f) != 0); |
| 6283 | |
| 6284 | ; |
| 6285 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6286 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6287 | _ACEOF |
| 6288 | rm -f conftest$ac_exeext |
| 6289 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6290 | (eval $ac_link) 2>&5 |
| 6291 | ac_status=$? |
| 6292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6293 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6295 | (eval $ac_try) 2>&5 |
| 6296 | ac_status=$? |
| 6297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6298 | (exit $ac_status); }; }; then |
| 6299 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6300 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6301 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6302 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6304 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6305 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6306 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6307 | See \`config.log' for more details." >&5 |
| 6308 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6309 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6310 | { (exit 1); exit 1; }; } |
| 6311 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6312 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6313 | fi |
| 6314 | fi |
| 6315 | rm -f conftest.val |
| 6316 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6317 | ac_cv_sizeof_int=0 |
| 6318 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6319 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6320 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 6321 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 6322 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6323 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6324 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6325 | |
| 6326 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6327 | echo "$as_me:$LINENO: checking for long" >&5 |
| 6328 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 6329 | if test "${ac_cv_type_long+set}" = set; then |
| 6330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6331 | else |
| 6332 | cat >conftest.$ac_ext <<_ACEOF |
| 6333 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6334 | /* confdefs.h. */ |
| 6335 | _ACEOF |
| 6336 | cat confdefs.h >>conftest.$ac_ext |
| 6337 | cat >>conftest.$ac_ext <<_ACEOF |
| 6338 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6339 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6340 | int |
| 6341 | main () |
| 6342 | { |
| 6343 | if ((long *) 0) |
| 6344 | return 0; |
| 6345 | if (sizeof (long)) |
| 6346 | return 0; |
| 6347 | ; |
| 6348 | return 0; |
| 6349 | } |
| 6350 | _ACEOF |
| 6351 | rm -f conftest.$ac_objext |
| 6352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6353 | (eval $ac_compile) 2>&5 |
| 6354 | ac_status=$? |
| 6355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6356 | (exit $ac_status); } && |
| 6357 | { ac_try='test -s conftest.$ac_objext' |
| 6358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6359 | (eval $ac_try) 2>&5 |
| 6360 | ac_status=$? |
| 6361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6362 | (exit $ac_status); }; }; then |
| 6363 | ac_cv_type_long=yes |
| 6364 | else |
| 6365 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6367 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6368 | ac_cv_type_long=no |
| 6369 | fi |
| 6370 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6371 | fi |
| 6372 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 6373 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 6374 | |
| 6375 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 6376 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 6377 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 6378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6379 | else |
| 6380 | if test "$ac_cv_type_long" = yes; then |
| 6381 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6382 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6383 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6384 | # This bug is HP SR number 8606223364. |
| 6385 | if test "$cross_compiling" = yes; then |
| 6386 | # Depending upon the size, compute the lo and hi bounds. |
| 6387 | cat >conftest.$ac_ext <<_ACEOF |
| 6388 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6389 | /* confdefs.h. */ |
| 6390 | _ACEOF |
| 6391 | cat confdefs.h >>conftest.$ac_ext |
| 6392 | cat >>conftest.$ac_ext <<_ACEOF |
| 6393 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6394 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6395 | int |
| 6396 | main () |
| 6397 | { |
| 6398 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 6399 | test_array [0] = 0 |
| 6400 | |
| 6401 | ; |
| 6402 | return 0; |
| 6403 | } |
| 6404 | _ACEOF |
| 6405 | rm -f conftest.$ac_objext |
| 6406 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6407 | (eval $ac_compile) 2>&5 |
| 6408 | ac_status=$? |
| 6409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6410 | (exit $ac_status); } && |
| 6411 | { ac_try='test -s conftest.$ac_objext' |
| 6412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6413 | (eval $ac_try) 2>&5 |
| 6414 | ac_status=$? |
| 6415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6416 | (exit $ac_status); }; }; then |
| 6417 | ac_lo=0 ac_mid=0 |
| 6418 | while :; do |
| 6419 | cat >conftest.$ac_ext <<_ACEOF |
| 6420 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6421 | /* confdefs.h. */ |
| 6422 | _ACEOF |
| 6423 | cat confdefs.h >>conftest.$ac_ext |
| 6424 | cat >>conftest.$ac_ext <<_ACEOF |
| 6425 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6426 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6427 | int |
| 6428 | main () |
| 6429 | { |
| 6430 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6431 | test_array [0] = 0 |
| 6432 | |
| 6433 | ; |
| 6434 | return 0; |
| 6435 | } |
| 6436 | _ACEOF |
| 6437 | rm -f conftest.$ac_objext |
| 6438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6439 | (eval $ac_compile) 2>&5 |
| 6440 | ac_status=$? |
| 6441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6442 | (exit $ac_status); } && |
| 6443 | { ac_try='test -s conftest.$ac_objext' |
| 6444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6445 | (eval $ac_try) 2>&5 |
| 6446 | ac_status=$? |
| 6447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6448 | (exit $ac_status); }; }; then |
| 6449 | ac_hi=$ac_mid; break |
| 6450 | else |
| 6451 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6452 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6453 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6454 | ac_lo=`expr $ac_mid + 1` |
| 6455 | if test $ac_lo -le $ac_mid; then |
| 6456 | ac_lo= ac_hi= |
| 6457 | break |
| 6458 | fi |
| 6459 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6460 | fi |
| 6461 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6462 | done |
| 6463 | else |
| 6464 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6466 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6467 | cat >conftest.$ac_ext <<_ACEOF |
| 6468 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6469 | /* confdefs.h. */ |
| 6470 | _ACEOF |
| 6471 | cat confdefs.h >>conftest.$ac_ext |
| 6472 | cat >>conftest.$ac_ext <<_ACEOF |
| 6473 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6474 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6475 | int |
| 6476 | main () |
| 6477 | { |
| 6478 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 6479 | test_array [0] = 0 |
| 6480 | |
| 6481 | ; |
| 6482 | return 0; |
| 6483 | } |
| 6484 | _ACEOF |
| 6485 | rm -f conftest.$ac_objext |
| 6486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6487 | (eval $ac_compile) 2>&5 |
| 6488 | ac_status=$? |
| 6489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6490 | (exit $ac_status); } && |
| 6491 | { ac_try='test -s conftest.$ac_objext' |
| 6492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6493 | (eval $ac_try) 2>&5 |
| 6494 | ac_status=$? |
| 6495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6496 | (exit $ac_status); }; }; then |
| 6497 | ac_hi=-1 ac_mid=-1 |
| 6498 | while :; do |
| 6499 | cat >conftest.$ac_ext <<_ACEOF |
| 6500 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6501 | /* confdefs.h. */ |
| 6502 | _ACEOF |
| 6503 | cat confdefs.h >>conftest.$ac_ext |
| 6504 | cat >>conftest.$ac_ext <<_ACEOF |
| 6505 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6506 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6507 | int |
| 6508 | main () |
| 6509 | { |
| 6510 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 6511 | test_array [0] = 0 |
| 6512 | |
| 6513 | ; |
| 6514 | return 0; |
| 6515 | } |
| 6516 | _ACEOF |
| 6517 | rm -f conftest.$ac_objext |
| 6518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6519 | (eval $ac_compile) 2>&5 |
| 6520 | ac_status=$? |
| 6521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6522 | (exit $ac_status); } && |
| 6523 | { ac_try='test -s conftest.$ac_objext' |
| 6524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6525 | (eval $ac_try) 2>&5 |
| 6526 | ac_status=$? |
| 6527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6528 | (exit $ac_status); }; }; then |
| 6529 | ac_lo=$ac_mid; break |
| 6530 | else |
| 6531 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6533 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6534 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6535 | if test $ac_mid -le $ac_hi; then |
| 6536 | ac_lo= ac_hi= |
| 6537 | break |
| 6538 | fi |
| 6539 | ac_mid=`expr 2 '*' $ac_mid` |
| 6540 | fi |
| 6541 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6542 | done |
| 6543 | else |
| 6544 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6546 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6547 | ac_lo= ac_hi= |
| 6548 | fi |
| 6549 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6550 | fi |
| 6551 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6552 | # Binary search between lo and hi bounds. |
| 6553 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6554 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6555 | cat >conftest.$ac_ext <<_ACEOF |
| 6556 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6557 | /* confdefs.h. */ |
| 6558 | _ACEOF |
| 6559 | cat confdefs.h >>conftest.$ac_ext |
| 6560 | cat >>conftest.$ac_ext <<_ACEOF |
| 6561 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6562 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6563 | int |
| 6564 | main () |
| 6565 | { |
| 6566 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6567 | test_array [0] = 0 |
| 6568 | |
| 6569 | ; |
| 6570 | return 0; |
| 6571 | } |
| 6572 | _ACEOF |
| 6573 | rm -f conftest.$ac_objext |
| 6574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6575 | (eval $ac_compile) 2>&5 |
| 6576 | ac_status=$? |
| 6577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6578 | (exit $ac_status); } && |
| 6579 | { ac_try='test -s conftest.$ac_objext' |
| 6580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6581 | (eval $ac_try) 2>&5 |
| 6582 | ac_status=$? |
| 6583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6584 | (exit $ac_status); }; }; then |
| 6585 | ac_hi=$ac_mid |
| 6586 | else |
| 6587 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6589 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6590 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6591 | fi |
| 6592 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6593 | done |
| 6594 | case $ac_lo in |
| 6595 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6596 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 6597 | See \`config.log' for more details." >&5 |
| 6598 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 6599 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6600 | { (exit 1); exit 1; }; } ;; |
| 6601 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6602 | else |
| 6603 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6604 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6605 | See \`config.log' for more details." >&5 |
| 6606 | echo "$as_me: error: cannot run test program while cross compiling |
| 6607 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6608 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6609 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6610 | cat >conftest.$ac_ext <<_ACEOF |
| 6611 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6612 | /* confdefs.h. */ |
| 6613 | _ACEOF |
| 6614 | cat confdefs.h >>conftest.$ac_ext |
| 6615 | cat >>conftest.$ac_ext <<_ACEOF |
| 6616 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6617 | $ac_includes_default |
| 6618 | long longval () { return (long) (sizeof (long)); } |
| 6619 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6620 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6621 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6622 | int |
| 6623 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6624 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6625 | |
| 6626 | FILE *f = fopen ("conftest.val", "w"); |
| 6627 | if (! f) |
| 6628 | exit (1); |
| 6629 | if (((long) (sizeof (long))) < 0) |
| 6630 | { |
| 6631 | long i = longval (); |
| 6632 | if (i != ((long) (sizeof (long)))) |
| 6633 | exit (1); |
| 6634 | fprintf (f, "%ld\n", i); |
| 6635 | } |
| 6636 | else |
| 6637 | { |
| 6638 | unsigned long i = ulongval (); |
| 6639 | if (i != ((long) (sizeof (long)))) |
| 6640 | exit (1); |
| 6641 | fprintf (f, "%lu\n", i); |
| 6642 | } |
| 6643 | exit (ferror (f) || fclose (f) != 0); |
| 6644 | |
| 6645 | ; |
| 6646 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6647 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6648 | _ACEOF |
| 6649 | rm -f conftest$ac_exeext |
| 6650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6651 | (eval $ac_link) 2>&5 |
| 6652 | ac_status=$? |
| 6653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6654 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6656 | (eval $ac_try) 2>&5 |
| 6657 | ac_status=$? |
| 6658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6659 | (exit $ac_status); }; }; then |
| 6660 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6661 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6662 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6663 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6665 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6666 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6667 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 6668 | See \`config.log' for more details." >&5 |
| 6669 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 6670 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6671 | { (exit 1); exit 1; }; } |
| 6672 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6673 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6674 | fi |
| 6675 | fi |
| 6676 | rm -f conftest.val |
| 6677 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6678 | ac_cv_sizeof_long=0 |
| 6679 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6680 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6681 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 6682 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 6683 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6684 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6685 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6686 | |
| 6687 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6688 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 6689 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 6690 | if test "${ac_cv_type_void_p+set}" = set; then |
| 6691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6692 | else |
| 6693 | cat >conftest.$ac_ext <<_ACEOF |
| 6694 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6695 | /* confdefs.h. */ |
| 6696 | _ACEOF |
| 6697 | cat confdefs.h >>conftest.$ac_ext |
| 6698 | cat >>conftest.$ac_ext <<_ACEOF |
| 6699 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6700 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6701 | int |
| 6702 | main () |
| 6703 | { |
| 6704 | if ((void * *) 0) |
| 6705 | return 0; |
| 6706 | if (sizeof (void *)) |
| 6707 | return 0; |
| 6708 | ; |
| 6709 | return 0; |
| 6710 | } |
| 6711 | _ACEOF |
| 6712 | rm -f conftest.$ac_objext |
| 6713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6714 | (eval $ac_compile) 2>&5 |
| 6715 | ac_status=$? |
| 6716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6717 | (exit $ac_status); } && |
| 6718 | { ac_try='test -s conftest.$ac_objext' |
| 6719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6720 | (eval $ac_try) 2>&5 |
| 6721 | ac_status=$? |
| 6722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6723 | (exit $ac_status); }; }; then |
| 6724 | ac_cv_type_void_p=yes |
| 6725 | else |
| 6726 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6728 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6729 | ac_cv_type_void_p=no |
| 6730 | fi |
| 6731 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6732 | fi |
| 6733 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 6734 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 6735 | |
| 6736 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 6737 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 6738 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 6739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6740 | else |
| 6741 | if test "$ac_cv_type_void_p" = yes; then |
| 6742 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6743 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6744 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6745 | # This bug is HP SR number 8606223364. |
| 6746 | if test "$cross_compiling" = yes; then |
| 6747 | # Depending upon the size, compute the lo and hi bounds. |
| 6748 | cat >conftest.$ac_ext <<_ACEOF |
| 6749 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6750 | /* confdefs.h. */ |
| 6751 | _ACEOF |
| 6752 | cat confdefs.h >>conftest.$ac_ext |
| 6753 | cat >>conftest.$ac_ext <<_ACEOF |
| 6754 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6755 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6756 | int |
| 6757 | main () |
| 6758 | { |
| 6759 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 6760 | test_array [0] = 0 |
| 6761 | |
| 6762 | ; |
| 6763 | return 0; |
| 6764 | } |
| 6765 | _ACEOF |
| 6766 | rm -f conftest.$ac_objext |
| 6767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6768 | (eval $ac_compile) 2>&5 |
| 6769 | ac_status=$? |
| 6770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6771 | (exit $ac_status); } && |
| 6772 | { ac_try='test -s conftest.$ac_objext' |
| 6773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6774 | (eval $ac_try) 2>&5 |
| 6775 | ac_status=$? |
| 6776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6777 | (exit $ac_status); }; }; then |
| 6778 | ac_lo=0 ac_mid=0 |
| 6779 | while :; do |
| 6780 | cat >conftest.$ac_ext <<_ACEOF |
| 6781 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6782 | /* confdefs.h. */ |
| 6783 | _ACEOF |
| 6784 | cat confdefs.h >>conftest.$ac_ext |
| 6785 | cat >>conftest.$ac_ext <<_ACEOF |
| 6786 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6787 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6788 | int |
| 6789 | main () |
| 6790 | { |
| 6791 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6792 | test_array [0] = 0 |
| 6793 | |
| 6794 | ; |
| 6795 | return 0; |
| 6796 | } |
| 6797 | _ACEOF |
| 6798 | rm -f conftest.$ac_objext |
| 6799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6800 | (eval $ac_compile) 2>&5 |
| 6801 | ac_status=$? |
| 6802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6803 | (exit $ac_status); } && |
| 6804 | { ac_try='test -s conftest.$ac_objext' |
| 6805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6806 | (eval $ac_try) 2>&5 |
| 6807 | ac_status=$? |
| 6808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6809 | (exit $ac_status); }; }; then |
| 6810 | ac_hi=$ac_mid; break |
| 6811 | else |
| 6812 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6813 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6814 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6815 | ac_lo=`expr $ac_mid + 1` |
| 6816 | if test $ac_lo -le $ac_mid; then |
| 6817 | ac_lo= ac_hi= |
| 6818 | break |
| 6819 | fi |
| 6820 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6821 | fi |
| 6822 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6823 | done |
| 6824 | else |
| 6825 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6827 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6828 | cat >conftest.$ac_ext <<_ACEOF |
| 6829 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6830 | /* confdefs.h. */ |
| 6831 | _ACEOF |
| 6832 | cat confdefs.h >>conftest.$ac_ext |
| 6833 | cat >>conftest.$ac_ext <<_ACEOF |
| 6834 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6835 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6836 | int |
| 6837 | main () |
| 6838 | { |
| 6839 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 6840 | test_array [0] = 0 |
| 6841 | |
| 6842 | ; |
| 6843 | return 0; |
| 6844 | } |
| 6845 | _ACEOF |
| 6846 | rm -f conftest.$ac_objext |
| 6847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6848 | (eval $ac_compile) 2>&5 |
| 6849 | ac_status=$? |
| 6850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6851 | (exit $ac_status); } && |
| 6852 | { ac_try='test -s conftest.$ac_objext' |
| 6853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6854 | (eval $ac_try) 2>&5 |
| 6855 | ac_status=$? |
| 6856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6857 | (exit $ac_status); }; }; then |
| 6858 | ac_hi=-1 ac_mid=-1 |
| 6859 | while :; do |
| 6860 | cat >conftest.$ac_ext <<_ACEOF |
| 6861 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6862 | /* confdefs.h. */ |
| 6863 | _ACEOF |
| 6864 | cat confdefs.h >>conftest.$ac_ext |
| 6865 | cat >>conftest.$ac_ext <<_ACEOF |
| 6866 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6867 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6868 | int |
| 6869 | main () |
| 6870 | { |
| 6871 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 6872 | test_array [0] = 0 |
| 6873 | |
| 6874 | ; |
| 6875 | return 0; |
| 6876 | } |
| 6877 | _ACEOF |
| 6878 | rm -f conftest.$ac_objext |
| 6879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6880 | (eval $ac_compile) 2>&5 |
| 6881 | ac_status=$? |
| 6882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6883 | (exit $ac_status); } && |
| 6884 | { ac_try='test -s conftest.$ac_objext' |
| 6885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6886 | (eval $ac_try) 2>&5 |
| 6887 | ac_status=$? |
| 6888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6889 | (exit $ac_status); }; }; then |
| 6890 | ac_lo=$ac_mid; break |
| 6891 | else |
| 6892 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6894 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6895 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6896 | if test $ac_mid -le $ac_hi; then |
| 6897 | ac_lo= ac_hi= |
| 6898 | break |
| 6899 | fi |
| 6900 | ac_mid=`expr 2 '*' $ac_mid` |
| 6901 | fi |
| 6902 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6903 | done |
| 6904 | else |
| 6905 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6907 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6908 | ac_lo= ac_hi= |
| 6909 | fi |
| 6910 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6911 | fi |
| 6912 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6913 | # Binary search between lo and hi bounds. |
| 6914 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6915 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6916 | cat >conftest.$ac_ext <<_ACEOF |
| 6917 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6918 | /* confdefs.h. */ |
| 6919 | _ACEOF |
| 6920 | cat confdefs.h >>conftest.$ac_ext |
| 6921 | cat >>conftest.$ac_ext <<_ACEOF |
| 6922 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6923 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6924 | int |
| 6925 | main () |
| 6926 | { |
| 6927 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6928 | test_array [0] = 0 |
| 6929 | |
| 6930 | ; |
| 6931 | return 0; |
| 6932 | } |
| 6933 | _ACEOF |
| 6934 | rm -f conftest.$ac_objext |
| 6935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6936 | (eval $ac_compile) 2>&5 |
| 6937 | ac_status=$? |
| 6938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6939 | (exit $ac_status); } && |
| 6940 | { ac_try='test -s conftest.$ac_objext' |
| 6941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6942 | (eval $ac_try) 2>&5 |
| 6943 | ac_status=$? |
| 6944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6945 | (exit $ac_status); }; }; then |
| 6946 | ac_hi=$ac_mid |
| 6947 | else |
| 6948 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6949 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6950 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6951 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6952 | fi |
| 6953 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6954 | done |
| 6955 | case $ac_lo in |
| 6956 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6957 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 6958 | See \`config.log' for more details." >&5 |
| 6959 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 6960 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6961 | { (exit 1); exit 1; }; } ;; |
| 6962 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6963 | else |
| 6964 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6965 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6966 | See \`config.log' for more details." >&5 |
| 6967 | echo "$as_me: error: cannot run test program while cross compiling |
| 6968 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6969 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6970 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6971 | cat >conftest.$ac_ext <<_ACEOF |
| 6972 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6973 | /* confdefs.h. */ |
| 6974 | _ACEOF |
| 6975 | cat confdefs.h >>conftest.$ac_ext |
| 6976 | cat >>conftest.$ac_ext <<_ACEOF |
| 6977 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6978 | $ac_includes_default |
| 6979 | long longval () { return (long) (sizeof (void *)); } |
| 6980 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6981 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6982 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6983 | int |
| 6984 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6985 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6986 | |
| 6987 | FILE *f = fopen ("conftest.val", "w"); |
| 6988 | if (! f) |
| 6989 | exit (1); |
| 6990 | if (((long) (sizeof (void *))) < 0) |
| 6991 | { |
| 6992 | long i = longval (); |
| 6993 | if (i != ((long) (sizeof (void *)))) |
| 6994 | exit (1); |
| 6995 | fprintf (f, "%ld\n", i); |
| 6996 | } |
| 6997 | else |
| 6998 | { |
| 6999 | unsigned long i = ulongval (); |
| 7000 | if (i != ((long) (sizeof (void *)))) |
| 7001 | exit (1); |
| 7002 | fprintf (f, "%lu\n", i); |
| 7003 | } |
| 7004 | exit (ferror (f) || fclose (f) != 0); |
| 7005 | |
| 7006 | ; |
| 7007 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7008 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7009 | _ACEOF |
| 7010 | rm -f conftest$ac_exeext |
| 7011 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7012 | (eval $ac_link) 2>&5 |
| 7013 | ac_status=$? |
| 7014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7015 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7017 | (eval $ac_try) 2>&5 |
| 7018 | ac_status=$? |
| 7019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7020 | (exit $ac_status); }; }; then |
| 7021 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7022 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7023 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7024 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7026 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7027 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7028 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 7029 | See \`config.log' for more details." >&5 |
| 7030 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 7031 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7032 | { (exit 1); exit 1; }; } |
| 7033 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7034 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7035 | fi |
| 7036 | fi |
| 7037 | rm -f conftest.val |
| 7038 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7039 | ac_cv_sizeof_void_p=0 |
| 7040 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7041 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7042 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 7043 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 7044 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7045 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7046 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7047 | |
| 7048 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7049 | echo "$as_me:$LINENO: checking for char" >&5 |
| 7050 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 7051 | if test "${ac_cv_type_char+set}" = set; then |
| 7052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7053 | else |
| 7054 | cat >conftest.$ac_ext <<_ACEOF |
| 7055 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7056 | /* confdefs.h. */ |
| 7057 | _ACEOF |
| 7058 | cat confdefs.h >>conftest.$ac_ext |
| 7059 | cat >>conftest.$ac_ext <<_ACEOF |
| 7060 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7061 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7062 | int |
| 7063 | main () |
| 7064 | { |
| 7065 | if ((char *) 0) |
| 7066 | return 0; |
| 7067 | if (sizeof (char)) |
| 7068 | return 0; |
| 7069 | ; |
| 7070 | return 0; |
| 7071 | } |
| 7072 | _ACEOF |
| 7073 | rm -f conftest.$ac_objext |
| 7074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7075 | (eval $ac_compile) 2>&5 |
| 7076 | ac_status=$? |
| 7077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7078 | (exit $ac_status); } && |
| 7079 | { ac_try='test -s conftest.$ac_objext' |
| 7080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7081 | (eval $ac_try) 2>&5 |
| 7082 | ac_status=$? |
| 7083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7084 | (exit $ac_status); }; }; then |
| 7085 | ac_cv_type_char=yes |
| 7086 | else |
| 7087 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7089 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7090 | ac_cv_type_char=no |
| 7091 | fi |
| 7092 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7093 | fi |
| 7094 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 7095 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 7096 | |
| 7097 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 7098 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 7099 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 7100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7101 | else |
| 7102 | if test "$ac_cv_type_char" = yes; then |
| 7103 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7104 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7105 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7106 | # This bug is HP SR number 8606223364. |
| 7107 | if test "$cross_compiling" = yes; then |
| 7108 | # Depending upon the size, compute the lo and hi bounds. |
| 7109 | cat >conftest.$ac_ext <<_ACEOF |
| 7110 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7111 | /* confdefs.h. */ |
| 7112 | _ACEOF |
| 7113 | cat confdefs.h >>conftest.$ac_ext |
| 7114 | cat >>conftest.$ac_ext <<_ACEOF |
| 7115 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7116 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7117 | int |
| 7118 | main () |
| 7119 | { |
| 7120 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 7121 | test_array [0] = 0 |
| 7122 | |
| 7123 | ; |
| 7124 | return 0; |
| 7125 | } |
| 7126 | _ACEOF |
| 7127 | rm -f conftest.$ac_objext |
| 7128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7129 | (eval $ac_compile) 2>&5 |
| 7130 | ac_status=$? |
| 7131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7132 | (exit $ac_status); } && |
| 7133 | { ac_try='test -s conftest.$ac_objext' |
| 7134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7135 | (eval $ac_try) 2>&5 |
| 7136 | ac_status=$? |
| 7137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7138 | (exit $ac_status); }; }; then |
| 7139 | ac_lo=0 ac_mid=0 |
| 7140 | while :; do |
| 7141 | cat >conftest.$ac_ext <<_ACEOF |
| 7142 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7143 | /* confdefs.h. */ |
| 7144 | _ACEOF |
| 7145 | cat confdefs.h >>conftest.$ac_ext |
| 7146 | cat >>conftest.$ac_ext <<_ACEOF |
| 7147 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7148 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7149 | int |
| 7150 | main () |
| 7151 | { |
| 7152 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 7153 | test_array [0] = 0 |
| 7154 | |
| 7155 | ; |
| 7156 | return 0; |
| 7157 | } |
| 7158 | _ACEOF |
| 7159 | rm -f conftest.$ac_objext |
| 7160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7161 | (eval $ac_compile) 2>&5 |
| 7162 | ac_status=$? |
| 7163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7164 | (exit $ac_status); } && |
| 7165 | { ac_try='test -s conftest.$ac_objext' |
| 7166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7167 | (eval $ac_try) 2>&5 |
| 7168 | ac_status=$? |
| 7169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7170 | (exit $ac_status); }; }; then |
| 7171 | ac_hi=$ac_mid; break |
| 7172 | else |
| 7173 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7175 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7176 | ac_lo=`expr $ac_mid + 1` |
| 7177 | if test $ac_lo -le $ac_mid; then |
| 7178 | ac_lo= ac_hi= |
| 7179 | break |
| 7180 | fi |
| 7181 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7182 | fi |
| 7183 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7184 | done |
| 7185 | else |
| 7186 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7188 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7189 | cat >conftest.$ac_ext <<_ACEOF |
| 7190 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7191 | /* confdefs.h. */ |
| 7192 | _ACEOF |
| 7193 | cat confdefs.h >>conftest.$ac_ext |
| 7194 | cat >>conftest.$ac_ext <<_ACEOF |
| 7195 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7196 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7197 | int |
| 7198 | main () |
| 7199 | { |
| 7200 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 7201 | test_array [0] = 0 |
| 7202 | |
| 7203 | ; |
| 7204 | return 0; |
| 7205 | } |
| 7206 | _ACEOF |
| 7207 | rm -f conftest.$ac_objext |
| 7208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7209 | (eval $ac_compile) 2>&5 |
| 7210 | ac_status=$? |
| 7211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7212 | (exit $ac_status); } && |
| 7213 | { ac_try='test -s conftest.$ac_objext' |
| 7214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7215 | (eval $ac_try) 2>&5 |
| 7216 | ac_status=$? |
| 7217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7218 | (exit $ac_status); }; }; then |
| 7219 | ac_hi=-1 ac_mid=-1 |
| 7220 | while :; do |
| 7221 | cat >conftest.$ac_ext <<_ACEOF |
| 7222 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7223 | /* confdefs.h. */ |
| 7224 | _ACEOF |
| 7225 | cat confdefs.h >>conftest.$ac_ext |
| 7226 | cat >>conftest.$ac_ext <<_ACEOF |
| 7227 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7228 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7229 | int |
| 7230 | main () |
| 7231 | { |
| 7232 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 7233 | test_array [0] = 0 |
| 7234 | |
| 7235 | ; |
| 7236 | return 0; |
| 7237 | } |
| 7238 | _ACEOF |
| 7239 | rm -f conftest.$ac_objext |
| 7240 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7241 | (eval $ac_compile) 2>&5 |
| 7242 | ac_status=$? |
| 7243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7244 | (exit $ac_status); } && |
| 7245 | { ac_try='test -s conftest.$ac_objext' |
| 7246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7247 | (eval $ac_try) 2>&5 |
| 7248 | ac_status=$? |
| 7249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7250 | (exit $ac_status); }; }; then |
| 7251 | ac_lo=$ac_mid; break |
| 7252 | else |
| 7253 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7254 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7255 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7256 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7257 | if test $ac_mid -le $ac_hi; then |
| 7258 | ac_lo= ac_hi= |
| 7259 | break |
| 7260 | fi |
| 7261 | ac_mid=`expr 2 '*' $ac_mid` |
| 7262 | fi |
| 7263 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7264 | done |
| 7265 | else |
| 7266 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7268 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7269 | ac_lo= ac_hi= |
| 7270 | fi |
| 7271 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7272 | fi |
| 7273 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7274 | # Binary search between lo and hi bounds. |
| 7275 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7276 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7277 | cat >conftest.$ac_ext <<_ACEOF |
| 7278 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7279 | /* confdefs.h. */ |
| 7280 | _ACEOF |
| 7281 | cat confdefs.h >>conftest.$ac_ext |
| 7282 | cat >>conftest.$ac_ext <<_ACEOF |
| 7283 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7284 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7285 | int |
| 7286 | main () |
| 7287 | { |
| 7288 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 7289 | test_array [0] = 0 |
| 7290 | |
| 7291 | ; |
| 7292 | return 0; |
| 7293 | } |
| 7294 | _ACEOF |
| 7295 | rm -f conftest.$ac_objext |
| 7296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7297 | (eval $ac_compile) 2>&5 |
| 7298 | ac_status=$? |
| 7299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7300 | (exit $ac_status); } && |
| 7301 | { ac_try='test -s conftest.$ac_objext' |
| 7302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7303 | (eval $ac_try) 2>&5 |
| 7304 | ac_status=$? |
| 7305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7306 | (exit $ac_status); }; }; then |
| 7307 | ac_hi=$ac_mid |
| 7308 | else |
| 7309 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7311 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7312 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7313 | fi |
| 7314 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7315 | done |
| 7316 | case $ac_lo in |
| 7317 | ?*) ac_cv_sizeof_char=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7318 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
| 7319 | See \`config.log' for more details." >&5 |
| 7320 | echo "$as_me: error: cannot compute sizeof (char), 77 |
| 7321 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7322 | { (exit 1); exit 1; }; } ;; |
| 7323 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7324 | else |
| 7325 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7326 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7327 | See \`config.log' for more details." >&5 |
| 7328 | echo "$as_me: error: cannot run test program while cross compiling |
| 7329 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7330 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7331 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7332 | cat >conftest.$ac_ext <<_ACEOF |
| 7333 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7334 | /* confdefs.h. */ |
| 7335 | _ACEOF |
| 7336 | cat confdefs.h >>conftest.$ac_ext |
| 7337 | cat >>conftest.$ac_ext <<_ACEOF |
| 7338 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7339 | $ac_includes_default |
| 7340 | long longval () { return (long) (sizeof (char)); } |
| 7341 | unsigned long ulongval () { return (long) (sizeof (char)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7342 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7343 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7344 | int |
| 7345 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7346 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7347 | |
| 7348 | FILE *f = fopen ("conftest.val", "w"); |
| 7349 | if (! f) |
| 7350 | exit (1); |
| 7351 | if (((long) (sizeof (char))) < 0) |
| 7352 | { |
| 7353 | long i = longval (); |
| 7354 | if (i != ((long) (sizeof (char)))) |
| 7355 | exit (1); |
| 7356 | fprintf (f, "%ld\n", i); |
| 7357 | } |
| 7358 | else |
| 7359 | { |
| 7360 | unsigned long i = ulongval (); |
| 7361 | if (i != ((long) (sizeof (char)))) |
| 7362 | exit (1); |
| 7363 | fprintf (f, "%lu\n", i); |
| 7364 | } |
| 7365 | exit (ferror (f) || fclose (f) != 0); |
| 7366 | |
| 7367 | ; |
| 7368 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7369 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7370 | _ACEOF |
| 7371 | rm -f conftest$ac_exeext |
| 7372 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7373 | (eval $ac_link) 2>&5 |
| 7374 | ac_status=$? |
| 7375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7376 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7378 | (eval $ac_try) 2>&5 |
| 7379 | ac_status=$? |
| 7380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7381 | (exit $ac_status); }; }; then |
| 7382 | ac_cv_sizeof_char=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7383 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7384 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7385 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7387 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7388 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7389 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
| 7390 | See \`config.log' for more details." >&5 |
| 7391 | echo "$as_me: error: cannot compute sizeof (char), 77 |
| 7392 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7393 | { (exit 1); exit 1; }; } |
| 7394 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7395 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7396 | fi |
| 7397 | fi |
| 7398 | rm -f conftest.val |
| 7399 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7400 | ac_cv_sizeof_char=0 |
| 7401 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7402 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7403 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 7404 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 7405 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7406 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7407 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7408 | |
| 7409 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7410 | echo "$as_me:$LINENO: checking for short" >&5 |
| 7411 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 7412 | if test "${ac_cv_type_short+set}" = set; then |
| 7413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7414 | else |
| 7415 | cat >conftest.$ac_ext <<_ACEOF |
| 7416 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7417 | /* confdefs.h. */ |
| 7418 | _ACEOF |
| 7419 | cat confdefs.h >>conftest.$ac_ext |
| 7420 | cat >>conftest.$ac_ext <<_ACEOF |
| 7421 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7422 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7423 | int |
| 7424 | main () |
| 7425 | { |
| 7426 | if ((short *) 0) |
| 7427 | return 0; |
| 7428 | if (sizeof (short)) |
| 7429 | return 0; |
| 7430 | ; |
| 7431 | return 0; |
| 7432 | } |
| 7433 | _ACEOF |
| 7434 | rm -f conftest.$ac_objext |
| 7435 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7436 | (eval $ac_compile) 2>&5 |
| 7437 | ac_status=$? |
| 7438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7439 | (exit $ac_status); } && |
| 7440 | { ac_try='test -s conftest.$ac_objext' |
| 7441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7442 | (eval $ac_try) 2>&5 |
| 7443 | ac_status=$? |
| 7444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7445 | (exit $ac_status); }; }; then |
| 7446 | ac_cv_type_short=yes |
| 7447 | else |
| 7448 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7450 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7451 | ac_cv_type_short=no |
| 7452 | fi |
| 7453 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7454 | fi |
| 7455 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 7456 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 7457 | |
| 7458 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 7459 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 7460 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 7461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7462 | else |
| 7463 | if test "$ac_cv_type_short" = yes; then |
| 7464 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7465 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7466 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7467 | # This bug is HP SR number 8606223364. |
| 7468 | if test "$cross_compiling" = yes; then |
| 7469 | # Depending upon the size, compute the lo and hi bounds. |
| 7470 | cat >conftest.$ac_ext <<_ACEOF |
| 7471 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7472 | /* confdefs.h. */ |
| 7473 | _ACEOF |
| 7474 | cat confdefs.h >>conftest.$ac_ext |
| 7475 | cat >>conftest.$ac_ext <<_ACEOF |
| 7476 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7477 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7478 | int |
| 7479 | main () |
| 7480 | { |
| 7481 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 7482 | test_array [0] = 0 |
| 7483 | |
| 7484 | ; |
| 7485 | return 0; |
| 7486 | } |
| 7487 | _ACEOF |
| 7488 | rm -f conftest.$ac_objext |
| 7489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7490 | (eval $ac_compile) 2>&5 |
| 7491 | ac_status=$? |
| 7492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7493 | (exit $ac_status); } && |
| 7494 | { ac_try='test -s conftest.$ac_objext' |
| 7495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7496 | (eval $ac_try) 2>&5 |
| 7497 | ac_status=$? |
| 7498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7499 | (exit $ac_status); }; }; then |
| 7500 | ac_lo=0 ac_mid=0 |
| 7501 | while :; do |
| 7502 | cat >conftest.$ac_ext <<_ACEOF |
| 7503 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7504 | /* confdefs.h. */ |
| 7505 | _ACEOF |
| 7506 | cat confdefs.h >>conftest.$ac_ext |
| 7507 | cat >>conftest.$ac_ext <<_ACEOF |
| 7508 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7509 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7510 | int |
| 7511 | main () |
| 7512 | { |
| 7513 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7514 | test_array [0] = 0 |
| 7515 | |
| 7516 | ; |
| 7517 | return 0; |
| 7518 | } |
| 7519 | _ACEOF |
| 7520 | rm -f conftest.$ac_objext |
| 7521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7522 | (eval $ac_compile) 2>&5 |
| 7523 | ac_status=$? |
| 7524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7525 | (exit $ac_status); } && |
| 7526 | { ac_try='test -s conftest.$ac_objext' |
| 7527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7528 | (eval $ac_try) 2>&5 |
| 7529 | ac_status=$? |
| 7530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7531 | (exit $ac_status); }; }; then |
| 7532 | ac_hi=$ac_mid; break |
| 7533 | else |
| 7534 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7535 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7536 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7537 | ac_lo=`expr $ac_mid + 1` |
| 7538 | if test $ac_lo -le $ac_mid; then |
| 7539 | ac_lo= ac_hi= |
| 7540 | break |
| 7541 | fi |
| 7542 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7543 | fi |
| 7544 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7545 | done |
| 7546 | else |
| 7547 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7549 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7550 | cat >conftest.$ac_ext <<_ACEOF |
| 7551 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7552 | /* confdefs.h. */ |
| 7553 | _ACEOF |
| 7554 | cat confdefs.h >>conftest.$ac_ext |
| 7555 | cat >>conftest.$ac_ext <<_ACEOF |
| 7556 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7557 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7558 | int |
| 7559 | main () |
| 7560 | { |
| 7561 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 7562 | test_array [0] = 0 |
| 7563 | |
| 7564 | ; |
| 7565 | return 0; |
| 7566 | } |
| 7567 | _ACEOF |
| 7568 | rm -f conftest.$ac_objext |
| 7569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7570 | (eval $ac_compile) 2>&5 |
| 7571 | ac_status=$? |
| 7572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7573 | (exit $ac_status); } && |
| 7574 | { ac_try='test -s conftest.$ac_objext' |
| 7575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7576 | (eval $ac_try) 2>&5 |
| 7577 | ac_status=$? |
| 7578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7579 | (exit $ac_status); }; }; then |
| 7580 | ac_hi=-1 ac_mid=-1 |
| 7581 | while :; do |
| 7582 | cat >conftest.$ac_ext <<_ACEOF |
| 7583 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7584 | /* confdefs.h. */ |
| 7585 | _ACEOF |
| 7586 | cat confdefs.h >>conftest.$ac_ext |
| 7587 | cat >>conftest.$ac_ext <<_ACEOF |
| 7588 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7589 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7590 | int |
| 7591 | main () |
| 7592 | { |
| 7593 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 7594 | test_array [0] = 0 |
| 7595 | |
| 7596 | ; |
| 7597 | return 0; |
| 7598 | } |
| 7599 | _ACEOF |
| 7600 | rm -f conftest.$ac_objext |
| 7601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7602 | (eval $ac_compile) 2>&5 |
| 7603 | ac_status=$? |
| 7604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7605 | (exit $ac_status); } && |
| 7606 | { ac_try='test -s conftest.$ac_objext' |
| 7607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7608 | (eval $ac_try) 2>&5 |
| 7609 | ac_status=$? |
| 7610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7611 | (exit $ac_status); }; }; then |
| 7612 | ac_lo=$ac_mid; break |
| 7613 | else |
| 7614 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7616 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7617 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7618 | if test $ac_mid -le $ac_hi; then |
| 7619 | ac_lo= ac_hi= |
| 7620 | break |
| 7621 | fi |
| 7622 | ac_mid=`expr 2 '*' $ac_mid` |
| 7623 | fi |
| 7624 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7625 | done |
| 7626 | else |
| 7627 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7629 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7630 | ac_lo= ac_hi= |
| 7631 | fi |
| 7632 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7633 | fi |
| 7634 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7635 | # Binary search between lo and hi bounds. |
| 7636 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7637 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7638 | cat >conftest.$ac_ext <<_ACEOF |
| 7639 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7640 | /* confdefs.h. */ |
| 7641 | _ACEOF |
| 7642 | cat confdefs.h >>conftest.$ac_ext |
| 7643 | cat >>conftest.$ac_ext <<_ACEOF |
| 7644 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7645 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7646 | int |
| 7647 | main () |
| 7648 | { |
| 7649 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7650 | test_array [0] = 0 |
| 7651 | |
| 7652 | ; |
| 7653 | return 0; |
| 7654 | } |
| 7655 | _ACEOF |
| 7656 | rm -f conftest.$ac_objext |
| 7657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7658 | (eval $ac_compile) 2>&5 |
| 7659 | ac_status=$? |
| 7660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7661 | (exit $ac_status); } && |
| 7662 | { ac_try='test -s conftest.$ac_objext' |
| 7663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7664 | (eval $ac_try) 2>&5 |
| 7665 | ac_status=$? |
| 7666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7667 | (exit $ac_status); }; }; then |
| 7668 | ac_hi=$ac_mid |
| 7669 | else |
| 7670 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7672 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7673 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7674 | fi |
| 7675 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7676 | done |
| 7677 | case $ac_lo in |
| 7678 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7679 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7680 | See \`config.log' for more details." >&5 |
| 7681 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7682 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7683 | { (exit 1); exit 1; }; } ;; |
| 7684 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7685 | else |
| 7686 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7687 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7688 | See \`config.log' for more details." >&5 |
| 7689 | echo "$as_me: error: cannot run test program while cross compiling |
| 7690 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7691 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7692 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7693 | cat >conftest.$ac_ext <<_ACEOF |
| 7694 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7695 | /* confdefs.h. */ |
| 7696 | _ACEOF |
| 7697 | cat confdefs.h >>conftest.$ac_ext |
| 7698 | cat >>conftest.$ac_ext <<_ACEOF |
| 7699 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7700 | $ac_includes_default |
| 7701 | long longval () { return (long) (sizeof (short)); } |
| 7702 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7703 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7704 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7705 | int |
| 7706 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7707 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7708 | |
| 7709 | FILE *f = fopen ("conftest.val", "w"); |
| 7710 | if (! f) |
| 7711 | exit (1); |
| 7712 | if (((long) (sizeof (short))) < 0) |
| 7713 | { |
| 7714 | long i = longval (); |
| 7715 | if (i != ((long) (sizeof (short)))) |
| 7716 | exit (1); |
| 7717 | fprintf (f, "%ld\n", i); |
| 7718 | } |
| 7719 | else |
| 7720 | { |
| 7721 | unsigned long i = ulongval (); |
| 7722 | if (i != ((long) (sizeof (short)))) |
| 7723 | exit (1); |
| 7724 | fprintf (f, "%lu\n", i); |
| 7725 | } |
| 7726 | exit (ferror (f) || fclose (f) != 0); |
| 7727 | |
| 7728 | ; |
| 7729 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7730 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7731 | _ACEOF |
| 7732 | rm -f conftest$ac_exeext |
| 7733 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7734 | (eval $ac_link) 2>&5 |
| 7735 | ac_status=$? |
| 7736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7737 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7739 | (eval $ac_try) 2>&5 |
| 7740 | ac_status=$? |
| 7741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7742 | (exit $ac_status); }; }; then |
| 7743 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7744 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7745 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7746 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7748 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7749 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7750 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7751 | See \`config.log' for more details." >&5 |
| 7752 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7753 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7754 | { (exit 1); exit 1; }; } |
| 7755 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7756 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7757 | fi |
| 7758 | fi |
| 7759 | rm -f conftest.val |
| 7760 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7761 | ac_cv_sizeof_short=0 |
| 7762 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7763 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7764 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 7765 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 7766 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7767 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7768 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7769 | |
| 7770 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7771 | echo "$as_me:$LINENO: checking for float" >&5 |
| 7772 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 7773 | if test "${ac_cv_type_float+set}" = set; then |
| 7774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7775 | else |
| 7776 | cat >conftest.$ac_ext <<_ACEOF |
| 7777 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7778 | /* confdefs.h. */ |
| 7779 | _ACEOF |
| 7780 | cat confdefs.h >>conftest.$ac_ext |
| 7781 | cat >>conftest.$ac_ext <<_ACEOF |
| 7782 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7783 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7784 | int |
| 7785 | main () |
| 7786 | { |
| 7787 | if ((float *) 0) |
| 7788 | return 0; |
| 7789 | if (sizeof (float)) |
| 7790 | return 0; |
| 7791 | ; |
| 7792 | return 0; |
| 7793 | } |
| 7794 | _ACEOF |
| 7795 | rm -f conftest.$ac_objext |
| 7796 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7797 | (eval $ac_compile) 2>&5 |
| 7798 | ac_status=$? |
| 7799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7800 | (exit $ac_status); } && |
| 7801 | { ac_try='test -s conftest.$ac_objext' |
| 7802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7803 | (eval $ac_try) 2>&5 |
| 7804 | ac_status=$? |
| 7805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7806 | (exit $ac_status); }; }; then |
| 7807 | ac_cv_type_float=yes |
| 7808 | else |
| 7809 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7811 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7812 | ac_cv_type_float=no |
| 7813 | fi |
| 7814 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7815 | fi |
| 7816 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 7817 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 7818 | |
| 7819 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 7820 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 7821 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 7822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7823 | else |
| 7824 | if test "$ac_cv_type_float" = yes; then |
| 7825 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7826 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7827 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7828 | # This bug is HP SR number 8606223364. |
| 7829 | if test "$cross_compiling" = yes; then |
| 7830 | # Depending upon the size, compute the lo and hi bounds. |
| 7831 | cat >conftest.$ac_ext <<_ACEOF |
| 7832 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7833 | /* confdefs.h. */ |
| 7834 | _ACEOF |
| 7835 | cat confdefs.h >>conftest.$ac_ext |
| 7836 | cat >>conftest.$ac_ext <<_ACEOF |
| 7837 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7838 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7839 | int |
| 7840 | main () |
| 7841 | { |
| 7842 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 7843 | test_array [0] = 0 |
| 7844 | |
| 7845 | ; |
| 7846 | return 0; |
| 7847 | } |
| 7848 | _ACEOF |
| 7849 | rm -f conftest.$ac_objext |
| 7850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7851 | (eval $ac_compile) 2>&5 |
| 7852 | ac_status=$? |
| 7853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7854 | (exit $ac_status); } && |
| 7855 | { ac_try='test -s conftest.$ac_objext' |
| 7856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7857 | (eval $ac_try) 2>&5 |
| 7858 | ac_status=$? |
| 7859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7860 | (exit $ac_status); }; }; then |
| 7861 | ac_lo=0 ac_mid=0 |
| 7862 | while :; do |
| 7863 | cat >conftest.$ac_ext <<_ACEOF |
| 7864 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7865 | /* confdefs.h. */ |
| 7866 | _ACEOF |
| 7867 | cat confdefs.h >>conftest.$ac_ext |
| 7868 | cat >>conftest.$ac_ext <<_ACEOF |
| 7869 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7870 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7871 | int |
| 7872 | main () |
| 7873 | { |
| 7874 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7875 | test_array [0] = 0 |
| 7876 | |
| 7877 | ; |
| 7878 | return 0; |
| 7879 | } |
| 7880 | _ACEOF |
| 7881 | rm -f conftest.$ac_objext |
| 7882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7883 | (eval $ac_compile) 2>&5 |
| 7884 | ac_status=$? |
| 7885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7886 | (exit $ac_status); } && |
| 7887 | { ac_try='test -s conftest.$ac_objext' |
| 7888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7889 | (eval $ac_try) 2>&5 |
| 7890 | ac_status=$? |
| 7891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7892 | (exit $ac_status); }; }; then |
| 7893 | ac_hi=$ac_mid; break |
| 7894 | else |
| 7895 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7897 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7898 | ac_lo=`expr $ac_mid + 1` |
| 7899 | if test $ac_lo -le $ac_mid; then |
| 7900 | ac_lo= ac_hi= |
| 7901 | break |
| 7902 | fi |
| 7903 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7904 | fi |
| 7905 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7906 | done |
| 7907 | else |
| 7908 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7910 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7911 | cat >conftest.$ac_ext <<_ACEOF |
| 7912 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7913 | /* confdefs.h. */ |
| 7914 | _ACEOF |
| 7915 | cat confdefs.h >>conftest.$ac_ext |
| 7916 | cat >>conftest.$ac_ext <<_ACEOF |
| 7917 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7918 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7919 | int |
| 7920 | main () |
| 7921 | { |
| 7922 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 7923 | test_array [0] = 0 |
| 7924 | |
| 7925 | ; |
| 7926 | return 0; |
| 7927 | } |
| 7928 | _ACEOF |
| 7929 | rm -f conftest.$ac_objext |
| 7930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7931 | (eval $ac_compile) 2>&5 |
| 7932 | ac_status=$? |
| 7933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7934 | (exit $ac_status); } && |
| 7935 | { ac_try='test -s conftest.$ac_objext' |
| 7936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7937 | (eval $ac_try) 2>&5 |
| 7938 | ac_status=$? |
| 7939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7940 | (exit $ac_status); }; }; then |
| 7941 | ac_hi=-1 ac_mid=-1 |
| 7942 | while :; do |
| 7943 | cat >conftest.$ac_ext <<_ACEOF |
| 7944 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7945 | /* confdefs.h. */ |
| 7946 | _ACEOF |
| 7947 | cat confdefs.h >>conftest.$ac_ext |
| 7948 | cat >>conftest.$ac_ext <<_ACEOF |
| 7949 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7950 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7951 | int |
| 7952 | main () |
| 7953 | { |
| 7954 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 7955 | test_array [0] = 0 |
| 7956 | |
| 7957 | ; |
| 7958 | return 0; |
| 7959 | } |
| 7960 | _ACEOF |
| 7961 | rm -f conftest.$ac_objext |
| 7962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7963 | (eval $ac_compile) 2>&5 |
| 7964 | ac_status=$? |
| 7965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7966 | (exit $ac_status); } && |
| 7967 | { ac_try='test -s conftest.$ac_objext' |
| 7968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7969 | (eval $ac_try) 2>&5 |
| 7970 | ac_status=$? |
| 7971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7972 | (exit $ac_status); }; }; then |
| 7973 | ac_lo=$ac_mid; break |
| 7974 | else |
| 7975 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7977 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7978 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7979 | if test $ac_mid -le $ac_hi; then |
| 7980 | ac_lo= ac_hi= |
| 7981 | break |
| 7982 | fi |
| 7983 | ac_mid=`expr 2 '*' $ac_mid` |
| 7984 | fi |
| 7985 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7986 | done |
| 7987 | else |
| 7988 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7990 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7991 | ac_lo= ac_hi= |
| 7992 | fi |
| 7993 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7994 | fi |
| 7995 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7996 | # Binary search between lo and hi bounds. |
| 7997 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7998 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7999 | cat >conftest.$ac_ext <<_ACEOF |
| 8000 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8001 | /* confdefs.h. */ |
| 8002 | _ACEOF |
| 8003 | cat confdefs.h >>conftest.$ac_ext |
| 8004 | cat >>conftest.$ac_ext <<_ACEOF |
| 8005 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8006 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8007 | int |
| 8008 | main () |
| 8009 | { |
| 8010 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 8011 | test_array [0] = 0 |
| 8012 | |
| 8013 | ; |
| 8014 | return 0; |
| 8015 | } |
| 8016 | _ACEOF |
| 8017 | rm -f conftest.$ac_objext |
| 8018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8019 | (eval $ac_compile) 2>&5 |
| 8020 | ac_status=$? |
| 8021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8022 | (exit $ac_status); } && |
| 8023 | { ac_try='test -s conftest.$ac_objext' |
| 8024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8025 | (eval $ac_try) 2>&5 |
| 8026 | ac_status=$? |
| 8027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8028 | (exit $ac_status); }; }; then |
| 8029 | ac_hi=$ac_mid |
| 8030 | else |
| 8031 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8033 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8034 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8035 | fi |
| 8036 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8037 | done |
| 8038 | case $ac_lo in |
| 8039 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8040 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8041 | See \`config.log' for more details." >&5 |
| 8042 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8043 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8044 | { (exit 1); exit 1; }; } ;; |
| 8045 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8046 | else |
| 8047 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8048 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8049 | See \`config.log' for more details." >&5 |
| 8050 | echo "$as_me: error: cannot run test program while cross compiling |
| 8051 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8052 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8053 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8054 | cat >conftest.$ac_ext <<_ACEOF |
| 8055 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8056 | /* confdefs.h. */ |
| 8057 | _ACEOF |
| 8058 | cat confdefs.h >>conftest.$ac_ext |
| 8059 | cat >>conftest.$ac_ext <<_ACEOF |
| 8060 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8061 | $ac_includes_default |
| 8062 | long longval () { return (long) (sizeof (float)); } |
| 8063 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8064 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8065 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8066 | int |
| 8067 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8068 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8069 | |
| 8070 | FILE *f = fopen ("conftest.val", "w"); |
| 8071 | if (! f) |
| 8072 | exit (1); |
| 8073 | if (((long) (sizeof (float))) < 0) |
| 8074 | { |
| 8075 | long i = longval (); |
| 8076 | if (i != ((long) (sizeof (float)))) |
| 8077 | exit (1); |
| 8078 | fprintf (f, "%ld\n", i); |
| 8079 | } |
| 8080 | else |
| 8081 | { |
| 8082 | unsigned long i = ulongval (); |
| 8083 | if (i != ((long) (sizeof (float)))) |
| 8084 | exit (1); |
| 8085 | fprintf (f, "%lu\n", i); |
| 8086 | } |
| 8087 | exit (ferror (f) || fclose (f) != 0); |
| 8088 | |
| 8089 | ; |
| 8090 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8091 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8092 | _ACEOF |
| 8093 | rm -f conftest$ac_exeext |
| 8094 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8095 | (eval $ac_link) 2>&5 |
| 8096 | ac_status=$? |
| 8097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8098 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8100 | (eval $ac_try) 2>&5 |
| 8101 | ac_status=$? |
| 8102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8103 | (exit $ac_status); }; }; then |
| 8104 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8105 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8106 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8107 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8109 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8110 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8111 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8112 | See \`config.log' for more details." >&5 |
| 8113 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8114 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8115 | { (exit 1); exit 1; }; } |
| 8116 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8117 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8118 | fi |
| 8119 | fi |
| 8120 | rm -f conftest.val |
| 8121 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8122 | ac_cv_sizeof_float=0 |
| 8123 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8124 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8125 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 8126 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 8127 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8128 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8129 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8130 | |
| 8131 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8132 | echo "$as_me:$LINENO: checking for double" >&5 |
| 8133 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 8134 | if test "${ac_cv_type_double+set}" = set; then |
| 8135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8136 | else |
| 8137 | cat >conftest.$ac_ext <<_ACEOF |
| 8138 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8139 | /* confdefs.h. */ |
| 8140 | _ACEOF |
| 8141 | cat confdefs.h >>conftest.$ac_ext |
| 8142 | cat >>conftest.$ac_ext <<_ACEOF |
| 8143 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8144 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8145 | int |
| 8146 | main () |
| 8147 | { |
| 8148 | if ((double *) 0) |
| 8149 | return 0; |
| 8150 | if (sizeof (double)) |
| 8151 | return 0; |
| 8152 | ; |
| 8153 | return 0; |
| 8154 | } |
| 8155 | _ACEOF |
| 8156 | rm -f conftest.$ac_objext |
| 8157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8158 | (eval $ac_compile) 2>&5 |
| 8159 | ac_status=$? |
| 8160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8161 | (exit $ac_status); } && |
| 8162 | { ac_try='test -s conftest.$ac_objext' |
| 8163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8164 | (eval $ac_try) 2>&5 |
| 8165 | ac_status=$? |
| 8166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8167 | (exit $ac_status); }; }; then |
| 8168 | ac_cv_type_double=yes |
| 8169 | else |
| 8170 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8172 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8173 | ac_cv_type_double=no |
| 8174 | fi |
| 8175 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8176 | fi |
| 8177 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 8178 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 8179 | |
| 8180 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 8181 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 8182 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 8183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8184 | else |
| 8185 | if test "$ac_cv_type_double" = yes; then |
| 8186 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8187 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8188 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8189 | # This bug is HP SR number 8606223364. |
| 8190 | if test "$cross_compiling" = yes; then |
| 8191 | # Depending upon the size, compute the lo and hi bounds. |
| 8192 | cat >conftest.$ac_ext <<_ACEOF |
| 8193 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8194 | /* confdefs.h. */ |
| 8195 | _ACEOF |
| 8196 | cat confdefs.h >>conftest.$ac_ext |
| 8197 | cat >>conftest.$ac_ext <<_ACEOF |
| 8198 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8199 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8200 | int |
| 8201 | main () |
| 8202 | { |
| 8203 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 8204 | test_array [0] = 0 |
| 8205 | |
| 8206 | ; |
| 8207 | return 0; |
| 8208 | } |
| 8209 | _ACEOF |
| 8210 | rm -f conftest.$ac_objext |
| 8211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8212 | (eval $ac_compile) 2>&5 |
| 8213 | ac_status=$? |
| 8214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8215 | (exit $ac_status); } && |
| 8216 | { ac_try='test -s conftest.$ac_objext' |
| 8217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8218 | (eval $ac_try) 2>&5 |
| 8219 | ac_status=$? |
| 8220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8221 | (exit $ac_status); }; }; then |
| 8222 | ac_lo=0 ac_mid=0 |
| 8223 | while :; do |
| 8224 | cat >conftest.$ac_ext <<_ACEOF |
| 8225 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8226 | /* confdefs.h. */ |
| 8227 | _ACEOF |
| 8228 | cat confdefs.h >>conftest.$ac_ext |
| 8229 | cat >>conftest.$ac_ext <<_ACEOF |
| 8230 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8231 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8232 | int |
| 8233 | main () |
| 8234 | { |
| 8235 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8236 | test_array [0] = 0 |
| 8237 | |
| 8238 | ; |
| 8239 | return 0; |
| 8240 | } |
| 8241 | _ACEOF |
| 8242 | rm -f conftest.$ac_objext |
| 8243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8244 | (eval $ac_compile) 2>&5 |
| 8245 | ac_status=$? |
| 8246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8247 | (exit $ac_status); } && |
| 8248 | { ac_try='test -s conftest.$ac_objext' |
| 8249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8250 | (eval $ac_try) 2>&5 |
| 8251 | ac_status=$? |
| 8252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8253 | (exit $ac_status); }; }; then |
| 8254 | ac_hi=$ac_mid; break |
| 8255 | else |
| 8256 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8258 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8259 | ac_lo=`expr $ac_mid + 1` |
| 8260 | if test $ac_lo -le $ac_mid; then |
| 8261 | ac_lo= ac_hi= |
| 8262 | break |
| 8263 | fi |
| 8264 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8265 | fi |
| 8266 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8267 | done |
| 8268 | else |
| 8269 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8271 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8272 | cat >conftest.$ac_ext <<_ACEOF |
| 8273 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8274 | /* confdefs.h. */ |
| 8275 | _ACEOF |
| 8276 | cat confdefs.h >>conftest.$ac_ext |
| 8277 | cat >>conftest.$ac_ext <<_ACEOF |
| 8278 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8279 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8280 | int |
| 8281 | main () |
| 8282 | { |
| 8283 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 8284 | test_array [0] = 0 |
| 8285 | |
| 8286 | ; |
| 8287 | return 0; |
| 8288 | } |
| 8289 | _ACEOF |
| 8290 | rm -f conftest.$ac_objext |
| 8291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8292 | (eval $ac_compile) 2>&5 |
| 8293 | ac_status=$? |
| 8294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8295 | (exit $ac_status); } && |
| 8296 | { ac_try='test -s conftest.$ac_objext' |
| 8297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8298 | (eval $ac_try) 2>&5 |
| 8299 | ac_status=$? |
| 8300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8301 | (exit $ac_status); }; }; then |
| 8302 | ac_hi=-1 ac_mid=-1 |
| 8303 | while :; do |
| 8304 | cat >conftest.$ac_ext <<_ACEOF |
| 8305 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8306 | /* confdefs.h. */ |
| 8307 | _ACEOF |
| 8308 | cat confdefs.h >>conftest.$ac_ext |
| 8309 | cat >>conftest.$ac_ext <<_ACEOF |
| 8310 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8311 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8312 | int |
| 8313 | main () |
| 8314 | { |
| 8315 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 8316 | test_array [0] = 0 |
| 8317 | |
| 8318 | ; |
| 8319 | return 0; |
| 8320 | } |
| 8321 | _ACEOF |
| 8322 | rm -f conftest.$ac_objext |
| 8323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8324 | (eval $ac_compile) 2>&5 |
| 8325 | ac_status=$? |
| 8326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8327 | (exit $ac_status); } && |
| 8328 | { ac_try='test -s conftest.$ac_objext' |
| 8329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8330 | (eval $ac_try) 2>&5 |
| 8331 | ac_status=$? |
| 8332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8333 | (exit $ac_status); }; }; then |
| 8334 | ac_lo=$ac_mid; break |
| 8335 | else |
| 8336 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8337 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8338 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8339 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8340 | if test $ac_mid -le $ac_hi; then |
| 8341 | ac_lo= ac_hi= |
| 8342 | break |
| 8343 | fi |
| 8344 | ac_mid=`expr 2 '*' $ac_mid` |
| 8345 | fi |
| 8346 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8347 | done |
| 8348 | else |
| 8349 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8351 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8352 | ac_lo= ac_hi= |
| 8353 | fi |
| 8354 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8355 | fi |
| 8356 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8357 | # Binary search between lo and hi bounds. |
| 8358 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8359 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8360 | cat >conftest.$ac_ext <<_ACEOF |
| 8361 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8362 | /* confdefs.h. */ |
| 8363 | _ACEOF |
| 8364 | cat confdefs.h >>conftest.$ac_ext |
| 8365 | cat >>conftest.$ac_ext <<_ACEOF |
| 8366 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8367 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8368 | int |
| 8369 | main () |
| 8370 | { |
| 8371 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8372 | test_array [0] = 0 |
| 8373 | |
| 8374 | ; |
| 8375 | return 0; |
| 8376 | } |
| 8377 | _ACEOF |
| 8378 | rm -f conftest.$ac_objext |
| 8379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8380 | (eval $ac_compile) 2>&5 |
| 8381 | ac_status=$? |
| 8382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8383 | (exit $ac_status); } && |
| 8384 | { ac_try='test -s conftest.$ac_objext' |
| 8385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8386 | (eval $ac_try) 2>&5 |
| 8387 | ac_status=$? |
| 8388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8389 | (exit $ac_status); }; }; then |
| 8390 | ac_hi=$ac_mid |
| 8391 | else |
| 8392 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8394 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8395 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8396 | fi |
| 8397 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8398 | done |
| 8399 | case $ac_lo in |
| 8400 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8401 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8402 | See \`config.log' for more details." >&5 |
| 8403 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8404 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8405 | { (exit 1); exit 1; }; } ;; |
| 8406 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8407 | else |
| 8408 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8409 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8410 | See \`config.log' for more details." >&5 |
| 8411 | echo "$as_me: error: cannot run test program while cross compiling |
| 8412 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8413 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8414 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8415 | cat >conftest.$ac_ext <<_ACEOF |
| 8416 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8417 | /* confdefs.h. */ |
| 8418 | _ACEOF |
| 8419 | cat confdefs.h >>conftest.$ac_ext |
| 8420 | cat >>conftest.$ac_ext <<_ACEOF |
| 8421 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8422 | $ac_includes_default |
| 8423 | long longval () { return (long) (sizeof (double)); } |
| 8424 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8425 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8426 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8427 | int |
| 8428 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8429 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8430 | |
| 8431 | FILE *f = fopen ("conftest.val", "w"); |
| 8432 | if (! f) |
| 8433 | exit (1); |
| 8434 | if (((long) (sizeof (double))) < 0) |
| 8435 | { |
| 8436 | long i = longval (); |
| 8437 | if (i != ((long) (sizeof (double)))) |
| 8438 | exit (1); |
| 8439 | fprintf (f, "%ld\n", i); |
| 8440 | } |
| 8441 | else |
| 8442 | { |
| 8443 | unsigned long i = ulongval (); |
| 8444 | if (i != ((long) (sizeof (double)))) |
| 8445 | exit (1); |
| 8446 | fprintf (f, "%lu\n", i); |
| 8447 | } |
| 8448 | exit (ferror (f) || fclose (f) != 0); |
| 8449 | |
| 8450 | ; |
| 8451 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8452 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8453 | _ACEOF |
| 8454 | rm -f conftest$ac_exeext |
| 8455 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8456 | (eval $ac_link) 2>&5 |
| 8457 | ac_status=$? |
| 8458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8459 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 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_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8466 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8467 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8468 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8470 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8471 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8472 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8473 | See \`config.log' for more details." >&5 |
| 8474 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8475 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8476 | { (exit 1); exit 1; }; } |
| 8477 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8478 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8479 | fi |
| 8480 | fi |
| 8481 | rm -f conftest.val |
| 8482 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8483 | ac_cv_sizeof_double=0 |
| 8484 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8485 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8486 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 8487 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 8488 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8489 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8490 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8491 | |
| 8492 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8493 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 8494 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 8495 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 8496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8497 | else |
| 8498 | cat >conftest.$ac_ext <<_ACEOF |
| 8499 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8500 | /* confdefs.h. */ |
| 8501 | _ACEOF |
| 8502 | cat confdefs.h >>conftest.$ac_ext |
| 8503 | cat >>conftest.$ac_ext <<_ACEOF |
| 8504 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8505 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8506 | int |
| 8507 | main () |
| 8508 | { |
| 8509 | if ((fpos_t *) 0) |
| 8510 | return 0; |
| 8511 | if (sizeof (fpos_t)) |
| 8512 | return 0; |
| 8513 | ; |
| 8514 | return 0; |
| 8515 | } |
| 8516 | _ACEOF |
| 8517 | rm -f conftest.$ac_objext |
| 8518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8519 | (eval $ac_compile) 2>&5 |
| 8520 | ac_status=$? |
| 8521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8522 | (exit $ac_status); } && |
| 8523 | { ac_try='test -s conftest.$ac_objext' |
| 8524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8525 | (eval $ac_try) 2>&5 |
| 8526 | ac_status=$? |
| 8527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8528 | (exit $ac_status); }; }; then |
| 8529 | ac_cv_type_fpos_t=yes |
| 8530 | else |
| 8531 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8533 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8534 | ac_cv_type_fpos_t=no |
| 8535 | fi |
| 8536 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8537 | fi |
| 8538 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 8539 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 8540 | |
| 8541 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 8542 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 8543 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 8544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8545 | else |
| 8546 | if test "$ac_cv_type_fpos_t" = yes; then |
| 8547 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8548 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8549 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8550 | # This bug is HP SR number 8606223364. |
| 8551 | if test "$cross_compiling" = yes; then |
| 8552 | # Depending upon the size, compute the lo and hi bounds. |
| 8553 | cat >conftest.$ac_ext <<_ACEOF |
| 8554 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8555 | /* confdefs.h. */ |
| 8556 | _ACEOF |
| 8557 | cat confdefs.h >>conftest.$ac_ext |
| 8558 | cat >>conftest.$ac_ext <<_ACEOF |
| 8559 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8560 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8561 | int |
| 8562 | main () |
| 8563 | { |
| 8564 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 8565 | test_array [0] = 0 |
| 8566 | |
| 8567 | ; |
| 8568 | return 0; |
| 8569 | } |
| 8570 | _ACEOF |
| 8571 | rm -f conftest.$ac_objext |
| 8572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8573 | (eval $ac_compile) 2>&5 |
| 8574 | ac_status=$? |
| 8575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8576 | (exit $ac_status); } && |
| 8577 | { ac_try='test -s conftest.$ac_objext' |
| 8578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8579 | (eval $ac_try) 2>&5 |
| 8580 | ac_status=$? |
| 8581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8582 | (exit $ac_status); }; }; then |
| 8583 | ac_lo=0 ac_mid=0 |
| 8584 | while :; do |
| 8585 | cat >conftest.$ac_ext <<_ACEOF |
| 8586 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8587 | /* confdefs.h. */ |
| 8588 | _ACEOF |
| 8589 | cat confdefs.h >>conftest.$ac_ext |
| 8590 | cat >>conftest.$ac_ext <<_ACEOF |
| 8591 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8592 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8593 | int |
| 8594 | main () |
| 8595 | { |
| 8596 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8597 | test_array [0] = 0 |
| 8598 | |
| 8599 | ; |
| 8600 | return 0; |
| 8601 | } |
| 8602 | _ACEOF |
| 8603 | rm -f conftest.$ac_objext |
| 8604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8605 | (eval $ac_compile) 2>&5 |
| 8606 | ac_status=$? |
| 8607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8608 | (exit $ac_status); } && |
| 8609 | { ac_try='test -s conftest.$ac_objext' |
| 8610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8611 | (eval $ac_try) 2>&5 |
| 8612 | ac_status=$? |
| 8613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8614 | (exit $ac_status); }; }; then |
| 8615 | ac_hi=$ac_mid; break |
| 8616 | else |
| 8617 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8620 | ac_lo=`expr $ac_mid + 1` |
| 8621 | if test $ac_lo -le $ac_mid; then |
| 8622 | ac_lo= ac_hi= |
| 8623 | break |
| 8624 | fi |
| 8625 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8626 | fi |
| 8627 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8628 | done |
| 8629 | else |
| 8630 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8631 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8632 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8633 | cat >conftest.$ac_ext <<_ACEOF |
| 8634 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8635 | /* confdefs.h. */ |
| 8636 | _ACEOF |
| 8637 | cat confdefs.h >>conftest.$ac_ext |
| 8638 | cat >>conftest.$ac_ext <<_ACEOF |
| 8639 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8640 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8641 | int |
| 8642 | main () |
| 8643 | { |
| 8644 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 8645 | test_array [0] = 0 |
| 8646 | |
| 8647 | ; |
| 8648 | return 0; |
| 8649 | } |
| 8650 | _ACEOF |
| 8651 | rm -f conftest.$ac_objext |
| 8652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8653 | (eval $ac_compile) 2>&5 |
| 8654 | ac_status=$? |
| 8655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8656 | (exit $ac_status); } && |
| 8657 | { ac_try='test -s conftest.$ac_objext' |
| 8658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8659 | (eval $ac_try) 2>&5 |
| 8660 | ac_status=$? |
| 8661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8662 | (exit $ac_status); }; }; then |
| 8663 | ac_hi=-1 ac_mid=-1 |
| 8664 | while :; do |
| 8665 | cat >conftest.$ac_ext <<_ACEOF |
| 8666 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8667 | /* confdefs.h. */ |
| 8668 | _ACEOF |
| 8669 | cat confdefs.h >>conftest.$ac_ext |
| 8670 | cat >>conftest.$ac_ext <<_ACEOF |
| 8671 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8672 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8673 | int |
| 8674 | main () |
| 8675 | { |
| 8676 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 8677 | test_array [0] = 0 |
| 8678 | |
| 8679 | ; |
| 8680 | return 0; |
| 8681 | } |
| 8682 | _ACEOF |
| 8683 | rm -f conftest.$ac_objext |
| 8684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8685 | (eval $ac_compile) 2>&5 |
| 8686 | ac_status=$? |
| 8687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8688 | (exit $ac_status); } && |
| 8689 | { ac_try='test -s conftest.$ac_objext' |
| 8690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8691 | (eval $ac_try) 2>&5 |
| 8692 | ac_status=$? |
| 8693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8694 | (exit $ac_status); }; }; then |
| 8695 | ac_lo=$ac_mid; break |
| 8696 | else |
| 8697 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8699 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8700 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8701 | if test $ac_mid -le $ac_hi; then |
| 8702 | ac_lo= ac_hi= |
| 8703 | break |
| 8704 | fi |
| 8705 | ac_mid=`expr 2 '*' $ac_mid` |
| 8706 | fi |
| 8707 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8708 | done |
| 8709 | else |
| 8710 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8712 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8713 | ac_lo= ac_hi= |
| 8714 | fi |
| 8715 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8716 | fi |
| 8717 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8718 | # Binary search between lo and hi bounds. |
| 8719 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8720 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8721 | cat >conftest.$ac_ext <<_ACEOF |
| 8722 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8723 | /* confdefs.h. */ |
| 8724 | _ACEOF |
| 8725 | cat confdefs.h >>conftest.$ac_ext |
| 8726 | cat >>conftest.$ac_ext <<_ACEOF |
| 8727 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8728 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8729 | int |
| 8730 | main () |
| 8731 | { |
| 8732 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8733 | test_array [0] = 0 |
| 8734 | |
| 8735 | ; |
| 8736 | return 0; |
| 8737 | } |
| 8738 | _ACEOF |
| 8739 | rm -f conftest.$ac_objext |
| 8740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8741 | (eval $ac_compile) 2>&5 |
| 8742 | ac_status=$? |
| 8743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8744 | (exit $ac_status); } && |
| 8745 | { ac_try='test -s conftest.$ac_objext' |
| 8746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8747 | (eval $ac_try) 2>&5 |
| 8748 | ac_status=$? |
| 8749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8750 | (exit $ac_status); }; }; then |
| 8751 | ac_hi=$ac_mid |
| 8752 | else |
| 8753 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8755 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8756 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8757 | fi |
| 8758 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8759 | done |
| 8760 | case $ac_lo in |
| 8761 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8762 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 8763 | See \`config.log' for more details." >&5 |
| 8764 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 8765 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8766 | { (exit 1); exit 1; }; } ;; |
| 8767 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8768 | else |
| 8769 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8770 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8771 | See \`config.log' for more details." >&5 |
| 8772 | echo "$as_me: error: cannot run test program while cross compiling |
| 8773 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8774 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8775 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8776 | cat >conftest.$ac_ext <<_ACEOF |
| 8777 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8778 | /* confdefs.h. */ |
| 8779 | _ACEOF |
| 8780 | cat confdefs.h >>conftest.$ac_ext |
| 8781 | cat >>conftest.$ac_ext <<_ACEOF |
| 8782 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8783 | $ac_includes_default |
| 8784 | long longval () { return (long) (sizeof (fpos_t)); } |
| 8785 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8786 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8787 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8788 | int |
| 8789 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8790 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8791 | |
| 8792 | FILE *f = fopen ("conftest.val", "w"); |
| 8793 | if (! f) |
| 8794 | exit (1); |
| 8795 | if (((long) (sizeof (fpos_t))) < 0) |
| 8796 | { |
| 8797 | long i = longval (); |
| 8798 | if (i != ((long) (sizeof (fpos_t)))) |
| 8799 | exit (1); |
| 8800 | fprintf (f, "%ld\n", i); |
| 8801 | } |
| 8802 | else |
| 8803 | { |
| 8804 | unsigned long i = ulongval (); |
| 8805 | if (i != ((long) (sizeof (fpos_t)))) |
| 8806 | exit (1); |
| 8807 | fprintf (f, "%lu\n", i); |
| 8808 | } |
| 8809 | exit (ferror (f) || fclose (f) != 0); |
| 8810 | |
| 8811 | ; |
| 8812 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8813 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8814 | _ACEOF |
| 8815 | rm -f conftest$ac_exeext |
| 8816 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8817 | (eval $ac_link) 2>&5 |
| 8818 | ac_status=$? |
| 8819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8820 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8822 | (eval $ac_try) 2>&5 |
| 8823 | ac_status=$? |
| 8824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8825 | (exit $ac_status); }; }; then |
| 8826 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8827 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8828 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8829 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8831 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8832 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8833 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 8834 | See \`config.log' for more details." >&5 |
| 8835 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 8836 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8837 | { (exit 1); exit 1; }; } |
| 8838 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8839 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8840 | fi |
| 8841 | fi |
| 8842 | rm -f conftest.val |
| 8843 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8844 | ac_cv_sizeof_fpos_t=0 |
| 8845 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8846 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8847 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 8848 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 8849 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8850 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8851 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8852 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8853 | |
| 8854 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8855 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 8856 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8857 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8858 | cat >conftest.$ac_ext <<_ACEOF |
| 8859 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8860 | /* confdefs.h. */ |
| 8861 | _ACEOF |
| 8862 | cat confdefs.h >>conftest.$ac_ext |
| 8863 | cat >>conftest.$ac_ext <<_ACEOF |
| 8864 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8865 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8866 | int |
| 8867 | main () |
| 8868 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8869 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8870 | ; |
| 8871 | return 0; |
| 8872 | } |
| 8873 | _ACEOF |
| 8874 | rm -f conftest.$ac_objext |
| 8875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8876 | (eval $ac_compile) 2>&5 |
| 8877 | ac_status=$? |
| 8878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8879 | (exit $ac_status); } && |
| 8880 | { ac_try='test -s conftest.$ac_objext' |
| 8881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8882 | (eval $ac_try) 2>&5 |
| 8883 | ac_status=$? |
| 8884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8885 | (exit $ac_status); }; }; then |
| 8886 | |
| 8887 | |
| 8888 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8889 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8890 | _ACEOF |
| 8891 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8892 | have_long_long=yes |
| 8893 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8894 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8895 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8897 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8898 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8899 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8900 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 8901 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8902 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8903 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 8904 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 8905 | if test "${ac_cv_type_long_long+set}" = set; then |
| 8906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8907 | else |
| 8908 | cat >conftest.$ac_ext <<_ACEOF |
| 8909 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8910 | /* confdefs.h. */ |
| 8911 | _ACEOF |
| 8912 | cat confdefs.h >>conftest.$ac_ext |
| 8913 | cat >>conftest.$ac_ext <<_ACEOF |
| 8914 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8915 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8916 | int |
| 8917 | main () |
| 8918 | { |
| 8919 | if ((long long *) 0) |
| 8920 | return 0; |
| 8921 | if (sizeof (long long)) |
| 8922 | return 0; |
| 8923 | ; |
| 8924 | return 0; |
| 8925 | } |
| 8926 | _ACEOF |
| 8927 | rm -f conftest.$ac_objext |
| 8928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8929 | (eval $ac_compile) 2>&5 |
| 8930 | ac_status=$? |
| 8931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8932 | (exit $ac_status); } && |
| 8933 | { ac_try='test -s conftest.$ac_objext' |
| 8934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8935 | (eval $ac_try) 2>&5 |
| 8936 | ac_status=$? |
| 8937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8938 | (exit $ac_status); }; }; then |
| 8939 | ac_cv_type_long_long=yes |
| 8940 | else |
| 8941 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8943 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8944 | ac_cv_type_long_long=no |
| 8945 | fi |
| 8946 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8947 | fi |
| 8948 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 8949 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 8950 | |
| 8951 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 8952 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 8953 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 8954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8955 | else |
| 8956 | if test "$ac_cv_type_long_long" = yes; then |
| 8957 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8958 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8959 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8960 | # This bug is HP SR number 8606223364. |
| 8961 | if test "$cross_compiling" = yes; then |
| 8962 | # Depending upon the size, compute the lo and hi bounds. |
| 8963 | cat >conftest.$ac_ext <<_ACEOF |
| 8964 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8965 | /* confdefs.h. */ |
| 8966 | _ACEOF |
| 8967 | cat confdefs.h >>conftest.$ac_ext |
| 8968 | cat >>conftest.$ac_ext <<_ACEOF |
| 8969 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8970 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8971 | int |
| 8972 | main () |
| 8973 | { |
| 8974 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 8975 | test_array [0] = 0 |
| 8976 | |
| 8977 | ; |
| 8978 | return 0; |
| 8979 | } |
| 8980 | _ACEOF |
| 8981 | rm -f conftest.$ac_objext |
| 8982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8983 | (eval $ac_compile) 2>&5 |
| 8984 | ac_status=$? |
| 8985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8986 | (exit $ac_status); } && |
| 8987 | { ac_try='test -s conftest.$ac_objext' |
| 8988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8989 | (eval $ac_try) 2>&5 |
| 8990 | ac_status=$? |
| 8991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8992 | (exit $ac_status); }; }; then |
| 8993 | ac_lo=0 ac_mid=0 |
| 8994 | while :; do |
| 8995 | cat >conftest.$ac_ext <<_ACEOF |
| 8996 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8997 | /* confdefs.h. */ |
| 8998 | _ACEOF |
| 8999 | cat confdefs.h >>conftest.$ac_ext |
| 9000 | cat >>conftest.$ac_ext <<_ACEOF |
| 9001 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9002 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9003 | int |
| 9004 | main () |
| 9005 | { |
| 9006 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9007 | test_array [0] = 0 |
| 9008 | |
| 9009 | ; |
| 9010 | return 0; |
| 9011 | } |
| 9012 | _ACEOF |
| 9013 | rm -f conftest.$ac_objext |
| 9014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9015 | (eval $ac_compile) 2>&5 |
| 9016 | ac_status=$? |
| 9017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9018 | (exit $ac_status); } && |
| 9019 | { ac_try='test -s conftest.$ac_objext' |
| 9020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9021 | (eval $ac_try) 2>&5 |
| 9022 | ac_status=$? |
| 9023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9024 | (exit $ac_status); }; }; then |
| 9025 | ac_hi=$ac_mid; break |
| 9026 | else |
| 9027 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9029 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9030 | ac_lo=`expr $ac_mid + 1` |
| 9031 | if test $ac_lo -le $ac_mid; then |
| 9032 | ac_lo= ac_hi= |
| 9033 | break |
| 9034 | fi |
| 9035 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 9036 | fi |
| 9037 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9038 | done |
| 9039 | else |
| 9040 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9042 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9043 | cat >conftest.$ac_ext <<_ACEOF |
| 9044 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9045 | /* confdefs.h. */ |
| 9046 | _ACEOF |
| 9047 | cat confdefs.h >>conftest.$ac_ext |
| 9048 | cat >>conftest.$ac_ext <<_ACEOF |
| 9049 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9050 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9051 | int |
| 9052 | main () |
| 9053 | { |
| 9054 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 9055 | test_array [0] = 0 |
| 9056 | |
| 9057 | ; |
| 9058 | return 0; |
| 9059 | } |
| 9060 | _ACEOF |
| 9061 | rm -f conftest.$ac_objext |
| 9062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9063 | (eval $ac_compile) 2>&5 |
| 9064 | ac_status=$? |
| 9065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9066 | (exit $ac_status); } && |
| 9067 | { ac_try='test -s conftest.$ac_objext' |
| 9068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9069 | (eval $ac_try) 2>&5 |
| 9070 | ac_status=$? |
| 9071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9072 | (exit $ac_status); }; }; then |
| 9073 | ac_hi=-1 ac_mid=-1 |
| 9074 | while :; do |
| 9075 | cat >conftest.$ac_ext <<_ACEOF |
| 9076 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9077 | /* confdefs.h. */ |
| 9078 | _ACEOF |
| 9079 | cat confdefs.h >>conftest.$ac_ext |
| 9080 | cat >>conftest.$ac_ext <<_ACEOF |
| 9081 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9082 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9083 | int |
| 9084 | main () |
| 9085 | { |
| 9086 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 9087 | test_array [0] = 0 |
| 9088 | |
| 9089 | ; |
| 9090 | return 0; |
| 9091 | } |
| 9092 | _ACEOF |
| 9093 | rm -f conftest.$ac_objext |
| 9094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9095 | (eval $ac_compile) 2>&5 |
| 9096 | ac_status=$? |
| 9097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9098 | (exit $ac_status); } && |
| 9099 | { ac_try='test -s conftest.$ac_objext' |
| 9100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9101 | (eval $ac_try) 2>&5 |
| 9102 | ac_status=$? |
| 9103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9104 | (exit $ac_status); }; }; then |
| 9105 | ac_lo=$ac_mid; break |
| 9106 | else |
| 9107 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9109 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9110 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9111 | if test $ac_mid -le $ac_hi; then |
| 9112 | ac_lo= ac_hi= |
| 9113 | break |
| 9114 | fi |
| 9115 | ac_mid=`expr 2 '*' $ac_mid` |
| 9116 | fi |
| 9117 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9118 | done |
| 9119 | else |
| 9120 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9122 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9123 | ac_lo= ac_hi= |
| 9124 | fi |
| 9125 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9126 | fi |
| 9127 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9128 | # Binary search between lo and hi bounds. |
| 9129 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9130 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9131 | cat >conftest.$ac_ext <<_ACEOF |
| 9132 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9133 | /* confdefs.h. */ |
| 9134 | _ACEOF |
| 9135 | cat confdefs.h >>conftest.$ac_ext |
| 9136 | cat >>conftest.$ac_ext <<_ACEOF |
| 9137 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9138 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9139 | int |
| 9140 | main () |
| 9141 | { |
| 9142 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9143 | test_array [0] = 0 |
| 9144 | |
| 9145 | ; |
| 9146 | return 0; |
| 9147 | } |
| 9148 | _ACEOF |
| 9149 | rm -f conftest.$ac_objext |
| 9150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9151 | (eval $ac_compile) 2>&5 |
| 9152 | ac_status=$? |
| 9153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9154 | (exit $ac_status); } && |
| 9155 | { ac_try='test -s conftest.$ac_objext' |
| 9156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9157 | (eval $ac_try) 2>&5 |
| 9158 | ac_status=$? |
| 9159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9160 | (exit $ac_status); }; }; then |
| 9161 | ac_hi=$ac_mid |
| 9162 | else |
| 9163 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9165 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9166 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9167 | fi |
| 9168 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9169 | done |
| 9170 | case $ac_lo in |
| 9171 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9172 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 9173 | See \`config.log' for more details." >&5 |
| 9174 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 9175 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9176 | { (exit 1); exit 1; }; } ;; |
| 9177 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9178 | else |
| 9179 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9180 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9181 | See \`config.log' for more details." >&5 |
| 9182 | echo "$as_me: error: cannot run test program while cross compiling |
| 9183 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9184 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9185 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9186 | cat >conftest.$ac_ext <<_ACEOF |
| 9187 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9188 | /* confdefs.h. */ |
| 9189 | _ACEOF |
| 9190 | cat confdefs.h >>conftest.$ac_ext |
| 9191 | cat >>conftest.$ac_ext <<_ACEOF |
| 9192 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9193 | $ac_includes_default |
| 9194 | long longval () { return (long) (sizeof (long long)); } |
| 9195 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9196 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9197 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9198 | int |
| 9199 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9200 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9201 | |
| 9202 | FILE *f = fopen ("conftest.val", "w"); |
| 9203 | if (! f) |
| 9204 | exit (1); |
| 9205 | if (((long) (sizeof (long long))) < 0) |
| 9206 | { |
| 9207 | long i = longval (); |
| 9208 | if (i != ((long) (sizeof (long long)))) |
| 9209 | exit (1); |
| 9210 | fprintf (f, "%ld\n", i); |
| 9211 | } |
| 9212 | else |
| 9213 | { |
| 9214 | unsigned long i = ulongval (); |
| 9215 | if (i != ((long) (sizeof (long long)))) |
| 9216 | exit (1); |
| 9217 | fprintf (f, "%lu\n", i); |
| 9218 | } |
| 9219 | exit (ferror (f) || fclose (f) != 0); |
| 9220 | |
| 9221 | ; |
| 9222 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9223 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9224 | _ACEOF |
| 9225 | rm -f conftest$ac_exeext |
| 9226 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9227 | (eval $ac_link) 2>&5 |
| 9228 | ac_status=$? |
| 9229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9230 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9232 | (eval $ac_try) 2>&5 |
| 9233 | ac_status=$? |
| 9234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9235 | (exit $ac_status); }; }; then |
| 9236 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9237 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9238 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9239 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9241 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9242 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9243 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 9244 | See \`config.log' for more details." >&5 |
| 9245 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 9246 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9247 | { (exit 1); exit 1; }; } |
| 9248 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9249 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9250 | fi |
| 9251 | fi |
| 9252 | rm -f conftest.val |
| 9253 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9254 | ac_cv_sizeof_long_long=0 |
| 9255 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9256 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9257 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 9258 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 9259 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9260 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9261 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9262 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9263 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9264 | fi |
| 9265 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9266 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 9267 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9268 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9269 | cat >conftest.$ac_ext <<_ACEOF |
| 9270 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9271 | /* confdefs.h. */ |
| 9272 | _ACEOF |
| 9273 | cat confdefs.h >>conftest.$ac_ext |
| 9274 | cat >>conftest.$ac_ext <<_ACEOF |
| 9275 | /* end confdefs.h. */ |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9276 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9277 | int |
| 9278 | main () |
| 9279 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9280 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9281 | ; |
| 9282 | return 0; |
| 9283 | } |
| 9284 | _ACEOF |
| 9285 | rm -f conftest.$ac_objext |
| 9286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9287 | (eval $ac_compile) 2>&5 |
| 9288 | ac_status=$? |
| 9289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9290 | (exit $ac_status); } && |
| 9291 | { ac_try='test -s conftest.$ac_objext' |
| 9292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9293 | (eval $ac_try) 2>&5 |
| 9294 | ac_status=$? |
| 9295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9296 | (exit $ac_status); }; }; then |
| 9297 | |
| 9298 | |
| 9299 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9300 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9301 | _ACEOF |
| 9302 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 9303 | have_uintptr_t=yes |
| 9304 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9305 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9306 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9308 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9309 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9310 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9311 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 9312 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9313 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9314 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 9315 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 9316 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 9317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9318 | else |
| 9319 | cat >conftest.$ac_ext <<_ACEOF |
| 9320 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9321 | /* confdefs.h. */ |
| 9322 | _ACEOF |
| 9323 | cat confdefs.h >>conftest.$ac_ext |
| 9324 | cat >>conftest.$ac_ext <<_ACEOF |
| 9325 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9326 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9327 | int |
| 9328 | main () |
| 9329 | { |
| 9330 | if ((uintptr_t *) 0) |
| 9331 | return 0; |
| 9332 | if (sizeof (uintptr_t)) |
| 9333 | return 0; |
| 9334 | ; |
| 9335 | return 0; |
| 9336 | } |
| 9337 | _ACEOF |
| 9338 | rm -f conftest.$ac_objext |
| 9339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9340 | (eval $ac_compile) 2>&5 |
| 9341 | ac_status=$? |
| 9342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9343 | (exit $ac_status); } && |
| 9344 | { ac_try='test -s conftest.$ac_objext' |
| 9345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9346 | (eval $ac_try) 2>&5 |
| 9347 | ac_status=$? |
| 9348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9349 | (exit $ac_status); }; }; then |
| 9350 | ac_cv_type_uintptr_t=yes |
| 9351 | else |
| 9352 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9354 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9355 | ac_cv_type_uintptr_t=no |
| 9356 | fi |
| 9357 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9358 | fi |
| 9359 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 9360 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 9361 | |
| 9362 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 9363 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 9364 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 9365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9366 | else |
| 9367 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 9368 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 9369 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9370 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9371 | # This bug is HP SR number 8606223364. |
| 9372 | if test "$cross_compiling" = yes; then |
| 9373 | # Depending upon the size, compute the lo and hi bounds. |
| 9374 | cat >conftest.$ac_ext <<_ACEOF |
| 9375 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9376 | /* confdefs.h. */ |
| 9377 | _ACEOF |
| 9378 | cat confdefs.h >>conftest.$ac_ext |
| 9379 | cat >>conftest.$ac_ext <<_ACEOF |
| 9380 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9381 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9382 | int |
| 9383 | main () |
| 9384 | { |
| 9385 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 9386 | test_array [0] = 0 |
| 9387 | |
| 9388 | ; |
| 9389 | return 0; |
| 9390 | } |
| 9391 | _ACEOF |
| 9392 | rm -f conftest.$ac_objext |
| 9393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9394 | (eval $ac_compile) 2>&5 |
| 9395 | ac_status=$? |
| 9396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9397 | (exit $ac_status); } && |
| 9398 | { ac_try='test -s conftest.$ac_objext' |
| 9399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9400 | (eval $ac_try) 2>&5 |
| 9401 | ac_status=$? |
| 9402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9403 | (exit $ac_status); }; }; then |
| 9404 | ac_lo=0 ac_mid=0 |
| 9405 | while :; do |
| 9406 | cat >conftest.$ac_ext <<_ACEOF |
| 9407 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9408 | /* confdefs.h. */ |
| 9409 | _ACEOF |
| 9410 | cat confdefs.h >>conftest.$ac_ext |
| 9411 | cat >>conftest.$ac_ext <<_ACEOF |
| 9412 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9413 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9414 | int |
| 9415 | main () |
| 9416 | { |
| 9417 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 9418 | test_array [0] = 0 |
| 9419 | |
| 9420 | ; |
| 9421 | return 0; |
| 9422 | } |
| 9423 | _ACEOF |
| 9424 | rm -f conftest.$ac_objext |
| 9425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9426 | (eval $ac_compile) 2>&5 |
| 9427 | ac_status=$? |
| 9428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9429 | (exit $ac_status); } && |
| 9430 | { ac_try='test -s conftest.$ac_objext' |
| 9431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9432 | (eval $ac_try) 2>&5 |
| 9433 | ac_status=$? |
| 9434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9435 | (exit $ac_status); }; }; then |
| 9436 | ac_hi=$ac_mid; break |
| 9437 | else |
| 9438 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9439 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9440 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9441 | ac_lo=`expr $ac_mid + 1` |
| 9442 | if test $ac_lo -le $ac_mid; then |
| 9443 | ac_lo= ac_hi= |
| 9444 | break |
| 9445 | fi |
| 9446 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 9447 | fi |
| 9448 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9449 | done |
| 9450 | else |
| 9451 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9452 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9453 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9454 | cat >conftest.$ac_ext <<_ACEOF |
| 9455 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9456 | /* confdefs.h. */ |
| 9457 | _ACEOF |
| 9458 | cat confdefs.h >>conftest.$ac_ext |
| 9459 | cat >>conftest.$ac_ext <<_ACEOF |
| 9460 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9461 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9462 | int |
| 9463 | main () |
| 9464 | { |
| 9465 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 9466 | test_array [0] = 0 |
| 9467 | |
| 9468 | ; |
| 9469 | return 0; |
| 9470 | } |
| 9471 | _ACEOF |
| 9472 | rm -f conftest.$ac_objext |
| 9473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9474 | (eval $ac_compile) 2>&5 |
| 9475 | ac_status=$? |
| 9476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9477 | (exit $ac_status); } && |
| 9478 | { ac_try='test -s conftest.$ac_objext' |
| 9479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9480 | (eval $ac_try) 2>&5 |
| 9481 | ac_status=$? |
| 9482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9483 | (exit $ac_status); }; }; then |
| 9484 | ac_hi=-1 ac_mid=-1 |
| 9485 | while :; do |
| 9486 | cat >conftest.$ac_ext <<_ACEOF |
| 9487 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9488 | /* confdefs.h. */ |
| 9489 | _ACEOF |
| 9490 | cat confdefs.h >>conftest.$ac_ext |
| 9491 | cat >>conftest.$ac_ext <<_ACEOF |
| 9492 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9493 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9494 | int |
| 9495 | main () |
| 9496 | { |
| 9497 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 9498 | test_array [0] = 0 |
| 9499 | |
| 9500 | ; |
| 9501 | return 0; |
| 9502 | } |
| 9503 | _ACEOF |
| 9504 | rm -f conftest.$ac_objext |
| 9505 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9506 | (eval $ac_compile) 2>&5 |
| 9507 | ac_status=$? |
| 9508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9509 | (exit $ac_status); } && |
| 9510 | { ac_try='test -s conftest.$ac_objext' |
| 9511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9512 | (eval $ac_try) 2>&5 |
| 9513 | ac_status=$? |
| 9514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9515 | (exit $ac_status); }; }; then |
| 9516 | ac_lo=$ac_mid; break |
| 9517 | else |
| 9518 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9520 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9521 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9522 | if test $ac_mid -le $ac_hi; then |
| 9523 | ac_lo= ac_hi= |
| 9524 | break |
| 9525 | fi |
| 9526 | ac_mid=`expr 2 '*' $ac_mid` |
| 9527 | fi |
| 9528 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9529 | done |
| 9530 | else |
| 9531 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9533 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9534 | ac_lo= ac_hi= |
| 9535 | fi |
| 9536 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9537 | fi |
| 9538 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9539 | # Binary search between lo and hi bounds. |
| 9540 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9541 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9542 | cat >conftest.$ac_ext <<_ACEOF |
| 9543 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9544 | /* confdefs.h. */ |
| 9545 | _ACEOF |
| 9546 | cat confdefs.h >>conftest.$ac_ext |
| 9547 | cat >>conftest.$ac_ext <<_ACEOF |
| 9548 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9549 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9550 | int |
| 9551 | main () |
| 9552 | { |
| 9553 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 9554 | test_array [0] = 0 |
| 9555 | |
| 9556 | ; |
| 9557 | return 0; |
| 9558 | } |
| 9559 | _ACEOF |
| 9560 | rm -f conftest.$ac_objext |
| 9561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9562 | (eval $ac_compile) 2>&5 |
| 9563 | ac_status=$? |
| 9564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9565 | (exit $ac_status); } && |
| 9566 | { ac_try='test -s conftest.$ac_objext' |
| 9567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9568 | (eval $ac_try) 2>&5 |
| 9569 | ac_status=$? |
| 9570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9571 | (exit $ac_status); }; }; then |
| 9572 | ac_hi=$ac_mid |
| 9573 | else |
| 9574 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9576 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9577 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9578 | fi |
| 9579 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9580 | done |
| 9581 | case $ac_lo in |
| 9582 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9583 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 9584 | See \`config.log' for more details." >&5 |
| 9585 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 9586 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9587 | { (exit 1); exit 1; }; } ;; |
| 9588 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9589 | else |
| 9590 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9591 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9592 | See \`config.log' for more details." >&5 |
| 9593 | echo "$as_me: error: cannot run test program while cross compiling |
| 9594 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9595 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9596 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9597 | cat >conftest.$ac_ext <<_ACEOF |
| 9598 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9599 | /* confdefs.h. */ |
| 9600 | _ACEOF |
| 9601 | cat confdefs.h >>conftest.$ac_ext |
| 9602 | cat >>conftest.$ac_ext <<_ACEOF |
| 9603 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9604 | $ac_includes_default |
| 9605 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 9606 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9607 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9608 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9609 | int |
| 9610 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9611 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9612 | |
| 9613 | FILE *f = fopen ("conftest.val", "w"); |
| 9614 | if (! f) |
| 9615 | exit (1); |
| 9616 | if (((long) (sizeof (uintptr_t))) < 0) |
| 9617 | { |
| 9618 | long i = longval (); |
| 9619 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9620 | exit (1); |
| 9621 | fprintf (f, "%ld\n", i); |
| 9622 | } |
| 9623 | else |
| 9624 | { |
| 9625 | unsigned long i = ulongval (); |
| 9626 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9627 | exit (1); |
| 9628 | fprintf (f, "%lu\n", i); |
| 9629 | } |
| 9630 | exit (ferror (f) || fclose (f) != 0); |
| 9631 | |
| 9632 | ; |
| 9633 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9634 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9635 | _ACEOF |
| 9636 | rm -f conftest$ac_exeext |
| 9637 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9638 | (eval $ac_link) 2>&5 |
| 9639 | ac_status=$? |
| 9640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9641 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9643 | (eval $ac_try) 2>&5 |
| 9644 | ac_status=$? |
| 9645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9646 | (exit $ac_status); }; }; then |
| 9647 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9648 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9649 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9650 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9652 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9653 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9654 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 9655 | See \`config.log' for more details." >&5 |
| 9656 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 9657 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9658 | { (exit 1); exit 1; }; } |
| 9659 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9660 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9661 | fi |
| 9662 | fi |
| 9663 | rm -f conftest.val |
| 9664 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9665 | ac_cv_sizeof_uintptr_t=0 |
| 9666 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9667 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9668 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 9669 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 9670 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9671 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9672 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9673 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9674 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9675 | fi |
| 9676 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9677 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9678 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 9679 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 9680 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 9681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9682 | else |
| 9683 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9684 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9685 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9686 | cat >conftest.$ac_ext <<_ACEOF |
| 9687 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9688 | /* confdefs.h. */ |
| 9689 | _ACEOF |
| 9690 | cat confdefs.h >>conftest.$ac_ext |
| 9691 | cat >>conftest.$ac_ext <<_ACEOF |
| 9692 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9693 | #include <stdio.h> |
| 9694 | #include <sys/types.h> |
| 9695 | main() |
| 9696 | { |
| 9697 | FILE *f=fopen("conftestval", "w"); |
| 9698 | if (!f) exit(1); |
| 9699 | fprintf(f, "%d\n", sizeof(off_t)); |
| 9700 | exit(0); |
| 9701 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9702 | _ACEOF |
| 9703 | rm -f 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); } && { ac_try='./conftest$ac_exeext' |
| 9709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9710 | (eval $ac_try) 2>&5 |
| 9711 | ac_status=$? |
| 9712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9713 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9714 | ac_cv_sizeof_off_t=`cat conftestval` |
| 9715 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9716 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9717 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9719 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9720 | ( exit $ac_status ) |
| 9721 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9722 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9723 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9724 | fi |
| 9725 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9726 | fi |
| 9727 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9728 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 9729 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 9730 | |
| 9731 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9732 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9733 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9734 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9736 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 9737 | 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] | 9738 | if test "$have_long_long" = yes -a \ |
| 9739 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 9740 | "$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] | 9741 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9742 | cat >>confdefs.h <<\_ACEOF |
| 9743 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 9744 | _ACEOF |
| 9745 | |
| 9746 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9747 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9748 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9749 | echo "$as_me:$LINENO: result: no" >&5 |
| 9750 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9751 | fi |
| 9752 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9753 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9754 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 9755 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 9756 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 9757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9758 | else |
| 9759 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9760 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9761 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9762 | cat >conftest.$ac_ext <<_ACEOF |
| 9763 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9764 | /* confdefs.h. */ |
| 9765 | _ACEOF |
| 9766 | cat confdefs.h >>conftest.$ac_ext |
| 9767 | cat >>conftest.$ac_ext <<_ACEOF |
| 9768 | /* end confdefs.h. */ |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9769 | #include <stdio.h> |
| 9770 | #include <time.h> |
| 9771 | main() |
| 9772 | { |
| 9773 | FILE *f=fopen("conftestval", "w"); |
| 9774 | if (!f) exit(1); |
| 9775 | fprintf(f, "%d\n", sizeof(time_t)); |
| 9776 | exit(0); |
| 9777 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9778 | _ACEOF |
| 9779 | rm -f conftest$ac_exeext |
| 9780 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9781 | (eval $ac_link) 2>&5 |
| 9782 | ac_status=$? |
| 9783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9784 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9786 | (eval $ac_try) 2>&5 |
| 9787 | ac_status=$? |
| 9788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9789 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9790 | ac_cv_sizeof_time_t=`cat conftestval` |
| 9791 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9792 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9793 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9794 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9795 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9796 | ( exit $ac_status ) |
| 9797 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9798 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9799 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9800 | fi |
| 9801 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9802 | fi |
| 9803 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9804 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 9805 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 9806 | |
| 9807 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9808 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9809 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9810 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9811 | |
| 9812 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9813 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9814 | ac_save_cc="$CC" |
| 9815 | if test "$ac_cv_kpthread" = "yes" |
| 9816 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9817 | elif test "$ac_cv_kthread" = "yes" |
| 9818 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9819 | elif test "$ac_cv_pthread" = "yes" |
| 9820 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9821 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9822 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 9823 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9824 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9825 | cat >conftest.$ac_ext <<_ACEOF |
| 9826 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9827 | /* confdefs.h. */ |
| 9828 | _ACEOF |
| 9829 | cat confdefs.h >>conftest.$ac_ext |
| 9830 | cat >>conftest.$ac_ext <<_ACEOF |
| 9831 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9832 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9833 | int |
| 9834 | main () |
| 9835 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 9836 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9837 | ; |
| 9838 | return 0; |
| 9839 | } |
| 9840 | _ACEOF |
| 9841 | rm -f conftest.$ac_objext |
| 9842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9843 | (eval $ac_compile) 2>&5 |
| 9844 | ac_status=$? |
| 9845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9846 | (exit $ac_status); } && |
| 9847 | { ac_try='test -s conftest.$ac_objext' |
| 9848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9849 | (eval $ac_try) 2>&5 |
| 9850 | ac_status=$? |
| 9851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9852 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9853 | have_pthread_t=yes |
| 9854 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9855 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9857 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9858 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9859 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9860 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 9861 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9862 | if test "$have_pthread_t" = yes ; then |
| 9863 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9864 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 9865 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 9866 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 9867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9868 | else |
| 9869 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9870 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9871 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9872 | cat >conftest.$ac_ext <<_ACEOF |
| 9873 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9874 | /* confdefs.h. */ |
| 9875 | _ACEOF |
| 9876 | cat confdefs.h >>conftest.$ac_ext |
| 9877 | cat >>conftest.$ac_ext <<_ACEOF |
| 9878 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9879 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 9880 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9881 | main() |
| 9882 | { |
| 9883 | FILE *f=fopen("conftestval", "w"); |
| 9884 | if (!f) exit(1); |
| 9885 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 9886 | exit(0); |
| 9887 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9888 | _ACEOF |
| 9889 | rm -f conftest$ac_exeext |
| 9890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9891 | (eval $ac_link) 2>&5 |
| 9892 | ac_status=$? |
| 9893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9894 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9896 | (eval $ac_try) 2>&5 |
| 9897 | ac_status=$? |
| 9898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9899 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9900 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 9901 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9902 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9903 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9905 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9906 | ( exit $ac_status ) |
| 9907 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9908 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9909 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9910 | fi |
| 9911 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9912 | fi |
| 9913 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9914 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 9915 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 9916 | |
| 9917 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9918 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9919 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9920 | |
| 9921 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9922 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9923 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9924 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 9925 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9926 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 9927 | if test "${enable_toolbox_glue+set}" = set; then |
| 9928 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9929 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9930 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9931 | |
| 9932 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9933 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9934 | case $ac_sys_system/$ac_sys_release in |
| 9935 | Darwin/*) |
| 9936 | enable_toolbox_glue="yes";; |
| 9937 | *) |
| 9938 | enable_toolbox_glue="no";; |
| 9939 | esac |
| 9940 | fi |
| 9941 | case "$enable_toolbox_glue" in |
| 9942 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 9943 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9944 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9945 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9946 | |
| 9947 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9948 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9949 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9950 | |
| 9951 | ;; |
| 9952 | *) |
| 9953 | extra_frameworks="" |
| 9954 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9955 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9956 | ;; |
| 9957 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9958 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 9959 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9960 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9961 | |
| 9962 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9963 | Darwin/1.3*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9964 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9965 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 9966 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/Python' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9967 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 9968 | Darwin/*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9969 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9970 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 9971 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/Python' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9972 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9973 | esac |
| 9974 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9975 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 9976 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9977 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9978 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9979 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9980 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9981 | # in the build location. |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9982 | LDFLAGS="$LDFLAGS -Wl,-F." |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9983 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9984 | cat >>confdefs.h <<\_ACEOF |
| 9985 | #define WITH_NEXT_FRAMEWORK 1 |
| 9986 | _ACEOF |
| 9987 | |
| 9988 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9989 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9990 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9991 | echo "$as_me:$LINENO: result: no" >&5 |
| 9992 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9993 | fi |
| 9994 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9995 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 9996 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9997 | case $ac_sys_system/$ac_sys_release in |
| 9998 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9999 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10000 | cat >>confdefs.h <<\_ACEOF |
| 10001 | #define WITH_DYLD 1 |
| 10002 | _ACEOF |
| 10003 | |
| 10004 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 10005 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10006 | ;; |
| 10007 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10008 | echo "$as_me:$LINENO: result: no" >&5 |
| 10009 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10010 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10011 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10012 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10013 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10014 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10015 | |
| 10016 | |
| 10017 | |
| 10018 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10019 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10020 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10021 | echo "$as_me:$LINENO: checking SO" >&5 |
| 10022 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10023 | if test -z "$SO" |
| 10024 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10025 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 10026 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10027 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 10028 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10029 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 10030 | else |
| 10031 | # this might also be a termcap variable, see #610332 |
| 10032 | echo |
| 10033 | echo '=====================================================================' |
| 10034 | echo '+ +' |
| 10035 | echo '+ WARNING: You have set SO in your environment. +' |
| 10036 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 10037 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 10038 | echo '+ +' |
| 10039 | echo '=====================================================================' |
| 10040 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10041 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10042 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 10043 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10044 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 10045 | # -- "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] | 10046 | # (Shared libraries in this instance are shared modules to be loaded into |
| 10047 | # 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] | 10048 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 10049 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10050 | if test -z "$LDSHARED" |
| 10051 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10052 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10053 | AIX*) |
| 10054 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 10055 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10056 | ;; |
| 10057 | BeOS*) |
| 10058 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 10059 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10060 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10061 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 10062 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10063 | SunOS/4*) LDSHARED="ld";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10064 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10065 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 10066 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 10067 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10068 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10069 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10070 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 10071 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10072 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10073 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10074 | if test "$enable_framework" ; then |
| 10075 | # Link against the framework. All externals should be defined. |
| 10076 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 10077 | else |
| 10078 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10079 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10080 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10081 | Darwin/*) |
| 10082 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10083 | if test "$enable_framework" ; then |
| 10084 | # Link against the framework. All externals should be defined. |
| 10085 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 10086 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 10087 | # No framework, use the Python app as bundle-loader |
| 10088 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 10089 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10090 | fi ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 10091 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 10092 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 10093 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 10094 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 10095 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 10096 | then |
| 10097 | LDSHARED="cc -shared ${LDFLAGS}" |
| 10098 | else |
| 10099 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 10100 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 10101 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10102 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10103 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 10104 | then LDSHARED='$(CC) -shared' |
| 10105 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10106 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 10107 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10108 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10109 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10110 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10111 | *) LDSHARED="ld";; |
| 10112 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10113 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10114 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 10115 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10116 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10117 | # 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] | 10118 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10119 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 10120 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10121 | if test -z "$CCSHARED" |
| 10122 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10123 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 10124 | SunOS*) if test "$GCC" = yes; |
| 10125 | then CCSHARED="-fPIC"; |
| 10126 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10127 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 10128 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10129 | else CCSHARED="+z"; |
| 10130 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10131 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 10132 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 10133 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10134 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10135 | if test "$GCC" = "yes" |
| 10136 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10137 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10138 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10139 | SCO_SV*) |
| 10140 | if test "$GCC" = "yes" |
| 10141 | then CCSHARED="-fPIC" |
| 10142 | else CCSHARED="-Kpic -belf" |
| 10143 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10144 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10145 | IRIX*/6*) case $CC in |
| 10146 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 10147 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10148 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10149 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10150 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10151 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10152 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 10153 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10154 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10155 | # 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] | 10156 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 10157 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10158 | if test -z "$LINKFORSHARED" |
| 10159 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10160 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10161 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 10162 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10163 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 10164 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 10165 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10166 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10167 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10168 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10169 | # -u __dummy makes the linker aware of the objc runtime |
| 10170 | # in System.framework; otherwise, __objcInit (referenced in |
| 10171 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 10172 | # loading of any modules which reference it in System.framework. |
| 10173 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 10174 | # not used by the core itself but which needs to be in the core so |
| 10175 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 10176 | # -prebind is no longer used, because it actually seems to give a |
| 10177 | # slowdown in stead of a speedup, maybe due to the large number of |
| 10178 | # dynamic loads Python does. |
| 10179 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10180 | if test "$enable_framework" |
| 10181 | then |
| 10182 | LINKFORSHARED="$LINKFORSHARED -framework Python" |
| 10183 | fi |
| 10184 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10185 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10186 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 10187 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10188 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 10189 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 10190 | then |
| 10191 | LINKFORSHARED="-Wl,--export-dynamic" |
| 10192 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10193 | SunOS/5*) case $CC in |
| 10194 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 10195 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 10196 | then |
| 10197 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10198 | fi;; |
| 10199 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 10200 | CYGWIN*) |
| 10201 | if test $enable_shared = "no" |
| 10202 | then |
| 10203 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 10204 | fi;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10205 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10206 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10207 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 10208 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10209 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10210 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10211 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 10212 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10213 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 10214 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 10215 | case $ac_sys_system in |
| 10216 | CYGWIN*) |
| 10217 | # Cygwin needs CCSHARED when building extension DLLs |
| 10218 | # but not when building the interpreter DLL. |
| 10219 | CFLAGSFORSHARED='';; |
| 10220 | *) |
| 10221 | CFLAGSFORSHARED='$(CCSHARED)' |
| 10222 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10223 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10224 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 10225 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10226 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10227 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 10228 | # library (with --enable-shared). |
| 10229 | # 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] | 10230 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 10231 | # if it is not required, since it creates a dependency of the shared library |
| 10232 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 10233 | # don't need to link LIBS explicitly. The default should be only changed |
| 10234 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10235 | |
| 10236 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 10237 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 10238 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10239 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 10240 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10241 | esac |
| 10242 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 10243 | echo "${ECHO_T}$SHLIBS" >&6 |
| 10244 | |
| 10245 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10246 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10247 | |
| 10248 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10249 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 10250 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10252 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10253 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10254 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10255 | cat >conftest.$ac_ext <<_ACEOF |
| 10256 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10257 | /* confdefs.h. */ |
| 10258 | _ACEOF |
| 10259 | cat confdefs.h >>conftest.$ac_ext |
| 10260 | cat >>conftest.$ac_ext <<_ACEOF |
| 10261 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10262 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10263 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10264 | #ifdef __cplusplus |
| 10265 | extern "C" |
| 10266 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10267 | /* 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] | 10268 | builtin and then its argument prototype would still apply. */ |
| 10269 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10270 | int |
| 10271 | main () |
| 10272 | { |
| 10273 | dlopen (); |
| 10274 | ; |
| 10275 | return 0; |
| 10276 | } |
| 10277 | _ACEOF |
| 10278 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10279 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10280 | (eval $ac_link) 2>&5 |
| 10281 | ac_status=$? |
| 10282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10283 | (exit $ac_status); } && |
| 10284 | { ac_try='test -s conftest$ac_exeext' |
| 10285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10286 | (eval $ac_try) 2>&5 |
| 10287 | ac_status=$? |
| 10288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10289 | (exit $ac_status); }; }; then |
| 10290 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10291 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10292 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10294 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10295 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10296 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10297 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10298 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10299 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10300 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10301 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 10302 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10303 | cat >>confdefs.h <<_ACEOF |
| 10304 | #define HAVE_LIBDL 1 |
| 10305 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10306 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10307 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10308 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10309 | fi |
| 10310 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10311 | |
| 10312 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10313 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 10314 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10316 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10317 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10318 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10319 | cat >conftest.$ac_ext <<_ACEOF |
| 10320 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10321 | /* confdefs.h. */ |
| 10322 | _ACEOF |
| 10323 | cat confdefs.h >>conftest.$ac_ext |
| 10324 | cat >>conftest.$ac_ext <<_ACEOF |
| 10325 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10326 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10327 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10328 | #ifdef __cplusplus |
| 10329 | extern "C" |
| 10330 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10331 | /* 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] | 10332 | builtin and then its argument prototype would still apply. */ |
| 10333 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10334 | int |
| 10335 | main () |
| 10336 | { |
| 10337 | shl_load (); |
| 10338 | ; |
| 10339 | return 0; |
| 10340 | } |
| 10341 | _ACEOF |
| 10342 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10344 | (eval $ac_link) 2>&5 |
| 10345 | ac_status=$? |
| 10346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10347 | (exit $ac_status); } && |
| 10348 | { ac_try='test -s conftest$ac_exeext' |
| 10349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10350 | (eval $ac_try) 2>&5 |
| 10351 | ac_status=$? |
| 10352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10353 | (exit $ac_status); }; }; then |
| 10354 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10355 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10356 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10358 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10359 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10360 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10361 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10362 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10363 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10364 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10365 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 10366 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 10367 | cat >>confdefs.h <<_ACEOF |
| 10368 | #define HAVE_LIBDLD 1 |
| 10369 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10370 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10371 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10372 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10373 | fi |
| 10374 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10375 | |
| 10376 | # only check for sem_ini if thread support is requested |
| 10377 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
| 10378 | echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10379 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 10380 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10382 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10383 | ac_func_search_save_LIBS=$LIBS |
| 10384 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10385 | cat >conftest.$ac_ext <<_ACEOF |
| 10386 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10387 | /* confdefs.h. */ |
| 10388 | _ACEOF |
| 10389 | cat confdefs.h >>conftest.$ac_ext |
| 10390 | cat >>conftest.$ac_ext <<_ACEOF |
| 10391 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10392 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10393 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10394 | #ifdef __cplusplus |
| 10395 | extern "C" |
| 10396 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10397 | /* 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] | 10398 | builtin and then its argument prototype would still apply. */ |
| 10399 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10400 | int |
| 10401 | main () |
| 10402 | { |
| 10403 | sem_init (); |
| 10404 | ; |
| 10405 | return 0; |
| 10406 | } |
| 10407 | _ACEOF |
| 10408 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10410 | (eval $ac_link) 2>&5 |
| 10411 | ac_status=$? |
| 10412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10413 | (exit $ac_status); } && |
| 10414 | { ac_try='test -s conftest$ac_exeext' |
| 10415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10416 | (eval $ac_try) 2>&5 |
| 10417 | ac_status=$? |
| 10418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10419 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10420 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10421 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10422 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10424 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10425 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10426 | 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] | 10427 | if test "$ac_cv_search_sem_init" = no; then |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 10428 | for ac_lib in pthread rt posix4; do |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10429 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10430 | cat >conftest.$ac_ext <<_ACEOF |
| 10431 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10432 | /* confdefs.h. */ |
| 10433 | _ACEOF |
| 10434 | cat confdefs.h >>conftest.$ac_ext |
| 10435 | cat >>conftest.$ac_ext <<_ACEOF |
| 10436 | /* end confdefs.h. */ |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10437 | |
| 10438 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10439 | #ifdef __cplusplus |
| 10440 | extern "C" |
| 10441 | #endif |
| 10442 | /* We use char because int might match the return type of a gcc2 |
| 10443 | builtin and then its argument prototype would still apply. */ |
| 10444 | char sem_init (); |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10445 | int |
| 10446 | main () |
| 10447 | { |
| 10448 | sem_init (); |
| 10449 | ; |
| 10450 | return 0; |
| 10451 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10452 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10453 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10454 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10455 | (eval $ac_link) 2>&5 |
| 10456 | ac_status=$? |
| 10457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10458 | (exit $ac_status); } && |
| 10459 | { ac_try='test -s conftest$ac_exeext' |
| 10460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10461 | (eval $ac_try) 2>&5 |
| 10462 | ac_status=$? |
| 10463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10464 | (exit $ac_status); }; }; then |
| 10465 | ac_cv_search_sem_init="-l$ac_lib" |
| 10466 | break |
| 10467 | else |
| 10468 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10470 | |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10471 | fi |
| 10472 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10473 | done |
| 10474 | fi |
| 10475 | LIBS=$ac_func_search_save_LIBS |
| 10476 | fi |
| 10477 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 10478 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 10479 | if test "$ac_cv_search_sem_init" != no; then |
| 10480 | 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] | 10481 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10482 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 10483 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10484 | # posix4 on Solaris 2.6 |
| 10485 | # pthread (first!) on Linux |
| 10486 | fi |
| 10487 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10488 | # check if we need libintl for locale functions |
| 10489 | echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 10490 | echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6 |
| 10491 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
| 10492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10493 | else |
| 10494 | ac_check_lib_save_LIBS=$LIBS |
| 10495 | LIBS="-lintl $LIBS" |
| 10496 | cat >conftest.$ac_ext <<_ACEOF |
| 10497 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10498 | /* confdefs.h. */ |
| 10499 | _ACEOF |
| 10500 | cat confdefs.h >>conftest.$ac_ext |
| 10501 | cat >>conftest.$ac_ext <<_ACEOF |
| 10502 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10503 | |
| 10504 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10505 | #ifdef __cplusplus |
| 10506 | extern "C" |
| 10507 | #endif |
| 10508 | /* We use char because int might match the return type of a gcc2 |
| 10509 | builtin and then its argument prototype would still apply. */ |
| 10510 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10511 | int |
| 10512 | main () |
| 10513 | { |
| 10514 | textdomain (); |
| 10515 | ; |
| 10516 | return 0; |
| 10517 | } |
| 10518 | _ACEOF |
| 10519 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10520 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10521 | (eval $ac_link) 2>&5 |
| 10522 | ac_status=$? |
| 10523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10524 | (exit $ac_status); } && |
| 10525 | { ac_try='test -s conftest$ac_exeext' |
| 10526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10527 | (eval $ac_try) 2>&5 |
| 10528 | ac_status=$? |
| 10529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10530 | (exit $ac_status); }; }; then |
| 10531 | ac_cv_lib_intl_textdomain=yes |
| 10532 | else |
| 10533 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10535 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10536 | ac_cv_lib_intl_textdomain=no |
| 10537 | fi |
| 10538 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10539 | LIBS=$ac_check_lib_save_LIBS |
| 10540 | fi |
| 10541 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 10542 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6 |
| 10543 | if test $ac_cv_lib_intl_textdomain = yes; then |
| 10544 | |
| 10545 | cat >>confdefs.h <<\_ACEOF |
| 10546 | #define WITH_LIBINTL 1 |
| 10547 | _ACEOF |
| 10548 | |
| 10549 | fi |
| 10550 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10551 | |
| 10552 | # checks for system dependent C++ extensions support |
| 10553 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10554 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 10555 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 10556 | cat >conftest.$ac_ext <<_ACEOF |
| 10557 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10558 | /* confdefs.h. */ |
| 10559 | _ACEOF |
| 10560 | cat confdefs.h >>conftest.$ac_ext |
| 10561 | cat >>conftest.$ac_ext <<_ACEOF |
| 10562 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10563 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10564 | int |
| 10565 | main () |
| 10566 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10567 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10568 | ; |
| 10569 | return 0; |
| 10570 | } |
| 10571 | _ACEOF |
| 10572 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10573 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10574 | (eval $ac_link) 2>&5 |
| 10575 | ac_status=$? |
| 10576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10577 | (exit $ac_status); } && |
| 10578 | { ac_try='test -s conftest$ac_exeext' |
| 10579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10580 | (eval $ac_try) 2>&5 |
| 10581 | ac_status=$? |
| 10582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10583 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10585 | cat >>confdefs.h <<\_ACEOF |
| 10586 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 10587 | _ACEOF |
| 10588 | |
| 10589 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10590 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10591 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10592 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10594 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10595 | echo "$as_me:$LINENO: result: no" >&5 |
| 10596 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10597 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10598 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10599 | *) ;; |
| 10600 | esac |
| 10601 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 10602 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Martin v. Löwis | e117258 | 2002-11-13 08:51:19 +0000 | [diff] [blame] | 10603 | # However on SGI IRIX 4, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10604 | # BeOS' sockets are stashed in libnet. |
| 10605 | case "$ac_sys_system" in |
| 10606 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10607 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10608 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 10609 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 10610 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 10611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10612 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10613 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10614 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10615 | cat >conftest.$ac_ext <<_ACEOF |
| 10616 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10617 | /* confdefs.h. */ |
| 10618 | _ACEOF |
| 10619 | cat confdefs.h >>conftest.$ac_ext |
| 10620 | cat >>conftest.$ac_ext <<_ACEOF |
| 10621 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10622 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10623 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10624 | #ifdef __cplusplus |
| 10625 | extern "C" |
| 10626 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10627 | /* 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] | 10628 | builtin and then its argument prototype would still apply. */ |
| 10629 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10630 | int |
| 10631 | main () |
| 10632 | { |
| 10633 | t_open (); |
| 10634 | ; |
| 10635 | return 0; |
| 10636 | } |
| 10637 | _ACEOF |
| 10638 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10639 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10640 | (eval $ac_link) 2>&5 |
| 10641 | ac_status=$? |
| 10642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10643 | (exit $ac_status); } && |
| 10644 | { ac_try='test -s conftest$ac_exeext' |
| 10645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10646 | (eval $ac_try) 2>&5 |
| 10647 | ac_status=$? |
| 10648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10649 | (exit $ac_status); }; }; then |
| 10650 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10651 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10652 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10654 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10655 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10656 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10657 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10658 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10659 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10660 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 10661 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 10662 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10663 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10664 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 10665 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10666 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 10667 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 10668 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 10669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10670 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10671 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10672 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10673 | cat >conftest.$ac_ext <<_ACEOF |
| 10674 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10675 | /* confdefs.h. */ |
| 10676 | _ACEOF |
| 10677 | cat confdefs.h >>conftest.$ac_ext |
| 10678 | cat >>conftest.$ac_ext <<_ACEOF |
| 10679 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10680 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10681 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10682 | #ifdef __cplusplus |
| 10683 | extern "C" |
| 10684 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10685 | /* 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] | 10686 | builtin and then its argument prototype would still apply. */ |
| 10687 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10688 | int |
| 10689 | main () |
| 10690 | { |
| 10691 | socket (); |
| 10692 | ; |
| 10693 | return 0; |
| 10694 | } |
| 10695 | _ACEOF |
| 10696 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10697 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10698 | (eval $ac_link) 2>&5 |
| 10699 | ac_status=$? |
| 10700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10701 | (exit $ac_status); } && |
| 10702 | { ac_try='test -s conftest$ac_exeext' |
| 10703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10704 | (eval $ac_try) 2>&5 |
| 10705 | ac_status=$? |
| 10706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10707 | (exit $ac_status); }; }; then |
| 10708 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10709 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10710 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10712 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10713 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10714 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10715 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10716 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10717 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10718 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 10719 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 10720 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10721 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10722 | fi |
| 10723 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 10724 | ;; |
| 10725 | esac |
| 10726 | case "$ac_sys_system" in |
| 10727 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10728 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 10729 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 10730 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 10731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10732 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10733 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10734 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10735 | cat >conftest.$ac_ext <<_ACEOF |
| 10736 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10737 | /* confdefs.h. */ |
| 10738 | _ACEOF |
| 10739 | cat confdefs.h >>conftest.$ac_ext |
| 10740 | cat >>conftest.$ac_ext <<_ACEOF |
| 10741 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10742 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10743 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10744 | #ifdef __cplusplus |
| 10745 | extern "C" |
| 10746 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10747 | /* 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] | 10748 | builtin and then its argument prototype would still apply. */ |
| 10749 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10750 | int |
| 10751 | main () |
| 10752 | { |
| 10753 | socket (); |
| 10754 | ; |
| 10755 | return 0; |
| 10756 | } |
| 10757 | _ACEOF |
| 10758 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10759 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10760 | (eval $ac_link) 2>&5 |
| 10761 | ac_status=$? |
| 10762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10763 | (exit $ac_status); } && |
| 10764 | { ac_try='test -s conftest$ac_exeext' |
| 10765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10766 | (eval $ac_try) 2>&5 |
| 10767 | ac_status=$? |
| 10768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10769 | (exit $ac_status); }; }; then |
| 10770 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10771 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10772 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10774 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10775 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10776 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10777 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10778 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10779 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10780 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 10781 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 10782 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10783 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10784 | fi |
| 10785 | # BeOS |
| 10786 | ;; |
| 10787 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 10788 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10789 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 10790 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 10791 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 10792 | # Check whether --with-libs or --without-libs was given. |
| 10793 | if test "${with_libs+set}" = set; then |
| 10794 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10795 | |
| 10796 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 10797 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 10798 | LIBS="$withval $LIBS" |
| 10799 | |
| 10800 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10801 | echo "$as_me:$LINENO: result: no" >&5 |
| 10802 | echo "${ECHO_T}no" >&6 |
| 10803 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10804 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10805 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10806 | |
| 10807 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10808 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 10809 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 10810 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10811 | # Check whether --with-signal-module or --without-signal-module was given. |
| 10812 | if test "${with_signal_module+set}" = set; then |
| 10813 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10814 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10815 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10816 | |
| 10817 | if test -z "$with_signal_module" |
| 10818 | then with_signal_module="yes" |
| 10819 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10820 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 10821 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10822 | |
| 10823 | if test "${with_signal_module}" = "yes"; then |
| 10824 | USE_SIGNAL_MODULE="" |
| 10825 | SIGNAL_OBJS="" |
| 10826 | else |
| 10827 | USE_SIGNAL_MODULE="#" |
| 10828 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 10829 | fi |
| 10830 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 10831 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10832 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10833 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10834 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10835 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 10836 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 10837 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10838 | |
| 10839 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 10840 | if test "${with_dec_threads+set}" = set; then |
| 10841 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10842 | |
| 10843 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 10844 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10845 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10846 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10847 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10848 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10849 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10850 | echo "$as_me:$LINENO: result: no" >&5 |
| 10851 | echo "${ECHO_T}no" >&6 |
| 10852 | fi; |
| 10853 | |
| 10854 | # Templates for things AC_DEFINEd more than once. |
| 10855 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10856 | |
| 10857 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10858 | |
| 10859 | |
| 10860 | |
| 10861 | |
| 10862 | |
| 10863 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 10864 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 10865 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10866 | # Check whether --with-threads or --without-threads was given. |
| 10867 | if test "${with_threads+set}" = set; then |
| 10868 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10869 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10870 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10871 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10872 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10873 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10874 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10875 | if test "${with_thread+set}" = set; then |
| 10876 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10877 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10878 | fi; |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10879 | |
| 10880 | if test -z "$with_threads" |
| 10881 | then with_threads="yes" |
| 10882 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10883 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 10884 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10885 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10886 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10887 | if test "$with_threads" = "no" |
| 10888 | then |
| 10889 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10890 | elif test "$ac_cv_pthread_is_default" = yes |
| 10891 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10892 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10893 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10894 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10895 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10896 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10897 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10898 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10899 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10900 | |
| 10901 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10902 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10903 | elif test "$ac_cv_kpthread" = "yes" |
| 10904 | then |
| 10905 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10906 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10907 | CXX="$CXX -Kpthread" |
| 10908 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10909 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10910 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10911 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10912 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10913 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10914 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10915 | elif test "$ac_cv_kthread" = "yes" |
| 10916 | then |
| 10917 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10918 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10919 | CXX="$CXX -Kthread" |
| 10920 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10921 | cat >>confdefs.h <<\_ACEOF |
| 10922 | #define WITH_THREAD 1 |
| 10923 | _ACEOF |
| 10924 | |
| 10925 | posix_threads=yes |
| 10926 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10927 | elif test "$ac_cv_pthread" = "yes" |
| 10928 | then |
| 10929 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10930 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10931 | CXX="$CXX -pthread" |
| 10932 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10933 | cat >>confdefs.h <<\_ACEOF |
| 10934 | #define WITH_THREAD 1 |
| 10935 | _ACEOF |
| 10936 | |
| 10937 | posix_threads=yes |
| 10938 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10939 | else |
| 10940 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 10941 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 10942 | fi |
| 10943 | if test ! -z "$withval" -a -d "$withval" |
| 10944 | then LDFLAGS="$LDFLAGS -L$withval" |
| 10945 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10946 | |
| 10947 | # According to the POSIX spec, a pthreads implementation must |
| 10948 | # 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] | 10949 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 10950 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 10951 | cat >conftest.$ac_ext <<_ACEOF |
| 10952 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10953 | /* confdefs.h. */ |
| 10954 | _ACEOF |
| 10955 | cat confdefs.h >>conftest.$ac_ext |
| 10956 | cat >>conftest.$ac_ext <<_ACEOF |
| 10957 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10958 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10959 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10960 | #ifdef _POSIX_THREADS |
| 10961 | yes |
| 10962 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10963 | |
| 10964 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10965 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10966 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10967 | unistd_defines_pthreads=yes |
| 10968 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10969 | unistd_defines_pthreads=no |
| 10970 | fi |
| 10971 | rm -f conftest* |
| 10972 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10973 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 10974 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10975 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10976 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10977 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10978 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10979 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10980 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10981 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10982 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10983 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10985 | fi |
| 10986 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10987 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10988 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10989 | # Is the header compilable? |
| 10990 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 10991 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 10992 | cat >conftest.$ac_ext <<_ACEOF |
| 10993 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10994 | /* confdefs.h. */ |
| 10995 | _ACEOF |
| 10996 | cat confdefs.h >>conftest.$ac_ext |
| 10997 | cat >>conftest.$ac_ext <<_ACEOF |
| 10998 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10999 | $ac_includes_default |
| 11000 | #include <cthreads.h> |
| 11001 | _ACEOF |
| 11002 | rm -f conftest.$ac_objext |
| 11003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11004 | (eval $ac_compile) 2>&5 |
| 11005 | ac_status=$? |
| 11006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11007 | (exit $ac_status); } && |
| 11008 | { ac_try='test -s conftest.$ac_objext' |
| 11009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11010 | (eval $ac_try) 2>&5 |
| 11011 | ac_status=$? |
| 11012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11013 | (exit $ac_status); }; }; then |
| 11014 | ac_header_compiler=yes |
| 11015 | else |
| 11016 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11018 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11019 | ac_header_compiler=no |
| 11020 | fi |
| 11021 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11022 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11023 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11024 | |
| 11025 | # Is the header present? |
| 11026 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 11027 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 11028 | cat >conftest.$ac_ext <<_ACEOF |
| 11029 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11030 | /* confdefs.h. */ |
| 11031 | _ACEOF |
| 11032 | cat confdefs.h >>conftest.$ac_ext |
| 11033 | cat >>conftest.$ac_ext <<_ACEOF |
| 11034 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11035 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11036 | _ACEOF |
| 11037 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11038 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11039 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11040 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11041 | rm -f conftest.er1 |
| 11042 | cat conftest.err >&5 |
| 11043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11044 | (exit $ac_status); } >/dev/null; then |
| 11045 | if test -s conftest.err; then |
| 11046 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11047 | else |
| 11048 | ac_cpp_err= |
| 11049 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11050 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11051 | ac_cpp_err=yes |
| 11052 | fi |
| 11053 | if test -z "$ac_cpp_err"; then |
| 11054 | ac_header_preproc=yes |
| 11055 | else |
| 11056 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11057 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11058 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11059 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11060 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11061 | rm -f conftest.err conftest.$ac_ext |
| 11062 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11063 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11064 | |
| 11065 | # So? What about this header? |
| 11066 | case $ac_header_compiler:$ac_header_preproc in |
| 11067 | yes:no ) |
| 11068 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11069 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11070 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11071 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 11072 | ( |
| 11073 | cat <<\_ASBOX |
| 11074 | ## ------------------------------------ ## |
| 11075 | ## Report this to bug-autoconf@gnu.org. ## |
| 11076 | ## ------------------------------------ ## |
| 11077 | _ASBOX |
| 11078 | ) | |
| 11079 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11080 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11081 | no:yes ) |
| 11082 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 11083 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 11084 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 11085 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 11086 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11087 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 11088 | ( |
| 11089 | cat <<\_ASBOX |
| 11090 | ## ------------------------------------ ## |
| 11091 | ## Report this to bug-autoconf@gnu.org. ## |
| 11092 | ## ------------------------------------ ## |
| 11093 | _ASBOX |
| 11094 | ) | |
| 11095 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11096 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11097 | esac |
| 11098 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 11099 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 11100 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11102 | else |
| 11103 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11104 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11105 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 11106 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 11107 | |
| 11108 | fi |
| 11109 | if test $ac_cv_header_cthreads_h = yes; then |
| 11110 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11111 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11112 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11113 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11114 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11115 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11116 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11117 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11118 | |
| 11119 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11120 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11121 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11122 | |
| 11123 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11124 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11125 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11126 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11127 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11128 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 11129 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 11130 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11132 | fi |
| 11133 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 11134 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11135 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11136 | # Is the header compilable? |
| 11137 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 11138 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 11139 | cat >conftest.$ac_ext <<_ACEOF |
| 11140 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11141 | /* confdefs.h. */ |
| 11142 | _ACEOF |
| 11143 | cat confdefs.h >>conftest.$ac_ext |
| 11144 | cat >>conftest.$ac_ext <<_ACEOF |
| 11145 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11146 | $ac_includes_default |
| 11147 | #include <mach/cthreads.h> |
| 11148 | _ACEOF |
| 11149 | rm -f conftest.$ac_objext |
| 11150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11151 | (eval $ac_compile) 2>&5 |
| 11152 | ac_status=$? |
| 11153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11154 | (exit $ac_status); } && |
| 11155 | { ac_try='test -s conftest.$ac_objext' |
| 11156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11157 | (eval $ac_try) 2>&5 |
| 11158 | ac_status=$? |
| 11159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11160 | (exit $ac_status); }; }; then |
| 11161 | ac_header_compiler=yes |
| 11162 | else |
| 11163 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11165 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11166 | ac_header_compiler=no |
| 11167 | fi |
| 11168 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11169 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11170 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11171 | |
| 11172 | # Is the header present? |
| 11173 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 11174 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 11175 | cat >conftest.$ac_ext <<_ACEOF |
| 11176 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11177 | /* confdefs.h. */ |
| 11178 | _ACEOF |
| 11179 | cat confdefs.h >>conftest.$ac_ext |
| 11180 | cat >>conftest.$ac_ext <<_ACEOF |
| 11181 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11182 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11183 | _ACEOF |
| 11184 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11185 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11186 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11187 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11188 | rm -f conftest.er1 |
| 11189 | cat conftest.err >&5 |
| 11190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11191 | (exit $ac_status); } >/dev/null; then |
| 11192 | if test -s conftest.err; then |
| 11193 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11194 | else |
| 11195 | ac_cpp_err= |
| 11196 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11197 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11198 | ac_cpp_err=yes |
| 11199 | fi |
| 11200 | if test -z "$ac_cpp_err"; then |
| 11201 | ac_header_preproc=yes |
| 11202 | else |
| 11203 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11205 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11206 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11207 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11208 | rm -f conftest.err conftest.$ac_ext |
| 11209 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11210 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11211 | |
| 11212 | # So? What about this header? |
| 11213 | case $ac_header_compiler:$ac_header_preproc in |
| 11214 | yes:no ) |
| 11215 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11216 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11217 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11218 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 11219 | ( |
| 11220 | cat <<\_ASBOX |
| 11221 | ## ------------------------------------ ## |
| 11222 | ## Report this to bug-autoconf@gnu.org. ## |
| 11223 | ## ------------------------------------ ## |
| 11224 | _ASBOX |
| 11225 | ) | |
| 11226 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11227 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11228 | no:yes ) |
| 11229 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 11230 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 11231 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 11232 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 11233 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11234 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 11235 | ( |
| 11236 | cat <<\_ASBOX |
| 11237 | ## ------------------------------------ ## |
| 11238 | ## Report this to bug-autoconf@gnu.org. ## |
| 11239 | ## ------------------------------------ ## |
| 11240 | _ASBOX |
| 11241 | ) | |
| 11242 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11243 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11244 | esac |
| 11245 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 11246 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 11247 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11249 | else |
| 11250 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11251 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11252 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 11253 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 11254 | |
| 11255 | fi |
| 11256 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 11257 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11258 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11259 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11260 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11261 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11262 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11263 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11264 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11265 | |
| 11266 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11267 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11268 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11269 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11270 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11271 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11272 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11273 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 11274 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 11275 | |
| 11276 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11277 | if test "${with_pth+set}" = set; then |
| 11278 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11279 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11280 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11281 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11282 | #define WITH_THREAD 1 |
| 11283 | _ACEOF |
| 11284 | |
| 11285 | |
| 11286 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11287 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11288 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11289 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11290 | LIBS="-lpth $LIBS" |
| 11291 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11292 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11293 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11294 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11295 | |
| 11296 | # Just looking for pthread_create in libpthread is not enough: |
| 11297 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 11298 | # So we really have to include pthread.h, and then link. |
| 11299 | _libs=$LIBS |
| 11300 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11301 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 11302 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 11303 | cat >conftest.$ac_ext <<_ACEOF |
| 11304 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11305 | /* confdefs.h. */ |
| 11306 | _ACEOF |
| 11307 | cat confdefs.h >>conftest.$ac_ext |
| 11308 | cat >>conftest.$ac_ext <<_ACEOF |
| 11309 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11310 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11311 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11312 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11313 | int |
| 11314 | main () |
| 11315 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11316 | |
| 11317 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11318 | ; |
| 11319 | return 0; |
| 11320 | } |
| 11321 | _ACEOF |
| 11322 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11324 | (eval $ac_link) 2>&5 |
| 11325 | ac_status=$? |
| 11326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11327 | (exit $ac_status); } && |
| 11328 | { ac_try='test -s conftest$ac_exeext' |
| 11329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11330 | (eval $ac_try) 2>&5 |
| 11331 | ac_status=$? |
| 11332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11333 | (exit $ac_status); }; }; then |
| 11334 | |
| 11335 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11336 | echo "${ECHO_T}yes" >&6 |
| 11337 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11338 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11339 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11340 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11341 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11342 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11343 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11344 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11345 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11346 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11347 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11348 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11349 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 11350 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 11351 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 11352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11353 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11354 | cat >conftest.$ac_ext <<_ACEOF |
| 11355 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11356 | /* confdefs.h. */ |
| 11357 | _ACEOF |
| 11358 | cat confdefs.h >>conftest.$ac_ext |
| 11359 | cat >>conftest.$ac_ext <<_ACEOF |
| 11360 | /* end confdefs.h. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11361 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11362 | which can conflict with char pthread_detach (); below. |
| 11363 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 11364 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 11365 | including <limits.h> includes <sys/time.h> and causes problems |
| 11366 | checking for functions defined therein. */ |
| 11367 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11368 | # include <limits.h> |
| 11369 | #else |
| 11370 | # include <assert.h> |
| 11371 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11372 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11373 | #ifdef __cplusplus |
| 11374 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11375 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11376 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11377 | /* 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] | 11378 | builtin and then its argument prototype would still apply. */ |
| 11379 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11380 | /* The GNU C library defines this for functions which it implements |
| 11381 | to always fail with ENOSYS. Some functions are actually named |
| 11382 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 11383 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11384 | choke me |
| 11385 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11386 | char (*f) () = pthread_detach; |
| 11387 | #endif |
| 11388 | #ifdef __cplusplus |
| 11389 | } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11390 | #endif |
| 11391 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11392 | int |
| 11393 | main () |
| 11394 | { |
| 11395 | return f != pthread_detach; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11396 | ; |
| 11397 | return 0; |
| 11398 | } |
| 11399 | _ACEOF |
| 11400 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11402 | (eval $ac_link) 2>&5 |
| 11403 | ac_status=$? |
| 11404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11405 | (exit $ac_status); } && |
| 11406 | { ac_try='test -s conftest$ac_exeext' |
| 11407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11408 | (eval $ac_try) 2>&5 |
| 11409 | ac_status=$? |
| 11410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11411 | (exit $ac_status); }; }; then |
| 11412 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11413 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11414 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11416 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11417 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11418 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11419 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11420 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11421 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 11422 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 11423 | if test $ac_cv_func_pthread_detach = yes; then |
| 11424 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11425 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11426 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11427 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11428 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11429 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11430 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11431 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11432 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11433 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 11434 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 11435 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11437 | fi |
| 11438 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 11439 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 11440 | else |
| 11441 | # Is the header compilable? |
| 11442 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 11443 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 11444 | cat >conftest.$ac_ext <<_ACEOF |
| 11445 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11446 | /* confdefs.h. */ |
| 11447 | _ACEOF |
| 11448 | cat confdefs.h >>conftest.$ac_ext |
| 11449 | cat >>conftest.$ac_ext <<_ACEOF |
| 11450 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11451 | $ac_includes_default |
| 11452 | #include <atheos/threads.h> |
| 11453 | _ACEOF |
| 11454 | rm -f conftest.$ac_objext |
| 11455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11456 | (eval $ac_compile) 2>&5 |
| 11457 | ac_status=$? |
| 11458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11459 | (exit $ac_status); } && |
| 11460 | { ac_try='test -s conftest.$ac_objext' |
| 11461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11462 | (eval $ac_try) 2>&5 |
| 11463 | ac_status=$? |
| 11464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11465 | (exit $ac_status); }; }; then |
| 11466 | ac_header_compiler=yes |
| 11467 | else |
| 11468 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11470 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11471 | ac_header_compiler=no |
| 11472 | fi |
| 11473 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11474 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11475 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11476 | |
| 11477 | # Is the header present? |
| 11478 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 11479 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 11480 | cat >conftest.$ac_ext <<_ACEOF |
| 11481 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11482 | /* confdefs.h. */ |
| 11483 | _ACEOF |
| 11484 | cat confdefs.h >>conftest.$ac_ext |
| 11485 | cat >>conftest.$ac_ext <<_ACEOF |
| 11486 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11487 | #include <atheos/threads.h> |
| 11488 | _ACEOF |
| 11489 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11490 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11491 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11492 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11493 | rm -f conftest.er1 |
| 11494 | cat conftest.err >&5 |
| 11495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11496 | (exit $ac_status); } >/dev/null; then |
| 11497 | if test -s conftest.err; then |
| 11498 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11499 | else |
| 11500 | ac_cpp_err= |
| 11501 | fi |
| 11502 | else |
| 11503 | ac_cpp_err=yes |
| 11504 | fi |
| 11505 | if test -z "$ac_cpp_err"; then |
| 11506 | ac_header_preproc=yes |
| 11507 | else |
| 11508 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11509 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11510 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11511 | ac_header_preproc=no |
| 11512 | fi |
| 11513 | rm -f conftest.err conftest.$ac_ext |
| 11514 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11515 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11516 | |
| 11517 | # So? What about this header? |
| 11518 | case $ac_header_compiler:$ac_header_preproc in |
| 11519 | yes:no ) |
| 11520 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11521 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11522 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11523 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 11524 | ( |
| 11525 | cat <<\_ASBOX |
| 11526 | ## ------------------------------------ ## |
| 11527 | ## Report this to bug-autoconf@gnu.org. ## |
| 11528 | ## ------------------------------------ ## |
| 11529 | _ASBOX |
| 11530 | ) | |
| 11531 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11532 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11533 | no:yes ) |
| 11534 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 11535 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 11536 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 11537 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 11538 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11539 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 11540 | ( |
| 11541 | cat <<\_ASBOX |
| 11542 | ## ------------------------------------ ## |
| 11543 | ## Report this to bug-autoconf@gnu.org. ## |
| 11544 | ## ------------------------------------ ## |
| 11545 | _ASBOX |
| 11546 | ) | |
| 11547 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11548 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11549 | esac |
| 11550 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 11551 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 11552 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11554 | else |
| 11555 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 11556 | fi |
| 11557 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 11558 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 11559 | |
| 11560 | fi |
| 11561 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 11562 | cat >>confdefs.h <<\_ACEOF |
| 11563 | #define WITH_THREAD 1 |
| 11564 | _ACEOF |
| 11565 | |
| 11566 | |
| 11567 | cat >>confdefs.h <<\_ACEOF |
| 11568 | #define ATHEOS_THREADS 1 |
| 11569 | _ACEOF |
| 11570 | |
| 11571 | THREADOBJ="Python/thread.o" |
| 11572 | else |
| 11573 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11574 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11575 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 11576 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 11577 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11579 | fi |
| 11580 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 11581 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11582 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11583 | # Is the header compilable? |
| 11584 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 11585 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 11586 | cat >conftest.$ac_ext <<_ACEOF |
| 11587 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11588 | /* confdefs.h. */ |
| 11589 | _ACEOF |
| 11590 | cat confdefs.h >>conftest.$ac_ext |
| 11591 | cat >>conftest.$ac_ext <<_ACEOF |
| 11592 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11593 | $ac_includes_default |
| 11594 | #include <kernel/OS.h> |
| 11595 | _ACEOF |
| 11596 | rm -f conftest.$ac_objext |
| 11597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11598 | (eval $ac_compile) 2>&5 |
| 11599 | ac_status=$? |
| 11600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11601 | (exit $ac_status); } && |
| 11602 | { ac_try='test -s conftest.$ac_objext' |
| 11603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11604 | (eval $ac_try) 2>&5 |
| 11605 | ac_status=$? |
| 11606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11607 | (exit $ac_status); }; }; then |
| 11608 | ac_header_compiler=yes |
| 11609 | else |
| 11610 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11612 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11613 | ac_header_compiler=no |
| 11614 | fi |
| 11615 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11616 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11617 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11618 | |
| 11619 | # Is the header present? |
| 11620 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 11621 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 11622 | cat >conftest.$ac_ext <<_ACEOF |
| 11623 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11624 | /* confdefs.h. */ |
| 11625 | _ACEOF |
| 11626 | cat confdefs.h >>conftest.$ac_ext |
| 11627 | cat >>conftest.$ac_ext <<_ACEOF |
| 11628 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11629 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11630 | _ACEOF |
| 11631 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11632 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11633 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11634 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11635 | rm -f conftest.er1 |
| 11636 | cat conftest.err >&5 |
| 11637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11638 | (exit $ac_status); } >/dev/null; then |
| 11639 | if test -s conftest.err; then |
| 11640 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11641 | else |
| 11642 | ac_cpp_err= |
| 11643 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11644 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11645 | ac_cpp_err=yes |
| 11646 | fi |
| 11647 | if test -z "$ac_cpp_err"; then |
| 11648 | ac_header_preproc=yes |
| 11649 | else |
| 11650 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11652 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11653 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11654 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11655 | rm -f conftest.err conftest.$ac_ext |
| 11656 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11657 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11658 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11659 | # So? What about this header? |
| 11660 | case $ac_header_compiler:$ac_header_preproc in |
| 11661 | yes:no ) |
| 11662 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11663 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11664 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11665 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
| 11666 | ( |
| 11667 | cat <<\_ASBOX |
| 11668 | ## ------------------------------------ ## |
| 11669 | ## Report this to bug-autoconf@gnu.org. ## |
| 11670 | ## ------------------------------------ ## |
| 11671 | _ASBOX |
| 11672 | ) | |
| 11673 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11674 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11675 | no:yes ) |
| 11676 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 11677 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 11678 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 11679 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 11680 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11681 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
| 11682 | ( |
| 11683 | cat <<\_ASBOX |
| 11684 | ## ------------------------------------ ## |
| 11685 | ## Report this to bug-autoconf@gnu.org. ## |
| 11686 | ## ------------------------------------ ## |
| 11687 | _ASBOX |
| 11688 | ) | |
| 11689 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11690 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11691 | esac |
| 11692 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 11693 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 11694 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11696 | else |
| 11697 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 11698 | fi |
| 11699 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 11700 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 11701 | |
| 11702 | fi |
| 11703 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 11704 | cat >>confdefs.h <<\_ACEOF |
| 11705 | #define WITH_THREAD 1 |
| 11706 | _ACEOF |
| 11707 | |
| 11708 | |
| 11709 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11710 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11711 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11712 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11713 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11714 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11715 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11716 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 11717 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 11718 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 11719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11720 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11721 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11722 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11723 | cat >conftest.$ac_ext <<_ACEOF |
| 11724 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11725 | /* confdefs.h. */ |
| 11726 | _ACEOF |
| 11727 | cat confdefs.h >>conftest.$ac_ext |
| 11728 | cat >>conftest.$ac_ext <<_ACEOF |
| 11729 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11730 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11731 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11732 | #ifdef __cplusplus |
| 11733 | extern "C" |
| 11734 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11735 | /* 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] | 11736 | builtin and then its argument prototype would still apply. */ |
| 11737 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11738 | int |
| 11739 | main () |
| 11740 | { |
| 11741 | pthread_create (); |
| 11742 | ; |
| 11743 | return 0; |
| 11744 | } |
| 11745 | _ACEOF |
| 11746 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11748 | (eval $ac_link) 2>&5 |
| 11749 | ac_status=$? |
| 11750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11751 | (exit $ac_status); } && |
| 11752 | { ac_try='test -s conftest$ac_exeext' |
| 11753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11754 | (eval $ac_try) 2>&5 |
| 11755 | ac_status=$? |
| 11756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11757 | (exit $ac_status); }; }; then |
| 11758 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11759 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11760 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11761 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11762 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11763 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11764 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11765 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11766 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11767 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11768 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 11769 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 11770 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 11771 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11772 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11773 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11774 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11775 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11776 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11777 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11778 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11779 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11780 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 11781 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 11782 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 11783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11784 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11785 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11786 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11787 | cat >conftest.$ac_ext <<_ACEOF |
| 11788 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11789 | /* confdefs.h. */ |
| 11790 | _ACEOF |
| 11791 | cat confdefs.h >>conftest.$ac_ext |
| 11792 | cat >>conftest.$ac_ext <<_ACEOF |
| 11793 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11794 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11795 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11796 | #ifdef __cplusplus |
| 11797 | extern "C" |
| 11798 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11799 | /* 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] | 11800 | builtin and then its argument prototype would still apply. */ |
| 11801 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11802 | int |
| 11803 | main () |
| 11804 | { |
| 11805 | pthread_create (); |
| 11806 | ; |
| 11807 | return 0; |
| 11808 | } |
| 11809 | _ACEOF |
| 11810 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11811 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11812 | (eval $ac_link) 2>&5 |
| 11813 | ac_status=$? |
| 11814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11815 | (exit $ac_status); } && |
| 11816 | { ac_try='test -s conftest$ac_exeext' |
| 11817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11818 | (eval $ac_try) 2>&5 |
| 11819 | ac_status=$? |
| 11820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11821 | (exit $ac_status); }; }; then |
| 11822 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11823 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11824 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11826 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11827 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11828 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11829 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11830 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11831 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11832 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 11833 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 11834 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 11835 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11836 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11837 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11838 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11839 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11840 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11841 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11842 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11843 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11844 | echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5 |
| 11845 | echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6 |
| 11846 | if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then |
| 11847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11848 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11849 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11850 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11851 | cat >conftest.$ac_ext <<_ACEOF |
| 11852 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11853 | /* confdefs.h. */ |
| 11854 | _ACEOF |
| 11855 | cat confdefs.h >>conftest.$ac_ext |
| 11856 | cat >>conftest.$ac_ext <<_ACEOF |
| 11857 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11858 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11859 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11860 | #ifdef __cplusplus |
| 11861 | extern "C" |
| 11862 | #endif |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11863 | /* 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] | 11864 | builtin and then its argument prototype would still apply. */ |
| 11865 | char __d6_pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11866 | int |
| 11867 | main () |
| 11868 | { |
| 11869 | __d6_pthread_create (); |
| 11870 | ; |
| 11871 | return 0; |
| 11872 | } |
| 11873 | _ACEOF |
| 11874 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11875 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11876 | (eval $ac_link) 2>&5 |
| 11877 | ac_status=$? |
| 11878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11879 | (exit $ac_status); } && |
| 11880 | { ac_try='test -s conftest$ac_exeext' |
| 11881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11882 | (eval $ac_try) 2>&5 |
| 11883 | ac_status=$? |
| 11884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11885 | (exit $ac_status); }; }; then |
| 11886 | ac_cv_lib_thread___d6_pthread_create=yes |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11887 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11888 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11890 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11891 | ac_cv_lib_thread___d6_pthread_create=no |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11892 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11893 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11894 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11895 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11896 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5 |
| 11897 | echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6 |
| 11898 | if test $ac_cv_lib_thread___d6_pthread_create = yes; then |
| 11899 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11900 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11901 | _ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11902 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 11903 | echo Systems with __d6_pthread_create are not supported anymore. |
| 11904 | echo See README |
| 11905 | exit 1 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11906 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11907 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11908 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11909 | else |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11910 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11911 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 11912 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 11913 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 11914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11915 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11916 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11917 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11918 | cat >conftest.$ac_ext <<_ACEOF |
| 11919 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11920 | /* confdefs.h. */ |
| 11921 | _ACEOF |
| 11922 | cat confdefs.h >>conftest.$ac_ext |
| 11923 | cat >>conftest.$ac_ext <<_ACEOF |
| 11924 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11925 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11926 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11927 | #ifdef __cplusplus |
| 11928 | extern "C" |
| 11929 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11930 | /* 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] | 11931 | builtin and then its argument prototype would still apply. */ |
| 11932 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11933 | int |
| 11934 | main () |
| 11935 | { |
| 11936 | __pthread_create_system (); |
| 11937 | ; |
| 11938 | return 0; |
| 11939 | } |
| 11940 | _ACEOF |
| 11941 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11942 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11943 | (eval $ac_link) 2>&5 |
| 11944 | ac_status=$? |
| 11945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11946 | (exit $ac_status); } && |
| 11947 | { ac_try='test -s conftest$ac_exeext' |
| 11948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11949 | (eval $ac_try) 2>&5 |
| 11950 | ac_status=$? |
| 11951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11952 | (exit $ac_status); }; }; then |
| 11953 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11954 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11955 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11957 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11958 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11959 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11960 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11961 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11962 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11963 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 11964 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 11965 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 11966 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11967 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11968 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11969 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11970 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11971 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11972 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11973 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11974 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11975 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 11976 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 11977 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 11978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11979 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11980 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11981 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11982 | cat >conftest.$ac_ext <<_ACEOF |
| 11983 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11984 | /* confdefs.h. */ |
| 11985 | _ACEOF |
| 11986 | cat confdefs.h >>conftest.$ac_ext |
| 11987 | cat >>conftest.$ac_ext <<_ACEOF |
| 11988 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11989 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11990 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11991 | #ifdef __cplusplus |
| 11992 | extern "C" |
| 11993 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11994 | /* 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] | 11995 | builtin and then its argument prototype would still apply. */ |
| 11996 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11997 | int |
| 11998 | main () |
| 11999 | { |
| 12000 | pthread_create (); |
| 12001 | ; |
| 12002 | return 0; |
| 12003 | } |
| 12004 | _ACEOF |
| 12005 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12007 | (eval $ac_link) 2>&5 |
| 12008 | ac_status=$? |
| 12009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12010 | (exit $ac_status); } && |
| 12011 | { ac_try='test -s conftest$ac_exeext' |
| 12012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12013 | (eval $ac_try) 2>&5 |
| 12014 | ac_status=$? |
| 12015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12016 | (exit $ac_status); }; }; then |
| 12017 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12018 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12019 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12021 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12022 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12023 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12024 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12025 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12026 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12027 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 12028 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 12029 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 12030 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12031 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12032 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12033 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12034 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12035 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12036 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12037 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 12038 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12039 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 12040 | fi |
| 12041 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12042 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12043 | fi |
| 12044 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 12045 | fi |
| 12046 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12047 | fi |
| 12048 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12049 | fi |
| 12050 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12051 | fi |
| 12052 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12053 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12054 | fi |
| 12055 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12056 | |
| 12057 | fi |
| 12058 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12059 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12060 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12061 | fi; |
| 12062 | fi |
| 12063 | |
| 12064 | |
| 12065 | fi |
| 12066 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12067 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12068 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12069 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 12070 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 12071 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 12072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12073 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12074 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12075 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12076 | cat >conftest.$ac_ext <<_ACEOF |
| 12077 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12078 | /* confdefs.h. */ |
| 12079 | _ACEOF |
| 12080 | cat confdefs.h >>conftest.$ac_ext |
| 12081 | cat >>conftest.$ac_ext <<_ACEOF |
| 12082 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12083 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12084 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12085 | #ifdef __cplusplus |
| 12086 | extern "C" |
| 12087 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12088 | /* 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] | 12089 | builtin and then its argument prototype would still apply. */ |
| 12090 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12091 | int |
| 12092 | main () |
| 12093 | { |
| 12094 | usconfig (); |
| 12095 | ; |
| 12096 | return 0; |
| 12097 | } |
| 12098 | _ACEOF |
| 12099 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12100 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12101 | (eval $ac_link) 2>&5 |
| 12102 | ac_status=$? |
| 12103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12104 | (exit $ac_status); } && |
| 12105 | { ac_try='test -s conftest$ac_exeext' |
| 12106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12107 | (eval $ac_try) 2>&5 |
| 12108 | ac_status=$? |
| 12109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12110 | (exit $ac_status); }; }; then |
| 12111 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12112 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12113 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12115 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12116 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12117 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12118 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12119 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +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: $ac_cv_lib_mpc_usconfig" >&5 |
| 12122 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 12123 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 12124 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12125 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12126 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12127 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12128 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12129 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12130 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12131 | fi |
| 12132 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12133 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 12134 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12135 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 12136 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 12137 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 12138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12139 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12140 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12141 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12142 | cat >conftest.$ac_ext <<_ACEOF |
| 12143 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12144 | /* confdefs.h. */ |
| 12145 | _ACEOF |
| 12146 | cat confdefs.h >>conftest.$ac_ext |
| 12147 | cat >>conftest.$ac_ext <<_ACEOF |
| 12148 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12149 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12150 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12151 | #ifdef __cplusplus |
| 12152 | extern "C" |
| 12153 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12154 | /* 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] | 12155 | builtin and then its argument prototype would still apply. */ |
| 12156 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12157 | int |
| 12158 | main () |
| 12159 | { |
| 12160 | thr_create (); |
| 12161 | ; |
| 12162 | return 0; |
| 12163 | } |
| 12164 | _ACEOF |
| 12165 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12166 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12167 | (eval $ac_link) 2>&5 |
| 12168 | ac_status=$? |
| 12169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12170 | (exit $ac_status); } && |
| 12171 | { ac_try='test -s conftest$ac_exeext' |
| 12172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12173 | (eval $ac_try) 2>&5 |
| 12174 | ac_status=$? |
| 12175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12176 | (exit $ac_status); }; }; then |
| 12177 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12178 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12179 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12181 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12182 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12183 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12184 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12185 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12186 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12187 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 12188 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 12189 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 12190 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12191 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12192 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12193 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12194 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12195 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12196 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12197 | fi |
| 12198 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12199 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12200 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12201 | if test "$USE_THREAD_MODULE" != "#" |
| 12202 | then |
| 12203 | # If the above checks didn't disable threads, (at least) OSF1 |
| 12204 | # needs this '-threads' argument during linking. |
| 12205 | case $ac_sys_system in |
| 12206 | OSF1) LDLAST=-threads;; |
| 12207 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 12208 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12209 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12210 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12211 | if test "$posix_threads" = "yes"; then |
| 12212 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12213 | |
| 12214 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12215 | #define _POSIX_THREADS 1 |
| 12216 | _ACEOF |
| 12217 | |
| 12218 | fi |
| 12219 | |
| 12220 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 12221 | case $ac_sys_system/$ac_sys_release in |
| 12222 | SunOS/5.6) |
| 12223 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12224 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 12225 | _ACEOF |
| 12226 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12227 | ;; |
| 12228 | SunOS/5.8) |
| 12229 | cat >>confdefs.h <<\_ACEOF |
| 12230 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 12231 | _ACEOF |
| 12232 | |
| 12233 | ;; |
| 12234 | esac |
| 12235 | |
| 12236 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 12237 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 12238 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 12239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12240 | else |
| 12241 | if test "$cross_compiling" = yes; then |
| 12242 | ac_cv_pthread_system_supported=no |
| 12243 | else |
| 12244 | cat >conftest.$ac_ext <<_ACEOF |
| 12245 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12246 | /* confdefs.h. */ |
| 12247 | _ACEOF |
| 12248 | cat confdefs.h >>conftest.$ac_ext |
| 12249 | cat >>conftest.$ac_ext <<_ACEOF |
| 12250 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12251 | #include <pthread.h> |
| 12252 | void *foo(void *parm) { |
| 12253 | return NULL; |
| 12254 | } |
| 12255 | main() { |
| 12256 | pthread_attr_t attr; |
| 12257 | pthread_t id; |
| 12258 | if (pthread_attr_init(&attr)) exit(-1); |
| 12259 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 12260 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 12261 | exit(0); |
| 12262 | } |
| 12263 | _ACEOF |
| 12264 | rm -f conftest$ac_exeext |
| 12265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12266 | (eval $ac_link) 2>&5 |
| 12267 | ac_status=$? |
| 12268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12269 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12271 | (eval $ac_try) 2>&5 |
| 12272 | ac_status=$? |
| 12273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12274 | (exit $ac_status); }; }; then |
| 12275 | ac_cv_pthread_system_supported=yes |
| 12276 | else |
| 12277 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12278 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12280 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12281 | ( exit $ac_status ) |
| 12282 | ac_cv_pthread_system_supported=no |
| 12283 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12284 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12285 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12286 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12287 | fi |
| 12288 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12289 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 12290 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
| 12291 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 12292 | |
| 12293 | cat >>confdefs.h <<\_ACEOF |
| 12294 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 12295 | _ACEOF |
| 12296 | |
| 12297 | fi |
| 12298 | |
| 12299 | for ac_func in pthread_sigmask |
| 12300 | do |
| 12301 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12302 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12303 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12304 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12306 | else |
| 12307 | cat >conftest.$ac_ext <<_ACEOF |
| 12308 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12309 | /* confdefs.h. */ |
| 12310 | _ACEOF |
| 12311 | cat confdefs.h >>conftest.$ac_ext |
| 12312 | cat >>conftest.$ac_ext <<_ACEOF |
| 12313 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12314 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12315 | which can conflict with char $ac_func (); below. |
| 12316 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 12317 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 12318 | including <limits.h> includes <sys/time.h> and causes problems |
| 12319 | checking for functions defined therein. */ |
| 12320 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12321 | # include <limits.h> |
| 12322 | #else |
| 12323 | # include <assert.h> |
| 12324 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12325 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12326 | #ifdef __cplusplus |
| 12327 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12328 | { |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12329 | #endif |
| 12330 | /* We use char because int might match the return type of a gcc2 |
| 12331 | builtin and then its argument prototype would still apply. */ |
| 12332 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12333 | /* The GNU C library defines this for functions which it implements |
| 12334 | to always fail with ENOSYS. Some functions are actually named |
| 12335 | something starting with __ and the normal name is an alias. */ |
| 12336 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12337 | choke me |
| 12338 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12339 | char (*f) () = $ac_func; |
| 12340 | #endif |
| 12341 | #ifdef __cplusplus |
| 12342 | } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12343 | #endif |
| 12344 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12345 | int |
| 12346 | main () |
| 12347 | { |
| 12348 | return f != $ac_func; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12349 | ; |
| 12350 | return 0; |
| 12351 | } |
| 12352 | _ACEOF |
| 12353 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12355 | (eval $ac_link) 2>&5 |
| 12356 | ac_status=$? |
| 12357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12358 | (exit $ac_status); } && |
| 12359 | { ac_try='test -s conftest$ac_exeext' |
| 12360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12361 | (eval $ac_try) 2>&5 |
| 12362 | ac_status=$? |
| 12363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12364 | (exit $ac_status); }; }; then |
| 12365 | eval "$as_ac_var=yes" |
| 12366 | else |
| 12367 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12368 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12369 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12370 | eval "$as_ac_var=no" |
| 12371 | fi |
| 12372 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12373 | fi |
| 12374 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12375 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12376 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12377 | cat >>confdefs.h <<_ACEOF |
| 12378 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12379 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12380 | case $ac_sys_system in |
| 12381 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12382 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12383 | cat >>confdefs.h <<\_ACEOF |
| 12384 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 12385 | _ACEOF |
| 12386 | |
| 12387 | ;; |
| 12388 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12389 | fi |
| 12390 | done |
| 12391 | |
| 12392 | fi |
| 12393 | |
| 12394 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12395 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12396 | |
| 12397 | |
| 12398 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 12399 | 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] | 12400 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 12401 | if test "${enable_ipv6+set}" = set; then |
| 12402 | enableval="$enable_ipv6" |
| 12403 | case "$enableval" in |
| 12404 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12405 | echo "$as_me:$LINENO: result: no" >&5 |
| 12406 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12407 | ipv6=no |
| 12408 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12409 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 12410 | echo "${ECHO_T}yes" >&6 |
| 12411 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12412 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12413 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12414 | |
| 12415 | ipv6=yes |
| 12416 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12417 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12418 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12419 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12420 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12421 | echo "$as_me:$LINENO: result: no" >&5 |
| 12422 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12423 | ipv6=no |
| 12424 | |
| 12425 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12426 | cat >conftest.$ac_ext <<_ACEOF |
| 12427 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12428 | /* confdefs.h. */ |
| 12429 | _ACEOF |
| 12430 | cat confdefs.h >>conftest.$ac_ext |
| 12431 | cat >>conftest.$ac_ext <<_ACEOF |
| 12432 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12433 | /* AF_INET6 available check */ |
| 12434 | #include <sys/types.h> |
| 12435 | #include <sys/socket.h> |
| 12436 | main() |
| 12437 | { |
| 12438 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 12439 | exit(1); |
| 12440 | else |
| 12441 | exit(0); |
| 12442 | } |
| 12443 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12444 | _ACEOF |
| 12445 | rm -f conftest$ac_exeext |
| 12446 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12447 | (eval $ac_link) 2>&5 |
| 12448 | ac_status=$? |
| 12449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12450 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12452 | (eval $ac_try) 2>&5 |
| 12453 | ac_status=$? |
| 12454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12455 | (exit $ac_status); }; }; then |
| 12456 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12457 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12458 | ipv6=yes |
| 12459 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12460 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12461 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12463 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12464 | ( exit $ac_status ) |
| 12465 | echo "$as_me:$LINENO: result: no" >&5 |
| 12466 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12467 | ipv6=no |
| 12468 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12469 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12470 | fi |
| 12471 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12472 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12473 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 12474 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 12475 | cat >conftest.$ac_ext <<_ACEOF |
| 12476 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12477 | /* confdefs.h. */ |
| 12478 | _ACEOF |
| 12479 | cat confdefs.h >>conftest.$ac_ext |
| 12480 | cat >>conftest.$ac_ext <<_ACEOF |
| 12481 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12482 | #include <sys/types.h> |
| 12483 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12484 | int |
| 12485 | main () |
| 12486 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12487 | struct sockaddr_in6 x; |
| 12488 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12489 | ; |
| 12490 | return 0; |
| 12491 | } |
| 12492 | _ACEOF |
| 12493 | rm -f conftest.$ac_objext |
| 12494 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12495 | (eval $ac_compile) 2>&5 |
| 12496 | ac_status=$? |
| 12497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12498 | (exit $ac_status); } && |
| 12499 | { ac_try='test -s conftest.$ac_objext' |
| 12500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12501 | (eval $ac_try) 2>&5 |
| 12502 | ac_status=$? |
| 12503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12504 | (exit $ac_status); }; }; then |
| 12505 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12506 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12507 | ipv6=yes |
| 12508 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12509 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12511 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12512 | echo "$as_me:$LINENO: result: no" >&5 |
| 12513 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12514 | ipv6=no |
| 12515 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12516 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12517 | fi |
| 12518 | |
| 12519 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12520 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12521 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12522 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12523 | |
| 12524 | fi |
| 12525 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12526 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12527 | |
| 12528 | ipv6type=unknown |
| 12529 | ipv6lib=none |
| 12530 | ipv6trylibc=no |
| 12531 | |
| 12532 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12533 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 12534 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 12535 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 12536 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12537 | case $i in |
| 12538 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12539 | cat >conftest.$ac_ext <<_ACEOF |
| 12540 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12541 | /* confdefs.h. */ |
| 12542 | _ACEOF |
| 12543 | cat confdefs.h >>conftest.$ac_ext |
| 12544 | cat >>conftest.$ac_ext <<_ACEOF |
| 12545 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12546 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12547 | #include <netinet/in.h> |
| 12548 | #ifdef IPV6_INRIA_VERSION |
| 12549 | yes |
| 12550 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12551 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12552 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12553 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12554 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12555 | fi |
| 12556 | rm -f conftest* |
| 12557 | |
| 12558 | ;; |
| 12559 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12560 | cat >conftest.$ac_ext <<_ACEOF |
| 12561 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12562 | /* confdefs.h. */ |
| 12563 | _ACEOF |
| 12564 | cat confdefs.h >>conftest.$ac_ext |
| 12565 | cat >>conftest.$ac_ext <<_ACEOF |
| 12566 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12567 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12568 | #include <netinet/in.h> |
| 12569 | #ifdef __KAME__ |
| 12570 | yes |
| 12571 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12572 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12573 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12574 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12575 | ipv6type=$i; |
| 12576 | ipv6lib=inet6 |
| 12577 | ipv6libdir=/usr/local/v6/lib |
| 12578 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12579 | fi |
| 12580 | rm -f conftest* |
| 12581 | |
| 12582 | ;; |
| 12583 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12584 | cat >conftest.$ac_ext <<_ACEOF |
| 12585 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12586 | /* confdefs.h. */ |
| 12587 | _ACEOF |
| 12588 | cat confdefs.h >>conftest.$ac_ext |
| 12589 | cat >>conftest.$ac_ext <<_ACEOF |
| 12590 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12591 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12592 | #include <features.h> |
| 12593 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 12594 | yes |
| 12595 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12596 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12597 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12598 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12599 | ipv6type=$i; |
| 12600 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12601 | fi |
| 12602 | rm -f conftest* |
| 12603 | |
| 12604 | ;; |
| 12605 | linux-inet6) |
| 12606 | if test -d /usr/inet6; then |
| 12607 | ipv6type=$i |
| 12608 | ipv6lib=inet6 |
| 12609 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 12610 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12611 | fi |
| 12612 | ;; |
| 12613 | solaris) |
| 12614 | if test -f /etc/netconfig; then |
| 12615 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 12616 | ipv6type=$i |
| 12617 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12618 | fi |
| 12619 | fi |
| 12620 | ;; |
| 12621 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12622 | cat >conftest.$ac_ext <<_ACEOF |
| 12623 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12624 | /* confdefs.h. */ |
| 12625 | _ACEOF |
| 12626 | cat confdefs.h >>conftest.$ac_ext |
| 12627 | cat >>conftest.$ac_ext <<_ACEOF |
| 12628 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12629 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12630 | #include <sys/param.h> |
| 12631 | #ifdef _TOSHIBA_INET6 |
| 12632 | yes |
| 12633 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12634 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12635 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12636 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12637 | ipv6type=$i; |
| 12638 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12639 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12640 | fi |
| 12641 | rm -f conftest* |
| 12642 | |
| 12643 | ;; |
| 12644 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12645 | cat >conftest.$ac_ext <<_ACEOF |
| 12646 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12647 | /* confdefs.h. */ |
| 12648 | _ACEOF |
| 12649 | cat confdefs.h >>conftest.$ac_ext |
| 12650 | cat >>conftest.$ac_ext <<_ACEOF |
| 12651 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12652 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12653 | #include </usr/local/v6/include/sys/v6config.h> |
| 12654 | #ifdef __V6D__ |
| 12655 | yes |
| 12656 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12657 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12658 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12659 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12660 | ipv6type=$i; |
| 12661 | ipv6lib=v6; |
| 12662 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 12663 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12664 | fi |
| 12665 | rm -f conftest* |
| 12666 | |
| 12667 | ;; |
| 12668 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12669 | cat >conftest.$ac_ext <<_ACEOF |
| 12670 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12671 | /* confdefs.h. */ |
| 12672 | _ACEOF |
| 12673 | cat confdefs.h >>conftest.$ac_ext |
| 12674 | cat >>conftest.$ac_ext <<_ACEOF |
| 12675 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12676 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12677 | #include <sys/param.h> |
| 12678 | #ifdef _ZETA_MINAMI_INET6 |
| 12679 | yes |
| 12680 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12681 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12682 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12683 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12684 | ipv6type=$i; |
| 12685 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12686 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12687 | fi |
| 12688 | rm -f conftest* |
| 12689 | |
| 12690 | ;; |
| 12691 | esac |
| 12692 | if test "$ipv6type" != "unknown"; then |
| 12693 | break |
| 12694 | fi |
| 12695 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12696 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 12697 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12698 | fi |
| 12699 | |
| 12700 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 12701 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 12702 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 12703 | echo "using lib$ipv6lib" |
| 12704 | else |
| 12705 | if test $ipv6trylibc = "yes"; then |
| 12706 | echo "using libc" |
| 12707 | else |
| 12708 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 12709 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 12710 | echo 'ipv6 kit and compile beforehand.' |
| 12711 | exit 1 |
| 12712 | fi |
| 12713 | fi |
| 12714 | fi |
| 12715 | |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 12716 | # Check for universal newline support |
Guido van Rossum | 402905e | 2002-08-15 13:56:35 +0000 | [diff] [blame] | 12717 | echo "$as_me:$LINENO: checking for --with-universal-newlines" >&5 |
| 12718 | echo $ECHO_N "checking for --with-universal-newlines... $ECHO_C" >&6 |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 12719 | |
| 12720 | # Check whether --with-universal-newlines or --without-universal-newlines was given. |
| 12721 | if test "${with_universal_newlines+set}" = set; then |
| 12722 | withval="$with_universal_newlines" |
| 12723 | |
| 12724 | fi; |
| 12725 | |
| 12726 | if test -z "$with_universal_newlines" |
| 12727 | then with_universal_newlines="yes" |
| 12728 | fi |
Martin v. Löwis | 7e4cfcb | 2002-12-19 16:21:49 +0000 | [diff] [blame] | 12729 | if test "$with_universal_newlines" = "no" |
Martin v. Löwis | 03d00d5 | 2002-12-19 19:03:31 +0000 | [diff] [blame] | 12730 | then |
Martin v. Löwis | 7e4cfcb | 2002-12-19 16:21:49 +0000 | [diff] [blame] | 12731 | echo --without-universal-newlines is unsupported, see README |
| 12732 | exit 1 |
Martin v. Löwis | 03d00d5 | 2002-12-19 19:03:31 +0000 | [diff] [blame] | 12733 | else |
Martin v. Löwis | e8aea58 | 2002-04-16 05:51:02 +0000 | [diff] [blame] | 12734 | |
| 12735 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 12736 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 12737 | _ACEOF |
| 12738 | |
| 12739 | fi |
| 12740 | echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 |
| 12741 | echo "${ECHO_T}$with_universal_newlines" >&6 |
| 12742 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 12743 | # Check for --with-doc-strings |
| 12744 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 12745 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 12746 | |
| 12747 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 12748 | if test "${with_doc_strings+set}" = set; then |
| 12749 | withval="$with_doc_strings" |
| 12750 | |
| 12751 | fi; |
| 12752 | |
| 12753 | if test -z "$with_doc_strings" |
| 12754 | then with_doc_strings="yes" |
| 12755 | fi |
| 12756 | if test "$with_doc_strings" != "no" |
| 12757 | then |
| 12758 | |
| 12759 | cat >>confdefs.h <<\_ACEOF |
| 12760 | #define WITH_DOC_STRINGS 1 |
| 12761 | _ACEOF |
| 12762 | |
| 12763 | fi |
| 12764 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 12765 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 12766 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 12767 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12768 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 12769 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 12770 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 12771 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 12772 | if test "${with_pymalloc+set}" = set; then |
| 12773 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12774 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12775 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 12776 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12777 | if test -z "$with_pymalloc" |
| 12778 | then with_pymalloc="yes" |
| 12779 | fi |
| 12780 | if test "$with_pymalloc" != "no" |
| 12781 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12782 | |
| 12783 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12784 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12785 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12786 | |
| 12787 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12788 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 12789 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12790 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12791 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12792 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 12793 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 12794 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12795 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 12796 | if test "${with_wctype_functions+set}" = set; then |
| 12797 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12798 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12799 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12800 | then |
| 12801 | |
| 12802 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12803 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12804 | _ACEOF |
| 12805 | |
| 12806 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12807 | echo "${ECHO_T}yes" >&6 |
| 12808 | else echo "$as_me:$LINENO: result: no" >&5 |
| 12809 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12810 | fi |
| 12811 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12812 | echo "$as_me:$LINENO: result: no" >&5 |
| 12813 | echo "${ECHO_T}no" >&6 |
| 12814 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12815 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12816 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12817 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 12818 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12819 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12820 | echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5 |
| 12821 | echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6 |
| 12822 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12823 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12824 | if test "${with_sgi_dl+set}" = set; then |
| 12825 | withval="$with_sgi_dl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12826 | |
| 12827 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 12828 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 9ef3376 | 2002-12-02 22:23:56 +0000 | [diff] [blame] | 12829 | echo --with-sgi-dl is unsupported, see README |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 12830 | exit 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12831 | |
| 12832 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12833 | #define WITH_SGI_DL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12834 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12835 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12836 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12837 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 12838 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 12839 | then LDFLAGS="$LDFLAGS -L$dldir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12840 | else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5 |
| 12841 | echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;} |
| 12842 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12843 | fi |
| 12844 | DLINCLDIR=${dldir} |
| 12845 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12846 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12847 | echo "$as_me:$LINENO: result: no" >&5 |
| 12848 | echo "${ECHO_T}no" >&6 |
| 12849 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12850 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12851 | echo "$as_me:$LINENO: checking for --with-dl-dld" >&5 |
| 12852 | echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12853 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12854 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12855 | if test "${with_dl_dld+set}" = set; then |
| 12856 | withval="$with_dl_dld" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12857 | |
| 12858 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 12859 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 9ef3376 | 2002-12-02 22:23:56 +0000 | [diff] [blame] | 12860 | echo --with-dl-dld is unsupported, see README |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 12861 | exit 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12862 | |
| 12863 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12864 | #define WITH_DL_DLD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12865 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12866 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12867 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12868 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 12869 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 12870 | 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] | 12871 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 12872 | else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&5 |
| 12873 | echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&2;} |
| 12874 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12875 | fi |
| 12876 | DLINCLDIR=${dldir} |
| 12877 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12878 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12879 | echo "$as_me:$LINENO: result: no" >&5 |
| 12880 | echo "${ECHO_T}no" >&6 |
| 12881 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12882 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12883 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 12884 | # 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] | 12885 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12886 | for ac_func in dlopen |
| 12887 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12888 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12889 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12890 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12891 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12893 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12894 | cat >conftest.$ac_ext <<_ACEOF |
| 12895 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12896 | /* confdefs.h. */ |
| 12897 | _ACEOF |
| 12898 | cat confdefs.h >>conftest.$ac_ext |
| 12899 | cat >>conftest.$ac_ext <<_ACEOF |
| 12900 | /* end confdefs.h. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12901 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12902 | which can conflict with char $ac_func (); below. |
| 12903 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 12904 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 12905 | including <limits.h> includes <sys/time.h> and causes problems |
| 12906 | checking for functions defined therein. */ |
| 12907 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12908 | # include <limits.h> |
| 12909 | #else |
| 12910 | # include <assert.h> |
| 12911 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12912 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12913 | #ifdef __cplusplus |
| 12914 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12915 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12916 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12917 | /* 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] | 12918 | builtin and then its argument prototype would still apply. */ |
| 12919 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12920 | /* The GNU C library defines this for functions which it implements |
| 12921 | to always fail with ENOSYS. Some functions are actually named |
| 12922 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12923 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12924 | choke me |
| 12925 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12926 | char (*f) () = $ac_func; |
| 12927 | #endif |
| 12928 | #ifdef __cplusplus |
| 12929 | } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12930 | #endif |
| 12931 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12932 | int |
| 12933 | main () |
| 12934 | { |
| 12935 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12936 | ; |
| 12937 | return 0; |
| 12938 | } |
| 12939 | _ACEOF |
| 12940 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12942 | (eval $ac_link) 2>&5 |
| 12943 | ac_status=$? |
| 12944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12945 | (exit $ac_status); } && |
| 12946 | { ac_try='test -s conftest$ac_exeext' |
| 12947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12948 | (eval $ac_try) 2>&5 |
| 12949 | ac_status=$? |
| 12950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12951 | (exit $ac_status); }; }; then |
| 12952 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12953 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12954 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12957 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12958 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12959 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12960 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12961 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12962 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12963 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12964 | cat >>confdefs.h <<_ACEOF |
| 12965 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12966 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12967 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12968 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12969 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12970 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12971 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12972 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 12973 | # loading of modules. |
| 12974 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12975 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 12976 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12977 | if test -z "$DYNLOADFILE" |
| 12978 | then |
| 12979 | case $ac_sys_system/$ac_sys_release in |
| 12980 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 12981 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 12982 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12983 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12984 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12985 | *) |
| 12986 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 12987 | # out any dynamic loading |
| 12988 | if test "$ac_cv_func_dlopen" = yes |
| 12989 | then DYNLOADFILE="dynload_shlib.o" |
| 12990 | else DYNLOADFILE="dynload_stub.o" |
| 12991 | fi |
| 12992 | ;; |
| 12993 | esac |
| 12994 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12995 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 12996 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12997 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 12998 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12999 | |
| 13000 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13001 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13002 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13003 | |
| 13004 | fi |
| 13005 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13006 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 13007 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13008 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13009 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 13010 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13011 | if test -z "$MACHDEP_OBJS" |
| 13012 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13013 | MACHDEP_OBJS=$extra_machdep_objs |
| 13014 | else |
| 13015 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13016 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13017 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 13018 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13019 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13020 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13021 | |
| 13022 | |
| 13023 | |
| 13024 | |
| 13025 | |
| 13026 | |
| 13027 | |
| 13028 | |
| 13029 | |
| 13030 | |
| 13031 | |
| 13032 | |
| 13033 | |
| 13034 | |
| 13035 | |
| 13036 | |
| 13037 | |
| 13038 | |
| 13039 | |
| 13040 | |
| 13041 | |
| 13042 | |
| 13043 | |
| 13044 | |
| 13045 | |
| 13046 | |
| 13047 | |
| 13048 | |
| 13049 | |
| 13050 | |
| 13051 | |
| 13052 | |
| 13053 | |
| 13054 | |
| 13055 | |
| 13056 | |
| 13057 | |
| 13058 | |
| 13059 | |
| 13060 | |
| 13061 | |
| 13062 | |
| 13063 | |
| 13064 | |
| 13065 | |
| 13066 | |
| 13067 | |
| 13068 | |
| 13069 | |
| 13070 | |
| 13071 | |
| 13072 | |
| 13073 | |
| 13074 | |
| 13075 | |
| 13076 | |
| 13077 | |
| 13078 | |
| 13079 | |
| 13080 | |
| 13081 | |
| 13082 | |
| 13083 | |
| 13084 | |
| 13085 | |
| 13086 | |
| 13087 | |
| 13088 | |
| 13089 | |
| 13090 | |
| 13091 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13092 | for ac_func in alarm chown clock confstr ctermid execv \ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13093 | fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 13094 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
| 13095 | getpriority getpwent getwd \ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13096 | kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 13097 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 13098 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13099 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 13100 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13101 | sigaction siginterrupt sigrelse strftime strptime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 13102 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 13103 | truncate uname unsetenv utimes waitpid wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13104 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13105 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13106 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13107 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13108 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13110 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13111 | cat >conftest.$ac_ext <<_ACEOF |
| 13112 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13113 | /* confdefs.h. */ |
| 13114 | _ACEOF |
| 13115 | cat confdefs.h >>conftest.$ac_ext |
| 13116 | cat >>conftest.$ac_ext <<_ACEOF |
| 13117 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13118 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13119 | which can conflict with char $ac_func (); below. |
| 13120 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13121 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13122 | including <limits.h> includes <sys/time.h> and causes problems |
| 13123 | checking for functions defined therein. */ |
| 13124 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13125 | # include <limits.h> |
| 13126 | #else |
| 13127 | # include <assert.h> |
| 13128 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13129 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13130 | #ifdef __cplusplus |
| 13131 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13132 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13133 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13134 | /* 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] | 13135 | builtin and then its argument prototype would still apply. */ |
| 13136 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13137 | /* The GNU C library defines this for functions which it implements |
| 13138 | to always fail with ENOSYS. Some functions are actually named |
| 13139 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13140 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13141 | choke me |
| 13142 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13143 | char (*f) () = $ac_func; |
| 13144 | #endif |
| 13145 | #ifdef __cplusplus |
| 13146 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13147 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13148 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13149 | int |
| 13150 | main () |
| 13151 | { |
| 13152 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13153 | ; |
| 13154 | return 0; |
| 13155 | } |
| 13156 | _ACEOF |
| 13157 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13158 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13159 | (eval $ac_link) 2>&5 |
| 13160 | ac_status=$? |
| 13161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13162 | (exit $ac_status); } && |
| 13163 | { ac_try='test -s conftest$ac_exeext' |
| 13164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13165 | (eval $ac_try) 2>&5 |
| 13166 | ac_status=$? |
| 13167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13168 | (exit $ac_status); }; }; then |
| 13169 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13170 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13171 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13172 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13173 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13174 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13175 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13176 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13177 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13178 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13179 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13180 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13181 | cat >>confdefs.h <<_ACEOF |
| 13182 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13183 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13184 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13185 | fi |
| 13186 | done |
| 13187 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13188 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13189 | # For some functions, having a definition is not sufficient, since |
| 13190 | # we want to take their address. |
| 13191 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 13192 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 13193 | cat >conftest.$ac_ext <<_ACEOF |
| 13194 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13195 | /* confdefs.h. */ |
| 13196 | _ACEOF |
| 13197 | cat confdefs.h >>conftest.$ac_ext |
| 13198 | cat >>conftest.$ac_ext <<_ACEOF |
| 13199 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13200 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13201 | int |
| 13202 | main () |
| 13203 | { |
| 13204 | void *x=chroot |
| 13205 | ; |
| 13206 | return 0; |
| 13207 | } |
| 13208 | _ACEOF |
| 13209 | rm -f conftest.$ac_objext |
| 13210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13211 | (eval $ac_compile) 2>&5 |
| 13212 | ac_status=$? |
| 13213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13214 | (exit $ac_status); } && |
| 13215 | { ac_try='test -s conftest.$ac_objext' |
| 13216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13217 | (eval $ac_try) 2>&5 |
| 13218 | ac_status=$? |
| 13219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13220 | (exit $ac_status); }; }; then |
| 13221 | |
| 13222 | cat >>confdefs.h <<\_ACEOF |
| 13223 | #define HAVE_CHROOT 1 |
| 13224 | _ACEOF |
| 13225 | |
| 13226 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13227 | echo "${ECHO_T}yes" >&6 |
| 13228 | else |
| 13229 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13231 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13232 | echo "$as_me:$LINENO: result: no" >&5 |
| 13233 | echo "${ECHO_T}no" >&6 |
| 13234 | |
| 13235 | fi |
| 13236 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13237 | echo "$as_me:$LINENO: checking for link" >&5 |
| 13238 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 13239 | cat >conftest.$ac_ext <<_ACEOF |
| 13240 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13241 | /* confdefs.h. */ |
| 13242 | _ACEOF |
| 13243 | cat confdefs.h >>conftest.$ac_ext |
| 13244 | cat >>conftest.$ac_ext <<_ACEOF |
| 13245 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13246 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13247 | int |
| 13248 | main () |
| 13249 | { |
| 13250 | void *x=link |
| 13251 | ; |
| 13252 | return 0; |
| 13253 | } |
| 13254 | _ACEOF |
| 13255 | rm -f conftest.$ac_objext |
| 13256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13257 | (eval $ac_compile) 2>&5 |
| 13258 | ac_status=$? |
| 13259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13260 | (exit $ac_status); } && |
| 13261 | { ac_try='test -s conftest.$ac_objext' |
| 13262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13263 | (eval $ac_try) 2>&5 |
| 13264 | ac_status=$? |
| 13265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13266 | (exit $ac_status); }; }; then |
| 13267 | |
| 13268 | cat >>confdefs.h <<\_ACEOF |
| 13269 | #define HAVE_LINK 1 |
| 13270 | _ACEOF |
| 13271 | |
| 13272 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13273 | echo "${ECHO_T}yes" >&6 |
| 13274 | else |
| 13275 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13277 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13278 | echo "$as_me:$LINENO: result: no" >&5 |
| 13279 | echo "${ECHO_T}no" >&6 |
| 13280 | |
| 13281 | fi |
| 13282 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13283 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 13284 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 13285 | cat >conftest.$ac_ext <<_ACEOF |
| 13286 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13287 | /* confdefs.h. */ |
| 13288 | _ACEOF |
| 13289 | cat confdefs.h >>conftest.$ac_ext |
| 13290 | cat >>conftest.$ac_ext <<_ACEOF |
| 13291 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13292 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13293 | int |
| 13294 | main () |
| 13295 | { |
| 13296 | void *x=symlink |
| 13297 | ; |
| 13298 | return 0; |
| 13299 | } |
| 13300 | _ACEOF |
| 13301 | rm -f conftest.$ac_objext |
| 13302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13303 | (eval $ac_compile) 2>&5 |
| 13304 | ac_status=$? |
| 13305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13306 | (exit $ac_status); } && |
| 13307 | { ac_try='test -s conftest.$ac_objext' |
| 13308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13309 | (eval $ac_try) 2>&5 |
| 13310 | ac_status=$? |
| 13311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13312 | (exit $ac_status); }; }; then |
| 13313 | |
| 13314 | cat >>confdefs.h <<\_ACEOF |
| 13315 | #define HAVE_SYMLINK 1 |
| 13316 | _ACEOF |
| 13317 | |
| 13318 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13319 | echo "${ECHO_T}yes" >&6 |
| 13320 | else |
| 13321 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13323 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13324 | echo "$as_me:$LINENO: result: no" >&5 |
| 13325 | echo "${ECHO_T}no" >&6 |
| 13326 | |
| 13327 | fi |
| 13328 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13329 | echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 13330 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6 |
| 13331 | cat >conftest.$ac_ext <<_ACEOF |
| 13332 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13333 | /* confdefs.h. */ |
| 13334 | _ACEOF |
| 13335 | cat confdefs.h >>conftest.$ac_ext |
| 13336 | cat >>conftest.$ac_ext <<_ACEOF |
| 13337 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13338 | #include <unistd.h> |
| 13339 | int |
| 13340 | main () |
| 13341 | { |
| 13342 | void *x=fchdir |
| 13343 | ; |
| 13344 | return 0; |
| 13345 | } |
| 13346 | _ACEOF |
| 13347 | rm -f conftest.$ac_objext |
| 13348 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13349 | (eval $ac_compile) 2>&5 |
| 13350 | ac_status=$? |
| 13351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13352 | (exit $ac_status); } && |
| 13353 | { ac_try='test -s conftest.$ac_objext' |
| 13354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13355 | (eval $ac_try) 2>&5 |
| 13356 | ac_status=$? |
| 13357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13358 | (exit $ac_status); }; }; then |
| 13359 | |
| 13360 | cat >>confdefs.h <<\_ACEOF |
| 13361 | #define HAVE_FCHDIR 1 |
| 13362 | _ACEOF |
| 13363 | |
| 13364 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13365 | echo "${ECHO_T}yes" >&6 |
| 13366 | else |
| 13367 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13368 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13369 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13370 | echo "$as_me:$LINENO: result: no" >&5 |
| 13371 | echo "${ECHO_T}no" >&6 |
| 13372 | |
| 13373 | fi |
| 13374 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13375 | echo "$as_me:$LINENO: checking for fsync" >&5 |
| 13376 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6 |
| 13377 | cat >conftest.$ac_ext <<_ACEOF |
| 13378 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13379 | /* confdefs.h. */ |
| 13380 | _ACEOF |
| 13381 | cat confdefs.h >>conftest.$ac_ext |
| 13382 | cat >>conftest.$ac_ext <<_ACEOF |
| 13383 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13384 | #include <unistd.h> |
| 13385 | int |
| 13386 | main () |
| 13387 | { |
| 13388 | void *x=fsync |
| 13389 | ; |
| 13390 | return 0; |
| 13391 | } |
| 13392 | _ACEOF |
| 13393 | rm -f conftest.$ac_objext |
| 13394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13395 | (eval $ac_compile) 2>&5 |
| 13396 | ac_status=$? |
| 13397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13398 | (exit $ac_status); } && |
| 13399 | { ac_try='test -s conftest.$ac_objext' |
| 13400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13401 | (eval $ac_try) 2>&5 |
| 13402 | ac_status=$? |
| 13403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13404 | (exit $ac_status); }; }; then |
| 13405 | |
| 13406 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13407 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13408 | _ACEOF |
| 13409 | |
| 13410 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13411 | echo "${ECHO_T}yes" >&6 |
| 13412 | else |
| 13413 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13415 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13416 | echo "$as_me:$LINENO: result: no" >&5 |
| 13417 | echo "${ECHO_T}no" >&6 |
| 13418 | |
| 13419 | fi |
| 13420 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13421 | echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 13422 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6 |
| 13423 | cat >conftest.$ac_ext <<_ACEOF |
| 13424 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13425 | /* confdefs.h. */ |
| 13426 | _ACEOF |
| 13427 | cat confdefs.h >>conftest.$ac_ext |
| 13428 | cat >>conftest.$ac_ext <<_ACEOF |
| 13429 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13430 | #include <unistd.h> |
| 13431 | int |
| 13432 | main () |
| 13433 | { |
| 13434 | void *x=fdatasync |
| 13435 | ; |
| 13436 | return 0; |
| 13437 | } |
| 13438 | _ACEOF |
| 13439 | rm -f conftest.$ac_objext |
| 13440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13441 | (eval $ac_compile) 2>&5 |
| 13442 | ac_status=$? |
| 13443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13444 | (exit $ac_status); } && |
| 13445 | { ac_try='test -s conftest.$ac_objext' |
| 13446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13447 | (eval $ac_try) 2>&5 |
| 13448 | ac_status=$? |
| 13449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13450 | (exit $ac_status); }; }; then |
| 13451 | |
| 13452 | cat >>confdefs.h <<\_ACEOF |
| 13453 | #define HAVE_FDATASYNC 1 |
| 13454 | _ACEOF |
| 13455 | |
| 13456 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13457 | echo "${ECHO_T}yes" >&6 |
| 13458 | else |
| 13459 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13461 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13462 | echo "$as_me:$LINENO: result: no" >&5 |
| 13463 | echo "${ECHO_T}no" >&6 |
| 13464 | |
| 13465 | fi |
| 13466 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13467 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13468 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 13469 | # functions ctermid_r, setgroups in the library, but no prototype |
| 13470 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 13471 | # address to avoid compiler warnings and potential miscompilations |
| 13472 | # because of the missing prototypes. |
| 13473 | |
| 13474 | echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 13475 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6 |
| 13476 | cat >conftest.$ac_ext <<_ACEOF |
| 13477 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13478 | /* confdefs.h. */ |
| 13479 | _ACEOF |
| 13480 | cat confdefs.h >>conftest.$ac_ext |
| 13481 | cat >>conftest.$ac_ext <<_ACEOF |
| 13482 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13483 | |
| 13484 | #include "confdefs.h" |
| 13485 | #include <stdio.h> |
| 13486 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13487 | int |
| 13488 | main () |
| 13489 | { |
| 13490 | void* p = ctermid_r |
| 13491 | ; |
| 13492 | return 0; |
| 13493 | } |
| 13494 | _ACEOF |
| 13495 | rm -f conftest.$ac_objext |
| 13496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13497 | (eval $ac_compile) 2>&5 |
| 13498 | ac_status=$? |
| 13499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13500 | (exit $ac_status); } && |
| 13501 | { ac_try='test -s conftest.$ac_objext' |
| 13502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13503 | (eval $ac_try) 2>&5 |
| 13504 | ac_status=$? |
| 13505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13506 | (exit $ac_status); }; }; then |
| 13507 | |
| 13508 | cat >>confdefs.h <<\_ACEOF |
| 13509 | #define HAVE_CTERMID_R 1 |
| 13510 | _ACEOF |
| 13511 | |
| 13512 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13513 | echo "${ECHO_T}yes" >&6 |
| 13514 | else |
| 13515 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13516 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13517 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13518 | echo "$as_me:$LINENO: result: no" >&5 |
| 13519 | echo "${ECHO_T}no" >&6 |
| 13520 | |
| 13521 | fi |
| 13522 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13523 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13524 | echo "$as_me:$LINENO: checking for flock" >&5 |
| 13525 | echo $ECHO_N "checking for flock... $ECHO_C" >&6 |
| 13526 | cat >conftest.$ac_ext <<_ACEOF |
| 13527 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13528 | /* confdefs.h. */ |
| 13529 | _ACEOF |
| 13530 | cat confdefs.h >>conftest.$ac_ext |
| 13531 | cat >>conftest.$ac_ext <<_ACEOF |
| 13532 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13533 | |
| 13534 | #include "confdefs.h" |
| 13535 | #include <sys/file.h> |
| 13536 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13537 | int |
| 13538 | main () |
| 13539 | { |
| 13540 | void* p = flock |
| 13541 | ; |
| 13542 | return 0; |
| 13543 | } |
| 13544 | _ACEOF |
| 13545 | rm -f conftest.$ac_objext |
| 13546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13547 | (eval $ac_compile) 2>&5 |
| 13548 | ac_status=$? |
| 13549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13550 | (exit $ac_status); } && |
| 13551 | { ac_try='test -s conftest.$ac_objext' |
| 13552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13553 | (eval $ac_try) 2>&5 |
| 13554 | ac_status=$? |
| 13555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13556 | (exit $ac_status); }; }; then |
| 13557 | |
| 13558 | cat >>confdefs.h <<\_ACEOF |
| 13559 | #define HAVE_FLOCK 1 |
| 13560 | _ACEOF |
| 13561 | |
| 13562 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13563 | echo "${ECHO_T}yes" >&6 |
| 13564 | else |
| 13565 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13567 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13568 | echo "$as_me:$LINENO: result: no" >&5 |
| 13569 | echo "${ECHO_T}no" >&6 |
| 13570 | |
| 13571 | fi |
| 13572 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13573 | |
| 13574 | echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 13575 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 |
| 13576 | cat >conftest.$ac_ext <<_ACEOF |
| 13577 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13578 | /* confdefs.h. */ |
| 13579 | _ACEOF |
| 13580 | cat confdefs.h >>conftest.$ac_ext |
| 13581 | cat >>conftest.$ac_ext <<_ACEOF |
| 13582 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13583 | |
| 13584 | #include "confdefs.h" |
| 13585 | #include <unistd.h> |
| 13586 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13587 | int |
| 13588 | main () |
| 13589 | { |
| 13590 | void* p = getpagesize |
| 13591 | ; |
| 13592 | return 0; |
| 13593 | } |
| 13594 | _ACEOF |
| 13595 | rm -f conftest.$ac_objext |
| 13596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13597 | (eval $ac_compile) 2>&5 |
| 13598 | ac_status=$? |
| 13599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13600 | (exit $ac_status); } && |
| 13601 | { ac_try='test -s conftest.$ac_objext' |
| 13602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13603 | (eval $ac_try) 2>&5 |
| 13604 | ac_status=$? |
| 13605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13606 | (exit $ac_status); }; }; then |
| 13607 | |
| 13608 | cat >>confdefs.h <<\_ACEOF |
| 13609 | #define HAVE_GETPAGESIZE 1 |
| 13610 | _ACEOF |
| 13611 | |
| 13612 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13613 | echo "${ECHO_T}yes" >&6 |
| 13614 | else |
| 13615 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13617 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13618 | echo "$as_me:$LINENO: result: no" >&5 |
| 13619 | echo "${ECHO_T}no" >&6 |
| 13620 | |
| 13621 | fi |
| 13622 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13623 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13624 | for ac_prog in true |
| 13625 | do |
| 13626 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 13627 | set dummy $ac_prog; ac_word=$2 |
| 13628 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13629 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 13630 | if test "${ac_cv_prog_TRUE+set}" = set; then |
| 13631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13632 | else |
| 13633 | if test -n "$TRUE"; then |
| 13634 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 13635 | else |
| 13636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13637 | for as_dir in $PATH |
| 13638 | do |
| 13639 | IFS=$as_save_IFS |
| 13640 | test -z "$as_dir" && as_dir=. |
| 13641 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13642 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13643 | ac_cv_prog_TRUE="$ac_prog" |
| 13644 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13645 | break 2 |
| 13646 | fi |
| 13647 | done |
| 13648 | done |
| 13649 | |
| 13650 | fi |
| 13651 | fi |
| 13652 | TRUE=$ac_cv_prog_TRUE |
| 13653 | if test -n "$TRUE"; then |
| 13654 | echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 13655 | echo "${ECHO_T}$TRUE" >&6 |
| 13656 | else |
| 13657 | echo "$as_me:$LINENO: result: no" >&5 |
| 13658 | echo "${ECHO_T}no" >&6 |
| 13659 | fi |
| 13660 | |
| 13661 | test -n "$TRUE" && break |
| 13662 | done |
| 13663 | test -n "$TRUE" || TRUE="/bin/true" |
| 13664 | |
| 13665 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13666 | echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 13667 | echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6 |
| 13668 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
| 13669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13670 | else |
| 13671 | ac_check_lib_save_LIBS=$LIBS |
| 13672 | LIBS="-lc $LIBS" |
| 13673 | cat >conftest.$ac_ext <<_ACEOF |
| 13674 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13675 | /* confdefs.h. */ |
| 13676 | _ACEOF |
| 13677 | cat confdefs.h >>conftest.$ac_ext |
| 13678 | cat >>conftest.$ac_ext <<_ACEOF |
| 13679 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13680 | |
| 13681 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13682 | #ifdef __cplusplus |
| 13683 | extern "C" |
| 13684 | #endif |
| 13685 | /* We use char because int might match the return type of a gcc2 |
| 13686 | builtin and then its argument prototype would still apply. */ |
| 13687 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13688 | int |
| 13689 | main () |
| 13690 | { |
| 13691 | inet_aton (); |
| 13692 | ; |
| 13693 | return 0; |
| 13694 | } |
| 13695 | _ACEOF |
| 13696 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13697 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13698 | (eval $ac_link) 2>&5 |
| 13699 | ac_status=$? |
| 13700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13701 | (exit $ac_status); } && |
| 13702 | { ac_try='test -s conftest$ac_exeext' |
| 13703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13704 | (eval $ac_try) 2>&5 |
| 13705 | ac_status=$? |
| 13706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13707 | (exit $ac_status); }; }; then |
| 13708 | ac_cv_lib_c_inet_aton=yes |
| 13709 | else |
| 13710 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13712 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13713 | ac_cv_lib_c_inet_aton=no |
| 13714 | fi |
| 13715 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13716 | LIBS=$ac_check_lib_save_LIBS |
| 13717 | fi |
| 13718 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 13719 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6 |
| 13720 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13721 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13722 | else |
| 13723 | |
| 13724 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 13725 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 13726 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 13727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13728 | else |
| 13729 | ac_check_lib_save_LIBS=$LIBS |
| 13730 | LIBS="-lresolv $LIBS" |
| 13731 | cat >conftest.$ac_ext <<_ACEOF |
| 13732 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13733 | /* confdefs.h. */ |
| 13734 | _ACEOF |
| 13735 | cat confdefs.h >>conftest.$ac_ext |
| 13736 | cat >>conftest.$ac_ext <<_ACEOF |
| 13737 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13738 | |
| 13739 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13740 | #ifdef __cplusplus |
| 13741 | extern "C" |
| 13742 | #endif |
| 13743 | /* We use char because int might match the return type of a gcc2 |
| 13744 | builtin and then its argument prototype would still apply. */ |
| 13745 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13746 | int |
| 13747 | main () |
| 13748 | { |
| 13749 | inet_aton (); |
| 13750 | ; |
| 13751 | return 0; |
| 13752 | } |
| 13753 | _ACEOF |
| 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 |
| 13757 | ac_status=$? |
| 13758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13759 | (exit $ac_status); } && |
| 13760 | { ac_try='test -s conftest$ac_exeext' |
| 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 | ac_cv_lib_resolv_inet_aton=yes |
| 13767 | else |
| 13768 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13770 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13771 | ac_cv_lib_resolv_inet_aton=no |
| 13772 | fi |
| 13773 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13774 | LIBS=$ac_check_lib_save_LIBS |
| 13775 | fi |
| 13776 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 13777 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 13778 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
| 13779 | cat >>confdefs.h <<_ACEOF |
| 13780 | #define HAVE_LIBRESOLV 1 |
| 13781 | _ACEOF |
| 13782 | |
| 13783 | LIBS="-lresolv $LIBS" |
| 13784 | |
| 13785 | fi |
| 13786 | |
| 13787 | |
| 13788 | fi |
| 13789 | |
| 13790 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13791 | echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 13792 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 |
| 13793 | cat >conftest.$ac_ext <<_ACEOF |
| 13794 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13795 | /* confdefs.h. */ |
| 13796 | _ACEOF |
| 13797 | cat confdefs.h >>conftest.$ac_ext |
| 13798 | cat >>conftest.$ac_ext <<_ACEOF |
| 13799 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13800 | |
| 13801 | #include "confdefs.h" |
| 13802 | #include <netdb.h> |
| 13803 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13804 | int |
| 13805 | main () |
| 13806 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13807 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13808 | ; |
| 13809 | return 0; |
| 13810 | } |
| 13811 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13812 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13813 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13814 | (eval $ac_link) 2>&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13815 | ac_status=$? |
| 13816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13817 | (exit $ac_status); } && |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13818 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13820 | (eval $ac_try) 2>&5 |
| 13821 | ac_status=$? |
| 13822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13823 | (exit $ac_status); }; }; then |
| 13824 | |
| 13825 | cat >>confdefs.h <<\_ACEOF |
| 13826 | #define HAVE_HSTRERROR 1 |
| 13827 | _ACEOF |
| 13828 | |
| 13829 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13830 | echo "${ECHO_T}yes" >&6 |
| 13831 | else |
| 13832 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13834 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13835 | echo "$as_me:$LINENO: result: no" >&5 |
| 13836 | echo "${ECHO_T}no" >&6 |
| 13837 | |
| 13838 | fi |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13839 | 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] | 13840 | |
| 13841 | echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 13842 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 |
| 13843 | cat >conftest.$ac_ext <<_ACEOF |
| 13844 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13845 | /* confdefs.h. */ |
| 13846 | _ACEOF |
| 13847 | cat confdefs.h >>conftest.$ac_ext |
| 13848 | cat >>conftest.$ac_ext <<_ACEOF |
| 13849 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13850 | |
| 13851 | #include "confdefs.h" |
| 13852 | #include <sys/socket.h> |
| 13853 | #include <netinet/in.h> |
| 13854 | #include <arpa/inet.h> |
| 13855 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13856 | int |
| 13857 | main () |
| 13858 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13859 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13860 | ; |
| 13861 | return 0; |
| 13862 | } |
| 13863 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13864 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13865 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13866 | (eval $ac_link) 2>&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13867 | ac_status=$? |
| 13868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13869 | (exit $ac_status); } && |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13870 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13872 | (eval $ac_try) 2>&5 |
| 13873 | ac_status=$? |
| 13874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13875 | (exit $ac_status); }; }; then |
| 13876 | |
| 13877 | cat >>confdefs.h <<\_ACEOF |
| 13878 | #define HAVE_INET_ATON 1 |
| 13879 | _ACEOF |
| 13880 | |
| 13881 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13882 | echo "${ECHO_T}yes" >&6 |
| 13883 | else |
| 13884 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13886 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13887 | echo "$as_me:$LINENO: result: no" >&5 |
| 13888 | echo "${ECHO_T}no" >&6 |
| 13889 | |
| 13890 | fi |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13891 | 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] | 13892 | |
| 13893 | echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 13894 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 |
| 13895 | cat >conftest.$ac_ext <<_ACEOF |
| 13896 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13897 | /* confdefs.h. */ |
| 13898 | _ACEOF |
| 13899 | cat confdefs.h >>conftest.$ac_ext |
| 13900 | cat >>conftest.$ac_ext <<_ACEOF |
| 13901 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13902 | |
| 13903 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 13904 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13905 | #include <sys/socket.h> |
| 13906 | #include <netinet/in.h> |
| 13907 | #include <arpa/inet.h> |
| 13908 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13909 | int |
| 13910 | main () |
| 13911 | { |
| 13912 | void* p = inet_pton |
| 13913 | ; |
| 13914 | return 0; |
| 13915 | } |
| 13916 | _ACEOF |
| 13917 | rm -f conftest.$ac_objext |
| 13918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13919 | (eval $ac_compile) 2>&5 |
| 13920 | ac_status=$? |
| 13921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13922 | (exit $ac_status); } && |
| 13923 | { ac_try='test -s conftest.$ac_objext' |
| 13924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13925 | (eval $ac_try) 2>&5 |
| 13926 | ac_status=$? |
| 13927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13928 | (exit $ac_status); }; }; then |
| 13929 | |
| 13930 | cat >>confdefs.h <<\_ACEOF |
| 13931 | #define HAVE_INET_PTON 1 |
| 13932 | _ACEOF |
| 13933 | |
| 13934 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13935 | echo "${ECHO_T}yes" >&6 |
| 13936 | else |
| 13937 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13939 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13940 | echo "$as_me:$LINENO: result: no" >&5 |
| 13941 | echo "${ECHO_T}no" >&6 |
| 13942 | |
| 13943 | fi |
| 13944 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13945 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 13946 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13947 | echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 13948 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 |
| 13949 | cat >conftest.$ac_ext <<_ACEOF |
| 13950 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13951 | /* confdefs.h. */ |
| 13952 | _ACEOF |
| 13953 | cat confdefs.h >>conftest.$ac_ext |
| 13954 | cat >>conftest.$ac_ext <<_ACEOF |
| 13955 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13956 | |
| 13957 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 13958 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 13959 | #ifdef HAVE_GRP_H |
| 13960 | #include <grp.h> |
| 13961 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13962 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13963 | int |
| 13964 | main () |
| 13965 | { |
| 13966 | void* p = setgroups |
| 13967 | ; |
| 13968 | return 0; |
| 13969 | } |
| 13970 | _ACEOF |
| 13971 | rm -f conftest.$ac_objext |
| 13972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13973 | (eval $ac_compile) 2>&5 |
| 13974 | ac_status=$? |
| 13975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13976 | (exit $ac_status); } && |
| 13977 | { ac_try='test -s conftest.$ac_objext' |
| 13978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13979 | (eval $ac_try) 2>&5 |
| 13980 | ac_status=$? |
| 13981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13982 | (exit $ac_status); }; }; then |
| 13983 | |
| 13984 | cat >>confdefs.h <<\_ACEOF |
| 13985 | #define HAVE_SETGROUPS 1 |
| 13986 | _ACEOF |
| 13987 | |
| 13988 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13989 | echo "${ECHO_T}yes" >&6 |
| 13990 | else |
| 13991 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13993 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13994 | echo "$as_me:$LINENO: result: no" >&5 |
| 13995 | echo "${ECHO_T}no" >&6 |
| 13996 | |
| 13997 | fi |
| 13998 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13999 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14000 | # check for openpty and forkpty |
| 14001 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14002 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14003 | for ac_func in openpty |
| 14004 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14005 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14006 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14007 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14008 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14010 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14011 | cat >conftest.$ac_ext <<_ACEOF |
| 14012 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14013 | /* confdefs.h. */ |
| 14014 | _ACEOF |
| 14015 | cat confdefs.h >>conftest.$ac_ext |
| 14016 | cat >>conftest.$ac_ext <<_ACEOF |
| 14017 | /* end confdefs.h. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14018 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14019 | which can conflict with char $ac_func (); below. |
| 14020 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14021 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14022 | including <limits.h> includes <sys/time.h> and causes problems |
| 14023 | checking for functions defined therein. */ |
| 14024 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14025 | # include <limits.h> |
| 14026 | #else |
| 14027 | # include <assert.h> |
| 14028 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14029 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14030 | #ifdef __cplusplus |
| 14031 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14032 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14033 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14034 | /* 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] | 14035 | builtin and then its argument prototype would still apply. */ |
| 14036 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14037 | /* The GNU C library defines this for functions which it implements |
| 14038 | to always fail with ENOSYS. Some functions are actually named |
| 14039 | something starting with __ and the normal name is an alias. */ |
| 14040 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14041 | choke me |
| 14042 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14043 | char (*f) () = $ac_func; |
| 14044 | #endif |
| 14045 | #ifdef __cplusplus |
| 14046 | } |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14047 | #endif |
| 14048 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14049 | int |
| 14050 | main () |
| 14051 | { |
| 14052 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14053 | ; |
| 14054 | return 0; |
| 14055 | } |
| 14056 | _ACEOF |
| 14057 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14059 | (eval $ac_link) 2>&5 |
| 14060 | ac_status=$? |
| 14061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14062 | (exit $ac_status); } && |
| 14063 | { ac_try='test -s conftest$ac_exeext' |
| 14064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14065 | (eval $ac_try) 2>&5 |
| 14066 | ac_status=$? |
| 14067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14068 | (exit $ac_status); }; }; then |
| 14069 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14070 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14071 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14073 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14074 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14075 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14076 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14077 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14078 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14079 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14080 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14081 | cat >>confdefs.h <<_ACEOF |
| 14082 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14083 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14084 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14085 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14086 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 14087 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 14088 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 14089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14090 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14091 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14092 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14093 | cat >conftest.$ac_ext <<_ACEOF |
| 14094 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14095 | /* confdefs.h. */ |
| 14096 | _ACEOF |
| 14097 | cat confdefs.h >>conftest.$ac_ext |
| 14098 | cat >>conftest.$ac_ext <<_ACEOF |
| 14099 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14100 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14101 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14102 | #ifdef __cplusplus |
| 14103 | extern "C" |
| 14104 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14105 | /* 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] | 14106 | builtin and then its argument prototype would still apply. */ |
| 14107 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14108 | int |
| 14109 | main () |
| 14110 | { |
| 14111 | openpty (); |
| 14112 | ; |
| 14113 | return 0; |
| 14114 | } |
| 14115 | _ACEOF |
| 14116 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14117 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14118 | (eval $ac_link) 2>&5 |
| 14119 | ac_status=$? |
| 14120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14121 | (exit $ac_status); } && |
| 14122 | { ac_try='test -s conftest$ac_exeext' |
| 14123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14124 | (eval $ac_try) 2>&5 |
| 14125 | ac_status=$? |
| 14126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14127 | (exit $ac_status); }; }; then |
| 14128 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14129 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14130 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14132 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14133 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14134 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14135 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 14136 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14137 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14138 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 14139 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 14140 | if test $ac_cv_lib_util_openpty = yes; then |
| 14141 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14142 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14143 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14144 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14145 | fi |
| 14146 | |
| 14147 | fi |
| 14148 | done |
| 14149 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14150 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14151 | for ac_func in forkpty |
| 14152 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14153 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14154 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14155 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14156 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14158 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14159 | cat >conftest.$ac_ext <<_ACEOF |
| 14160 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14161 | /* confdefs.h. */ |
| 14162 | _ACEOF |
| 14163 | cat confdefs.h >>conftest.$ac_ext |
| 14164 | cat >>conftest.$ac_ext <<_ACEOF |
| 14165 | /* end confdefs.h. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14166 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14167 | which can conflict with char $ac_func (); below. |
| 14168 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14169 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14170 | including <limits.h> includes <sys/time.h> and causes problems |
| 14171 | checking for functions defined therein. */ |
| 14172 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14173 | # include <limits.h> |
| 14174 | #else |
| 14175 | # include <assert.h> |
| 14176 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14177 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14178 | #ifdef __cplusplus |
| 14179 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14180 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14181 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14182 | /* 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] | 14183 | builtin and then its argument prototype would still apply. */ |
| 14184 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14185 | /* The GNU C library defines this for functions which it implements |
| 14186 | to always fail with ENOSYS. Some functions are actually named |
| 14187 | something starting with __ and the normal name is an alias. */ |
| 14188 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14189 | choke me |
| 14190 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14191 | char (*f) () = $ac_func; |
| 14192 | #endif |
| 14193 | #ifdef __cplusplus |
| 14194 | } |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14195 | #endif |
| 14196 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14197 | int |
| 14198 | main () |
| 14199 | { |
| 14200 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14201 | ; |
| 14202 | return 0; |
| 14203 | } |
| 14204 | _ACEOF |
| 14205 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14206 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14207 | (eval $ac_link) 2>&5 |
| 14208 | ac_status=$? |
| 14209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14210 | (exit $ac_status); } && |
| 14211 | { ac_try='test -s conftest$ac_exeext' |
| 14212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14213 | (eval $ac_try) 2>&5 |
| 14214 | ac_status=$? |
| 14215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14216 | (exit $ac_status); }; }; then |
| 14217 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14218 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14219 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14221 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14222 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14223 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14224 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14225 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14226 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14227 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14228 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14229 | cat >>confdefs.h <<_ACEOF |
| 14230 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14231 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14232 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14233 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14234 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 14235 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 14236 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 14237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14238 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14239 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14240 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14241 | cat >conftest.$ac_ext <<_ACEOF |
| 14242 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14243 | /* confdefs.h. */ |
| 14244 | _ACEOF |
| 14245 | cat confdefs.h >>conftest.$ac_ext |
| 14246 | cat >>conftest.$ac_ext <<_ACEOF |
| 14247 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14248 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14249 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14250 | #ifdef __cplusplus |
| 14251 | extern "C" |
| 14252 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14253 | /* 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] | 14254 | builtin and then its argument prototype would still apply. */ |
| 14255 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14256 | int |
| 14257 | main () |
| 14258 | { |
| 14259 | forkpty (); |
| 14260 | ; |
| 14261 | return 0; |
| 14262 | } |
| 14263 | _ACEOF |
| 14264 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14266 | (eval $ac_link) 2>&5 |
| 14267 | ac_status=$? |
| 14268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14269 | (exit $ac_status); } && |
| 14270 | { ac_try='test -s conftest$ac_exeext' |
| 14271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14272 | (eval $ac_try) 2>&5 |
| 14273 | ac_status=$? |
| 14274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14275 | (exit $ac_status); }; }; then |
| 14276 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14277 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14278 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14280 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14281 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14282 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14283 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 14284 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14285 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14286 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 14287 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 14288 | if test $ac_cv_lib_util_forkpty = yes; then |
| 14289 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14290 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14291 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14292 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14293 | fi |
| 14294 | |
| 14295 | fi |
| 14296 | done |
| 14297 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14298 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14299 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14300 | |
| 14301 | |
| 14302 | |
| 14303 | |
| 14304 | |
| 14305 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14306 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 14307 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14308 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14309 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14310 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14311 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14313 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14314 | cat >conftest.$ac_ext <<_ACEOF |
| 14315 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14316 | /* confdefs.h. */ |
| 14317 | _ACEOF |
| 14318 | cat confdefs.h >>conftest.$ac_ext |
| 14319 | cat >>conftest.$ac_ext <<_ACEOF |
| 14320 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14321 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14322 | which can conflict with char $ac_func (); below. |
| 14323 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14324 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14325 | including <limits.h> includes <sys/time.h> and causes problems |
| 14326 | checking for functions defined therein. */ |
| 14327 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14328 | # include <limits.h> |
| 14329 | #else |
| 14330 | # include <assert.h> |
| 14331 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14332 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14333 | #ifdef __cplusplus |
| 14334 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14335 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14336 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14337 | /* 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] | 14338 | builtin and then its argument prototype would still apply. */ |
| 14339 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14340 | /* The GNU C library defines this for functions which it implements |
| 14341 | to always fail with ENOSYS. Some functions are actually named |
| 14342 | something starting with __ and the normal name is an alias. */ |
| 14343 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14344 | choke me |
| 14345 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14346 | char (*f) () = $ac_func; |
| 14347 | #endif |
| 14348 | #ifdef __cplusplus |
| 14349 | } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14350 | #endif |
| 14351 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14352 | int |
| 14353 | main () |
| 14354 | { |
| 14355 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14356 | ; |
| 14357 | return 0; |
| 14358 | } |
| 14359 | _ACEOF |
| 14360 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14361 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14362 | (eval $ac_link) 2>&5 |
| 14363 | ac_status=$? |
| 14364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14365 | (exit $ac_status); } && |
| 14366 | { ac_try='test -s conftest$ac_exeext' |
| 14367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14368 | (eval $ac_try) 2>&5 |
| 14369 | ac_status=$? |
| 14370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14371 | (exit $ac_status); }; }; then |
| 14372 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14373 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14374 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14375 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14376 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14377 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14378 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14379 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14380 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14381 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14382 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14383 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14384 | cat >>confdefs.h <<_ACEOF |
| 14385 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14386 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14387 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14388 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14389 | done |
| 14390 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14391 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14392 | |
| 14393 | |
| 14394 | |
| 14395 | |
| 14396 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14397 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14398 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14399 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14400 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14401 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14402 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14404 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14405 | cat >conftest.$ac_ext <<_ACEOF |
| 14406 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14407 | /* confdefs.h. */ |
| 14408 | _ACEOF |
| 14409 | cat confdefs.h >>conftest.$ac_ext |
| 14410 | cat >>conftest.$ac_ext <<_ACEOF |
| 14411 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14412 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14413 | which can conflict with char $ac_func (); below. |
| 14414 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14415 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14416 | including <limits.h> includes <sys/time.h> and causes problems |
| 14417 | checking for functions defined therein. */ |
| 14418 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14419 | # include <limits.h> |
| 14420 | #else |
| 14421 | # include <assert.h> |
| 14422 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14423 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14424 | #ifdef __cplusplus |
| 14425 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14426 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14427 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14428 | /* 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] | 14429 | builtin and then its argument prototype would still apply. */ |
| 14430 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14431 | /* The GNU C library defines this for functions which it implements |
| 14432 | to always fail with ENOSYS. Some functions are actually named |
| 14433 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14434 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14435 | choke me |
| 14436 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14437 | char (*f) () = $ac_func; |
| 14438 | #endif |
| 14439 | #ifdef __cplusplus |
| 14440 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14441 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14442 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14443 | int |
| 14444 | main () |
| 14445 | { |
| 14446 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14447 | ; |
| 14448 | return 0; |
| 14449 | } |
| 14450 | _ACEOF |
| 14451 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14452 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14453 | (eval $ac_link) 2>&5 |
| 14454 | ac_status=$? |
| 14455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14456 | (exit $ac_status); } && |
| 14457 | { ac_try='test -s conftest$ac_exeext' |
| 14458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14459 | (eval $ac_try) 2>&5 |
| 14460 | ac_status=$? |
| 14461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14462 | (exit $ac_status); }; }; then |
| 14463 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14464 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14465 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14467 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14468 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14469 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14470 | 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] | 14471 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14472 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14473 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14474 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14475 | cat >>confdefs.h <<_ACEOF |
| 14476 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14477 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14478 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14479 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14480 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14481 | fi |
| 14482 | done |
| 14483 | |
| 14484 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14485 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14486 | for ac_func in getpgrp |
| 14487 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14488 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14489 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14490 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14491 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14493 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14494 | cat >conftest.$ac_ext <<_ACEOF |
| 14495 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14496 | /* confdefs.h. */ |
| 14497 | _ACEOF |
| 14498 | cat confdefs.h >>conftest.$ac_ext |
| 14499 | cat >>conftest.$ac_ext <<_ACEOF |
| 14500 | /* end confdefs.h. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14501 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14502 | which can conflict with char $ac_func (); below. |
| 14503 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14504 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14505 | including <limits.h> includes <sys/time.h> and causes problems |
| 14506 | checking for functions defined therein. */ |
| 14507 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14508 | # include <limits.h> |
| 14509 | #else |
| 14510 | # include <assert.h> |
| 14511 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14512 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14513 | #ifdef __cplusplus |
| 14514 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14515 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14516 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14517 | /* 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] | 14518 | builtin and then its argument prototype would still apply. */ |
| 14519 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14520 | /* The GNU C library defines this for functions which it implements |
| 14521 | to always fail with ENOSYS. Some functions are actually named |
| 14522 | something starting with __ and the normal name is an alias. */ |
| 14523 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14524 | choke me |
| 14525 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14526 | char (*f) () = $ac_func; |
| 14527 | #endif |
| 14528 | #ifdef __cplusplus |
| 14529 | } |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14530 | #endif |
| 14531 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14532 | int |
| 14533 | main () |
| 14534 | { |
| 14535 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14536 | ; |
| 14537 | return 0; |
| 14538 | } |
| 14539 | _ACEOF |
| 14540 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14542 | (eval $ac_link) 2>&5 |
| 14543 | ac_status=$? |
| 14544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14545 | (exit $ac_status); } && |
| 14546 | { ac_try='test -s conftest$ac_exeext' |
| 14547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14548 | (eval $ac_try) 2>&5 |
| 14549 | ac_status=$? |
| 14550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14551 | (exit $ac_status); }; }; then |
| 14552 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14553 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14554 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14556 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14557 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14558 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14559 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14560 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14561 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14562 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14563 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14564 | cat >>confdefs.h <<_ACEOF |
| 14565 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14566 | _ACEOF |
| 14567 | cat >conftest.$ac_ext <<_ACEOF |
| 14568 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14569 | /* confdefs.h. */ |
| 14570 | _ACEOF |
| 14571 | cat confdefs.h >>conftest.$ac_ext |
| 14572 | cat >>conftest.$ac_ext <<_ACEOF |
| 14573 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14574 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14575 | int |
| 14576 | main () |
| 14577 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14578 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14579 | ; |
| 14580 | return 0; |
| 14581 | } |
| 14582 | _ACEOF |
| 14583 | rm -f conftest.$ac_objext |
| 14584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14585 | (eval $ac_compile) 2>&5 |
| 14586 | ac_status=$? |
| 14587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14588 | (exit $ac_status); } && |
| 14589 | { ac_try='test -s conftest.$ac_objext' |
| 14590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14591 | (eval $ac_try) 2>&5 |
| 14592 | ac_status=$? |
| 14593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14594 | (exit $ac_status); }; }; then |
| 14595 | |
| 14596 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14597 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14598 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14599 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14600 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14601 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14602 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14603 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14604 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14605 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14606 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14607 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14608 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14609 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14610 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14611 | |
| 14612 | for ac_func in setpgrp |
| 14613 | do |
| 14614 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14615 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14616 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14617 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14619 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14620 | cat >conftest.$ac_ext <<_ACEOF |
| 14621 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14622 | /* confdefs.h. */ |
| 14623 | _ACEOF |
| 14624 | cat confdefs.h >>conftest.$ac_ext |
| 14625 | cat >>conftest.$ac_ext <<_ACEOF |
| 14626 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14627 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14628 | which can conflict with char $ac_func (); below. |
| 14629 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14630 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14631 | including <limits.h> includes <sys/time.h> and causes problems |
| 14632 | checking for functions defined therein. */ |
| 14633 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14634 | # include <limits.h> |
| 14635 | #else |
| 14636 | # include <assert.h> |
| 14637 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14638 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14639 | #ifdef __cplusplus |
| 14640 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14641 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14642 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14643 | /* We use char because int might match the return type of a gcc2 |
| 14644 | builtin and then its argument prototype would still apply. */ |
| 14645 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14646 | /* The GNU C library defines this for functions which it implements |
| 14647 | to always fail with ENOSYS. Some functions are actually named |
| 14648 | something starting with __ and the normal name is an alias. */ |
| 14649 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14650 | choke me |
| 14651 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14652 | char (*f) () = $ac_func; |
| 14653 | #endif |
| 14654 | #ifdef __cplusplus |
| 14655 | } |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14656 | #endif |
| 14657 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14658 | int |
| 14659 | main () |
| 14660 | { |
| 14661 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14662 | ; |
| 14663 | return 0; |
| 14664 | } |
| 14665 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14666 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14667 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14668 | (eval $ac_link) 2>&5 |
| 14669 | ac_status=$? |
| 14670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14671 | (exit $ac_status); } && |
| 14672 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14674 | (eval $ac_try) 2>&5 |
| 14675 | ac_status=$? |
| 14676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14677 | (exit $ac_status); }; }; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14678 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14679 | else |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14680 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14682 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14683 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14684 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14685 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14686 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14687 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14688 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14689 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14690 | cat >>confdefs.h <<_ACEOF |
| 14691 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14692 | _ACEOF |
| 14693 | cat >conftest.$ac_ext <<_ACEOF |
| 14694 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14695 | /* confdefs.h. */ |
| 14696 | _ACEOF |
| 14697 | cat confdefs.h >>conftest.$ac_ext |
| 14698 | cat >>conftest.$ac_ext <<_ACEOF |
| 14699 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14700 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14701 | int |
| 14702 | main () |
| 14703 | { |
| 14704 | setpgrp(0,0); |
| 14705 | ; |
| 14706 | return 0; |
| 14707 | } |
| 14708 | _ACEOF |
| 14709 | rm -f conftest.$ac_objext |
| 14710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14711 | (eval $ac_compile) 2>&5 |
| 14712 | ac_status=$? |
| 14713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14714 | (exit $ac_status); } && |
| 14715 | { ac_try='test -s conftest.$ac_objext' |
| 14716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14717 | (eval $ac_try) 2>&5 |
| 14718 | ac_status=$? |
| 14719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14720 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14721 | |
| 14722 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14723 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14724 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 14725 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14726 | |
| 14727 | else |
| 14728 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14730 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 14731 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14732 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14733 | |
| 14734 | fi |
| 14735 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 14736 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14737 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14738 | for ac_func in gettimeofday |
| 14739 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14740 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14741 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14742 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14743 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14745 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14746 | cat >conftest.$ac_ext <<_ACEOF |
| 14747 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14748 | /* confdefs.h. */ |
| 14749 | _ACEOF |
| 14750 | cat confdefs.h >>conftest.$ac_ext |
| 14751 | cat >>conftest.$ac_ext <<_ACEOF |
| 14752 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14753 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14754 | which can conflict with char $ac_func (); below. |
| 14755 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14756 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14757 | including <limits.h> includes <sys/time.h> and causes problems |
| 14758 | checking for functions defined therein. */ |
| 14759 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14760 | # include <limits.h> |
| 14761 | #else |
| 14762 | # include <assert.h> |
| 14763 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14764 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14765 | #ifdef __cplusplus |
| 14766 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14767 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14768 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14769 | /* 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] | 14770 | builtin and then its argument prototype would still apply. */ |
| 14771 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14772 | /* The GNU C library defines this for functions which it implements |
| 14773 | to always fail with ENOSYS. Some functions are actually named |
| 14774 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14775 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14776 | choke me |
| 14777 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14778 | char (*f) () = $ac_func; |
| 14779 | #endif |
| 14780 | #ifdef __cplusplus |
| 14781 | } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14782 | #endif |
| 14783 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14784 | int |
| 14785 | main () |
| 14786 | { |
| 14787 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14788 | ; |
| 14789 | return 0; |
| 14790 | } |
| 14791 | _ACEOF |
| 14792 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14793 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14794 | (eval $ac_link) 2>&5 |
| 14795 | ac_status=$? |
| 14796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14797 | (exit $ac_status); } && |
| 14798 | { ac_try='test -s conftest$ac_exeext' |
| 14799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14800 | (eval $ac_try) 2>&5 |
| 14801 | ac_status=$? |
| 14802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14803 | (exit $ac_status); }; }; then |
| 14804 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14805 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14806 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14808 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14809 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14810 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14811 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14812 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14813 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14814 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14815 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14816 | cat >>confdefs.h <<_ACEOF |
| 14817 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14818 | _ACEOF |
| 14819 | cat >conftest.$ac_ext <<_ACEOF |
| 14820 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14821 | /* confdefs.h. */ |
| 14822 | _ACEOF |
| 14823 | cat confdefs.h >>conftest.$ac_ext |
| 14824 | cat >>conftest.$ac_ext <<_ACEOF |
| 14825 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14826 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14827 | int |
| 14828 | main () |
| 14829 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14830 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14831 | ; |
| 14832 | return 0; |
| 14833 | } |
| 14834 | _ACEOF |
| 14835 | rm -f conftest.$ac_objext |
| 14836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14837 | (eval $ac_compile) 2>&5 |
| 14838 | ac_status=$? |
| 14839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14840 | (exit $ac_status); } && |
| 14841 | { ac_try='test -s conftest.$ac_objext' |
| 14842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14843 | (eval $ac_try) 2>&5 |
| 14844 | ac_status=$? |
| 14845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14846 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14847 | : |
| 14848 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14849 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14850 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14851 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14852 | |
| 14853 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14854 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14855 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14856 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14857 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14858 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14859 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14860 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14861 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14862 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14863 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14864 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14865 | echo "$as_me:$LINENO: checking for major" >&5 |
| 14866 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 14867 | cat >conftest.$ac_ext <<_ACEOF |
| 14868 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14869 | /* confdefs.h. */ |
| 14870 | _ACEOF |
| 14871 | cat confdefs.h >>conftest.$ac_ext |
| 14872 | cat >>conftest.$ac_ext <<_ACEOF |
| 14873 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14874 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 14875 | #if defined(MAJOR_IN_MKDEV) |
| 14876 | #include <sys/mkdev.h> |
| 14877 | #elif defined(MAJOR_IN_SYSMACROS) |
| 14878 | #include <sys/sysmacros.h> |
| 14879 | #else |
| 14880 | #include <sys/types.h> |
| 14881 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14882 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14883 | int |
| 14884 | main () |
| 14885 | { |
| 14886 | |
| 14887 | makedev(major(0),minor(0)); |
| 14888 | |
| 14889 | ; |
| 14890 | return 0; |
| 14891 | } |
| 14892 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 14893 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14894 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14895 | (eval $ac_link) 2>&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14896 | ac_status=$? |
| 14897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14898 | (exit $ac_status); } && |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 14899 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14901 | (eval $ac_try) 2>&5 |
| 14902 | ac_status=$? |
| 14903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14904 | (exit $ac_status); }; }; then |
| 14905 | |
| 14906 | |
| 14907 | cat >>confdefs.h <<\_ACEOF |
| 14908 | #define HAVE_DEVICE_MACROS 1 |
| 14909 | _ACEOF |
| 14910 | |
| 14911 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14912 | echo "${ECHO_T}yes" >&6 |
| 14913 | |
| 14914 | else |
| 14915 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14917 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14918 | |
| 14919 | echo "$as_me:$LINENO: result: no" >&5 |
| 14920 | echo "${ECHO_T}no" >&6 |
| 14921 | |
| 14922 | fi |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 14923 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14924 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14925 | # 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] | 14926 | # for [no]getaddrinfo in netdb.h. |
| 14927 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 14928 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 14929 | cat >conftest.$ac_ext <<_ACEOF |
| 14930 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14931 | /* confdefs.h. */ |
| 14932 | _ACEOF |
| 14933 | cat confdefs.h >>conftest.$ac_ext |
| 14934 | cat >>conftest.$ac_ext <<_ACEOF |
| 14935 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14936 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 14937 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14938 | #include <sys/socket.h> |
| 14939 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 14940 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14942 | int |
| 14943 | main () |
| 14944 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14945 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14946 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14947 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14948 | ; |
| 14949 | return 0; |
| 14950 | } |
| 14951 | _ACEOF |
| 14952 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14953 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14954 | (eval $ac_link) 2>&5 |
| 14955 | ac_status=$? |
| 14956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14957 | (exit $ac_status); } && |
| 14958 | { ac_try='test -s conftest$ac_exeext' |
| 14959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14960 | (eval $ac_try) 2>&5 |
| 14961 | ac_status=$? |
| 14962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14963 | (exit $ac_status); }; }; then |
| 14964 | |
| 14965 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14966 | echo "${ECHO_T}yes" >&6 |
| 14967 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 14968 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14969 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14970 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 14971 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14972 | buggygetaddrinfo=yes |
| 14973 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14974 | cat >conftest.$ac_ext <<_ACEOF |
| 14975 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14976 | /* confdefs.h. */ |
| 14977 | _ACEOF |
| 14978 | cat confdefs.h >>conftest.$ac_ext |
| 14979 | cat >>conftest.$ac_ext <<_ACEOF |
| 14980 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14981 | |
| 14982 | #include <sys/types.h> |
| 14983 | #include <netdb.h> |
| 14984 | #include <string.h> |
| 14985 | #include <sys/socket.h> |
| 14986 | #include <netinet/in.h> |
| 14987 | |
| 14988 | main() |
| 14989 | { |
| 14990 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 14991 | struct addrinfo hints, *ai, *aitop; |
| 14992 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 14993 | |
| 14994 | for (passive = 0; passive <= 1; passive++) { |
| 14995 | memset(&hints, 0, sizeof(hints)); |
| 14996 | hints.ai_family = AF_UNSPEC; |
| 14997 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 14998 | hints.ai_socktype = SOCK_STREAM; |
| 14999 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 15000 | (void)gai_strerror(gaierr); |
| 15001 | goto bad; |
| 15002 | } |
| 15003 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 15004 | if (ai->ai_addr == NULL || |
| 15005 | ai->ai_addrlen == 0 || |
| 15006 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 15007 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 15008 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 15009 | goto bad; |
| 15010 | } |
| 15011 | switch (ai->ai_family) { |
| 15012 | case AF_INET: |
| 15013 | if (strcmp(strport, "54321") != 0) { |
| 15014 | goto bad; |
| 15015 | } |
| 15016 | if (passive) { |
| 15017 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 15018 | goto bad; |
| 15019 | } |
| 15020 | } else { |
| 15021 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 15022 | goto bad; |
| 15023 | } |
| 15024 | } |
| 15025 | inet4++; |
| 15026 | break; |
| 15027 | case AF_INET6: |
| 15028 | if (strcmp(strport, "54321") != 0) { |
| 15029 | goto bad; |
| 15030 | } |
| 15031 | if (passive) { |
| 15032 | if (strcmp(straddr, "::") != 0) { |
| 15033 | goto bad; |
| 15034 | } |
| 15035 | } else { |
| 15036 | if (strcmp(straddr, "::1") != 0) { |
| 15037 | goto bad; |
| 15038 | } |
| 15039 | } |
| 15040 | inet6++; |
| 15041 | break; |
| 15042 | case AF_UNSPEC: |
| 15043 | goto bad; |
| 15044 | break; |
| 15045 | default: |
| 15046 | /* another family support? */ |
| 15047 | break; |
| 15048 | } |
| 15049 | } |
| 15050 | } |
| 15051 | |
| 15052 | if (!(inet4 == 0 || inet4 == 2)) |
| 15053 | goto bad; |
| 15054 | if (!(inet6 == 0 || inet6 == 2)) |
| 15055 | goto bad; |
| 15056 | |
| 15057 | if (aitop) |
| 15058 | freeaddrinfo(aitop); |
| 15059 | exit(0); |
| 15060 | |
| 15061 | bad: |
| 15062 | if (aitop) |
| 15063 | freeaddrinfo(aitop); |
| 15064 | exit(1); |
| 15065 | } |
| 15066 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15067 | _ACEOF |
| 15068 | rm -f conftest$ac_exeext |
| 15069 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15070 | (eval $ac_link) 2>&5 |
| 15071 | ac_status=$? |
| 15072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15073 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15075 | (eval $ac_try) 2>&5 |
| 15076 | ac_status=$? |
| 15077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15078 | (exit $ac_status); }; }; then |
| 15079 | echo "$as_me:$LINENO: result: good" >&5 |
| 15080 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15081 | buggygetaddrinfo=no |
| 15082 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15083 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15084 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15086 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15087 | ( exit $ac_status ) |
| 15088 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 15089 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15090 | buggygetaddrinfo=yes |
| 15091 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15092 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15093 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15094 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15095 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15097 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15098 | |
| 15099 | echo "$as_me:$LINENO: result: no" >&5 |
| 15100 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15101 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15102 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15103 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15104 | 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] | 15105 | |
| 15106 | if test "$buggygetaddrinfo" = "yes"; then |
| 15107 | if test "$ipv6" = "yes"; then |
| 15108 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 15109 | echo ' or you can specify "--disable-ipv6"'. |
| 15110 | exit 1 |
| 15111 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15112 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15113 | |
| 15114 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15115 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15116 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15117 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15118 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15119 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 15120 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15121 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15122 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15123 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15124 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15125 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15127 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15128 | cat >conftest.$ac_ext <<_ACEOF |
| 15129 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15130 | /* confdefs.h. */ |
| 15131 | _ACEOF |
| 15132 | cat confdefs.h >>conftest.$ac_ext |
| 15133 | cat >>conftest.$ac_ext <<_ACEOF |
| 15134 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15135 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15136 | which can conflict with char $ac_func (); below. |
| 15137 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15138 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15139 | including <limits.h> includes <sys/time.h> and causes problems |
| 15140 | checking for functions defined therein. */ |
| 15141 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15142 | # include <limits.h> |
| 15143 | #else |
| 15144 | # include <assert.h> |
| 15145 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15146 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15147 | #ifdef __cplusplus |
| 15148 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15149 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15150 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15151 | /* 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] | 15152 | builtin and then its argument prototype would still apply. */ |
| 15153 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15154 | /* The GNU C library defines this for functions which it implements |
| 15155 | to always fail with ENOSYS. Some functions are actually named |
| 15156 | something starting with __ and the normal name is an alias. */ |
| 15157 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15158 | choke me |
| 15159 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15160 | char (*f) () = $ac_func; |
| 15161 | #endif |
| 15162 | #ifdef __cplusplus |
| 15163 | } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15164 | #endif |
| 15165 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15166 | int |
| 15167 | main () |
| 15168 | { |
| 15169 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15170 | ; |
| 15171 | return 0; |
| 15172 | } |
| 15173 | _ACEOF |
| 15174 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15175 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15176 | (eval $ac_link) 2>&5 |
| 15177 | ac_status=$? |
| 15178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15179 | (exit $ac_status); } && |
| 15180 | { ac_try='test -s conftest$ac_exeext' |
| 15181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15182 | (eval $ac_try) 2>&5 |
| 15183 | ac_status=$? |
| 15184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15185 | (exit $ac_status); }; }; then |
| 15186 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15187 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15188 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15190 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15191 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15192 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15193 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15194 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15195 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15196 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15197 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15198 | cat >>confdefs.h <<_ACEOF |
| 15199 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15200 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15201 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15202 | fi |
| 15203 | done |
| 15204 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15205 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15206 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15207 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 15208 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 15209 | if test "${ac_cv_header_time+set}" = set; then |
| 15210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15211 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15212 | cat >conftest.$ac_ext <<_ACEOF |
| 15213 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15214 | /* confdefs.h. */ |
| 15215 | _ACEOF |
| 15216 | cat confdefs.h >>conftest.$ac_ext |
| 15217 | cat >>conftest.$ac_ext <<_ACEOF |
| 15218 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15219 | #include <sys/types.h> |
| 15220 | #include <sys/time.h> |
| 15221 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15222 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15223 | int |
| 15224 | main () |
| 15225 | { |
| 15226 | if ((struct tm *) 0) |
| 15227 | return 0; |
| 15228 | ; |
| 15229 | return 0; |
| 15230 | } |
| 15231 | _ACEOF |
| 15232 | rm -f conftest.$ac_objext |
| 15233 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15234 | (eval $ac_compile) 2>&5 |
| 15235 | ac_status=$? |
| 15236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15237 | (exit $ac_status); } && |
| 15238 | { ac_try='test -s conftest.$ac_objext' |
| 15239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15240 | (eval $ac_try) 2>&5 |
| 15241 | ac_status=$? |
| 15242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15243 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15244 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15245 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15246 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15247 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15248 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15249 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15250 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15251 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15252 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15253 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 15254 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15255 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15256 | |
| 15257 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15258 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15259 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15260 | |
| 15261 | fi |
| 15262 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15263 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 15264 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 15265 | if test "${ac_cv_struct_tm+set}" = set; then |
| 15266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15267 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15268 | cat >conftest.$ac_ext <<_ACEOF |
| 15269 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15270 | /* confdefs.h. */ |
| 15271 | _ACEOF |
| 15272 | cat confdefs.h >>conftest.$ac_ext |
| 15273 | cat >>conftest.$ac_ext <<_ACEOF |
| 15274 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15275 | #include <sys/types.h> |
| 15276 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15277 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15278 | int |
| 15279 | main () |
| 15280 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15281 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15282 | ; |
| 15283 | return 0; |
| 15284 | } |
| 15285 | _ACEOF |
| 15286 | rm -f conftest.$ac_objext |
| 15287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15288 | (eval $ac_compile) 2>&5 |
| 15289 | ac_status=$? |
| 15290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15291 | (exit $ac_status); } && |
| 15292 | { ac_try='test -s conftest.$ac_objext' |
| 15293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15294 | (eval $ac_try) 2>&5 |
| 15295 | ac_status=$? |
| 15296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15297 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15298 | ac_cv_struct_tm=time.h |
| 15299 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15300 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15302 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15303 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15304 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15305 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15306 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15307 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 15308 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15309 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15310 | |
| 15311 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15312 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15313 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15314 | |
| 15315 | fi |
| 15316 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15317 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 15318 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 15319 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 15320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15321 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15322 | cat >conftest.$ac_ext <<_ACEOF |
| 15323 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15324 | /* confdefs.h. */ |
| 15325 | _ACEOF |
| 15326 | cat confdefs.h >>conftest.$ac_ext |
| 15327 | cat >>conftest.$ac_ext <<_ACEOF |
| 15328 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15329 | #include <sys/types.h> |
| 15330 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15331 | |
| 15332 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15333 | int |
| 15334 | main () |
| 15335 | { |
| 15336 | static struct tm ac_aggr; |
| 15337 | if (ac_aggr.tm_zone) |
| 15338 | return 0; |
| 15339 | ; |
| 15340 | return 0; |
| 15341 | } |
| 15342 | _ACEOF |
| 15343 | rm -f conftest.$ac_objext |
| 15344 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15345 | (eval $ac_compile) 2>&5 |
| 15346 | ac_status=$? |
| 15347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15348 | (exit $ac_status); } && |
| 15349 | { ac_try='test -s conftest.$ac_objext' |
| 15350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15351 | (eval $ac_try) 2>&5 |
| 15352 | ac_status=$? |
| 15353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15354 | (exit $ac_status); }; }; then |
| 15355 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15356 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15357 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15359 | |
| 15360 | cat >conftest.$ac_ext <<_ACEOF |
| 15361 | #line $LINENO "configure" |
| 15362 | /* confdefs.h. */ |
| 15363 | _ACEOF |
| 15364 | cat confdefs.h >>conftest.$ac_ext |
| 15365 | cat >>conftest.$ac_ext <<_ACEOF |
| 15366 | /* end confdefs.h. */ |
| 15367 | #include <sys/types.h> |
| 15368 | #include <$ac_cv_struct_tm> |
| 15369 | |
| 15370 | |
| 15371 | int |
| 15372 | main () |
| 15373 | { |
| 15374 | static struct tm ac_aggr; |
| 15375 | if (sizeof ac_aggr.tm_zone) |
| 15376 | return 0; |
| 15377 | ; |
| 15378 | return 0; |
| 15379 | } |
| 15380 | _ACEOF |
| 15381 | rm -f conftest.$ac_objext |
| 15382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15383 | (eval $ac_compile) 2>&5 |
| 15384 | ac_status=$? |
| 15385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15386 | (exit $ac_status); } && |
| 15387 | { ac_try='test -s conftest.$ac_objext' |
| 15388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15389 | (eval $ac_try) 2>&5 |
| 15390 | ac_status=$? |
| 15391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15392 | (exit $ac_status); }; }; then |
| 15393 | ac_cv_member_struct_tm_tm_zone=yes |
| 15394 | else |
| 15395 | echo "$as_me: failed program was:" >&5 |
| 15396 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15397 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15398 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15399 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15400 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15401 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15402 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15403 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15404 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 15405 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 15406 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 15407 | |
| 15408 | cat >>confdefs.h <<_ACEOF |
| 15409 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 15410 | _ACEOF |
| 15411 | |
| 15412 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15413 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15414 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15415 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 15416 | |
| 15417 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15418 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15419 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15420 | |
| 15421 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15422 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 15423 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 15424 | if test "${ac_cv_var_tzname+set}" = set; then |
| 15425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15426 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15427 | cat >conftest.$ac_ext <<_ACEOF |
| 15428 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15429 | /* confdefs.h. */ |
| 15430 | _ACEOF |
| 15431 | cat confdefs.h >>conftest.$ac_ext |
| 15432 | cat >>conftest.$ac_ext <<_ACEOF |
| 15433 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15434 | #include <time.h> |
| 15435 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15436 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15437 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15438 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15439 | int |
| 15440 | main () |
| 15441 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15442 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15443 | ; |
| 15444 | return 0; |
| 15445 | } |
| 15446 | _ACEOF |
| 15447 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15448 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15449 | (eval $ac_link) 2>&5 |
| 15450 | ac_status=$? |
| 15451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15452 | (exit $ac_status); } && |
| 15453 | { ac_try='test -s conftest$ac_exeext' |
| 15454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15455 | (eval $ac_try) 2>&5 |
| 15456 | ac_status=$? |
| 15457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15458 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15459 | ac_cv_var_tzname=yes |
| 15460 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15461 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15463 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15464 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15465 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15466 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15467 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15468 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 15469 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15470 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15471 | |
| 15472 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15473 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15474 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15475 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15476 | fi |
| 15477 | fi |
| 15478 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15479 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 15480 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 15481 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 15482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15483 | else |
| 15484 | cat >conftest.$ac_ext <<_ACEOF |
| 15485 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15486 | /* confdefs.h. */ |
| 15487 | _ACEOF |
| 15488 | cat confdefs.h >>conftest.$ac_ext |
| 15489 | cat >>conftest.$ac_ext <<_ACEOF |
| 15490 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15491 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15492 | int |
| 15493 | main () |
| 15494 | { |
| 15495 | static struct stat ac_aggr; |
| 15496 | if (ac_aggr.st_rdev) |
| 15497 | return 0; |
| 15498 | ; |
| 15499 | return 0; |
| 15500 | } |
| 15501 | _ACEOF |
| 15502 | rm -f conftest.$ac_objext |
| 15503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15504 | (eval $ac_compile) 2>&5 |
| 15505 | ac_status=$? |
| 15506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15507 | (exit $ac_status); } && |
| 15508 | { ac_try='test -s conftest.$ac_objext' |
| 15509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15510 | (eval $ac_try) 2>&5 |
| 15511 | ac_status=$? |
| 15512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15513 | (exit $ac_status); }; }; then |
| 15514 | ac_cv_member_struct_stat_st_rdev=yes |
| 15515 | else |
| 15516 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15518 | |
| 15519 | cat >conftest.$ac_ext <<_ACEOF |
| 15520 | #line $LINENO "configure" |
| 15521 | /* confdefs.h. */ |
| 15522 | _ACEOF |
| 15523 | cat confdefs.h >>conftest.$ac_ext |
| 15524 | cat >>conftest.$ac_ext <<_ACEOF |
| 15525 | /* end confdefs.h. */ |
| 15526 | $ac_includes_default |
| 15527 | int |
| 15528 | main () |
| 15529 | { |
| 15530 | static struct stat ac_aggr; |
| 15531 | if (sizeof ac_aggr.st_rdev) |
| 15532 | return 0; |
| 15533 | ; |
| 15534 | return 0; |
| 15535 | } |
| 15536 | _ACEOF |
| 15537 | rm -f conftest.$ac_objext |
| 15538 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15539 | (eval $ac_compile) 2>&5 |
| 15540 | ac_status=$? |
| 15541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15542 | (exit $ac_status); } && |
| 15543 | { ac_try='test -s conftest.$ac_objext' |
| 15544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15545 | (eval $ac_try) 2>&5 |
| 15546 | ac_status=$? |
| 15547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15548 | (exit $ac_status); }; }; then |
| 15549 | ac_cv_member_struct_stat_st_rdev=yes |
| 15550 | else |
| 15551 | echo "$as_me: failed program was:" >&5 |
| 15552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15553 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15554 | ac_cv_member_struct_stat_st_rdev=no |
| 15555 | fi |
| 15556 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15557 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15558 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15559 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15560 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 15561 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 15562 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 15563 | |
| 15564 | cat >>confdefs.h <<_ACEOF |
| 15565 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 15566 | _ACEOF |
| 15567 | |
| 15568 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15569 | fi |
| 15570 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15571 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 15572 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 15573 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 15574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15575 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15576 | cat >conftest.$ac_ext <<_ACEOF |
| 15577 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15578 | /* confdefs.h. */ |
| 15579 | _ACEOF |
| 15580 | cat confdefs.h >>conftest.$ac_ext |
| 15581 | cat >>conftest.$ac_ext <<_ACEOF |
| 15582 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15583 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15584 | int |
| 15585 | main () |
| 15586 | { |
| 15587 | static struct stat ac_aggr; |
| 15588 | if (ac_aggr.st_blksize) |
| 15589 | return 0; |
| 15590 | ; |
| 15591 | return 0; |
| 15592 | } |
| 15593 | _ACEOF |
| 15594 | rm -f conftest.$ac_objext |
| 15595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15596 | (eval $ac_compile) 2>&5 |
| 15597 | ac_status=$? |
| 15598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15599 | (exit $ac_status); } && |
| 15600 | { ac_try='test -s conftest.$ac_objext' |
| 15601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15602 | (eval $ac_try) 2>&5 |
| 15603 | ac_status=$? |
| 15604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15605 | (exit $ac_status); }; }; then |
| 15606 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15607 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15608 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15610 | |
| 15611 | cat >conftest.$ac_ext <<_ACEOF |
| 15612 | #line $LINENO "configure" |
| 15613 | /* confdefs.h. */ |
| 15614 | _ACEOF |
| 15615 | cat confdefs.h >>conftest.$ac_ext |
| 15616 | cat >>conftest.$ac_ext <<_ACEOF |
| 15617 | /* end confdefs.h. */ |
| 15618 | $ac_includes_default |
| 15619 | int |
| 15620 | main () |
| 15621 | { |
| 15622 | static struct stat ac_aggr; |
| 15623 | if (sizeof ac_aggr.st_blksize) |
| 15624 | return 0; |
| 15625 | ; |
| 15626 | return 0; |
| 15627 | } |
| 15628 | _ACEOF |
| 15629 | rm -f conftest.$ac_objext |
| 15630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15631 | (eval $ac_compile) 2>&5 |
| 15632 | ac_status=$? |
| 15633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15634 | (exit $ac_status); } && |
| 15635 | { ac_try='test -s conftest.$ac_objext' |
| 15636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15637 | (eval $ac_try) 2>&5 |
| 15638 | ac_status=$? |
| 15639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15640 | (exit $ac_status); }; }; then |
| 15641 | ac_cv_member_struct_stat_st_blksize=yes |
| 15642 | else |
| 15643 | echo "$as_me: failed program was:" >&5 |
| 15644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15645 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15646 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15647 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15648 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15649 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15650 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15651 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15652 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 15653 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 15654 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15655 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15656 | cat >>confdefs.h <<_ACEOF |
| 15657 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 15658 | _ACEOF |
| 15659 | |
| 15660 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15661 | fi |
| 15662 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15663 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 15664 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 15665 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 15666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15667 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15668 | cat >conftest.$ac_ext <<_ACEOF |
| 15669 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15670 | /* confdefs.h. */ |
| 15671 | _ACEOF |
| 15672 | cat confdefs.h >>conftest.$ac_ext |
| 15673 | cat >>conftest.$ac_ext <<_ACEOF |
| 15674 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15675 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15676 | int |
| 15677 | main () |
| 15678 | { |
| 15679 | static struct stat ac_aggr; |
| 15680 | if (ac_aggr.st_blocks) |
| 15681 | return 0; |
| 15682 | ; |
| 15683 | return 0; |
| 15684 | } |
| 15685 | _ACEOF |
| 15686 | rm -f conftest.$ac_objext |
| 15687 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15688 | (eval $ac_compile) 2>&5 |
| 15689 | ac_status=$? |
| 15690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15691 | (exit $ac_status); } && |
| 15692 | { ac_try='test -s conftest.$ac_objext' |
| 15693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15694 | (eval $ac_try) 2>&5 |
| 15695 | ac_status=$? |
| 15696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15697 | (exit $ac_status); }; }; then |
| 15698 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15699 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15700 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15702 | |
| 15703 | cat >conftest.$ac_ext <<_ACEOF |
| 15704 | #line $LINENO "configure" |
| 15705 | /* confdefs.h. */ |
| 15706 | _ACEOF |
| 15707 | cat confdefs.h >>conftest.$ac_ext |
| 15708 | cat >>conftest.$ac_ext <<_ACEOF |
| 15709 | /* end confdefs.h. */ |
| 15710 | $ac_includes_default |
| 15711 | int |
| 15712 | main () |
| 15713 | { |
| 15714 | static struct stat ac_aggr; |
| 15715 | if (sizeof ac_aggr.st_blocks) |
| 15716 | return 0; |
| 15717 | ; |
| 15718 | return 0; |
| 15719 | } |
| 15720 | _ACEOF |
| 15721 | rm -f conftest.$ac_objext |
| 15722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15723 | (eval $ac_compile) 2>&5 |
| 15724 | ac_status=$? |
| 15725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15726 | (exit $ac_status); } && |
| 15727 | { ac_try='test -s conftest.$ac_objext' |
| 15728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15729 | (eval $ac_try) 2>&5 |
| 15730 | ac_status=$? |
| 15731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15732 | (exit $ac_status); }; }; then |
| 15733 | ac_cv_member_struct_stat_st_blocks=yes |
| 15734 | else |
| 15735 | echo "$as_me: failed program was:" >&5 |
| 15736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15737 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15738 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15739 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15740 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15741 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15742 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15743 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15744 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 15745 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 15746 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15747 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15748 | cat >>confdefs.h <<_ACEOF |
| 15749 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 15750 | _ACEOF |
| 15751 | |
| 15752 | |
| 15753 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15754 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15755 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15756 | |
| 15757 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15758 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15759 | fi |
| 15760 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15761 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15762 | |
| 15763 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 15764 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 15765 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 15766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15767 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15768 | cat >conftest.$ac_ext <<_ACEOF |
| 15769 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15770 | /* confdefs.h. */ |
| 15771 | _ACEOF |
| 15772 | cat confdefs.h >>conftest.$ac_ext |
| 15773 | cat >>conftest.$ac_ext <<_ACEOF |
| 15774 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15775 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15776 | int |
| 15777 | main () |
| 15778 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15779 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15780 | ; |
| 15781 | return 0; |
| 15782 | } |
| 15783 | _ACEOF |
| 15784 | rm -f conftest.$ac_objext |
| 15785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15786 | (eval $ac_compile) 2>&5 |
| 15787 | ac_status=$? |
| 15788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15789 | (exit $ac_status); } && |
| 15790 | { ac_try='test -s conftest.$ac_objext' |
| 15791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15792 | (eval $ac_try) 2>&5 |
| 15793 | ac_status=$? |
| 15794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15795 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15796 | ac_cv_header_time_altzone=yes |
| 15797 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15798 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15800 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15801 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15802 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15803 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15804 | fi |
| 15805 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15806 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 15807 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15808 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15809 | |
| 15810 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15811 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15812 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15813 | |
| 15814 | fi |
| 15815 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15816 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15817 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 15818 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 15819 | cat >conftest.$ac_ext <<_ACEOF |
| 15820 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15821 | /* confdefs.h. */ |
| 15822 | _ACEOF |
| 15823 | cat confdefs.h >>conftest.$ac_ext |
| 15824 | cat >>conftest.$ac_ext <<_ACEOF |
| 15825 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15826 | |
| 15827 | #include <sys/types.h> |
| 15828 | #include <sys/select.h> |
| 15829 | #include <sys/time.h> |
| 15830 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15831 | int |
| 15832 | main () |
| 15833 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15834 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15835 | ; |
| 15836 | return 0; |
| 15837 | } |
| 15838 | _ACEOF |
| 15839 | rm -f conftest.$ac_objext |
| 15840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15841 | (eval $ac_compile) 2>&5 |
| 15842 | ac_status=$? |
| 15843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15844 | (exit $ac_status); } && |
| 15845 | { ac_try='test -s conftest.$ac_objext' |
| 15846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15847 | (eval $ac_try) 2>&5 |
| 15848 | ac_status=$? |
| 15849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15850 | (exit $ac_status); }; }; then |
| 15851 | |
| 15852 | |
| 15853 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15854 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15855 | _ACEOF |
| 15856 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15857 | was_it_defined=yes |
| 15858 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15859 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15860 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15862 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15863 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15864 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15865 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 15866 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15867 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15868 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 15869 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 15870 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 15871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15872 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15873 | cat >conftest.$ac_ext <<_ACEOF |
| 15874 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15875 | /* confdefs.h. */ |
| 15876 | _ACEOF |
| 15877 | cat confdefs.h >>conftest.$ac_ext |
| 15878 | cat >>conftest.$ac_ext <<_ACEOF |
| 15879 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15880 | |
| 15881 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15882 | int |
| 15883 | main () |
| 15884 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15885 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15886 | ; |
| 15887 | return 0; |
| 15888 | } |
| 15889 | _ACEOF |
| 15890 | rm -f conftest.$ac_objext |
| 15891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15892 | (eval $ac_compile) 2>&5 |
| 15893 | ac_status=$? |
| 15894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15895 | (exit $ac_status); } && |
| 15896 | { ac_try='test -s conftest.$ac_objext' |
| 15897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15898 | (eval $ac_try) 2>&5 |
| 15899 | ac_status=$? |
| 15900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15901 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15902 | ac_cv_struct_addrinfo=yes |
| 15903 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15904 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15906 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15907 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15908 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15909 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15910 | fi |
| 15911 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15912 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 15913 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15914 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15915 | |
| 15916 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15917 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15918 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15919 | |
| 15920 | fi |
| 15921 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15922 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 15923 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 15924 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 15925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15926 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15927 | cat >conftest.$ac_ext <<_ACEOF |
| 15928 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15929 | /* confdefs.h. */ |
| 15930 | _ACEOF |
| 15931 | cat confdefs.h >>conftest.$ac_ext |
| 15932 | cat >>conftest.$ac_ext <<_ACEOF |
| 15933 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15934 | |
| 15935 | # include <sys/types.h> |
| 15936 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15937 | int |
| 15938 | main () |
| 15939 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15940 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15941 | ; |
| 15942 | return 0; |
| 15943 | } |
| 15944 | _ACEOF |
| 15945 | rm -f conftest.$ac_objext |
| 15946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15947 | (eval $ac_compile) 2>&5 |
| 15948 | ac_status=$? |
| 15949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15950 | (exit $ac_status); } && |
| 15951 | { ac_try='test -s conftest.$ac_objext' |
| 15952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15953 | (eval $ac_try) 2>&5 |
| 15954 | ac_status=$? |
| 15955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15956 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15957 | ac_cv_struct_sockaddr_storage=yes |
| 15958 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15959 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15961 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15962 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15963 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15964 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15965 | fi |
| 15966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15967 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 15968 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15969 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15970 | |
| 15971 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15972 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15973 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15974 | |
| 15975 | fi |
| 15976 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15977 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15978 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15979 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15980 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 15981 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 15982 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 15983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15984 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15985 | cat >conftest.$ac_ext <<_ACEOF |
| 15986 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15987 | /* confdefs.h. */ |
| 15988 | _ACEOF |
| 15989 | cat confdefs.h >>conftest.$ac_ext |
| 15990 | cat >>conftest.$ac_ext <<_ACEOF |
| 15991 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15992 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15993 | int |
| 15994 | main () |
| 15995 | { |
| 15996 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 15997 | test_array [0] = 0 |
| 15998 | |
| 15999 | ; |
| 16000 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16001 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16002 | _ACEOF |
| 16003 | rm -f conftest.$ac_objext |
| 16004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16005 | (eval $ac_compile) 2>&5 |
| 16006 | ac_status=$? |
| 16007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16008 | (exit $ac_status); } && |
| 16009 | { ac_try='test -s conftest.$ac_objext' |
| 16010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16011 | (eval $ac_try) 2>&5 |
| 16012 | ac_status=$? |
| 16013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16014 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16015 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16016 | else |
| 16017 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16018 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16019 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16020 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16021 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16022 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16023 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16024 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 16025 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16026 | 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] | 16027 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16028 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16029 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16030 | |
| 16031 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16032 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16033 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 16034 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 16035 | if test "${ac_cv_c_const+set}" = set; then |
| 16036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16037 | else |
| 16038 | cat >conftest.$ac_ext <<_ACEOF |
| 16039 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16040 | /* confdefs.h. */ |
| 16041 | _ACEOF |
| 16042 | cat confdefs.h >>conftest.$ac_ext |
| 16043 | cat >>conftest.$ac_ext <<_ACEOF |
| 16044 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16045 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16046 | int |
| 16047 | main () |
| 16048 | { |
| 16049 | /* FIXME: Include the comments suggested by Paul. */ |
| 16050 | #ifndef __cplusplus |
| 16051 | /* Ultrix mips cc rejects this. */ |
| 16052 | typedef int charset[2]; |
| 16053 | const charset x; |
| 16054 | /* SunOS 4.1.1 cc rejects this. */ |
| 16055 | char const *const *ccp; |
| 16056 | char **p; |
| 16057 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 16058 | struct point {int x, y;}; |
| 16059 | static struct point const zero = {0,0}; |
| 16060 | /* AIX XL C 1.02.0.0 rejects this. |
| 16061 | It does not let you subtract one const X* pointer from another in |
| 16062 | an arm of an if-expression whose if-part is not a constant |
| 16063 | expression */ |
| 16064 | const char *g = "string"; |
| 16065 | ccp = &g + (g ? g-g : 0); |
| 16066 | /* HPUX 7.0 cc rejects these. */ |
| 16067 | ++ccp; |
| 16068 | p = (char**) ccp; |
| 16069 | ccp = (char const *const *) p; |
| 16070 | { /* SCO 3.2v4 cc rejects this. */ |
| 16071 | char *t; |
| 16072 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16073 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16074 | *t++ = 0; |
| 16075 | } |
| 16076 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 16077 | int x[] = {25, 17}; |
| 16078 | const int *foo = &x[0]; |
| 16079 | ++foo; |
| 16080 | } |
| 16081 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 16082 | typedef const int *iptr; |
| 16083 | iptr p = 0; |
| 16084 | ++p; |
| 16085 | } |
| 16086 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 16087 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 16088 | struct s { int j; const int *ap[3]; }; |
| 16089 | struct s *b; b->j = 5; |
| 16090 | } |
| 16091 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 16092 | const int foo = 10; |
| 16093 | } |
| 16094 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16095 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16096 | ; |
| 16097 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16098 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16099 | _ACEOF |
| 16100 | rm -f conftest.$ac_objext |
| 16101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16102 | (eval $ac_compile) 2>&5 |
| 16103 | ac_status=$? |
| 16104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16105 | (exit $ac_status); } && |
| 16106 | { ac_try='test -s conftest.$ac_objext' |
| 16107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16108 | (eval $ac_try) 2>&5 |
| 16109 | ac_status=$? |
| 16110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16111 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16112 | ac_cv_c_const=yes |
| 16113 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16114 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16116 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16117 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16118 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16119 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16120 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16121 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 16122 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16123 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16124 | |
| 16125 | cat >>confdefs.h <<\_ACEOF |
| 16126 | #define const |
| 16127 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16128 | |
| 16129 | fi |
| 16130 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16131 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16132 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16133 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 16134 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 16135 | cat >conftest.$ac_ext <<_ACEOF |
| 16136 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16137 | /* confdefs.h. */ |
| 16138 | _ACEOF |
| 16139 | cat confdefs.h >>conftest.$ac_ext |
| 16140 | cat >>conftest.$ac_ext <<_ACEOF |
| 16141 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16142 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16143 | int |
| 16144 | main () |
| 16145 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16146 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16147 | ; |
| 16148 | return 0; |
| 16149 | } |
| 16150 | _ACEOF |
| 16151 | rm -f conftest.$ac_objext |
| 16152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16153 | (eval $ac_compile) 2>&5 |
| 16154 | ac_status=$? |
| 16155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16156 | (exit $ac_status); } && |
| 16157 | { ac_try='test -s conftest.$ac_objext' |
| 16158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16159 | (eval $ac_try) 2>&5 |
| 16160 | ac_status=$? |
| 16161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16162 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16163 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16164 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16165 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16167 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16168 | |
| 16169 | cat >>confdefs.h <<\_ACEOF |
| 16170 | #define volatile |
| 16171 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16172 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16173 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16174 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16175 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16176 | echo "$as_me:$LINENO: result: $works" >&5 |
| 16177 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16178 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16179 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16180 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 16181 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 16182 | cat >conftest.$ac_ext <<_ACEOF |
| 16183 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16184 | /* confdefs.h. */ |
| 16185 | _ACEOF |
| 16186 | cat confdefs.h >>conftest.$ac_ext |
| 16187 | cat >>conftest.$ac_ext <<_ACEOF |
| 16188 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 16189 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16190 | int |
| 16191 | main () |
| 16192 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16193 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16210 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 16211 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16212 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16214 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16215 | |
| 16216 | cat >>confdefs.h <<\_ACEOF |
| 16217 | #define signed |
| 16218 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16219 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16220 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16221 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16222 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16223 | echo "$as_me:$LINENO: result: $works" >&5 |
| 16224 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16225 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16226 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16227 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 16228 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 16229 | cat >conftest.$ac_ext <<_ACEOF |
| 16230 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16231 | /* confdefs.h. */ |
| 16232 | _ACEOF |
| 16233 | cat confdefs.h >>conftest.$ac_ext |
| 16234 | cat >>conftest.$ac_ext <<_ACEOF |
| 16235 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16236 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16237 | int |
| 16238 | main () |
| 16239 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16240 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16241 | ; |
| 16242 | return 0; |
| 16243 | } |
| 16244 | _ACEOF |
| 16245 | rm -f conftest.$ac_objext |
| 16246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16247 | (eval $ac_compile) 2>&5 |
| 16248 | ac_status=$? |
| 16249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16250 | (exit $ac_status); } && |
| 16251 | { ac_try='test -s conftest.$ac_objext' |
| 16252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16253 | (eval $ac_try) 2>&5 |
| 16254 | ac_status=$? |
| 16255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16256 | (exit $ac_status); }; }; then |
| 16257 | |
| 16258 | |
| 16259 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16260 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16261 | _ACEOF |
| 16262 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16263 | have_prototypes=yes |
| 16264 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16265 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16266 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16268 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16269 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16270 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16271 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 16272 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16273 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16274 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16275 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 16276 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 16277 | cat >conftest.$ac_ext <<_ACEOF |
| 16278 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16279 | /* confdefs.h. */ |
| 16280 | _ACEOF |
| 16281 | cat confdefs.h >>conftest.$ac_ext |
| 16282 | cat >>conftest.$ac_ext <<_ACEOF |
| 16283 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16284 | |
| 16285 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 16286 | int foo(int x, ...) { |
| 16287 | va_list va; |
| 16288 | va_start(va, x); |
| 16289 | va_arg(va, int); |
| 16290 | va_arg(va, char *); |
| 16291 | va_arg(va, double); |
| 16292 | return 0; |
| 16293 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16294 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16295 | int |
| 16296 | main () |
| 16297 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 16298 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16299 | ; |
| 16300 | return 0; |
| 16301 | } |
| 16302 | _ACEOF |
| 16303 | rm -f conftest.$ac_objext |
| 16304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16305 | (eval $ac_compile) 2>&5 |
| 16306 | ac_status=$? |
| 16307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16308 | (exit $ac_status); } && |
| 16309 | { ac_try='test -s conftest.$ac_objext' |
| 16310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16311 | (eval $ac_try) 2>&5 |
| 16312 | ac_status=$? |
| 16313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16314 | (exit $ac_status); }; }; then |
| 16315 | |
| 16316 | |
| 16317 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16318 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16319 | _ACEOF |
| 16320 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16321 | works=yes |
| 16322 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16323 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16324 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16326 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16327 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16328 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16329 | echo "$as_me:$LINENO: result: $works" >&5 |
| 16330 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16331 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16332 | if test "$have_prototypes" = yes; then |
| 16333 | bad_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16334 | echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5 |
| 16335 | echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6 |
| 16336 | cat >conftest.$ac_ext <<_ACEOF |
| 16337 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16338 | /* confdefs.h. */ |
| 16339 | _ACEOF |
| 16340 | cat confdefs.h >>conftest.$ac_ext |
| 16341 | cat >>conftest.$ac_ext <<_ACEOF |
| 16342 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16343 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16344 | int |
| 16345 | main () |
| 16346 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16347 | char **t;execve("@",t,t); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16348 | ; |
| 16349 | return 0; |
| 16350 | } |
| 16351 | _ACEOF |
| 16352 | rm -f conftest.$ac_objext |
| 16353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16354 | (eval $ac_compile) 2>&5 |
| 16355 | ac_status=$? |
| 16356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16357 | (exit $ac_status); } && |
| 16358 | { ac_try='test -s conftest.$ac_objext' |
| 16359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16360 | (eval $ac_try) 2>&5 |
| 16361 | ac_status=$? |
| 16362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16363 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16364 | : |
| 16365 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16366 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16367 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16368 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16369 | |
| 16370 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16371 | #define BAD_EXEC_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16372 | _ACEOF |
| 16373 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16374 | bad_prototypes=yes |
| 16375 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16376 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16377 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16378 | echo "$as_me:$LINENO: result: $bad_prototypes" >&5 |
| 16379 | echo "${ECHO_T}$bad_prototypes" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16380 | fi |
| 16381 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16382 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16383 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 16384 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 16385 | cat >conftest.$ac_ext <<_ACEOF |
| 16386 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16387 | /* confdefs.h. */ |
| 16388 | _ACEOF |
| 16389 | cat confdefs.h >>conftest.$ac_ext |
| 16390 | cat >>conftest.$ac_ext <<_ACEOF |
| 16391 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16392 | #include <sys/types.h> |
| 16393 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16394 | int |
| 16395 | main () |
| 16396 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16397 | struct sockaddr x; |
| 16398 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16399 | ; |
| 16400 | return 0; |
| 16401 | } |
| 16402 | _ACEOF |
| 16403 | rm -f conftest.$ac_objext |
| 16404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16405 | (eval $ac_compile) 2>&5 |
| 16406 | ac_status=$? |
| 16407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16408 | (exit $ac_status); } && |
| 16409 | { ac_try='test -s conftest.$ac_objext' |
| 16410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16411 | (eval $ac_try) 2>&5 |
| 16412 | ac_status=$? |
| 16413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16414 | (exit $ac_status); }; }; then |
| 16415 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16416 | echo "${ECHO_T}yes" >&6 |
| 16417 | |
| 16418 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16419 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16420 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16421 | |
| 16422 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16423 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16424 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16425 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16426 | echo "$as_me:$LINENO: result: no" >&5 |
| 16427 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16428 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16429 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16430 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16431 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16432 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 16433 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 16434 | cat >conftest.$ac_ext <<_ACEOF |
| 16435 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16436 | /* confdefs.h. */ |
| 16437 | _ACEOF |
| 16438 | cat confdefs.h >>conftest.$ac_ext |
| 16439 | cat >>conftest.$ac_ext <<_ACEOF |
| 16440 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16441 | |
| 16442 | #ifdef HAVE_STDARG_PROTOTYPES |
| 16443 | #include <stdarg.h> |
| 16444 | #else |
| 16445 | #include <varargs.h> |
| 16446 | #endif |
| 16447 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16448 | int |
| 16449 | main () |
| 16450 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16451 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16452 | ; |
| 16453 | return 0; |
| 16454 | } |
| 16455 | _ACEOF |
| 16456 | rm -f conftest.$ac_objext |
| 16457 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16458 | (eval $ac_compile) 2>&5 |
| 16459 | ac_status=$? |
| 16460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16461 | (exit $ac_status); } && |
| 16462 | { ac_try='test -s conftest.$ac_objext' |
| 16463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16464 | (eval $ac_try) 2>&5 |
| 16465 | ac_status=$? |
| 16466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16467 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16468 | : |
| 16469 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16470 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16472 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16473 | |
| 16474 | |
| 16475 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16476 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16477 | _ACEOF |
| 16478 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16479 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16480 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16481 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16482 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16483 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 16484 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16485 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16486 | # 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] | 16487 | |
| 16488 | |
| 16489 | |
| 16490 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 16491 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 16492 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 16493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16494 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16495 | cat >conftest.$ac_ext <<_ACEOF |
| 16496 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16497 | /* confdefs.h. */ |
| 16498 | _ACEOF |
| 16499 | cat confdefs.h >>conftest.$ac_ext |
| 16500 | cat >>conftest.$ac_ext <<_ACEOF |
| 16501 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16502 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16503 | which can conflict with char gethostbyname_r (); below. |
| 16504 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 16505 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 16506 | including <limits.h> includes <sys/time.h> and causes problems |
| 16507 | checking for functions defined therein. */ |
| 16508 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16509 | # include <limits.h> |
| 16510 | #else |
| 16511 | # include <assert.h> |
| 16512 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16513 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16514 | #ifdef __cplusplus |
| 16515 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16516 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16517 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16518 | /* 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] | 16519 | builtin and then its argument prototype would still apply. */ |
| 16520 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16521 | /* The GNU C library defines this for functions which it implements |
| 16522 | to always fail with ENOSYS. Some functions are actually named |
| 16523 | something starting with __ and the normal name is an alias. */ |
| 16524 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 16525 | choke me |
| 16526 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16527 | char (*f) () = gethostbyname_r; |
| 16528 | #endif |
| 16529 | #ifdef __cplusplus |
| 16530 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16531 | #endif |
| 16532 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16533 | int |
| 16534 | main () |
| 16535 | { |
| 16536 | return f != gethostbyname_r; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16537 | ; |
| 16538 | return 0; |
| 16539 | } |
| 16540 | _ACEOF |
| 16541 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16542 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16543 | (eval $ac_link) 2>&5 |
| 16544 | ac_status=$? |
| 16545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16546 | (exit $ac_status); } && |
| 16547 | { ac_try='test -s conftest$ac_exeext' |
| 16548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16549 | (eval $ac_try) 2>&5 |
| 16550 | ac_status=$? |
| 16551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16552 | (exit $ac_status); }; }; then |
| 16553 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16554 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16555 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16557 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16558 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16559 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16560 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16561 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16562 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 16563 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 16564 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16565 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16566 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16567 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16568 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16569 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16570 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 16571 | 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] | 16572 | OLD_CFLAGS=$CFLAGS |
| 16573 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16574 | cat >conftest.$ac_ext <<_ACEOF |
| 16575 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16576 | /* confdefs.h. */ |
| 16577 | _ACEOF |
| 16578 | cat confdefs.h >>conftest.$ac_ext |
| 16579 | cat >>conftest.$ac_ext <<_ACEOF |
| 16580 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16581 | |
| 16582 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16583 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16584 | int |
| 16585 | main () |
| 16586 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16587 | |
| 16588 | char *name; |
| 16589 | struct hostent *he, *res; |
| 16590 | char buffer[2048]; |
| 16591 | int buflen = 2048; |
| 16592 | int h_errnop; |
| 16593 | |
| 16594 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16595 | |
| 16596 | ; |
| 16597 | return 0; |
| 16598 | } |
| 16599 | _ACEOF |
| 16600 | rm -f conftest.$ac_objext |
| 16601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16602 | (eval $ac_compile) 2>&5 |
| 16603 | ac_status=$? |
| 16604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16605 | (exit $ac_status); } && |
| 16606 | { ac_try='test -s conftest.$ac_objext' |
| 16607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16608 | (eval $ac_try) 2>&5 |
| 16609 | ac_status=$? |
| 16610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16611 | (exit $ac_status); }; }; then |
| 16612 | |
| 16613 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16614 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16615 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16616 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16617 | |
| 16618 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16619 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16620 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16621 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16622 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16623 | echo "${ECHO_T}yes" >&6 |
| 16624 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16625 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16626 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16628 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16629 | |
| 16630 | echo "$as_me:$LINENO: result: no" >&5 |
| 16631 | echo "${ECHO_T}no" >&6 |
| 16632 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 16633 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 16634 | cat >conftest.$ac_ext <<_ACEOF |
| 16635 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16636 | /* confdefs.h. */ |
| 16637 | _ACEOF |
| 16638 | cat confdefs.h >>conftest.$ac_ext |
| 16639 | cat >>conftest.$ac_ext <<_ACEOF |
| 16640 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16641 | |
| 16642 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16643 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16644 | int |
| 16645 | main () |
| 16646 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16647 | |
| 16648 | char *name; |
| 16649 | struct hostent *he; |
| 16650 | char buffer[2048]; |
| 16651 | int buflen = 2048; |
| 16652 | int h_errnop; |
| 16653 | |
| 16654 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16655 | |
| 16656 | ; |
| 16657 | return 0; |
| 16658 | } |
| 16659 | _ACEOF |
| 16660 | rm -f conftest.$ac_objext |
| 16661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16662 | (eval $ac_compile) 2>&5 |
| 16663 | ac_status=$? |
| 16664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16665 | (exit $ac_status); } && |
| 16666 | { ac_try='test -s conftest.$ac_objext' |
| 16667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16668 | (eval $ac_try) 2>&5 |
| 16669 | ac_status=$? |
| 16670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16671 | (exit $ac_status); }; }; then |
| 16672 | |
| 16673 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16674 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16675 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16676 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16677 | |
| 16678 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16679 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16680 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16681 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16682 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16683 | echo "${ECHO_T}yes" >&6 |
| 16684 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16685 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16686 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16688 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16689 | |
| 16690 | echo "$as_me:$LINENO: result: no" >&5 |
| 16691 | echo "${ECHO_T}no" >&6 |
| 16692 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 16693 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 16694 | cat >conftest.$ac_ext <<_ACEOF |
| 16695 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16696 | /* confdefs.h. */ |
| 16697 | _ACEOF |
| 16698 | cat confdefs.h >>conftest.$ac_ext |
| 16699 | cat >>conftest.$ac_ext <<_ACEOF |
| 16700 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16701 | |
| 16702 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16703 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16704 | int |
| 16705 | main () |
| 16706 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16707 | |
| 16708 | char *name; |
| 16709 | struct hostent *he; |
| 16710 | struct hostent_data data; |
| 16711 | |
| 16712 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16713 | |
| 16714 | ; |
| 16715 | return 0; |
| 16716 | } |
| 16717 | _ACEOF |
| 16718 | rm -f conftest.$ac_objext |
| 16719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16720 | (eval $ac_compile) 2>&5 |
| 16721 | ac_status=$? |
| 16722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16723 | (exit $ac_status); } && |
| 16724 | { ac_try='test -s conftest.$ac_objext' |
| 16725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16726 | (eval $ac_try) 2>&5 |
| 16727 | ac_status=$? |
| 16728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16729 | (exit $ac_status); }; }; then |
| 16730 | |
| 16731 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16732 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16733 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16734 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16735 | |
| 16736 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16737 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16738 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16739 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16740 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16741 | echo "${ECHO_T}yes" >&6 |
| 16742 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16743 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16744 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16746 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16747 | |
| 16748 | echo "$as_me:$LINENO: result: no" >&5 |
| 16749 | echo "${ECHO_T}no" >&6 |
| 16750 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16751 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16752 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16753 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16754 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16755 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16756 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16757 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16758 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16759 | CFLAGS=$OLD_CFLAGS |
| 16760 | |
| 16761 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16762 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16763 | |
| 16764 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16765 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16766 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16767 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16768 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16769 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16771 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16772 | cat >conftest.$ac_ext <<_ACEOF |
| 16773 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16774 | /* confdefs.h. */ |
| 16775 | _ACEOF |
| 16776 | cat confdefs.h >>conftest.$ac_ext |
| 16777 | cat >>conftest.$ac_ext <<_ACEOF |
| 16778 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16779 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16780 | which can conflict with char $ac_func (); below. |
| 16781 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 16782 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 16783 | including <limits.h> includes <sys/time.h> and causes problems |
| 16784 | checking for functions defined therein. */ |
| 16785 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16786 | # include <limits.h> |
| 16787 | #else |
| 16788 | # include <assert.h> |
| 16789 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16790 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16791 | #ifdef __cplusplus |
| 16792 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16793 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16794 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16795 | /* 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] | 16796 | builtin and then its argument prototype would still apply. */ |
| 16797 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16798 | /* The GNU C library defines this for functions which it implements |
| 16799 | to always fail with ENOSYS. Some functions are actually named |
| 16800 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16801 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16802 | choke me |
| 16803 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16804 | char (*f) () = $ac_func; |
| 16805 | #endif |
| 16806 | #ifdef __cplusplus |
| 16807 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16808 | #endif |
| 16809 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16810 | int |
| 16811 | main () |
| 16812 | { |
| 16813 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16814 | ; |
| 16815 | return 0; |
| 16816 | } |
| 16817 | _ACEOF |
| 16818 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16819 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16820 | (eval $ac_link) 2>&5 |
| 16821 | ac_status=$? |
| 16822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16823 | (exit $ac_status); } && |
| 16824 | { ac_try='test -s conftest$ac_exeext' |
| 16825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16826 | (eval $ac_try) 2>&5 |
| 16827 | ac_status=$? |
| 16828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16829 | (exit $ac_status); }; }; then |
| 16830 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16831 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16832 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16834 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16835 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16836 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16837 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16838 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16839 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16840 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16841 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16842 | cat >>confdefs.h <<_ACEOF |
| 16843 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16844 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16845 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16846 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16847 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16848 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16849 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16850 | fi |
| 16851 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16852 | |
| 16853 | |
| 16854 | |
| 16855 | |
| 16856 | |
| 16857 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16858 | # checks for system services |
| 16859 | # (none yet) |
| 16860 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16861 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16862 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 16863 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 16864 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 16865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16866 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16867 | cat >conftest.$ac_ext <<_ACEOF |
| 16868 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16869 | /* confdefs.h. */ |
| 16870 | _ACEOF |
| 16871 | cat confdefs.h >>conftest.$ac_ext |
| 16872 | cat >>conftest.$ac_ext <<_ACEOF |
| 16873 | /* end confdefs.h. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16874 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16875 | which can conflict with char __fpu_control (); below. |
| 16876 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 16877 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 16878 | including <limits.h> includes <sys/time.h> and causes problems |
| 16879 | checking for functions defined therein. */ |
| 16880 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16881 | # include <limits.h> |
| 16882 | #else |
| 16883 | # include <assert.h> |
| 16884 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16885 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16886 | #ifdef __cplusplus |
| 16887 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16888 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16889 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16890 | /* 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] | 16891 | builtin and then its argument prototype would still apply. */ |
| 16892 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16893 | /* The GNU C library defines this for functions which it implements |
| 16894 | to always fail with ENOSYS. Some functions are actually named |
| 16895 | something starting with __ and the normal name is an alias. */ |
| 16896 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 16897 | choke me |
| 16898 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16899 | char (*f) () = __fpu_control; |
| 16900 | #endif |
| 16901 | #ifdef __cplusplus |
| 16902 | } |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16903 | #endif |
| 16904 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16905 | int |
| 16906 | main () |
| 16907 | { |
| 16908 | return f != __fpu_control; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16909 | ; |
| 16910 | return 0; |
| 16911 | } |
| 16912 | _ACEOF |
| 16913 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16914 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16915 | (eval $ac_link) 2>&5 |
| 16916 | ac_status=$? |
| 16917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16918 | (exit $ac_status); } && |
| 16919 | { ac_try='test -s conftest$ac_exeext' |
| 16920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16921 | (eval $ac_try) 2>&5 |
| 16922 | ac_status=$? |
| 16923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16924 | (exit $ac_status); }; }; then |
| 16925 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16926 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16927 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16929 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16930 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16931 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16932 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16933 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16934 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 16935 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 16936 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16937 | : |
| 16938 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16939 | |
| 16940 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 16941 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 16942 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 16943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16944 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16945 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16946 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16947 | cat >conftest.$ac_ext <<_ACEOF |
| 16948 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16949 | /* confdefs.h. */ |
| 16950 | _ACEOF |
| 16951 | cat confdefs.h >>conftest.$ac_ext |
| 16952 | cat >>conftest.$ac_ext <<_ACEOF |
| 16953 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16954 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16955 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16956 | #ifdef __cplusplus |
| 16957 | extern "C" |
| 16958 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16959 | /* 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] | 16960 | builtin and then its argument prototype would still apply. */ |
| 16961 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16962 | int |
| 16963 | main () |
| 16964 | { |
| 16965 | __fpu_control (); |
| 16966 | ; |
| 16967 | return 0; |
| 16968 | } |
| 16969 | _ACEOF |
| 16970 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16972 | (eval $ac_link) 2>&5 |
| 16973 | ac_status=$? |
| 16974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16975 | (exit $ac_status); } && |
| 16976 | { ac_try='test -s conftest$ac_exeext' |
| 16977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16978 | (eval $ac_try) 2>&5 |
| 16979 | ac_status=$? |
| 16980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16981 | (exit $ac_status); }; }; then |
| 16982 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16983 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16984 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16985 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16986 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16987 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16988 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16989 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16990 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16991 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16992 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 16993 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 16994 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 16995 | cat >>confdefs.h <<_ACEOF |
| 16996 | #define HAVE_LIBIEEE 1 |
| 16997 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16998 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16999 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17000 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17001 | fi |
| 17002 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17003 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17004 | fi |
| 17005 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17006 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17007 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17008 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 17009 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 17010 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17011 | # Check whether --with-fpectl or --without-fpectl was given. |
| 17012 | if test "${with_fpectl+set}" = set; then |
| 17013 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17014 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17015 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17016 | then |
| 17017 | |
| 17018 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17019 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17020 | _ACEOF |
| 17021 | |
| 17022 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17023 | echo "${ECHO_T}yes" >&6 |
| 17024 | else echo "$as_me:$LINENO: result: no" >&5 |
| 17025 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17026 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17027 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17028 | echo "$as_me:$LINENO: result: no" >&5 |
| 17029 | echo "${ECHO_T}no" >&6 |
| 17030 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17031 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17032 | # check for --with-libm=... |
| 17033 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 17034 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 17035 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 17036 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 17037 | *) LIBM=-lm |
| 17038 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17039 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 17040 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 17041 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17042 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17043 | if test "${with_libm+set}" = set; then |
| 17044 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17045 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17046 | if test "$withval" = no |
| 17047 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17048 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 17049 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17050 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17051 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17052 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 17053 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 17054 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 17055 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 17056 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17057 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17058 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17059 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 17060 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 17061 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17062 | |
| 17063 | # check for --with-libc=... |
| 17064 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17065 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 17066 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 17067 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17068 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17069 | if test "${with_libc+set}" = set; then |
| 17070 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17071 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17072 | if test "$withval" = no |
| 17073 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17074 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 17075 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17076 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17077 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17078 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 17079 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 17080 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 17081 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 17082 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17083 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17084 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17085 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 17086 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 17087 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17088 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17089 | # check for hypot() in math library |
| 17090 | LIBS_SAVE=$LIBS |
| 17091 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17092 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17093 | for ac_func in hypot |
| 17094 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17095 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17096 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17097 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17098 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 17099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17100 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17101 | cat >conftest.$ac_ext <<_ACEOF |
| 17102 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17103 | /* confdefs.h. */ |
| 17104 | _ACEOF |
| 17105 | cat confdefs.h >>conftest.$ac_ext |
| 17106 | cat >>conftest.$ac_ext <<_ACEOF |
| 17107 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17108 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17109 | which can conflict with char $ac_func (); below. |
| 17110 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 17111 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 17112 | including <limits.h> includes <sys/time.h> and causes problems |
| 17113 | checking for functions defined therein. */ |
| 17114 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17115 | # include <limits.h> |
| 17116 | #else |
| 17117 | # include <assert.h> |
| 17118 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17119 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17120 | #ifdef __cplusplus |
| 17121 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17122 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17123 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17124 | /* 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] | 17125 | builtin and then its argument prototype would still apply. */ |
| 17126 | char $ac_func (); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17127 | /* The GNU C library defines this for functions which it implements |
| 17128 | to always fail with ENOSYS. Some functions are actually named |
| 17129 | something starting with __ and the normal name is an alias. */ |
| 17130 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 17131 | choke me |
| 17132 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17133 | char (*f) () = $ac_func; |
| 17134 | #endif |
| 17135 | #ifdef __cplusplus |
| 17136 | } |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17137 | #endif |
| 17138 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17139 | int |
| 17140 | main () |
| 17141 | { |
| 17142 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17143 | ; |
| 17144 | return 0; |
| 17145 | } |
| 17146 | _ACEOF |
| 17147 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17148 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17149 | (eval $ac_link) 2>&5 |
| 17150 | ac_status=$? |
| 17151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17152 | (exit $ac_status); } && |
| 17153 | { ac_try='test -s conftest$ac_exeext' |
| 17154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17155 | (eval $ac_try) 2>&5 |
| 17156 | ac_status=$? |
| 17157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17158 | (exit $ac_status); }; }; then |
| 17159 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 17160 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17161 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17163 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17164 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17165 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17166 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17167 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17168 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17169 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17170 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17171 | cat >>confdefs.h <<_ACEOF |
| 17172 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17173 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17174 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17175 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17176 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 17177 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 17178 | done |
| 17179 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17180 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17181 | LIBS=$LIBS_SAVE |
| 17182 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17183 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17184 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 17185 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 17186 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 17187 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 17188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17189 | fi |
| 17190 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 17191 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17192 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17193 | # Is the header compilable? |
| 17194 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 17195 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 17196 | cat >conftest.$ac_ext <<_ACEOF |
| 17197 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17198 | /* confdefs.h. */ |
| 17199 | _ACEOF |
| 17200 | cat confdefs.h >>conftest.$ac_ext |
| 17201 | cat >>conftest.$ac_ext <<_ACEOF |
| 17202 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17203 | $ac_includes_default |
| 17204 | #include <wchar.h> |
| 17205 | _ACEOF |
| 17206 | rm -f conftest.$ac_objext |
| 17207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17208 | (eval $ac_compile) 2>&5 |
| 17209 | ac_status=$? |
| 17210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17211 | (exit $ac_status); } && |
| 17212 | { ac_try='test -s conftest.$ac_objext' |
| 17213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17214 | (eval $ac_try) 2>&5 |
| 17215 | ac_status=$? |
| 17216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17217 | (exit $ac_status); }; }; then |
| 17218 | ac_header_compiler=yes |
| 17219 | else |
| 17220 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17222 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17223 | ac_header_compiler=no |
| 17224 | fi |
| 17225 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17226 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17227 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 17228 | |
| 17229 | # Is the header present? |
| 17230 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 17231 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 17232 | cat >conftest.$ac_ext <<_ACEOF |
| 17233 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17234 | /* confdefs.h. */ |
| 17235 | _ACEOF |
| 17236 | cat confdefs.h >>conftest.$ac_ext |
| 17237 | cat >>conftest.$ac_ext <<_ACEOF |
| 17238 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17239 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17240 | _ACEOF |
| 17241 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 17242 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 17243 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17244 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17245 | rm -f conftest.er1 |
| 17246 | cat conftest.err >&5 |
| 17247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17248 | (exit $ac_status); } >/dev/null; then |
| 17249 | if test -s conftest.err; then |
| 17250 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 17251 | else |
| 17252 | ac_cpp_err= |
| 17253 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17254 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17255 | ac_cpp_err=yes |
| 17256 | fi |
| 17257 | if test -z "$ac_cpp_err"; then |
| 17258 | ac_header_preproc=yes |
| 17259 | else |
| 17260 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17262 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17263 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17264 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17265 | rm -f conftest.err conftest.$ac_ext |
| 17266 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17267 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 17268 | |
| 17269 | # So? What about this header? |
| 17270 | case $ac_header_compiler:$ac_header_preproc in |
| 17271 | yes:no ) |
| 17272 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17273 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17274 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17275 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 17276 | ( |
| 17277 | cat <<\_ASBOX |
| 17278 | ## ------------------------------------ ## |
| 17279 | ## Report this to bug-autoconf@gnu.org. ## |
| 17280 | ## ------------------------------------ ## |
| 17281 | _ASBOX |
| 17282 | ) | |
| 17283 | sed "s/^/$as_me: WARNING: /" >&2 |
| 17284 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17285 | no:yes ) |
| 17286 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 17287 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 17288 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 17289 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 17290 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17291 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 17292 | ( |
| 17293 | cat <<\_ASBOX |
| 17294 | ## ------------------------------------ ## |
| 17295 | ## Report this to bug-autoconf@gnu.org. ## |
| 17296 | ## ------------------------------------ ## |
| 17297 | _ASBOX |
| 17298 | ) | |
| 17299 | sed "s/^/$as_me: WARNING: /" >&2 |
| 17300 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17301 | esac |
| 17302 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 17303 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 17304 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 17305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17306 | else |
| 17307 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17308 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17309 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 17310 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 17311 | |
| 17312 | fi |
| 17313 | if test $ac_cv_header_wchar_h = yes; then |
| 17314 | |
| 17315 | |
| 17316 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17317 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17318 | _ACEOF |
| 17319 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17320 | wchar_h="yes" |
| 17321 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17322 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17323 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17324 | |
| 17325 | fi |
| 17326 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17327 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17328 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17329 | # determine wchar_t size |
| 17330 | if test "$wchar_h" = yes |
| 17331 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17332 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 17333 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 17334 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 17335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17336 | else |
| 17337 | cat >conftest.$ac_ext <<_ACEOF |
| 17338 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17339 | /* confdefs.h. */ |
| 17340 | _ACEOF |
| 17341 | cat confdefs.h >>conftest.$ac_ext |
| 17342 | cat >>conftest.$ac_ext <<_ACEOF |
| 17343 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17344 | #include <wchar.h> |
| 17345 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17346 | int |
| 17347 | main () |
| 17348 | { |
| 17349 | if ((wchar_t *) 0) |
| 17350 | return 0; |
| 17351 | if (sizeof (wchar_t)) |
| 17352 | return 0; |
| 17353 | ; |
| 17354 | return 0; |
| 17355 | } |
| 17356 | _ACEOF |
| 17357 | rm -f conftest.$ac_objext |
| 17358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17359 | (eval $ac_compile) 2>&5 |
| 17360 | ac_status=$? |
| 17361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17362 | (exit $ac_status); } && |
| 17363 | { ac_try='test -s conftest.$ac_objext' |
| 17364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17365 | (eval $ac_try) 2>&5 |
| 17366 | ac_status=$? |
| 17367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17368 | (exit $ac_status); }; }; then |
| 17369 | ac_cv_type_wchar_t=yes |
| 17370 | else |
| 17371 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17372 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17373 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17374 | ac_cv_type_wchar_t=no |
| 17375 | fi |
| 17376 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17377 | fi |
| 17378 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 17379 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 17380 | |
| 17381 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 17382 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 17383 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 17384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17385 | else |
| 17386 | if test "$ac_cv_type_wchar_t" = yes; then |
| 17387 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 17388 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 17389 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 17390 | # This bug is HP SR number 8606223364. |
| 17391 | if test "$cross_compiling" = yes; then |
| 17392 | # Depending upon the size, compute the lo and hi bounds. |
| 17393 | cat >conftest.$ac_ext <<_ACEOF |
| 17394 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17395 | /* confdefs.h. */ |
| 17396 | _ACEOF |
| 17397 | cat confdefs.h >>conftest.$ac_ext |
| 17398 | cat >>conftest.$ac_ext <<_ACEOF |
| 17399 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17400 | #include <wchar.h> |
| 17401 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17402 | int |
| 17403 | main () |
| 17404 | { |
| 17405 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 17406 | test_array [0] = 0 |
| 17407 | |
| 17408 | ; |
| 17409 | return 0; |
| 17410 | } |
| 17411 | _ACEOF |
| 17412 | rm -f conftest.$ac_objext |
| 17413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17414 | (eval $ac_compile) 2>&5 |
| 17415 | ac_status=$? |
| 17416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17417 | (exit $ac_status); } && |
| 17418 | { ac_try='test -s conftest.$ac_objext' |
| 17419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17420 | (eval $ac_try) 2>&5 |
| 17421 | ac_status=$? |
| 17422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17423 | (exit $ac_status); }; }; then |
| 17424 | ac_lo=0 ac_mid=0 |
| 17425 | while :; do |
| 17426 | cat >conftest.$ac_ext <<_ACEOF |
| 17427 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17428 | /* confdefs.h. */ |
| 17429 | _ACEOF |
| 17430 | cat confdefs.h >>conftest.$ac_ext |
| 17431 | cat >>conftest.$ac_ext <<_ACEOF |
| 17432 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17433 | #include <wchar.h> |
| 17434 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17435 | int |
| 17436 | main () |
| 17437 | { |
| 17438 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 17439 | test_array [0] = 0 |
| 17440 | |
| 17441 | ; |
| 17442 | return 0; |
| 17443 | } |
| 17444 | _ACEOF |
| 17445 | rm -f conftest.$ac_objext |
| 17446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17447 | (eval $ac_compile) 2>&5 |
| 17448 | ac_status=$? |
| 17449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17450 | (exit $ac_status); } && |
| 17451 | { ac_try='test -s conftest.$ac_objext' |
| 17452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17453 | (eval $ac_try) 2>&5 |
| 17454 | ac_status=$? |
| 17455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17456 | (exit $ac_status); }; }; then |
| 17457 | ac_hi=$ac_mid; break |
| 17458 | else |
| 17459 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17461 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17462 | ac_lo=`expr $ac_mid + 1` |
| 17463 | if test $ac_lo -le $ac_mid; then |
| 17464 | ac_lo= ac_hi= |
| 17465 | break |
| 17466 | fi |
| 17467 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 17468 | fi |
| 17469 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17470 | done |
| 17471 | else |
| 17472 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17474 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17475 | cat >conftest.$ac_ext <<_ACEOF |
| 17476 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17477 | /* confdefs.h. */ |
| 17478 | _ACEOF |
| 17479 | cat confdefs.h >>conftest.$ac_ext |
| 17480 | cat >>conftest.$ac_ext <<_ACEOF |
| 17481 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17482 | #include <wchar.h> |
| 17483 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17484 | int |
| 17485 | main () |
| 17486 | { |
| 17487 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 17488 | test_array [0] = 0 |
| 17489 | |
| 17490 | ; |
| 17491 | return 0; |
| 17492 | } |
| 17493 | _ACEOF |
| 17494 | rm -f conftest.$ac_objext |
| 17495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17496 | (eval $ac_compile) 2>&5 |
| 17497 | ac_status=$? |
| 17498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17499 | (exit $ac_status); } && |
| 17500 | { ac_try='test -s conftest.$ac_objext' |
| 17501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17502 | (eval $ac_try) 2>&5 |
| 17503 | ac_status=$? |
| 17504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17505 | (exit $ac_status); }; }; then |
| 17506 | ac_hi=-1 ac_mid=-1 |
| 17507 | while :; do |
| 17508 | cat >conftest.$ac_ext <<_ACEOF |
| 17509 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17510 | /* confdefs.h. */ |
| 17511 | _ACEOF |
| 17512 | cat confdefs.h >>conftest.$ac_ext |
| 17513 | cat >>conftest.$ac_ext <<_ACEOF |
| 17514 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17515 | #include <wchar.h> |
| 17516 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17517 | int |
| 17518 | main () |
| 17519 | { |
| 17520 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 17521 | test_array [0] = 0 |
| 17522 | |
| 17523 | ; |
| 17524 | return 0; |
| 17525 | } |
| 17526 | _ACEOF |
| 17527 | rm -f conftest.$ac_objext |
| 17528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17529 | (eval $ac_compile) 2>&5 |
| 17530 | ac_status=$? |
| 17531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17532 | (exit $ac_status); } && |
| 17533 | { ac_try='test -s conftest.$ac_objext' |
| 17534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17535 | (eval $ac_try) 2>&5 |
| 17536 | ac_status=$? |
| 17537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17538 | (exit $ac_status); }; }; then |
| 17539 | ac_lo=$ac_mid; break |
| 17540 | else |
| 17541 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17543 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17544 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 17545 | if test $ac_mid -le $ac_hi; then |
| 17546 | ac_lo= ac_hi= |
| 17547 | break |
| 17548 | fi |
| 17549 | ac_mid=`expr 2 '*' $ac_mid` |
| 17550 | fi |
| 17551 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17552 | done |
| 17553 | else |
| 17554 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17556 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17557 | ac_lo= ac_hi= |
| 17558 | fi |
| 17559 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17560 | fi |
| 17561 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17562 | # Binary search between lo and hi bounds. |
| 17563 | while test "x$ac_lo" != "x$ac_hi"; do |
| 17564 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 17565 | cat >conftest.$ac_ext <<_ACEOF |
| 17566 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17567 | /* confdefs.h. */ |
| 17568 | _ACEOF |
| 17569 | cat confdefs.h >>conftest.$ac_ext |
| 17570 | cat >>conftest.$ac_ext <<_ACEOF |
| 17571 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17572 | #include <wchar.h> |
| 17573 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17574 | int |
| 17575 | main () |
| 17576 | { |
| 17577 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 17578 | test_array [0] = 0 |
| 17579 | |
| 17580 | ; |
| 17581 | return 0; |
| 17582 | } |
| 17583 | _ACEOF |
| 17584 | rm -f conftest.$ac_objext |
| 17585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17586 | (eval $ac_compile) 2>&5 |
| 17587 | ac_status=$? |
| 17588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17589 | (exit $ac_status); } && |
| 17590 | { ac_try='test -s conftest.$ac_objext' |
| 17591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17592 | (eval $ac_try) 2>&5 |
| 17593 | ac_status=$? |
| 17594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17595 | (exit $ac_status); }; }; then |
| 17596 | ac_hi=$ac_mid |
| 17597 | else |
| 17598 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17600 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17601 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 17602 | fi |
| 17603 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17604 | done |
| 17605 | case $ac_lo in |
| 17606 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17607 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 17608 | See \`config.log' for more details." >&5 |
| 17609 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 17610 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17611 | { (exit 1); exit 1; }; } ;; |
| 17612 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17613 | else |
| 17614 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17615 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 17616 | See \`config.log' for more details." >&5 |
| 17617 | echo "$as_me: error: cannot run test program while cross compiling |
| 17618 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17619 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17620 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17621 | cat >conftest.$ac_ext <<_ACEOF |
| 17622 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17623 | /* confdefs.h. */ |
| 17624 | _ACEOF |
| 17625 | cat confdefs.h >>conftest.$ac_ext |
| 17626 | cat >>conftest.$ac_ext <<_ACEOF |
| 17627 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17628 | #include <wchar.h> |
| 17629 | |
| 17630 | long longval () { return (long) (sizeof (wchar_t)); } |
| 17631 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17632 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17633 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17634 | int |
| 17635 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17636 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17637 | |
| 17638 | FILE *f = fopen ("conftest.val", "w"); |
| 17639 | if (! f) |
| 17640 | exit (1); |
| 17641 | if (((long) (sizeof (wchar_t))) < 0) |
| 17642 | { |
| 17643 | long i = longval (); |
| 17644 | if (i != ((long) (sizeof (wchar_t)))) |
| 17645 | exit (1); |
| 17646 | fprintf (f, "%ld\n", i); |
| 17647 | } |
| 17648 | else |
| 17649 | { |
| 17650 | unsigned long i = ulongval (); |
| 17651 | if (i != ((long) (sizeof (wchar_t)))) |
| 17652 | exit (1); |
| 17653 | fprintf (f, "%lu\n", i); |
| 17654 | } |
| 17655 | exit (ferror (f) || fclose (f) != 0); |
| 17656 | |
| 17657 | ; |
| 17658 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17659 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17660 | _ACEOF |
| 17661 | rm -f conftest$ac_exeext |
| 17662 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17663 | (eval $ac_link) 2>&5 |
| 17664 | ac_status=$? |
| 17665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17666 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17668 | (eval $ac_try) 2>&5 |
| 17669 | ac_status=$? |
| 17670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17671 | (exit $ac_status); }; }; then |
| 17672 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17673 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17674 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17675 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17677 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17678 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17679 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 17680 | See \`config.log' for more details." >&5 |
| 17681 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 17682 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17683 | { (exit 1); exit 1; }; } |
| 17684 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17685 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17686 | fi |
| 17687 | fi |
| 17688 | rm -f conftest.val |
| 17689 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17690 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17691 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17692 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17693 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 17694 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 17695 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17696 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17697 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17698 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17699 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17700 | fi |
| 17701 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17702 | echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 17703 | echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6 |
| 17704 | have_ucs4_tcl=no |
| 17705 | cat >conftest.$ac_ext <<_ACEOF |
| 17706 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17707 | /* confdefs.h. */ |
| 17708 | _ACEOF |
| 17709 | cat confdefs.h >>conftest.$ac_ext |
| 17710 | cat >>conftest.$ac_ext <<_ACEOF |
| 17711 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17712 | |
| 17713 | #include <tcl.h> |
| 17714 | #if TCL_UTF_MAX != 6 |
| 17715 | # error "NOT UCS4_TCL" |
| 17716 | #endif |
| 17717 | int |
| 17718 | main () |
| 17719 | { |
| 17720 | |
| 17721 | ; |
| 17722 | return 0; |
| 17723 | } |
| 17724 | _ACEOF |
| 17725 | rm -f conftest.$ac_objext |
| 17726 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17727 | (eval $ac_compile) 2>&5 |
| 17728 | ac_status=$? |
| 17729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17730 | (exit $ac_status); } && |
| 17731 | { ac_try='test -s conftest.$ac_objext' |
| 17732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17733 | (eval $ac_try) 2>&5 |
| 17734 | ac_status=$? |
| 17735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17736 | (exit $ac_status); }; }; then |
| 17737 | |
| 17738 | |
| 17739 | cat >>confdefs.h <<\_ACEOF |
| 17740 | #define HAVE_UCS4_TCL 1 |
| 17741 | _ACEOF |
| 17742 | |
| 17743 | have_ucs4_tcl=yes |
| 17744 | |
| 17745 | else |
| 17746 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17748 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17749 | fi |
| 17750 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17751 | echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 17752 | echo "${ECHO_T}$have_ucs4_tcl" >&6 |
| 17753 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17754 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17755 | if test "$wchar_h" = yes |
| 17756 | then |
| 17757 | # check whether wchar_t is signed or not |
| 17758 | echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 17759 | echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6 |
| 17760 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
| 17761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17762 | else |
| 17763 | |
| 17764 | if test "$cross_compiling" = yes; then |
| 17765 | ac_cv_wchar_t_signed=yes |
| 17766 | else |
| 17767 | cat >conftest.$ac_ext <<_ACEOF |
| 17768 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17769 | /* confdefs.h. */ |
| 17770 | _ACEOF |
| 17771 | cat confdefs.h >>conftest.$ac_ext |
| 17772 | cat >>conftest.$ac_ext <<_ACEOF |
| 17773 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17774 | |
| 17775 | #include <wchar.h> |
| 17776 | int main() |
| 17777 | { |
| 17778 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0); |
| 17779 | } |
| 17780 | |
| 17781 | _ACEOF |
| 17782 | rm -f conftest$ac_exeext |
| 17783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17784 | (eval $ac_link) 2>&5 |
| 17785 | ac_status=$? |
| 17786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17787 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17789 | (eval $ac_try) 2>&5 |
| 17790 | ac_status=$? |
| 17791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17792 | (exit $ac_status); }; }; then |
| 17793 | ac_cv_wchar_t_signed=yes |
| 17794 | else |
| 17795 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17796 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17798 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17799 | ( exit $ac_status ) |
| 17800 | ac_cv_wchar_t_signed=no |
| 17801 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17802 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17803 | fi |
| 17804 | fi |
| 17805 | |
| 17806 | echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 17807 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6 |
| 17808 | fi |
| 17809 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17810 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 17811 | 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] | 17812 | # Check whether --enable-unicode or --disable-unicode was given. |
| 17813 | if test "${enable_unicode+set}" = set; then |
| 17814 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17815 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17816 | else |
| 17817 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17818 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17819 | |
| 17820 | if test $enable_unicode = yes |
| 17821 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 17822 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17823 | case "$have_ucs4_tcl" in |
| 17824 | yes) enable_unicode="ucs4" |
| 17825 | ;; |
| 17826 | *) enable_unicode="ucs2" |
| 17827 | ;; |
| 17828 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17829 | fi |
| 17830 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 17831 | |
| 17832 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17833 | case "$enable_unicode" in |
| 17834 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17835 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17836 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17837 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17838 | |
| 17839 | ;; |
| 17840 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17841 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17842 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17843 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17844 | |
| 17845 | ;; |
| 17846 | esac |
| 17847 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17848 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17849 | |
| 17850 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 17851 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17852 | if test "$enable_unicode" = "no" |
| 17853 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 17854 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17855 | echo "$as_me:$LINENO: result: not used" >&5 |
| 17856 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17857 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 17858 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17859 | |
| 17860 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17861 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17862 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17863 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17864 | |
| 17865 | # wchar_t is only usable if it maps to an unsigned type |
| 17866 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
| 17867 | -a "$ac_cv_wchar_t_signed" == "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17868 | then |
| 17869 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17870 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17871 | cat >>confdefs.h <<\_ACEOF |
| 17872 | #define HAVE_USABLE_WCHAR_T 1 |
| 17873 | _ACEOF |
| 17874 | |
| 17875 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17876 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17877 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17878 | |
| 17879 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 17880 | then |
| 17881 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17882 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17883 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17884 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17885 | |
| 17886 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 17887 | then |
| 17888 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17889 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17890 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17891 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17892 | |
| 17893 | else |
| 17894 | PY_UNICODE_TYPE="no type found" |
| 17895 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17896 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 17897 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17898 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17899 | |
| 17900 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17901 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 17902 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 17903 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 17904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17905 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17906 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 17907 | cat >conftest.$ac_ext <<_ACEOF |
| 17908 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17909 | /* confdefs.h. */ |
| 17910 | _ACEOF |
| 17911 | cat confdefs.h >>conftest.$ac_ext |
| 17912 | cat >>conftest.$ac_ext <<_ACEOF |
| 17913 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17914 | #include <sys/types.h> |
| 17915 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17916 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17917 | int |
| 17918 | main () |
| 17919 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17920 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 17921 | bogus endian macros |
| 17922 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17923 | |
| 17924 | ; |
| 17925 | return 0; |
| 17926 | } |
| 17927 | _ACEOF |
| 17928 | rm -f conftest.$ac_objext |
| 17929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17930 | (eval $ac_compile) 2>&5 |
| 17931 | ac_status=$? |
| 17932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17933 | (exit $ac_status); } && |
| 17934 | { ac_try='test -s conftest.$ac_objext' |
| 17935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17936 | (eval $ac_try) 2>&5 |
| 17937 | ac_status=$? |
| 17938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17939 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17940 | # 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] | 17941 | cat >conftest.$ac_ext <<_ACEOF |
| 17942 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17943 | /* confdefs.h. */ |
| 17944 | _ACEOF |
| 17945 | cat confdefs.h >>conftest.$ac_ext |
| 17946 | cat >>conftest.$ac_ext <<_ACEOF |
| 17947 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17948 | #include <sys/types.h> |
| 17949 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17950 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17951 | int |
| 17952 | main () |
| 17953 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17954 | #if BYTE_ORDER != BIG_ENDIAN |
| 17955 | not big endian |
| 17956 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17957 | |
| 17958 | ; |
| 17959 | return 0; |
| 17960 | } |
| 17961 | _ACEOF |
| 17962 | rm -f conftest.$ac_objext |
| 17963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17964 | (eval $ac_compile) 2>&5 |
| 17965 | ac_status=$? |
| 17966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17967 | (exit $ac_status); } && |
| 17968 | { ac_try='test -s conftest.$ac_objext' |
| 17969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17970 | (eval $ac_try) 2>&5 |
| 17971 | ac_status=$? |
| 17972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17973 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17974 | ac_cv_c_bigendian=yes |
| 17975 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17976 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17978 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17979 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17980 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17981 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17982 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17983 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17985 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17986 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17987 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17988 | # try to guess the endianness by grepping values into an object file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17989 | ac_cv_c_bigendian=unknown |
| 17990 | cat >conftest.$ac_ext <<_ACEOF |
| 17991 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17992 | /* confdefs.h. */ |
| 17993 | _ACEOF |
| 17994 | cat confdefs.h >>conftest.$ac_ext |
| 17995 | cat >>conftest.$ac_ext <<_ACEOF |
| 17996 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17997 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 17998 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 17999 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 18000 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 18001 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 18002 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18003 | int |
| 18004 | main () |
| 18005 | { |
| 18006 | _ascii (); _ebcdic (); |
| 18007 | ; |
| 18008 | return 0; |
| 18009 | } |
| 18010 | _ACEOF |
| 18011 | rm -f conftest.$ac_objext |
| 18012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18013 | (eval $ac_compile) 2>&5 |
| 18014 | ac_status=$? |
| 18015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18016 | (exit $ac_status); } && |
| 18017 | { ac_try='test -s conftest.$ac_objext' |
| 18018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18019 | (eval $ac_try) 2>&5 |
| 18020 | ac_status=$? |
| 18021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18022 | (exit $ac_status); }; }; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18023 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18024 | ac_cv_c_bigendian=yes |
| 18025 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18026 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18027 | if test "$ac_cv_c_bigendian" = unknown; then |
| 18028 | ac_cv_c_bigendian=no |
| 18029 | else |
| 18030 | # finding both strings is unlikely to happen, but who knows? |
| 18031 | ac_cv_c_bigendian=unknown |
| 18032 | fi |
| 18033 | fi |
| 18034 | else |
| 18035 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18036 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18037 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18038 | fi |
| 18039 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 18040 | else |
| 18041 | cat >conftest.$ac_ext <<_ACEOF |
| 18042 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18043 | /* confdefs.h. */ |
| 18044 | _ACEOF |
| 18045 | cat confdefs.h >>conftest.$ac_ext |
| 18046 | cat >>conftest.$ac_ext <<_ACEOF |
| 18047 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18048 | int |
| 18049 | main () |
| 18050 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18051 | /* Are we little or big endian? From Harbison&Steele. */ |
| 18052 | union |
| 18053 | { |
| 18054 | long l; |
| 18055 | char c[sizeof (long)]; |
| 18056 | } u; |
| 18057 | u.l = 1; |
| 18058 | exit (u.c[sizeof (long) - 1] == 1); |
| 18059 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18060 | _ACEOF |
| 18061 | rm -f conftest$ac_exeext |
| 18062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18063 | (eval $ac_link) 2>&5 |
| 18064 | ac_status=$? |
| 18065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18066 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18068 | (eval $ac_try) 2>&5 |
| 18069 | ac_status=$? |
| 18070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18071 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18072 | ac_cv_c_bigendian=no |
| 18073 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18074 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18075 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18077 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18078 | ( exit $ac_status ) |
| 18079 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18080 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18081 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18082 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18083 | fi |
| 18084 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 18085 | fi |
| 18086 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 18087 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 18088 | case $ac_cv_c_bigendian in |
| 18089 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18090 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18091 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18092 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18093 | _ACEOF |
| 18094 | ;; |
| 18095 | no) |
| 18096 | ;; |
| 18097 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18098 | { { echo "$as_me:$LINENO: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18099 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18100 | echo "$as_me: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18101 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 18102 | { (exit 1); exit 1; }; } ;; |
| 18103 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18104 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18105 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18106 | # Check whether right shifting a negative integer extends the sign bit |
| 18107 | # 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] | 18108 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 18109 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 18110 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 18111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 18112 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18113 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18114 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 18115 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18116 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18117 | cat >conftest.$ac_ext <<_ACEOF |
| 18118 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18119 | /* confdefs.h. */ |
| 18120 | _ACEOF |
| 18121 | cat confdefs.h >>conftest.$ac_ext |
| 18122 | cat >>conftest.$ac_ext <<_ACEOF |
| 18123 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18124 | |
| 18125 | int main() |
| 18126 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 18127 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18128 | } |
| 18129 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18130 | _ACEOF |
| 18131 | rm -f conftest$ac_exeext |
| 18132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18133 | (eval $ac_link) 2>&5 |
| 18134 | ac_status=$? |
| 18135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18136 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18138 | (eval $ac_try) 2>&5 |
| 18139 | ac_status=$? |
| 18140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18141 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 18142 | ac_cv_rshift_extends_sign=yes |
| 18143 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18144 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18145 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18147 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18148 | ( exit $ac_status ) |
| 18149 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 18150 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18151 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18152 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 18153 | fi |
| 18154 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18155 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 18156 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 18157 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18158 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18159 | |
| 18160 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18161 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18162 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18163 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18164 | fi |
| 18165 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18166 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18167 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 18168 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 18169 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 18170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18171 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18172 | |
| 18173 | cat >conftest.$ac_ext <<_ACEOF |
| 18174 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18175 | /* confdefs.h. */ |
| 18176 | _ACEOF |
| 18177 | cat confdefs.h >>conftest.$ac_ext |
| 18178 | cat >>conftest.$ac_ext <<_ACEOF |
| 18179 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18180 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18181 | int |
| 18182 | main () |
| 18183 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18184 | |
| 18185 | FILE *f = fopen("/dev/null", "r"); |
| 18186 | flockfile(f); |
| 18187 | getc_unlocked(f); |
| 18188 | funlockfile(f); |
| 18189 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18190 | ; |
| 18191 | return 0; |
| 18192 | } |
| 18193 | _ACEOF |
| 18194 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18195 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18196 | (eval $ac_link) 2>&5 |
| 18197 | ac_status=$? |
| 18198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18199 | (exit $ac_status); } && |
| 18200 | { ac_try='test -s conftest$ac_exeext' |
| 18201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18202 | (eval $ac_try) 2>&5 |
| 18203 | ac_status=$? |
| 18204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18205 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18206 | ac_cv_have_getc_unlocked=yes |
| 18207 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18208 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18209 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18210 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18211 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18212 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18213 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18214 | fi |
| 18215 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18216 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 18217 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18218 | if test "$ac_cv_have_getc_unlocked" = yes |
| 18219 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18220 | |
| 18221 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18222 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18223 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18224 | |
| 18225 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18226 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 18227 | # check for readline 2.2 |
| 18228 | cat >conftest.$ac_ext <<_ACEOF |
| 18229 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18230 | /* confdefs.h. */ |
| 18231 | _ACEOF |
| 18232 | cat confdefs.h >>conftest.$ac_ext |
| 18233 | cat >>conftest.$ac_ext <<_ACEOF |
| 18234 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 18235 | #include <readline/readline.h> |
| 18236 | _ACEOF |
| 18237 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 18238 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 18239 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18240 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 18241 | rm -f conftest.er1 |
| 18242 | cat conftest.err >&5 |
| 18243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18244 | (exit $ac_status); } >/dev/null; then |
| 18245 | if test -s conftest.err; then |
| 18246 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 18247 | else |
| 18248 | ac_cpp_err= |
| 18249 | fi |
| 18250 | else |
| 18251 | ac_cpp_err=yes |
| 18252 | fi |
| 18253 | if test -z "$ac_cpp_err"; then |
| 18254 | have_readline=yes |
| 18255 | else |
| 18256 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18258 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 18259 | have_readline=no |
| 18260 | fi |
| 18261 | rm -f conftest.err conftest.$ac_ext |
| 18262 | if test $have_readline = yes |
| 18263 | then |
| 18264 | cat >conftest.$ac_ext <<_ACEOF |
| 18265 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18266 | /* confdefs.h. */ |
| 18267 | _ACEOF |
| 18268 | cat confdefs.h >>conftest.$ac_ext |
| 18269 | cat >>conftest.$ac_ext <<_ACEOF |
| 18270 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 18271 | #include <readline/readline.h> |
| 18272 | |
| 18273 | _ACEOF |
| 18274 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18275 | $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] | 18276 | |
| 18277 | cat >>confdefs.h <<\_ACEOF |
| 18278 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 18279 | _ACEOF |
| 18280 | |
| 18281 | fi |
| 18282 | rm -f conftest* |
| 18283 | |
| 18284 | fi |
| 18285 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18286 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18287 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 18288 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 18289 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 18290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18291 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18292 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18293 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18294 | cat >conftest.$ac_ext <<_ACEOF |
| 18295 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18296 | /* confdefs.h. */ |
| 18297 | _ACEOF |
| 18298 | cat confdefs.h >>conftest.$ac_ext |
| 18299 | cat >>conftest.$ac_ext <<_ACEOF |
| 18300 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18301 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18302 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18303 | #ifdef __cplusplus |
| 18304 | extern "C" |
| 18305 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18306 | /* 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] | 18307 | builtin and then its argument prototype would still apply. */ |
| 18308 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18309 | int |
| 18310 | main () |
| 18311 | { |
| 18312 | rl_pre_input_hook (); |
| 18313 | ; |
| 18314 | return 0; |
| 18315 | } |
| 18316 | _ACEOF |
| 18317 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18319 | (eval $ac_link) 2>&5 |
| 18320 | ac_status=$? |
| 18321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18322 | (exit $ac_status); } && |
| 18323 | { ac_try='test -s conftest$ac_exeext' |
| 18324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18325 | (eval $ac_try) 2>&5 |
| 18326 | ac_status=$? |
| 18327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18328 | (exit $ac_status); }; }; then |
| 18329 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18330 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18331 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18332 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18333 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18334 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18335 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18336 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 18337 | LIBS=$ac_check_lib_save_LIBS |
| 18338 | fi |
| 18339 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 18340 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 18341 | 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] | 18342 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18343 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18344 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18345 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18346 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18347 | fi |
| 18348 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18349 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18350 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18351 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 18352 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 18353 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 18354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18355 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18356 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18357 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18358 | cat >conftest.$ac_ext <<_ACEOF |
| 18359 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18360 | /* confdefs.h. */ |
| 18361 | _ACEOF |
| 18362 | cat confdefs.h >>conftest.$ac_ext |
| 18363 | cat >>conftest.$ac_ext <<_ACEOF |
| 18364 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18365 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18366 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18367 | #ifdef __cplusplus |
| 18368 | extern "C" |
| 18369 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18370 | /* 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] | 18371 | builtin and then its argument prototype would still apply. */ |
| 18372 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18373 | int |
| 18374 | main () |
| 18375 | { |
| 18376 | rl_completion_matches (); |
| 18377 | ; |
| 18378 | return 0; |
| 18379 | } |
| 18380 | _ACEOF |
| 18381 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18382 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18383 | (eval $ac_link) 2>&5 |
| 18384 | ac_status=$? |
| 18385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18386 | (exit $ac_status); } && |
| 18387 | { ac_try='test -s conftest$ac_exeext' |
| 18388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18389 | (eval $ac_try) 2>&5 |
| 18390 | ac_status=$? |
| 18391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18392 | (exit $ac_status); }; }; then |
| 18393 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18394 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18395 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18396 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18397 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18398 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18399 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18400 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 18401 | LIBS=$ac_check_lib_save_LIBS |
| 18402 | fi |
| 18403 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 18404 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 18405 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18406 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18407 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18408 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18409 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18410 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18411 | fi |
| 18412 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18413 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18414 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 18415 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 18416 | if test "${ac_cv_broken_nice+set}" = set; then |
| 18417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18418 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18419 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18420 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 18421 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18422 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18423 | cat >conftest.$ac_ext <<_ACEOF |
| 18424 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18425 | /* confdefs.h. */ |
| 18426 | _ACEOF |
| 18427 | cat confdefs.h >>conftest.$ac_ext |
| 18428 | cat >>conftest.$ac_ext <<_ACEOF |
| 18429 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18430 | |
| 18431 | int main() |
| 18432 | { |
| 18433 | int val1 = nice(1); |
| 18434 | if (val1 != -1 && val1 == nice(2)) |
| 18435 | exit(0); |
| 18436 | exit(1); |
| 18437 | } |
| 18438 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18439 | _ACEOF |
| 18440 | rm -f conftest$ac_exeext |
| 18441 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18442 | (eval $ac_link) 2>&5 |
| 18443 | ac_status=$? |
| 18444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18445 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18447 | (eval $ac_try) 2>&5 |
| 18448 | ac_status=$? |
| 18449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18450 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18451 | ac_cv_broken_nice=yes |
| 18452 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18453 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18454 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18456 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18457 | ( exit $ac_status ) |
| 18458 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18459 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18460 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18461 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18462 | fi |
| 18463 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18464 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 18465 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18466 | if test "$ac_cv_broken_nice" = yes |
| 18467 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18468 | |
| 18469 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18470 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18471 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18472 | |
| 18473 | fi |
| 18474 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18475 | # tzset(3) exists and works like we expect it to |
| 18476 | echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 18477 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6 |
| 18478 | if test "${ac_cv_working_tzset+set}" = set; then |
| 18479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18480 | else |
| 18481 | |
| 18482 | if test "$cross_compiling" = yes; then |
| 18483 | ac_cv_working_tzset=no |
| 18484 | else |
| 18485 | cat >conftest.$ac_ext <<_ACEOF |
| 18486 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18487 | /* confdefs.h. */ |
| 18488 | _ACEOF |
| 18489 | cat confdefs.h >>conftest.$ac_ext |
| 18490 | cat >>conftest.$ac_ext <<_ACEOF |
| 18491 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18492 | |
| 18493 | #include <stdlib.h> |
| 18494 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18495 | #include <string.h> |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18496 | int main() |
| 18497 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18498 | /* Note that we need to ensure that not only does tzset(3) |
| 18499 | do 'something' with localtime, but it works as documented |
| 18500 | in the library reference and as expected by the test suite. |
| 18501 | |
| 18502 | Red Hat 6.2 doesn't understand the southern hemisphere |
| 18503 | after New Year's Day; it thinks swaps on that day. |
| 18504 | */ |
| 18505 | |
| 18506 | time_t groundhogday = 1044144000; /* GMT-based; well, it's a colony */ |
| 18507 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 18508 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 18509 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18510 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18511 | if (localtime(&groundhogday)->tm_hour != 0) |
| 18512 | exit(1); |
| 18513 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 18514 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18515 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18516 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18517 | exit(1); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18518 | |
| 18519 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 18520 | tzset(); |
| 18521 | if (localtime(&groundhogday)->tm_hour != 11) |
| 18522 | exit(1); |
| 18523 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 18524 | exit(1); |
| 18525 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 18526 | exit(1); |
| 18527 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18528 | exit(0); |
| 18529 | } |
| 18530 | |
| 18531 | _ACEOF |
| 18532 | rm -f conftest$ac_exeext |
| 18533 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18534 | (eval $ac_link) 2>&5 |
| 18535 | ac_status=$? |
| 18536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18537 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18539 | (eval $ac_try) 2>&5 |
| 18540 | ac_status=$? |
| 18541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18542 | (exit $ac_status); }; }; then |
| 18543 | ac_cv_working_tzset=yes |
| 18544 | else |
| 18545 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18546 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18548 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18549 | ( exit $ac_status ) |
| 18550 | ac_cv_working_tzset=no |
| 18551 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18552 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18553 | fi |
| 18554 | fi |
| 18555 | |
| 18556 | echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 18557 | echo "${ECHO_T}$ac_cv_working_tzset" >&6 |
| 18558 | if test "$ac_cv_working_tzset" = yes |
| 18559 | then |
| 18560 | |
| 18561 | cat >>confdefs.h <<\_ACEOF |
| 18562 | #define HAVE_WORKING_TZSET 1 |
| 18563 | _ACEOF |
| 18564 | |
| 18565 | fi |
| 18566 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18567 | # Look for subsecond timestamps in struct stat |
| 18568 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 18569 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 18570 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 18571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18572 | else |
| 18573 | cat >conftest.$ac_ext <<_ACEOF |
| 18574 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18575 | /* confdefs.h. */ |
| 18576 | _ACEOF |
| 18577 | cat confdefs.h >>conftest.$ac_ext |
| 18578 | cat >>conftest.$ac_ext <<_ACEOF |
| 18579 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18580 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18581 | int |
| 18582 | main () |
| 18583 | { |
| 18584 | |
| 18585 | struct stat st; |
| 18586 | st.st_mtim.tv_nsec = 1; |
| 18587 | |
| 18588 | ; |
| 18589 | return 0; |
| 18590 | } |
| 18591 | _ACEOF |
| 18592 | rm -f conftest.$ac_objext |
| 18593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18594 | (eval $ac_compile) 2>&5 |
| 18595 | ac_status=$? |
| 18596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18597 | (exit $ac_status); } && |
| 18598 | { ac_try='test -s conftest.$ac_objext' |
| 18599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18600 | (eval $ac_try) 2>&5 |
| 18601 | ac_status=$? |
| 18602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18603 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 18604 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18605 | else |
| 18606 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18607 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18608 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18609 | ac_cv_stat_tv_nsec=no |
| 18610 | fi |
| 18611 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 18612 | fi |
| 18613 | |
| 18614 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 18615 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 18616 | if test "$ac_cv_stat_tv_nsec" = yes |
| 18617 | then |
| 18618 | |
| 18619 | cat >>confdefs.h <<\_ACEOF |
| 18620 | #define HAVE_STAT_TV_NSEC 1 |
| 18621 | _ACEOF |
| 18622 | |
| 18623 | fi |
| 18624 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18625 | # 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] | 18626 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 18627 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 18628 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 18629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18630 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18631 | cat >conftest.$ac_ext <<_ACEOF |
| 18632 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18633 | /* confdefs.h. */ |
| 18634 | _ACEOF |
| 18635 | cat confdefs.h >>conftest.$ac_ext |
| 18636 | cat >>conftest.$ac_ext <<_ACEOF |
| 18637 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18638 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18639 | int |
| 18640 | main () |
| 18641 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18642 | |
| 18643 | int rtn; |
| 18644 | rtn = mvwdelch(0,0,0); |
| 18645 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18646 | ; |
| 18647 | return 0; |
| 18648 | } |
| 18649 | _ACEOF |
| 18650 | rm -f conftest.$ac_objext |
| 18651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18652 | (eval $ac_compile) 2>&5 |
| 18653 | ac_status=$? |
| 18654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18655 | (exit $ac_status); } && |
| 18656 | { ac_try='test -s conftest.$ac_objext' |
| 18657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18658 | (eval $ac_try) 2>&5 |
| 18659 | ac_status=$? |
| 18660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18661 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18662 | ac_cv_mvwdelch_is_expression=yes |
| 18663 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18664 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18666 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18667 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18668 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18669 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18670 | fi |
| 18671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18672 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 18673 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18674 | |
| 18675 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 18676 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18677 | |
| 18678 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18679 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18680 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18681 | |
| 18682 | fi |
| 18683 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18684 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 18685 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 18686 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 18687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18688 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18689 | cat >conftest.$ac_ext <<_ACEOF |
| 18690 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18691 | /* confdefs.h. */ |
| 18692 | _ACEOF |
| 18693 | cat confdefs.h >>conftest.$ac_ext |
| 18694 | cat >>conftest.$ac_ext <<_ACEOF |
| 18695 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18696 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18697 | int |
| 18698 | main () |
| 18699 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18700 | |
| 18701 | WINDOW *w; |
| 18702 | w->_flags = 0; |
| 18703 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18704 | ; |
| 18705 | return 0; |
| 18706 | } |
| 18707 | _ACEOF |
| 18708 | rm -f conftest.$ac_objext |
| 18709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18710 | (eval $ac_compile) 2>&5 |
| 18711 | ac_status=$? |
| 18712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18713 | (exit $ac_status); } && |
| 18714 | { ac_try='test -s conftest.$ac_objext' |
| 18715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18716 | (eval $ac_try) 2>&5 |
| 18717 | ac_status=$? |
| 18718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18719 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18720 | ac_cv_window_has_flags=yes |
| 18721 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18722 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18724 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18725 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18726 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18727 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18728 | fi |
| 18729 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18730 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 18731 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18732 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18733 | |
| 18734 | if test "$ac_cv_window_has_flags" = yes |
| 18735 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18736 | |
| 18737 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18738 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18739 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18740 | |
| 18741 | fi |
| 18742 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 18743 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 18744 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
| 18745 | |
| 18746 | if test -e /dev/ptmx |
| 18747 | then |
| 18748 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18749 | echo "${ECHO_T}yes" >&6 |
| 18750 | |
| 18751 | cat >>confdefs.h <<\_ACEOF |
| 18752 | #define HAVE_DEV_PTMX 1 |
| 18753 | _ACEOF |
| 18754 | |
| 18755 | else |
| 18756 | echo "$as_me:$LINENO: result: no" >&5 |
| 18757 | echo "${ECHO_T}no" >&6 |
| 18758 | fi |
| 18759 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 18760 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 18761 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
| 18762 | |
| 18763 | if test -e /dev/ptc |
| 18764 | then |
| 18765 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18766 | echo "${ECHO_T}yes" >&6 |
| 18767 | |
| 18768 | cat >>confdefs.h <<\_ACEOF |
| 18769 | #define HAVE_DEV_PTC 1 |
| 18770 | _ACEOF |
| 18771 | |
| 18772 | else |
| 18773 | echo "$as_me:$LINENO: result: no" >&5 |
| 18774 | echo "${ECHO_T}no" >&6 |
| 18775 | fi |
| 18776 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18777 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 18778 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 18779 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 18780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18781 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18782 | cat >conftest.$ac_ext <<_ACEOF |
| 18783 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18784 | /* confdefs.h. */ |
| 18785 | _ACEOF |
| 18786 | cat confdefs.h >>conftest.$ac_ext |
| 18787 | cat >>conftest.$ac_ext <<_ACEOF |
| 18788 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 18789 | |
| 18790 | #ifdef HAVE_SYS_TYPES_H |
| 18791 | #include <sys/types.h> |
| 18792 | #endif |
| 18793 | #ifdef HAVE_SYS_SOCKET_H |
| 18794 | #include <sys/socket.h> |
| 18795 | #endif |
| 18796 | |
| 18797 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18798 | int |
| 18799 | main () |
| 18800 | { |
| 18801 | if ((socklen_t *) 0) |
| 18802 | return 0; |
| 18803 | if (sizeof (socklen_t)) |
| 18804 | return 0; |
| 18805 | ; |
| 18806 | return 0; |
| 18807 | } |
| 18808 | _ACEOF |
| 18809 | rm -f conftest.$ac_objext |
| 18810 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18811 | (eval $ac_compile) 2>&5 |
| 18812 | ac_status=$? |
| 18813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18814 | (exit $ac_status); } && |
| 18815 | { ac_try='test -s conftest.$ac_objext' |
| 18816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18817 | (eval $ac_try) 2>&5 |
| 18818 | ac_status=$? |
| 18819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18820 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 18821 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18822 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18823 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18825 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18826 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18827 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18828 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 18829 | fi |
| 18830 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 18831 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 18832 | if test $ac_cv_type_socklen_t = yes; then |
| 18833 | : |
| 18834 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18835 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 18836 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18837 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18838 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18839 | |
| 18840 | fi |
| 18841 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18842 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18843 | |
| 18844 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 18845 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 18846 | do |
| 18847 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 18848 | done |
| 18849 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18850 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 18851 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18852 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 18853 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 18854 | for dir in $SRCDIRS; do |
| 18855 | if test ! -d $dir; then |
| 18856 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 18857 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 18858 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18859 | echo "$as_me:$LINENO: result: done" >&5 |
| 18860 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 18861 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18862 | # generate output files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18863 | 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] | 18864 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18865 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18866 | # This file is a shell script that caches the results of configure |
| 18867 | # 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] | 18868 | # scripts and configure runs, see configure's option --config-cache. |
| 18869 | # It is not useful on other systems. If it contains results you don't |
| 18870 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18871 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18872 | # config.status only pays attention to the cache file if you give it |
| 18873 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18874 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18875 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18876 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 18877 | # following values. |
| 18878 | |
| 18879 | _ACEOF |
| 18880 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 18881 | # The following way of writing the cache mishandles newlines in values, |
| 18882 | # but we know of no workaround that is simple, portable, and efficient. |
| 18883 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18884 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 18885 | # 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] | 18886 | { |
| 18887 | (set) 2>&1 | |
| 18888 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 18889 | *ac_space=\ *) |
| 18890 | # `set' does not quote correctly, so add quotes (double-quote |
| 18891 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 18892 | sed -n \ |
| 18893 | "s/'/'\\\\''/g; |
| 18894 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 18895 | ;; |
| 18896 | *) |
| 18897 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 18898 | sed -n \ |
| 18899 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 18900 | ;; |
| 18901 | esac; |
| 18902 | } | |
| 18903 | sed ' |
| 18904 | t clear |
| 18905 | : clear |
| 18906 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 18907 | t end |
| 18908 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 18909 | : end' >>confcache |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18910 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18911 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18912 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 18913 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18914 | else |
| 18915 | echo "not updating unwritable cache $cache_file" |
| 18916 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18917 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18918 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 18919 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18920 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 18921 | # Let make expand exec_prefix. |
| 18922 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 18923 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18924 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 18925 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 18926 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 18927 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18928 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18929 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 18930 | s/:*\$(srcdir):*/:/; |
| 18931 | s/:*\${srcdir}:*/:/; |
| 18932 | s/:*@srcdir@:*/:/; |
| 18933 | s/^\([^=]*=[ ]*\):*/\1/; |
| 18934 | s/:*$//; |
| 18935 | s/^[^=]*=[ ]*$//; |
| 18936 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18937 | fi |
| 18938 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18939 | DEFS=-DHAVE_CONFIG_H |
| 18940 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18941 | ac_libobjs= |
| 18942 | ac_ltlibobjs= |
| 18943 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 18944 | # 1. Remove the extension, and $U if already installed. |
| 18945 | ac_i=`echo "$ac_i" | |
| 18946 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 18947 | # 2. Add them. |
| 18948 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 18949 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 18950 | done |
| 18951 | LIBOBJS=$ac_libobjs |
| 18952 | |
| 18953 | LTLIBOBJS=$ac_ltlibobjs |
| 18954 | |
| 18955 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18956 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18957 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18958 | ac_clean_files_save=$ac_clean_files |
| 18959 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 18960 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 18961 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 18962 | cat >$CONFIG_STATUS <<_ACEOF |
| 18963 | #! $SHELL |
| 18964 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18965 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18966 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18967 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18968 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18969 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18970 | ac_cs_recheck=false |
| 18971 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18972 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 18973 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18974 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18975 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18976 | ## --------------------- ## |
| 18977 | ## M4sh Initialization. ## |
| 18978 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18979 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18980 | # Be Bourne compatible |
| 18981 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 18982 | emulate sh |
| 18983 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18984 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 18985 | # is contrary to our usage. Disable this feature. |
| 18986 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18987 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 18988 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18989 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18990 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18991 | # Support unset when possible. |
| 18992 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 18993 | as_unset=unset |
| 18994 | else |
| 18995 | as_unset=false |
| 18996 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18997 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18998 | |
| 18999 | # Work around bugs in pre-3.0 UWIN ksh. |
| 19000 | $as_unset ENV MAIL MAILPATH |
| 19001 | PS1='$ ' |
| 19002 | PS2='> ' |
| 19003 | PS4='+ ' |
| 19004 | |
| 19005 | # NLS nuisances. |
| 19006 | for as_var in \ |
| 19007 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 19008 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 19009 | LC_TELEPHONE LC_TIME |
| 19010 | do |
| 19011 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 19012 | eval $as_var=C; export $as_var |
| 19013 | else |
| 19014 | $as_unset $as_var |
| 19015 | fi |
| 19016 | done |
| 19017 | |
| 19018 | # Required to use basename. |
| 19019 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 19020 | as_expr=expr |
| 19021 | else |
| 19022 | as_expr=false |
| 19023 | fi |
| 19024 | |
| 19025 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 19026 | as_basename=basename |
| 19027 | else |
| 19028 | as_basename=false |
| 19029 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19030 | |
| 19031 | |
| 19032 | # Name of the executable. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19033 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19034 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 19035 | X"$0" : 'X\(//\)$' \| \ |
| 19036 | X"$0" : 'X\(/\)$' \| \ |
| 19037 | . : '\(.\)' 2>/dev/null || |
| 19038 | echo X/"$0" | |
| 19039 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 19040 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 19041 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 19042 | s/.*/./; q'` |
| 19043 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19044 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19045 | # PATH needs CR, and LINENO needs CR and PATH. |
| 19046 | # Avoid depending upon Character Ranges. |
| 19047 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 19048 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 19049 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 19050 | as_cr_digits='0123456789' |
| 19051 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 19052 | |
| 19053 | # The user is always right. |
| 19054 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19055 | echo "#! /bin/sh" >conf$$.sh |
| 19056 | echo "exit 0" >>conf$$.sh |
| 19057 | chmod +x conf$$.sh |
| 19058 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19059 | PATH_SEPARATOR=';' |
| 19060 | else |
| 19061 | PATH_SEPARATOR=: |
| 19062 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19063 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19064 | fi |
| 19065 | |
| 19066 | |
| 19067 | as_lineno_1=$LINENO |
| 19068 | as_lineno_2=$LINENO |
| 19069 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 19070 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 19071 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 19072 | # Find who we are. Look in the path if we contain no path at all |
| 19073 | # relative or not. |
| 19074 | case $0 in |
| 19075 | *[\\/]* ) as_myself=$0 ;; |
| 19076 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19077 | for as_dir in $PATH |
| 19078 | do |
| 19079 | IFS=$as_save_IFS |
| 19080 | test -z "$as_dir" && as_dir=. |
| 19081 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 19082 | done |
| 19083 | |
| 19084 | ;; |
| 19085 | esac |
| 19086 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 19087 | # in which case we are not to be found in the path. |
| 19088 | if test "x$as_myself" = x; then |
| 19089 | as_myself=$0 |
| 19090 | fi |
| 19091 | if test ! -f "$as_myself"; then |
| 19092 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 19093 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 19094 | { (exit 1); exit 1; }; } |
| 19095 | fi |
| 19096 | case $CONFIG_SHELL in |
| 19097 | '') |
| 19098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19099 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 19100 | do |
| 19101 | IFS=$as_save_IFS |
| 19102 | test -z "$as_dir" && as_dir=. |
| 19103 | for as_base in sh bash ksh sh5; do |
| 19104 | case $as_dir in |
| 19105 | /*) |
| 19106 | if ("$as_dir/$as_base" -c ' |
| 19107 | as_lineno_1=$LINENO |
| 19108 | as_lineno_2=$LINENO |
| 19109 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 19110 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 19111 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19112 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 19113 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19114 | CONFIG_SHELL=$as_dir/$as_base |
| 19115 | export CONFIG_SHELL |
| 19116 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 19117 | fi;; |
| 19118 | esac |
| 19119 | done |
| 19120 | done |
| 19121 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19122 | esac |
| 19123 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19124 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 19125 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 19126 | # line-number line before each line; the second 'sed' does the real |
| 19127 | # work. The second script uses 'N' to pair each line-number line |
| 19128 | # with the numbered line, and appends trailing '-' during |
| 19129 | # substitution so that $LINENO is not a special case at line end. |
| 19130 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 19131 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 19132 | sed '=' <$as_myself | |
| 19133 | sed ' |
| 19134 | N |
| 19135 | s,$,-, |
| 19136 | : loop |
| 19137 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 19138 | t loop |
| 19139 | s,-$,, |
| 19140 | s,^['$as_cr_digits']*\n,, |
| 19141 | ' >$as_me.lineno && |
| 19142 | chmod +x $as_me.lineno || |
| 19143 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 19144 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 19145 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19146 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19147 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 19148 | # (the dirname of $[0] is not the place where we might find the |
| 19149 | # original and so on. Autoconf is especially sensible to this). |
| 19150 | . ./$as_me.lineno |
| 19151 | # Exit status is that of the last command. |
| 19152 | exit |
| 19153 | } |
| 19154 | |
| 19155 | |
| 19156 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 19157 | *c*,-n*) ECHO_N= ECHO_C=' |
| 19158 | ' ECHO_T=' ' ;; |
| 19159 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 19160 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 19161 | esac |
| 19162 | |
| 19163 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 19164 | as_expr=expr |
| 19165 | else |
| 19166 | as_expr=false |
| 19167 | fi |
| 19168 | |
| 19169 | rm -f conf$$ conf$$.exe conf$$.file |
| 19170 | echo >conf$$.file |
| 19171 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 19172 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 19173 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 19174 | if test -f conf$$.exe; then |
| 19175 | # Don't use ln at all; we don't have any links |
| 19176 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19177 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19178 | as_ln_s='ln -s' |
| 19179 | fi |
| 19180 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 19181 | as_ln_s=ln |
| 19182 | else |
| 19183 | as_ln_s='cp -p' |
| 19184 | fi |
| 19185 | rm -f conf$$ conf$$.exe conf$$.file |
| 19186 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19187 | if mkdir -p . 2>/dev/null; then |
| 19188 | as_mkdir_p=: |
| 19189 | else |
| 19190 | as_mkdir_p=false |
| 19191 | fi |
| 19192 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19193 | as_executable_p="test -f" |
| 19194 | |
| 19195 | # Sed expression to map a string onto a valid CPP name. |
| 19196 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 19197 | |
| 19198 | # Sed expression to map a string onto a valid variable name. |
| 19199 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 19200 | |
| 19201 | |
| 19202 | # IFS |
| 19203 | # We need space, tab and new line, in precisely that order. |
| 19204 | as_nl=' |
| 19205 | ' |
| 19206 | IFS=" $as_nl" |
| 19207 | |
| 19208 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19209 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19210 | |
| 19211 | exec 6>&1 |
| 19212 | |
| 19213 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 19214 | # report actual input values of CONFIG_FILES etc. instead of their |
| 19215 | # values after options handling. Logging --version etc. is OK. |
| 19216 | exec 5>>config.log |
| 19217 | { |
| 19218 | echo |
| 19219 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 19220 | ## Running $as_me. ## |
| 19221 | _ASBOX |
| 19222 | } >&5 |
| 19223 | cat >&5 <<_CSEOF |
| 19224 | |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 19225 | This file was extended by python $as_me 2.4, which was |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19226 | generated by GNU Autoconf 2.57. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19227 | |
| 19228 | CONFIG_FILES = $CONFIG_FILES |
| 19229 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 19230 | CONFIG_LINKS = $CONFIG_LINKS |
| 19231 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 19232 | $ $0 $@ |
| 19233 | |
| 19234 | _CSEOF |
| 19235 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 19236 | echo >&5 |
| 19237 | _ACEOF |
| 19238 | |
| 19239 | # Files that config.status was made for. |
| 19240 | if test -n "$ac_config_files"; then |
| 19241 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 19242 | fi |
| 19243 | |
| 19244 | if test -n "$ac_config_headers"; then |
| 19245 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 19246 | fi |
| 19247 | |
| 19248 | if test -n "$ac_config_links"; then |
| 19249 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 19250 | fi |
| 19251 | |
| 19252 | if test -n "$ac_config_commands"; then |
| 19253 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 19254 | fi |
| 19255 | |
| 19256 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19257 | |
| 19258 | ac_cs_usage="\ |
| 19259 | \`$as_me' instantiates files from templates according to the |
| 19260 | current configuration. |
| 19261 | |
| 19262 | Usage: $0 [OPTIONS] [FILE]... |
| 19263 | |
| 19264 | -h, --help print this help, then exit |
| 19265 | -V, --version print version number, then exit |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19266 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19267 | -d, --debug don't remove temporary files |
| 19268 | --recheck update $as_me by reconfiguring in the same conditions |
| 19269 | --file=FILE[:TEMPLATE] |
| 19270 | instantiate the configuration file FILE |
| 19271 | --header=FILE[:TEMPLATE] |
| 19272 | instantiate the configuration header FILE |
| 19273 | |
| 19274 | Configuration files: |
| 19275 | $config_files |
| 19276 | |
| 19277 | Configuration headers: |
| 19278 | $config_headers |
| 19279 | |
| 19280 | Report bugs to <bug-autoconf@gnu.org>." |
| 19281 | _ACEOF |
| 19282 | |
| 19283 | cat >>$CONFIG_STATUS <<_ACEOF |
| 19284 | ac_cs_version="\\ |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 19285 | python config.status 2.4 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19286 | configured by $0, generated by GNU Autoconf 2.57, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19287 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 19288 | |
| 19289 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 19290 | Free Software Foundation, Inc. |
| 19291 | This config.status script is free software; the Free Software Foundation |
| 19292 | gives unlimited permission to copy, distribute and modify it." |
| 19293 | srcdir=$srcdir |
| 19294 | INSTALL="$INSTALL" |
| 19295 | _ACEOF |
| 19296 | |
| 19297 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19298 | # If no file are specified by the user, then we need to provide default |
| 19299 | # value. By we need to know if files were specified by the user. |
| 19300 | ac_need_defaults=: |
| 19301 | while test $# != 0 |
| 19302 | do |
| 19303 | case $1 in |
| 19304 | --*=*) |
| 19305 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 19306 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19307 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19308 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19309 | -*) |
| 19310 | ac_option=$1 |
| 19311 | ac_optarg=$2 |
| 19312 | ac_shift=shift |
| 19313 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19314 | *) # This is not an option, so the user has probably given explicit |
| 19315 | # arguments. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19316 | ac_option=$1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19317 | ac_need_defaults=false;; |
| 19318 | esac |
| 19319 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19320 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19321 | # Handling of the options. |
| 19322 | _ACEOF |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 19323 | cat >>$CONFIG_STATUS <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19324 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 19325 | ac_cs_recheck=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19326 | --version | --vers* | -V ) |
| 19327 | echo "$ac_cs_version"; exit 0 ;; |
| 19328 | --he | --h) |
| 19329 | # Conflict between --help and --header |
| 19330 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 19331 | Try \`$0 --help' for more information." >&5 |
| 19332 | echo "$as_me: error: ambiguous option: $1 |
| 19333 | Try \`$0 --help' for more information." >&2;} |
| 19334 | { (exit 1); exit 1; }; };; |
| 19335 | --help | --hel | -h ) |
| 19336 | echo "$ac_cs_usage"; exit 0 ;; |
| 19337 | --debug | --d* | -d ) |
| 19338 | debug=: ;; |
| 19339 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19340 | $ac_shift |
| 19341 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19342 | ac_need_defaults=false;; |
| 19343 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19344 | $ac_shift |
| 19345 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19346 | ac_need_defaults=false;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19347 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 19348 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 19349 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19350 | |
| 19351 | # This is an error. |
| 19352 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 19353 | Try \`$0 --help' for more information." >&5 |
| 19354 | echo "$as_me: error: unrecognized option: $1 |
| 19355 | Try \`$0 --help' for more information." >&2;} |
| 19356 | { (exit 1); exit 1; }; } ;; |
| 19357 | |
| 19358 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 19359 | |
| 19360 | esac |
| 19361 | shift |
| 19362 | done |
| 19363 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19364 | ac_configure_extra_args= |
| 19365 | |
| 19366 | if $ac_cs_silent; then |
| 19367 | exec 6>/dev/null |
| 19368 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 19369 | fi |
| 19370 | |
| 19371 | _ACEOF |
| 19372 | cat >>$CONFIG_STATUS <<_ACEOF |
| 19373 | if \$ac_cs_recheck; then |
| 19374 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 19375 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 19376 | fi |
| 19377 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19378 | _ACEOF |
| 19379 | |
| 19380 | |
| 19381 | |
| 19382 | |
| 19383 | |
| 19384 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19385 | for ac_config_target in $ac_config_targets |
| 19386 | do |
| 19387 | case "$ac_config_target" in |
| 19388 | # Handling of arguments. |
| 19389 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 19390 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 19391 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 19392 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 19393 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 19394 | { (exit 1); exit 1; }; };; |
| 19395 | esac |
| 19396 | done |
| 19397 | |
| 19398 | # If the user did not use the arguments to specify the items to instantiate, |
| 19399 | # then the envvar interface is used. Set only those that are not. |
| 19400 | # We use the long form for the default assignment because of an extremely |
| 19401 | # bizarre bug on SunOS 4.1.3. |
| 19402 | if $ac_need_defaults; then |
| 19403 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 19404 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 19405 | fi |
| 19406 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19407 | # Have a temporary directory for convenience. Make it in the build tree |
| 19408 | # simply because there is no reason to put it here, and in addition, |
| 19409 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19410 | # Create a temporary directory, and hook for its removal unless debugging. |
| 19411 | $debug || |
| 19412 | { |
| 19413 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 19414 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 19415 | } |
| 19416 | |
| 19417 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19418 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19419 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19420 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19421 | test -n "$tmp" && test -d "$tmp" |
| 19422 | } || |
| 19423 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19424 | tmp=./confstat$$-$RANDOM |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19425 | (umask 077 && mkdir $tmp) |
| 19426 | } || |
| 19427 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19428 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19429 | { (exit 1); exit 1; } |
| 19430 | } |
| 19431 | |
| 19432 | _ACEOF |
| 19433 | |
| 19434 | cat >>$CONFIG_STATUS <<_ACEOF |
| 19435 | |
| 19436 | # |
| 19437 | # CONFIG_FILES section. |
| 19438 | # |
| 19439 | |
| 19440 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 19441 | # This happens for instance when ./config.status config.h |
| 19442 | if test -n "\$CONFIG_FILES"; then |
| 19443 | # Protect against being on the right side of a sed subst in config.status. |
| 19444 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 19445 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 19446 | s,@SHELL@,$SHELL,;t t |
| 19447 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 19448 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 19449 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 19450 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 19451 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 19452 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 19453 | s,@exec_prefix@,$exec_prefix,;t t |
| 19454 | s,@prefix@,$prefix,;t t |
| 19455 | s,@program_transform_name@,$program_transform_name,;t t |
| 19456 | s,@bindir@,$bindir,;t t |
| 19457 | s,@sbindir@,$sbindir,;t t |
| 19458 | s,@libexecdir@,$libexecdir,;t t |
| 19459 | s,@datadir@,$datadir,;t t |
| 19460 | s,@sysconfdir@,$sysconfdir,;t t |
| 19461 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 19462 | s,@localstatedir@,$localstatedir,;t t |
| 19463 | s,@libdir@,$libdir,;t t |
| 19464 | s,@includedir@,$includedir,;t t |
| 19465 | s,@oldincludedir@,$oldincludedir,;t t |
| 19466 | s,@infodir@,$infodir,;t t |
| 19467 | s,@mandir@,$mandir,;t t |
| 19468 | s,@build_alias@,$build_alias,;t t |
| 19469 | s,@host_alias@,$host_alias,;t t |
| 19470 | s,@target_alias@,$target_alias,;t t |
| 19471 | s,@DEFS@,$DEFS,;t t |
| 19472 | s,@ECHO_C@,$ECHO_C,;t t |
| 19473 | s,@ECHO_N@,$ECHO_N,;t t |
| 19474 | s,@ECHO_T@,$ECHO_T,;t t |
| 19475 | s,@LIBS@,$LIBS,;t t |
| 19476 | s,@VERSION@,$VERSION,;t t |
| 19477 | s,@SOVERSION@,$SOVERSION,;t t |
| 19478 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 19479 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 19480 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 19481 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 19482 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 19483 | s,@MACHDEP@,$MACHDEP,;t t |
| 19484 | s,@SGI_ABI@,$SGI_ABI,;t t |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 19485 | s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 19486 | s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19487 | s,@CXX@,$CXX,;t t |
| 19488 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 19489 | s,@EXEEXT@,$EXEEXT,;t t |
| 19490 | s,@CC@,$CC,;t t |
| 19491 | s,@CFLAGS@,$CFLAGS,;t t |
| 19492 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 19493 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 19494 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 19495 | s,@OBJEXT@,$OBJEXT,;t t |
| 19496 | s,@CPP@,$CPP,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19497 | s,@EGREP@,$EGREP,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19498 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 19499 | s,@LIBRARY@,$LIBRARY,;t t |
| 19500 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 19501 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 19502 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 19503 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 19504 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 19505 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 19506 | s,@LINKCC@,$LINKCC,;t t |
| 19507 | s,@RANLIB@,$RANLIB,;t t |
| 19508 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 19509 | s,@AR@,$AR,;t t |
| 19510 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 19511 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 19512 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 19513 | s,@LN@,$LN,;t t |
| 19514 | s,@OPT@,$OPT,;t t |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 19515 | s,@BASECFLAGS@,$BASECFLAGS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19516 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 19517 | s,@SO@,$SO,;t t |
| 19518 | s,@LDSHARED@,$LDSHARED,;t t |
| 19519 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 19520 | s,@CCSHARED@,$CCSHARED,;t t |
| 19521 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 19522 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 19523 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19524 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 19525 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 19526 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 19527 | s,@LDLAST@,$LDLAST,;t t |
| 19528 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 19529 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 19530 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 19531 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19532 | s,@TRUE@,$TRUE,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19533 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 19534 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 19535 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 19536 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 19537 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 19538 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 19539 | s,@LIBM@,$LIBM,;t t |
| 19540 | s,@LIBC@,$LIBC,;t t |
| 19541 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 19542 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 19543 | s,@SRCDIRS@,$SRCDIRS,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19544 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19545 | CEOF |
| 19546 | |
| 19547 | _ACEOF |
| 19548 | |
| 19549 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19550 | # Split the substitutions into bite-sized pieces for seds with |
| 19551 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 19552 | ac_max_sed_lines=48 |
| 19553 | ac_sed_frag=1 # Number of current file. |
| 19554 | ac_beg=1 # First line for current file. |
| 19555 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 19556 | ac_more_lines=: |
| 19557 | ac_sed_cmds= |
| 19558 | while $ac_more_lines; do |
| 19559 | if test $ac_beg -gt 1; then |
| 19560 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 19561 | else |
| 19562 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 19563 | fi |
| 19564 | if test ! -s $tmp/subs.frag; then |
| 19565 | ac_more_lines=false |
| 19566 | else |
| 19567 | # The purpose of the label and of the branching condition is to |
| 19568 | # speed up the sed processing (if there are no `@' at all, there |
| 19569 | # is no need to browse any of the substitutions). |
| 19570 | # These are the two extra sed commands mentioned above. |
| 19571 | (echo ':t |
| 19572 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 19573 | if test -z "$ac_sed_cmds"; then |
| 19574 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 19575 | else |
| 19576 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 19577 | fi |
| 19578 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 19579 | ac_beg=$ac_end |
| 19580 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 19581 | fi |
| 19582 | done |
| 19583 | if test -z "$ac_sed_cmds"; then |
| 19584 | ac_sed_cmds=cat |
| 19585 | fi |
| 19586 | fi # test -n "$CONFIG_FILES" |
| 19587 | |
| 19588 | _ACEOF |
| 19589 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19590 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 19591 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 19592 | case $ac_file in |
| 19593 | - | *:- | *:-:* ) # input from stdin |
| 19594 | cat >$tmp/stdin |
| 19595 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 19596 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 19597 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 19598 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 19599 | * ) ac_file_in=$ac_file.in ;; |
| 19600 | esac |
| 19601 | |
| 19602 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 19603 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 19604 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19605 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 19606 | X"$ac_file" : 'X\(//\)$' \| \ |
| 19607 | X"$ac_file" : 'X\(/\)' \| \ |
| 19608 | . : '\(.\)' 2>/dev/null || |
| 19609 | echo X"$ac_file" | |
| 19610 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 19611 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 19612 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 19613 | /^X\(\/\).*/{ s//\1/; q; } |
| 19614 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19615 | { if $as_mkdir_p; then |
| 19616 | mkdir -p "$ac_dir" |
| 19617 | else |
| 19618 | as_dir="$ac_dir" |
| 19619 | as_dirs= |
| 19620 | while test ! -d "$as_dir"; do |
| 19621 | as_dirs="$as_dir $as_dirs" |
| 19622 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 19623 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19624 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 19625 | X"$as_dir" : 'X\(//\)$' \| \ |
| 19626 | X"$as_dir" : 'X\(/\)' \| \ |
| 19627 | . : '\(.\)' 2>/dev/null || |
| 19628 | echo X"$as_dir" | |
| 19629 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 19630 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 19631 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 19632 | /^X\(\/\).*/{ s//\1/; q; } |
| 19633 | s/.*/./; q'` |
| 19634 | done |
| 19635 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 19636 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 19637 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 19638 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19639 | |
| 19640 | ac_builddir=. |
| 19641 | |
| 19642 | if test "$ac_dir" != .; then |
| 19643 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 19644 | # A "../" for each directory in $ac_dir_suffix. |
| 19645 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 19646 | else |
| 19647 | ac_dir_suffix= ac_top_builddir= |
| 19648 | fi |
| 19649 | |
| 19650 | case $srcdir in |
| 19651 | .) # No --srcdir option. We are building in place. |
| 19652 | ac_srcdir=. |
| 19653 | if test -z "$ac_top_builddir"; then |
| 19654 | ac_top_srcdir=. |
| 19655 | else |
| 19656 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 19657 | fi ;; |
| 19658 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 19659 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 19660 | ac_top_srcdir=$srcdir ;; |
| 19661 | *) # Relative path. |
| 19662 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 19663 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 19664 | esac |
| 19665 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 19666 | # absolute. |
| 19667 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 19668 | 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] | 19669 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 19670 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 19671 | |
| 19672 | |
| 19673 | case $INSTALL in |
| 19674 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 19675 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 19676 | esac |
| 19677 | |
| 19678 | if test x"$ac_file" != x-; then |
| 19679 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 19680 | echo "$as_me: creating $ac_file" >&6;} |
| 19681 | rm -f "$ac_file" |
| 19682 | fi |
| 19683 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 19684 | # use $as_me), people would be surprised to read: |
| 19685 | # /* config.h. Generated by config.status. */ |
| 19686 | if test x"$ac_file" = x-; then |
| 19687 | configure_input= |
| 19688 | else |
| 19689 | configure_input="$ac_file. " |
| 19690 | fi |
| 19691 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 19692 | sed 's,.*/,,'` by configure." |
| 19693 | |
| 19694 | # First look for the input files in the build tree, otherwise in the |
| 19695 | # src tree. |
| 19696 | ac_file_inputs=`IFS=: |
| 19697 | for f in $ac_file_in; do |
| 19698 | case $f in |
| 19699 | -) echo $tmp/stdin ;; |
| 19700 | [\\/$]*) |
| 19701 | # Absolute (can't be DOS-style, as IFS=:) |
| 19702 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 19703 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 19704 | { (exit 1); exit 1; }; } |
| 19705 | echo $f;; |
| 19706 | *) # Relative |
| 19707 | if test -f "$f"; then |
| 19708 | # Build tree |
| 19709 | echo $f |
| 19710 | elif test -f "$srcdir/$f"; then |
| 19711 | # Source tree |
| 19712 | echo $srcdir/$f |
| 19713 | else |
| 19714 | # /dev/null tree |
| 19715 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 19716 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 19717 | { (exit 1); exit 1; }; } |
| 19718 | fi;; |
| 19719 | esac |
| 19720 | done` || { (exit 1); exit 1; } |
| 19721 | _ACEOF |
| 19722 | cat >>$CONFIG_STATUS <<_ACEOF |
| 19723 | sed "$ac_vpsub |
| 19724 | $extrasub |
| 19725 | _ACEOF |
| 19726 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19727 | :t |
| 19728 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 19729 | s,@configure_input@,$configure_input,;t t |
| 19730 | s,@srcdir@,$ac_srcdir,;t t |
| 19731 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 19732 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 19733 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 19734 | s,@builddir@,$ac_builddir,;t t |
| 19735 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 19736 | s,@top_builddir@,$ac_top_builddir,;t t |
| 19737 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 19738 | s,@INSTALL@,$ac_INSTALL,;t t |
| 19739 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 19740 | rm -f $tmp/stdin |
| 19741 | if test x"$ac_file" != x-; then |
| 19742 | mv $tmp/out $ac_file |
| 19743 | else |
| 19744 | cat $tmp/out |
| 19745 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19746 | fi |
| 19747 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19748 | done |
| 19749 | _ACEOF |
| 19750 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19751 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19752 | # |
| 19753 | # CONFIG_HEADER section. |
| 19754 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19755 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19756 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 19757 | # 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] | 19758 | # |
| 19759 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19760 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 19761 | ac_dB='[ ].*$,\1#\2' |
| 19762 | ac_dC=' ' |
| 19763 | ac_dD=',;t' |
| 19764 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 19765 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 19766 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19767 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19768 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19769 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19770 | 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] | 19771 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19772 | case $ac_file in |
| 19773 | - | *:- | *:-:* ) # input from stdin |
| 19774 | cat >$tmp/stdin |
| 19775 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 19776 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 19777 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 19778 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 19779 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19780 | esac |
| 19781 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19782 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 19783 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19784 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19785 | # First look for the input files in the build tree, otherwise in the |
| 19786 | # src tree. |
| 19787 | ac_file_inputs=`IFS=: |
| 19788 | for f in $ac_file_in; do |
| 19789 | case $f in |
| 19790 | -) echo $tmp/stdin ;; |
| 19791 | [\\/$]*) |
| 19792 | # Absolute (can't be DOS-style, as IFS=:) |
| 19793 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 19794 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 19795 | { (exit 1); exit 1; }; } |
| 19796 | echo $f;; |
| 19797 | *) # Relative |
| 19798 | if test -f "$f"; then |
| 19799 | # Build tree |
| 19800 | echo $f |
| 19801 | elif test -f "$srcdir/$f"; then |
| 19802 | # Source tree |
| 19803 | echo $srcdir/$f |
| 19804 | else |
| 19805 | # /dev/null tree |
| 19806 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 19807 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 19808 | { (exit 1); exit 1; }; } |
| 19809 | fi;; |
| 19810 | esac |
| 19811 | done` || { (exit 1); exit 1; } |
| 19812 | # Remove the trailing spaces. |
| 19813 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19814 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19815 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19816 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19817 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 19818 | # `conftest.undefs', that substitutes the proper values into |
| 19819 | # config.h.in to produce config.h. The first handles `#define' |
| 19820 | # templates, and the second `#undef' templates. |
| 19821 | # And first: Protect against being on the right side of a sed subst in |
| 19822 | # config.status. Protect against being in an unquoted here document |
| 19823 | # in config.status. |
| 19824 | rm -f conftest.defines conftest.undefs |
| 19825 | # Using a here document instead of a string reduces the quoting nightmare. |
| 19826 | # Putting comments in sed scripts is not portable. |
| 19827 | # |
| 19828 | # `end' is used to avoid that the second main sed command (meant for |
| 19829 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 19830 | # See the Autoconf documentation for `clear'. |
| 19831 | cat >confdef2sed.sed <<\_ACEOF |
| 19832 | s/[\\&,]/\\&/g |
| 19833 | s,[\\$`],\\&,g |
| 19834 | t clear |
| 19835 | : clear |
| 19836 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 19837 | t end |
| 19838 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 19839 | : end |
| 19840 | _ACEOF |
| 19841 | # If some macros were called several times there might be several times |
| 19842 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 19843 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 19844 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 19845 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 19846 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19847 | |
| 19848 | # This sed command replaces #undef with comments. This is necessary, for |
| 19849 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 19850 | # 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] | 19851 | cat >>conftest.undefs <<\_ACEOF |
| 19852 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 19853 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19854 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19855 | # Break up conftest.defines because some shells have a limit on the size |
| 19856 | # of here documents, and old seds have small limits too (100 cmds). |
| 19857 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19858 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19859 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 19860 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19861 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19862 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19863 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19864 | # Write a limited-size here document to $tmp/defines.sed. |
| 19865 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 19866 | # Speed up: don't consider the non `#define' lines. |
| 19867 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 19868 | # Work around the forget-to-reset-the-flag bug. |
| 19869 | echo 't clr' >>$CONFIG_STATUS |
| 19870 | echo ': clr' >>$CONFIG_STATUS |
| 19871 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19872 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19873 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 19874 | rm -f $tmp/in |
| 19875 | mv $tmp/out $tmp/in |
| 19876 | ' >>$CONFIG_STATUS |
| 19877 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 19878 | rm -f conftest.defines |
| 19879 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19880 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19881 | rm -f conftest.defines |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19882 | echo ' fi # grep' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19883 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19884 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19885 | # Break up conftest.undefs because some shells have a limit on the size |
| 19886 | # of here documents, and old seds have small limits too (100 cmds). |
| 19887 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 19888 | rm -f conftest.tail |
| 19889 | while grep . conftest.undefs >/dev/null |
| 19890 | do |
| 19891 | # Write a limited-size here document to $tmp/undefs.sed. |
| 19892 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 19893 | # Speed up: don't consider the non `#undef' |
| 19894 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 19895 | # Work around the forget-to-reset-the-flag bug. |
| 19896 | echo 't clr' >>$CONFIG_STATUS |
| 19897 | echo ': clr' >>$CONFIG_STATUS |
| 19898 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 19899 | echo 'CEOF |
| 19900 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 19901 | rm -f $tmp/in |
| 19902 | mv $tmp/out $tmp/in |
| 19903 | ' >>$CONFIG_STATUS |
| 19904 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 19905 | rm -f conftest.undefs |
| 19906 | mv conftest.tail conftest.undefs |
| 19907 | done |
| 19908 | rm -f conftest.undefs |
| 19909 | |
| 19910 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19911 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 19912 | # use $as_me), people would be surprised to read: |
| 19913 | # /* config.h. Generated by config.status. */ |
| 19914 | if test x"$ac_file" = x-; then |
| 19915 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19916 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19917 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19918 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19919 | cat $tmp/in >>$tmp/config.h |
| 19920 | rm -f $tmp/in |
| 19921 | if test x"$ac_file" != x-; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19922 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19923 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 19924 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 19925 | else |
| 19926 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 19927 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19928 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 19929 | X"$ac_file" : 'X\(//\)$' \| \ |
| 19930 | X"$ac_file" : 'X\(/\)' \| \ |
| 19931 | . : '\(.\)' 2>/dev/null || |
| 19932 | echo X"$ac_file" | |
| 19933 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 19934 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 19935 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 19936 | /^X\(\/\).*/{ s//\1/; q; } |
| 19937 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19938 | { if $as_mkdir_p; then |
| 19939 | mkdir -p "$ac_dir" |
| 19940 | else |
| 19941 | as_dir="$ac_dir" |
| 19942 | as_dirs= |
| 19943 | while test ! -d "$as_dir"; do |
| 19944 | as_dirs="$as_dir $as_dirs" |
| 19945 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 19946 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19947 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 19948 | X"$as_dir" : 'X\(//\)$' \| \ |
| 19949 | X"$as_dir" : 'X\(/\)' \| \ |
| 19950 | . : '\(.\)' 2>/dev/null || |
| 19951 | echo X"$as_dir" | |
| 19952 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 19953 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 19954 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 19955 | /^X\(\/\).*/{ s//\1/; q; } |
| 19956 | s/.*/./; q'` |
| 19957 | done |
| 19958 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 19959 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 19960 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 19961 | { (exit 1); exit 1; }; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19962 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19963 | rm -f $ac_file |
| 19964 | mv $tmp/config.h $ac_file |
| 19965 | fi |
| 19966 | else |
| 19967 | cat $tmp/config.h |
| 19968 | rm -f $tmp/config.h |
| 19969 | fi |
| 19970 | done |
| 19971 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19972 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19973 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19974 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19975 | { (exit 0); exit 0; } |
| 19976 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19977 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19978 | ac_clean_files=$ac_clean_files_save |
| 19979 | |
| 19980 | |
| 19981 | # configure is writing to config.log, and then calls config.status. |
| 19982 | # config.status does its own redirection, appending to config.log. |
| 19983 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 19984 | # by configure, so config.status won't be able to write to it; its |
| 19985 | # output is simply discarded. So we exec the FD to /dev/null, |
| 19986 | # effectively closing config.log, so it can be properly (re)opened and |
| 19987 | # appended to by config.status. When coming back to configure, we |
| 19988 | # need to make the FD available again. |
| 19989 | if test "$no_create" != yes; then |
| 19990 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19991 | ac_config_status_args= |
| 19992 | test "$silent" = yes && |
| 19993 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19994 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19995 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19996 | exec 5>>config.log |
| 19997 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 19998 | # would make configure fail if this is the last instruction. |
| 19999 | $ac_cs_success || { (exit 1); exit 1; } |
| 20000 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20001 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 20002 | |
| 20003 | echo "creating Setup" |
| 20004 | if test ! -f Modules/Setup |
| 20005 | then |
| 20006 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 20007 | fi |
| 20008 | |
| 20009 | echo "creating Setup.local" |
| 20010 | if test ! -f Modules/Setup.local |
| 20011 | then |
| 20012 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 20013 | fi |
| 20014 | |
| 20015 | echo "creating Makefile" |
| 20016 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 20017 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 20018 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 20019 | mv config.c Modules |