Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Jack Jansen | c8607b7 | 2003-12-08 01:10:12 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 1.441 . |
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 | 76bafc6 | 2003-10-03 13:47:44 +0000 | [diff] [blame] | 1440 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
| 1441 | OpenBSD/2.* | OpenBSD/3.[01234]) |
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;; |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 1455 | # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that |
| 1456 | # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently, |
| 1457 | # this is fixed in 10.3, which identifies itself as Darwin/7.* |
| 1458 | # This should hopefully be fixed in FreeBSD 4.9 |
| 1459 | FreeBSD/4.8* | Darwin/6* ) |
| 1460 | define_xopen_source=no;; |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 1461 | # On AIX 4, mbstate_t is defined only when _XOPEN_SOURCE == 500 but used in |
| 1462 | # wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined or |
| 1463 | # has another value. By not (re)defining it, the defaults come in place. |
| 1464 | AIX/4) |
| 1465 | define_xopen_source=no;; |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1466 | esac |
| 1467 | |
| 1468 | if test $define_xopen_source = yes |
| 1469 | then |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1470 | |
| 1471 | cat >>confdefs.h <<\_ACEOF |
| 1472 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1473 | _ACEOF |
| 1474 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1475 | |
| 1476 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 1477 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 1478 | # several APIs are not declared. Since this is also needed in some |
| 1479 | # cases for HP-UX, we define it globally. |
| 1480 | |
| 1481 | |
| 1482 | cat >>confdefs.h <<\_ACEOF |
| 1483 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 1484 | _ACEOF |
| 1485 | |
| 1486 | |
| 1487 | cat >>confdefs.h <<\_ACEOF |
| 1488 | #define _POSIX_C_SOURCE 200112L |
| 1489 | _ACEOF |
| 1490 | |
| 1491 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1492 | fi |
| 1493 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1494 | # |
| 1495 | # SGI compilers allow the specification of the both the ABI and the |
| 1496 | # ISA on the command line. Depending on the values of these switches, |
| 1497 | # different and often incompatable code will be generated. |
| 1498 | # |
| 1499 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1500 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1501 | # variable is also adjusted. |
| 1502 | # |
| 1503 | |
| 1504 | if test ! -z "$SGI_ABI" |
| 1505 | then |
| 1506 | CC="cc $SGI_ABI" |
| 1507 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1508 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1509 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1510 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1511 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1512 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1513 | # And add extra plat-mac for darwin |
| 1514 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1515 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1516 | echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 1517 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6 |
| 1518 | if test -z "$EXTRAPLATDIR" |
| 1519 | then |
| 1520 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1521 | darwin) |
| 1522 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 1523 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 1524 | ;; |
| 1525 | *) |
| 1526 | EXTRAPLATDIR="" |
| 1527 | EXTRAMACHDEPPATH="" |
| 1528 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1529 | esac |
| 1530 | fi |
| 1531 | echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 1532 | echo "${ECHO_T}$EXTRAPLATDIR" >&6 |
| 1533 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1534 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1535 | |
| 1536 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 1537 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 1538 | # just to get things to compile and link. Users are free to override OPT |
| 1539 | # when running configure or make. The build should not break if they do. |
| 1540 | # BASECFLAGS should generally not be messed with, however. |
| 1541 | |
| 1542 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 1543 | # on that fiddles with OPT and BASECFLAGS? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1544 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1545 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1546 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1547 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1548 | if test "${with_gcc+set}" = set; then |
| 1549 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1550 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1551 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1552 | no) CC=cc |
| 1553 | without_gcc=yes;; |
| 1554 | yes) CC=gcc |
| 1555 | without_gcc=no;; |
| 1556 | *) CC=$withval |
| 1557 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1558 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1559 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1560 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1561 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1562 | AIX*) CC=cc_r |
| 1563 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1564 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1565 | case $BE_HOST_CPU in |
| 1566 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1567 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1568 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1569 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 1570 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1571 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1572 | ;; |
| 1573 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1574 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1575 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1576 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1577 | ;; |
| 1578 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1579 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1580 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1581 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1582 | ;; |
| 1583 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1584 | AR="\$(srcdir)/Modules/ar_beos" |
| 1585 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1586 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1587 | Monterey*) |
| 1588 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1589 | without_gcc=;; |
| 1590 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1591 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1592 | fi; |
| 1593 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1594 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1595 | |
| 1596 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1597 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1598 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1599 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1600 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1601 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1602 | # Check whether --with-cxx or --without-cxx was given. |
| 1603 | if test "${with_cxx+set}" = set; then |
| 1604 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1605 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1606 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1607 | case $withval in |
| 1608 | no) CXX= |
| 1609 | with_cxx=no;; |
| 1610 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1611 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1612 | with_cxx=$withval;; |
| 1613 | esac |
| 1614 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1615 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1616 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1617 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1618 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1619 | fi; |
| 1620 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1621 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1622 | |
| 1623 | if test "$with_cxx" = "yes" |
| 1624 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1625 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1626 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1627 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1628 | fi |
| 1629 | |
| 1630 | |
| 1631 | |
| 1632 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1633 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1634 | then |
| 1635 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1636 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1637 | # 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] | 1638 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1639 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1640 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1641 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1643 | else |
| 1644 | if test -n "$CXX"; then |
| 1645 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1646 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1648 | for as_dir in $PATH |
| 1649 | do |
| 1650 | IFS=$as_save_IFS |
| 1651 | test -z "$as_dir" && as_dir=. |
| 1652 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1653 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1654 | ac_cv_prog_CXX="$ac_prog" |
| 1655 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1656 | break 2 |
| 1657 | fi |
| 1658 | done |
| 1659 | done |
| 1660 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1661 | fi |
| 1662 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1663 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1664 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1665 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1666 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1667 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1668 | echo "$as_me:$LINENO: result: no" >&5 |
| 1669 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1670 | fi |
| 1671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1672 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1673 | done |
| 1674 | test -n "$CXX" || CXX="notfound" |
| 1675 | |
| 1676 | if test "$CXX" = "notfound" |
| 1677 | then |
| 1678 | CXX= |
| 1679 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1680 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1681 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1682 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1683 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1684 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1685 | cat >conftest.$ac_ext <<_ACEOF |
| 1686 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1687 | /* confdefs.h. */ |
| 1688 | _ACEOF |
| 1689 | cat confdefs.h >>conftest.$ac_ext |
| 1690 | cat >>conftest.$ac_ext <<_ACEOF |
| 1691 | /* end confdefs.h. */ |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1692 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1693 | int |
| 1694 | main () |
| 1695 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1696 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1697 | ; |
| 1698 | return 0; |
| 1699 | } |
| 1700 | _ACEOF |
| 1701 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1702 | 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] | 1703 | # Try to create an executable without -o first, disregard a.out. |
| 1704 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1705 | # of exeext. |
| 1706 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 1707 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 1708 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1709 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1710 | (eval $ac_link_default) 2>&5 |
| 1711 | ac_status=$? |
| 1712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1713 | (exit $ac_status); }; then |
| 1714 | # Find the output, starting from the most likely. This scheme is |
| 1715 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1716 | # resort. |
| 1717 | |
| 1718 | # Be careful to initialize this variable, since it used to be cached. |
| 1719 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1720 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1721 | # b.out is created by i960 compilers. |
| 1722 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1723 | do |
| 1724 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1725 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1726 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1727 | ;; |
| 1728 | conftest.$ac_ext ) |
| 1729 | # This is the source file. |
| 1730 | ;; |
| 1731 | [ab].out ) |
| 1732 | # We found the default executable, but exeext='' is most |
| 1733 | # certainly right. |
| 1734 | break;; |
| 1735 | *.* ) |
| 1736 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1737 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1738 | # but it would be cool to find out if it's true. Does anybody |
| 1739 | # maintain Libtool? --akim. |
| 1740 | export ac_cv_exeext |
| 1741 | break;; |
| 1742 | * ) |
| 1743 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1744 | esac |
| 1745 | done |
| 1746 | else |
| 1747 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1749 | |
| 1750 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
| 1751 | See \`config.log' for more details." >&5 |
| 1752 | echo "$as_me: error: C++ compiler cannot create executables |
| 1753 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1754 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1755 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1756 | |
| 1757 | ac_exeext=$ac_cv_exeext |
| 1758 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1759 | echo "${ECHO_T}$ac_file" >&6 |
| 1760 | |
| 1761 | # Check the compiler produces executables we can run. If not, either |
| 1762 | # the compiler is broken, or we cross compile. |
| 1763 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1764 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1765 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1766 | # If not cross compiling, check that we can run a simple program. |
| 1767 | if test "$cross_compiling" != yes; then |
| 1768 | if { ac_try='./$ac_file' |
| 1769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1770 | (eval $ac_try) 2>&5 |
| 1771 | ac_status=$? |
| 1772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1773 | (exit $ac_status); }; }; then |
| 1774 | cross_compiling=no |
| 1775 | else |
| 1776 | if test "$cross_compiling" = maybe; then |
| 1777 | cross_compiling=yes |
| 1778 | else |
| 1779 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1780 | If you meant to cross compile, use \`--host'. |
| 1781 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1782 | echo "$as_me: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1783 | If you meant to cross compile, use \`--host'. |
| 1784 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1785 | { (exit 1); exit 1; }; } |
| 1786 | fi |
| 1787 | fi |
| 1788 | fi |
| 1789 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1790 | echo "${ECHO_T}yes" >&6 |
| 1791 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1792 | 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] | 1793 | ac_clean_files=$ac_clean_files_save |
| 1794 | # Check the compiler produces executables we can run. If not, either |
| 1795 | # the compiler is broken, or we cross compile. |
| 1796 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1797 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1798 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1799 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1800 | |
| 1801 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1802 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1803 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1804 | (eval $ac_link) 2>&5 |
| 1805 | ac_status=$? |
| 1806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1807 | (exit $ac_status); }; then |
| 1808 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1809 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1810 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1811 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1812 | for ac_file in conftest.exe conftest conftest.*; do |
| 1813 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1814 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1815 | *.$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] | 1816 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1817 | export ac_cv_exeext |
| 1818 | break;; |
| 1819 | * ) break;; |
| 1820 | esac |
| 1821 | done |
| 1822 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1823 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1824 | See \`config.log' for more details." >&5 |
| 1825 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1826 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1827 | { (exit 1); exit 1; }; } |
| 1828 | fi |
| 1829 | |
| 1830 | rm -f conftest$ac_cv_exeext |
| 1831 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1832 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1833 | |
| 1834 | rm -f conftest.$ac_ext |
| 1835 | EXEEXT=$ac_cv_exeext |
| 1836 | ac_exeext=$EXEEXT |
| 1837 | |
| 1838 | ac_ext=c |
| 1839 | ac_cpp='$CPP $CPPFLAGS' |
| 1840 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1841 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1842 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1843 | |
| 1844 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1845 | |
| 1846 | fi |
| 1847 | fi |
| 1848 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1849 | # If the user switches compilers, we can't believe the cache |
| 1850 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1851 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1852 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1853 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1854 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1855 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1856 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1857 | fi |
| 1858 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1859 | ac_ext=c |
| 1860 | ac_cpp='$CPP $CPPFLAGS' |
| 1861 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1862 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1863 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1864 | if test -n "$ac_tool_prefix"; then |
| 1865 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1866 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1867 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1868 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1869 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1871 | else |
| 1872 | if test -n "$CC"; then |
| 1873 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1874 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1876 | for as_dir in $PATH |
| 1877 | do |
| 1878 | IFS=$as_save_IFS |
| 1879 | test -z "$as_dir" && as_dir=. |
| 1880 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1881 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1882 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1883 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1884 | break 2 |
| 1885 | fi |
| 1886 | done |
| 1887 | done |
| 1888 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1889 | fi |
| 1890 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1891 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1892 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1893 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1894 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1895 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1896 | echo "$as_me:$LINENO: result: no" >&5 |
| 1897 | echo "${ECHO_T}no" >&6 |
| 1898 | fi |
| 1899 | |
| 1900 | fi |
| 1901 | if test -z "$ac_cv_prog_CC"; then |
| 1902 | ac_ct_CC=$CC |
| 1903 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1904 | set dummy gcc; ac_word=$2 |
| 1905 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1906 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1907 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1909 | else |
| 1910 | if test -n "$ac_ct_CC"; then |
| 1911 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1912 | else |
| 1913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1914 | for as_dir in $PATH |
| 1915 | do |
| 1916 | IFS=$as_save_IFS |
| 1917 | test -z "$as_dir" && as_dir=. |
| 1918 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1919 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1920 | ac_cv_prog_ac_ct_CC="gcc" |
| 1921 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1922 | break 2 |
| 1923 | fi |
| 1924 | done |
| 1925 | done |
| 1926 | |
| 1927 | fi |
| 1928 | fi |
| 1929 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1930 | if test -n "$ac_ct_CC"; then |
| 1931 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1932 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1933 | else |
| 1934 | echo "$as_me:$LINENO: result: no" >&5 |
| 1935 | echo "${ECHO_T}no" >&6 |
| 1936 | fi |
| 1937 | |
| 1938 | CC=$ac_ct_CC |
| 1939 | else |
| 1940 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1941 | fi |
| 1942 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1943 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1944 | if test -n "$ac_tool_prefix"; then |
| 1945 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1946 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1947 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1948 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1949 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1951 | else |
| 1952 | if test -n "$CC"; then |
| 1953 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1954 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1956 | for as_dir in $PATH |
| 1957 | do |
| 1958 | IFS=$as_save_IFS |
| 1959 | test -z "$as_dir" && as_dir=. |
| 1960 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1961 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1962 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1963 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1964 | break 2 |
| 1965 | fi |
| 1966 | done |
| 1967 | done |
| 1968 | |
| 1969 | fi |
| 1970 | fi |
| 1971 | CC=$ac_cv_prog_CC |
| 1972 | if test -n "$CC"; then |
| 1973 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1974 | echo "${ECHO_T}$CC" >&6 |
| 1975 | else |
| 1976 | echo "$as_me:$LINENO: result: no" >&5 |
| 1977 | echo "${ECHO_T}no" >&6 |
| 1978 | fi |
| 1979 | |
| 1980 | fi |
| 1981 | if test -z "$ac_cv_prog_CC"; then |
| 1982 | ac_ct_CC=$CC |
| 1983 | # Extract the first word of "cc", so it can be a program name with args. |
| 1984 | set dummy cc; ac_word=$2 |
| 1985 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1986 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1987 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1989 | else |
| 1990 | if test -n "$ac_ct_CC"; then |
| 1991 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1992 | else |
| 1993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1994 | for as_dir in $PATH |
| 1995 | do |
| 1996 | IFS=$as_save_IFS |
| 1997 | test -z "$as_dir" && as_dir=. |
| 1998 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1999 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2000 | ac_cv_prog_ac_ct_CC="cc" |
| 2001 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2002 | break 2 |
| 2003 | fi |
| 2004 | done |
| 2005 | done |
| 2006 | |
| 2007 | fi |
| 2008 | fi |
| 2009 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2010 | if test -n "$ac_ct_CC"; then |
| 2011 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2012 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2013 | else |
| 2014 | echo "$as_me:$LINENO: result: no" >&5 |
| 2015 | echo "${ECHO_T}no" >&6 |
| 2016 | fi |
| 2017 | |
| 2018 | CC=$ac_ct_CC |
| 2019 | else |
| 2020 | CC="$ac_cv_prog_CC" |
| 2021 | fi |
| 2022 | |
| 2023 | fi |
| 2024 | if test -z "$CC"; then |
| 2025 | # Extract the first word of "cc", so it can be a program name with args. |
| 2026 | set dummy cc; ac_word=$2 |
| 2027 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2028 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2029 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2031 | else |
| 2032 | if test -n "$CC"; then |
| 2033 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2034 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2035 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2037 | for as_dir in $PATH |
| 2038 | do |
| 2039 | IFS=$as_save_IFS |
| 2040 | test -z "$as_dir" && as_dir=. |
| 2041 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2042 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2043 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2044 | ac_prog_rejected=yes |
| 2045 | continue |
| 2046 | fi |
| 2047 | ac_cv_prog_CC="cc" |
| 2048 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2049 | break 2 |
| 2050 | fi |
| 2051 | done |
| 2052 | done |
| 2053 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2054 | if test $ac_prog_rejected = yes; then |
| 2055 | # We found a bogon in the path, so make sure we never use it. |
| 2056 | set dummy $ac_cv_prog_CC |
| 2057 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2058 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2059 | # We chose a different compiler from the bogus one. |
| 2060 | # However, it has the same basename, so the bogon will be chosen |
| 2061 | # first if we set CC to just the basename; use the full file name. |
| 2062 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2063 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2064 | fi |
| 2065 | fi |
| 2066 | fi |
| 2067 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2068 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2069 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2070 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2071 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2072 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2073 | echo "$as_me:$LINENO: result: no" >&5 |
| 2074 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2075 | fi |
| 2076 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2077 | fi |
| 2078 | if test -z "$CC"; then |
| 2079 | if test -n "$ac_tool_prefix"; then |
| 2080 | for ac_prog in cl |
| 2081 | do |
| 2082 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2083 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2084 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2085 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2086 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2088 | else |
| 2089 | if test -n "$CC"; then |
| 2090 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2091 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2093 | for as_dir in $PATH |
| 2094 | do |
| 2095 | IFS=$as_save_IFS |
| 2096 | test -z "$as_dir" && as_dir=. |
| 2097 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2098 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2099 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2100 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2101 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2102 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2103 | done |
| 2104 | done |
| 2105 | |
| 2106 | fi |
| 2107 | fi |
| 2108 | CC=$ac_cv_prog_CC |
| 2109 | if test -n "$CC"; then |
| 2110 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2111 | echo "${ECHO_T}$CC" >&6 |
| 2112 | else |
| 2113 | echo "$as_me:$LINENO: result: no" >&5 |
| 2114 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2115 | fi |
| 2116 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2117 | test -n "$CC" && break |
| 2118 | done |
| 2119 | fi |
| 2120 | if test -z "$CC"; then |
| 2121 | ac_ct_CC=$CC |
| 2122 | for ac_prog in cl |
| 2123 | do |
| 2124 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2125 | set dummy $ac_prog; ac_word=$2 |
| 2126 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2127 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2128 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2130 | else |
| 2131 | if test -n "$ac_ct_CC"; then |
| 2132 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2133 | else |
| 2134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2135 | for as_dir in $PATH |
| 2136 | do |
| 2137 | IFS=$as_save_IFS |
| 2138 | test -z "$as_dir" && as_dir=. |
| 2139 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2140 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2141 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2142 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2143 | break 2 |
| 2144 | fi |
| 2145 | done |
| 2146 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2147 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2148 | fi |
| 2149 | fi |
| 2150 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2151 | if test -n "$ac_ct_CC"; then |
| 2152 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2153 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2154 | else |
| 2155 | echo "$as_me:$LINENO: result: no" >&5 |
| 2156 | echo "${ECHO_T}no" >&6 |
| 2157 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2158 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2159 | test -n "$ac_ct_CC" && break |
| 2160 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2161 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2162 | CC=$ac_ct_CC |
| 2163 | fi |
| 2164 | |
| 2165 | fi |
| 2166 | |
| 2167 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2168 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2169 | See \`config.log' for more details." >&5 |
| 2170 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2171 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2172 | { (exit 1); exit 1; }; } |
| 2173 | |
| 2174 | # Provide some information about the compiler. |
| 2175 | echo "$as_me:$LINENO:" \ |
| 2176 | "checking for C compiler version" >&5 |
| 2177 | ac_compiler=`set X $ac_compile; echo $2` |
| 2178 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2179 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2180 | ac_status=$? |
| 2181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2182 | (exit $ac_status); } |
| 2183 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2184 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2185 | ac_status=$? |
| 2186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2187 | (exit $ac_status); } |
| 2188 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2189 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2190 | ac_status=$? |
| 2191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2192 | (exit $ac_status); } |
| 2193 | |
| 2194 | cat >conftest.$ac_ext <<_ACEOF |
| 2195 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2196 | /* confdefs.h. */ |
| 2197 | _ACEOF |
| 2198 | cat confdefs.h >>conftest.$ac_ext |
| 2199 | cat >>conftest.$ac_ext <<_ACEOF |
| 2200 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2201 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2202 | int |
| 2203 | main () |
| 2204 | { |
| 2205 | |
| 2206 | ; |
| 2207 | return 0; |
| 2208 | } |
| 2209 | _ACEOF |
| 2210 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2211 | 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] | 2212 | # Try to create an executable without -o first, disregard a.out. |
| 2213 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2214 | # of exeext. |
| 2215 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2216 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2217 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2218 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2219 | (eval $ac_link_default) 2>&5 |
| 2220 | ac_status=$? |
| 2221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2222 | (exit $ac_status); }; then |
| 2223 | # Find the output, starting from the most likely. This scheme is |
| 2224 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2225 | # resort. |
| 2226 | |
| 2227 | # Be careful to initialize this variable, since it used to be cached. |
| 2228 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2229 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2230 | # b.out is created by i960 compilers. |
| 2231 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2232 | do |
| 2233 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2234 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2235 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 2236 | ;; |
| 2237 | conftest.$ac_ext ) |
| 2238 | # This is the source file. |
| 2239 | ;; |
| 2240 | [ab].out ) |
| 2241 | # We found the default executable, but exeext='' is most |
| 2242 | # certainly right. |
| 2243 | break;; |
| 2244 | *.* ) |
| 2245 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2246 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2247 | # but it would be cool to find out if it's true. Does anybody |
| 2248 | # maintain Libtool? --akim. |
| 2249 | export ac_cv_exeext |
| 2250 | break;; |
| 2251 | * ) |
| 2252 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2253 | esac |
| 2254 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2255 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2256 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2258 | |
| 2259 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2260 | See \`config.log' for more details." >&5 |
| 2261 | echo "$as_me: error: C compiler cannot create executables |
| 2262 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2263 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2264 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2265 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2266 | ac_exeext=$ac_cv_exeext |
| 2267 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2268 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2269 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2270 | # Check the compiler produces executables we can run. If not, either |
| 2271 | # the compiler is broken, or we cross compile. |
| 2272 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2273 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2274 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2275 | # If not cross compiling, check that we can run a simple program. |
| 2276 | if test "$cross_compiling" != yes; then |
| 2277 | if { ac_try='./$ac_file' |
| 2278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2279 | (eval $ac_try) 2>&5 |
| 2280 | ac_status=$? |
| 2281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2282 | (exit $ac_status); }; }; then |
| 2283 | cross_compiling=no |
| 2284 | else |
| 2285 | if test "$cross_compiling" = maybe; then |
| 2286 | cross_compiling=yes |
| 2287 | else |
| 2288 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2289 | If you meant to cross compile, use \`--host'. |
| 2290 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2291 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2292 | If you meant to cross compile, use \`--host'. |
| 2293 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2294 | { (exit 1); exit 1; }; } |
| 2295 | fi |
| 2296 | fi |
| 2297 | fi |
| 2298 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2299 | echo "${ECHO_T}yes" >&6 |
| 2300 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2301 | 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] | 2302 | ac_clean_files=$ac_clean_files_save |
| 2303 | # Check the compiler produces executables we can run. If not, either |
| 2304 | # the compiler is broken, or we cross compile. |
| 2305 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2306 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2307 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2308 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2309 | |
| 2310 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2311 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2312 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2313 | (eval $ac_link) 2>&5 |
| 2314 | ac_status=$? |
| 2315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2316 | (exit $ac_status); }; then |
| 2317 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2318 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2319 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2320 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2321 | for ac_file in conftest.exe conftest conftest.*; do |
| 2322 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2323 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2324 | *.$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] | 2325 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2326 | export ac_cv_exeext |
| 2327 | break;; |
| 2328 | * ) break;; |
| 2329 | esac |
| 2330 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2331 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2332 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2333 | See \`config.log' for more details." >&5 |
| 2334 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2335 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2336 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2337 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2338 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2339 | rm -f conftest$ac_cv_exeext |
| 2340 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2341 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2342 | |
| 2343 | rm -f conftest.$ac_ext |
| 2344 | EXEEXT=$ac_cv_exeext |
| 2345 | ac_exeext=$EXEEXT |
| 2346 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2347 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2348 | if test "${ac_cv_objext+set}" = set; then |
| 2349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2350 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2351 | cat >conftest.$ac_ext <<_ACEOF |
| 2352 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2353 | /* confdefs.h. */ |
| 2354 | _ACEOF |
| 2355 | cat confdefs.h >>conftest.$ac_ext |
| 2356 | cat >>conftest.$ac_ext <<_ACEOF |
| 2357 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2358 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2359 | int |
| 2360 | main () |
| 2361 | { |
| 2362 | |
| 2363 | ; |
| 2364 | return 0; |
| 2365 | } |
| 2366 | _ACEOF |
| 2367 | rm -f conftest.o conftest.obj |
| 2368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2369 | (eval $ac_compile) 2>&5 |
| 2370 | ac_status=$? |
| 2371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2372 | (exit $ac_status); }; then |
| 2373 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2374 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2375 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2376 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2377 | break;; |
| 2378 | esac |
| 2379 | done |
| 2380 | else |
| 2381 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2382 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2383 | |
| 2384 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2385 | See \`config.log' for more details." >&5 |
| 2386 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2387 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2388 | { (exit 1); exit 1; }; } |
| 2389 | fi |
| 2390 | |
| 2391 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2392 | fi |
| 2393 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2394 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2395 | OBJEXT=$ac_cv_objext |
| 2396 | ac_objext=$OBJEXT |
| 2397 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2398 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2399 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2401 | else |
| 2402 | cat >conftest.$ac_ext <<_ACEOF |
| 2403 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2404 | /* confdefs.h. */ |
| 2405 | _ACEOF |
| 2406 | cat confdefs.h >>conftest.$ac_ext |
| 2407 | cat >>conftest.$ac_ext <<_ACEOF |
| 2408 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2409 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2410 | int |
| 2411 | main () |
| 2412 | { |
| 2413 | #ifndef __GNUC__ |
| 2414 | choke me |
| 2415 | #endif |
| 2416 | |
| 2417 | ; |
| 2418 | return 0; |
| 2419 | } |
| 2420 | _ACEOF |
| 2421 | rm -f conftest.$ac_objext |
| 2422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2423 | (eval $ac_compile) 2>&5 |
| 2424 | ac_status=$? |
| 2425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2426 | (exit $ac_status); } && |
| 2427 | { ac_try='test -s conftest.$ac_objext' |
| 2428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2429 | (eval $ac_try) 2>&5 |
| 2430 | ac_status=$? |
| 2431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2432 | (exit $ac_status); }; }; then |
| 2433 | ac_compiler_gnu=yes |
| 2434 | else |
| 2435 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2436 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2437 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2438 | ac_compiler_gnu=no |
| 2439 | fi |
| 2440 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2441 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2442 | |
| 2443 | fi |
| 2444 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2445 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2446 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2447 | ac_test_CFLAGS=${CFLAGS+set} |
| 2448 | ac_save_CFLAGS=$CFLAGS |
| 2449 | CFLAGS="-g" |
| 2450 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2451 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2452 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2454 | else |
| 2455 | cat >conftest.$ac_ext <<_ACEOF |
| 2456 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2457 | /* confdefs.h. */ |
| 2458 | _ACEOF |
| 2459 | cat confdefs.h >>conftest.$ac_ext |
| 2460 | cat >>conftest.$ac_ext <<_ACEOF |
| 2461 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2462 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2463 | int |
| 2464 | main () |
| 2465 | { |
| 2466 | |
| 2467 | ; |
| 2468 | return 0; |
| 2469 | } |
| 2470 | _ACEOF |
| 2471 | rm -f conftest.$ac_objext |
| 2472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2473 | (eval $ac_compile) 2>&5 |
| 2474 | ac_status=$? |
| 2475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2476 | (exit $ac_status); } && |
| 2477 | { ac_try='test -s conftest.$ac_objext' |
| 2478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2479 | (eval $ac_try) 2>&5 |
| 2480 | ac_status=$? |
| 2481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2482 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2483 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2484 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2485 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2487 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2488 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2489 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2490 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2491 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2492 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2493 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2494 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2495 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2496 | elif test $ac_cv_prog_cc_g = yes; then |
| 2497 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2498 | CFLAGS="-g -O2" |
| 2499 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2500 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2501 | fi |
| 2502 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2503 | if test "$GCC" = yes; then |
| 2504 | CFLAGS="-O2" |
| 2505 | else |
| 2506 | CFLAGS= |
| 2507 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2508 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2509 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2510 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2511 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2513 | else |
| 2514 | ac_cv_prog_cc_stdc=no |
| 2515 | ac_save_CC=$CC |
| 2516 | cat >conftest.$ac_ext <<_ACEOF |
| 2517 | #line $LINENO "configure" |
| 2518 | /* confdefs.h. */ |
| 2519 | _ACEOF |
| 2520 | cat confdefs.h >>conftest.$ac_ext |
| 2521 | cat >>conftest.$ac_ext <<_ACEOF |
| 2522 | /* end confdefs.h. */ |
| 2523 | #include <stdarg.h> |
| 2524 | #include <stdio.h> |
| 2525 | #include <sys/types.h> |
| 2526 | #include <sys/stat.h> |
| 2527 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2528 | struct buf { int x; }; |
| 2529 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2530 | static char *e (p, i) |
| 2531 | char **p; |
| 2532 | int i; |
| 2533 | { |
| 2534 | return p[i]; |
| 2535 | } |
| 2536 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2537 | { |
| 2538 | char *s; |
| 2539 | va_list v; |
| 2540 | va_start (v,p); |
| 2541 | s = g (p, va_arg (v,int)); |
| 2542 | va_end (v); |
| 2543 | return s; |
| 2544 | } |
| 2545 | int test (int i, double x); |
| 2546 | struct s1 {int (*f) (int a);}; |
| 2547 | struct s2 {int (*f) (double a);}; |
| 2548 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2549 | int argc; |
| 2550 | char **argv; |
| 2551 | int |
| 2552 | main () |
| 2553 | { |
| 2554 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2555 | ; |
| 2556 | return 0; |
| 2557 | } |
| 2558 | _ACEOF |
| 2559 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2560 | # breaks some systems' header files. |
| 2561 | # AIX -qlanglvl=ansi |
| 2562 | # Ultrix and OSF/1 -std1 |
| 2563 | # HP-UX 10.20 and later -Ae |
| 2564 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2565 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2566 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2567 | do |
| 2568 | CC="$ac_save_CC $ac_arg" |
| 2569 | rm -f conftest.$ac_objext |
| 2570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2571 | (eval $ac_compile) 2>&5 |
| 2572 | ac_status=$? |
| 2573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2574 | (exit $ac_status); } && |
| 2575 | { ac_try='test -s conftest.$ac_objext' |
| 2576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2577 | (eval $ac_try) 2>&5 |
| 2578 | ac_status=$? |
| 2579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2580 | (exit $ac_status); }; }; then |
| 2581 | ac_cv_prog_cc_stdc=$ac_arg |
| 2582 | break |
| 2583 | else |
| 2584 | echo "$as_me: failed program was:" >&5 |
| 2585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2586 | |
| 2587 | fi |
| 2588 | rm -f conftest.$ac_objext |
| 2589 | done |
| 2590 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2591 | CC=$ac_save_CC |
| 2592 | |
| 2593 | fi |
| 2594 | |
| 2595 | case "x$ac_cv_prog_cc_stdc" in |
| 2596 | x|xno) |
| 2597 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2598 | echo "${ECHO_T}none needed" >&6 ;; |
| 2599 | *) |
| 2600 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2601 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2602 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2603 | esac |
| 2604 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2605 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2606 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2607 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2608 | # the declaration of exit, since it's the most demanding environment. |
| 2609 | cat >conftest.$ac_ext <<_ACEOF |
| 2610 | #ifndef __cplusplus |
| 2611 | choke me |
| 2612 | #endif |
| 2613 | _ACEOF |
| 2614 | rm -f conftest.$ac_objext |
| 2615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2616 | (eval $ac_compile) 2>&5 |
| 2617 | ac_status=$? |
| 2618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2619 | (exit $ac_status); } && |
| 2620 | { ac_try='test -s conftest.$ac_objext' |
| 2621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2622 | (eval $ac_try) 2>&5 |
| 2623 | ac_status=$? |
| 2624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2625 | (exit $ac_status); }; }; then |
| 2626 | for ac_declaration in \ |
| 2627 | ''\ |
| 2628 | '#include <stdlib.h>' \ |
| 2629 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2630 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2631 | 'extern "C" void exit (int) throw ();' \ |
| 2632 | 'extern "C" void exit (int);' \ |
| 2633 | 'void exit (int);' |
| 2634 | do |
| 2635 | cat >conftest.$ac_ext <<_ACEOF |
| 2636 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2637 | /* confdefs.h. */ |
| 2638 | _ACEOF |
| 2639 | cat confdefs.h >>conftest.$ac_ext |
| 2640 | cat >>conftest.$ac_ext <<_ACEOF |
| 2641 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2642 | #include <stdlib.h> |
| 2643 | $ac_declaration |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2644 | int |
| 2645 | main () |
| 2646 | { |
| 2647 | exit (42); |
| 2648 | ; |
| 2649 | return 0; |
| 2650 | } |
| 2651 | _ACEOF |
| 2652 | rm -f conftest.$ac_objext |
| 2653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2654 | (eval $ac_compile) 2>&5 |
| 2655 | ac_status=$? |
| 2656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2657 | (exit $ac_status); } && |
| 2658 | { ac_try='test -s conftest.$ac_objext' |
| 2659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2660 | (eval $ac_try) 2>&5 |
| 2661 | ac_status=$? |
| 2662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2663 | (exit $ac_status); }; }; then |
| 2664 | : |
| 2665 | else |
| 2666 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2667 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2668 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2669 | continue |
| 2670 | fi |
| 2671 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2672 | cat >conftest.$ac_ext <<_ACEOF |
| 2673 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2674 | /* confdefs.h. */ |
| 2675 | _ACEOF |
| 2676 | cat confdefs.h >>conftest.$ac_ext |
| 2677 | cat >>conftest.$ac_ext <<_ACEOF |
| 2678 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2679 | $ac_declaration |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2680 | int |
| 2681 | main () |
| 2682 | { |
| 2683 | exit (42); |
| 2684 | ; |
| 2685 | return 0; |
| 2686 | } |
| 2687 | _ACEOF |
| 2688 | rm -f conftest.$ac_objext |
| 2689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2690 | (eval $ac_compile) 2>&5 |
| 2691 | ac_status=$? |
| 2692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2693 | (exit $ac_status); } && |
| 2694 | { ac_try='test -s conftest.$ac_objext' |
| 2695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2696 | (eval $ac_try) 2>&5 |
| 2697 | ac_status=$? |
| 2698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2699 | (exit $ac_status); }; }; then |
| 2700 | break |
| 2701 | else |
| 2702 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2704 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2705 | fi |
| 2706 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2707 | done |
| 2708 | rm -f conftest* |
| 2709 | if test -n "$ac_declaration"; then |
| 2710 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2711 | echo $ac_declaration >>confdefs.h |
| 2712 | echo '#endif' >>confdefs.h |
| 2713 | fi |
| 2714 | |
| 2715 | else |
| 2716 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2718 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2719 | fi |
| 2720 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2721 | ac_ext=c |
| 2722 | ac_cpp='$CPP $CPPFLAGS' |
| 2723 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2724 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2725 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2726 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2727 | |
| 2728 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2729 | |
| 2730 | ac_ext=c |
| 2731 | ac_cpp='$CPP $CPPFLAGS' |
| 2732 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2733 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2734 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2735 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2736 | 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] | 2737 | # On Suns, sometimes $CPP names a directory. |
| 2738 | if test -n "$CPP" && test -d "$CPP"; then |
| 2739 | CPP= |
| 2740 | fi |
| 2741 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2742 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2744 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2745 | # Double quotes because CPP needs to be expanded |
| 2746 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2747 | do |
| 2748 | ac_preproc_ok=false |
| 2749 | for ac_c_preproc_warn_flag in '' yes |
| 2750 | do |
| 2751 | # Use a header file that comes with gcc, so configuring glibc |
| 2752 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2753 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2754 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2755 | # 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] | 2756 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2757 | cat >conftest.$ac_ext <<_ACEOF |
| 2758 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2759 | /* confdefs.h. */ |
| 2760 | _ACEOF |
| 2761 | cat confdefs.h >>conftest.$ac_ext |
| 2762 | cat >>conftest.$ac_ext <<_ACEOF |
| 2763 | /* end confdefs.h. */ |
| 2764 | #ifdef __STDC__ |
| 2765 | # include <limits.h> |
| 2766 | #else |
| 2767 | # include <assert.h> |
| 2768 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2769 | Syntax error |
| 2770 | _ACEOF |
| 2771 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2772 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2773 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2774 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2775 | rm -f conftest.er1 |
| 2776 | cat conftest.err >&5 |
| 2777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2778 | (exit $ac_status); } >/dev/null; then |
| 2779 | if test -s conftest.err; then |
| 2780 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2781 | else |
| 2782 | ac_cpp_err= |
| 2783 | fi |
| 2784 | else |
| 2785 | ac_cpp_err=yes |
| 2786 | fi |
| 2787 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2788 | : |
| 2789 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2790 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2792 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2793 | # Broken: fails on valid input. |
| 2794 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2795 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2796 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2797 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2798 | # OK, works on sane cases. Now check whether non-existent headers |
| 2799 | # can be detected and how. |
| 2800 | cat >conftest.$ac_ext <<_ACEOF |
| 2801 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2802 | /* confdefs.h. */ |
| 2803 | _ACEOF |
| 2804 | cat confdefs.h >>conftest.$ac_ext |
| 2805 | cat >>conftest.$ac_ext <<_ACEOF |
| 2806 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2807 | #include <ac_nonexistent.h> |
| 2808 | _ACEOF |
| 2809 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2810 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2811 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2812 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2813 | rm -f conftest.er1 |
| 2814 | cat conftest.err >&5 |
| 2815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2816 | (exit $ac_status); } >/dev/null; then |
| 2817 | if test -s conftest.err; then |
| 2818 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2819 | else |
| 2820 | ac_cpp_err= |
| 2821 | fi |
| 2822 | else |
| 2823 | ac_cpp_err=yes |
| 2824 | fi |
| 2825 | if test -z "$ac_cpp_err"; then |
| 2826 | # Broken: success on invalid input. |
| 2827 | continue |
| 2828 | else |
| 2829 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2831 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2832 | # Passes both tests. |
| 2833 | ac_preproc_ok=: |
| 2834 | break |
| 2835 | fi |
| 2836 | rm -f conftest.err conftest.$ac_ext |
| 2837 | |
| 2838 | done |
| 2839 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2840 | rm -f conftest.err conftest.$ac_ext |
| 2841 | if $ac_preproc_ok; then |
| 2842 | break |
| 2843 | fi |
| 2844 | |
| 2845 | done |
| 2846 | ac_cv_prog_CPP=$CPP |
| 2847 | |
| 2848 | fi |
| 2849 | CPP=$ac_cv_prog_CPP |
| 2850 | else |
| 2851 | ac_cv_prog_CPP=$CPP |
| 2852 | fi |
| 2853 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2854 | echo "${ECHO_T}$CPP" >&6 |
| 2855 | ac_preproc_ok=false |
| 2856 | for ac_c_preproc_warn_flag in '' yes |
| 2857 | do |
| 2858 | # Use a header file that comes with gcc, so configuring glibc |
| 2859 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2860 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2861 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2862 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2863 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2864 | cat >conftest.$ac_ext <<_ACEOF |
| 2865 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2866 | /* confdefs.h. */ |
| 2867 | _ACEOF |
| 2868 | cat confdefs.h >>conftest.$ac_ext |
| 2869 | cat >>conftest.$ac_ext <<_ACEOF |
| 2870 | /* end confdefs.h. */ |
| 2871 | #ifdef __STDC__ |
| 2872 | # include <limits.h> |
| 2873 | #else |
| 2874 | # include <assert.h> |
| 2875 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2876 | Syntax error |
| 2877 | _ACEOF |
| 2878 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2879 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2880 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2881 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2882 | rm -f conftest.er1 |
| 2883 | cat conftest.err >&5 |
| 2884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2885 | (exit $ac_status); } >/dev/null; then |
| 2886 | if test -s conftest.err; then |
| 2887 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2888 | else |
| 2889 | ac_cpp_err= |
| 2890 | fi |
| 2891 | else |
| 2892 | ac_cpp_err=yes |
| 2893 | fi |
| 2894 | if test -z "$ac_cpp_err"; then |
| 2895 | : |
| 2896 | else |
| 2897 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2898 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2899 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2900 | # Broken: fails on valid input. |
| 2901 | continue |
| 2902 | fi |
| 2903 | rm -f conftest.err conftest.$ac_ext |
| 2904 | |
| 2905 | # OK, works on sane cases. Now check whether non-existent headers |
| 2906 | # can be detected and how. |
| 2907 | cat >conftest.$ac_ext <<_ACEOF |
| 2908 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2909 | /* confdefs.h. */ |
| 2910 | _ACEOF |
| 2911 | cat confdefs.h >>conftest.$ac_ext |
| 2912 | cat >>conftest.$ac_ext <<_ACEOF |
| 2913 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2914 | #include <ac_nonexistent.h> |
| 2915 | _ACEOF |
| 2916 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2917 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2918 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2919 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2920 | rm -f conftest.er1 |
| 2921 | cat conftest.err >&5 |
| 2922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2923 | (exit $ac_status); } >/dev/null; then |
| 2924 | if test -s conftest.err; then |
| 2925 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2926 | else |
| 2927 | ac_cpp_err= |
| 2928 | fi |
| 2929 | else |
| 2930 | ac_cpp_err=yes |
| 2931 | fi |
| 2932 | if test -z "$ac_cpp_err"; then |
| 2933 | # Broken: success on invalid input. |
| 2934 | continue |
| 2935 | else |
| 2936 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2937 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2938 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2939 | # Passes both tests. |
| 2940 | ac_preproc_ok=: |
| 2941 | break |
| 2942 | fi |
| 2943 | rm -f conftest.err conftest.$ac_ext |
| 2944 | |
| 2945 | done |
| 2946 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2947 | rm -f conftest.err conftest.$ac_ext |
| 2948 | if $ac_preproc_ok; then |
| 2949 | : |
| 2950 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2951 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2952 | See \`config.log' for more details." >&5 |
| 2953 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2954 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2955 | { (exit 1); exit 1; }; } |
| 2956 | fi |
| 2957 | |
| 2958 | ac_ext=c |
| 2959 | ac_cpp='$CPP $CPPFLAGS' |
| 2960 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2961 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2962 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2963 | |
| 2964 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2965 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 2966 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 2967 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 2968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2969 | else |
| 2970 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2971 | then ac_cv_prog_egrep='grep -E' |
| 2972 | else ac_cv_prog_egrep='egrep' |
| 2973 | fi |
| 2974 | fi |
| 2975 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 2976 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 2977 | EGREP=$ac_cv_prog_egrep |
| 2978 | |
| 2979 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2980 | |
| 2981 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2982 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2983 | cat >conftest.$ac_ext <<_ACEOF |
| 2984 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2985 | /* confdefs.h. */ |
| 2986 | _ACEOF |
| 2987 | cat confdefs.h >>conftest.$ac_ext |
| 2988 | cat >>conftest.$ac_ext <<_ACEOF |
| 2989 | /* end confdefs.h. */ |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2990 | #ifdef _AIX |
| 2991 | yes |
| 2992 | #endif |
| 2993 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2994 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2995 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2996 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2997 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2998 | echo "${ECHO_T}yes" >&6 |
| 2999 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3000 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3001 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3002 | |
| 3003 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3004 | echo "$as_me:$LINENO: result: no" >&5 |
| 3005 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3006 | fi |
| 3007 | rm -f conftest* |
| 3008 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3009 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3010 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3011 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3012 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3014 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3015 | cat >conftest.$ac_ext <<_ACEOF |
| 3016 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3017 | /* confdefs.h. */ |
| 3018 | _ACEOF |
| 3019 | cat confdefs.h >>conftest.$ac_ext |
| 3020 | cat >>conftest.$ac_ext <<_ACEOF |
| 3021 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3022 | #include <stdlib.h> |
| 3023 | #include <stdarg.h> |
| 3024 | #include <string.h> |
| 3025 | #include <float.h> |
| 3026 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3027 | int |
| 3028 | main () |
| 3029 | { |
| 3030 | |
| 3031 | ; |
| 3032 | return 0; |
| 3033 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3034 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3035 | rm -f conftest.$ac_objext |
| 3036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3037 | (eval $ac_compile) 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3038 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3040 | (exit $ac_status); } && |
| 3041 | { ac_try='test -s conftest.$ac_objext' |
| 3042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3043 | (eval $ac_try) 2>&5 |
| 3044 | ac_status=$? |
| 3045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3046 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3047 | ac_cv_header_stdc=yes |
| 3048 | else |
| 3049 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3051 | |
| 3052 | ac_cv_header_stdc=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3053 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3054 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3055 | |
| 3056 | if test $ac_cv_header_stdc = yes; then |
| 3057 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3058 | cat >conftest.$ac_ext <<_ACEOF |
| 3059 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3060 | /* confdefs.h. */ |
| 3061 | _ACEOF |
| 3062 | cat confdefs.h >>conftest.$ac_ext |
| 3063 | cat >>conftest.$ac_ext <<_ACEOF |
| 3064 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3065 | #include <string.h> |
| 3066 | |
| 3067 | _ACEOF |
| 3068 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3069 | $EGREP "memchr" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3070 | : |
| 3071 | else |
| 3072 | ac_cv_header_stdc=no |
| 3073 | fi |
| 3074 | rm -f conftest* |
| 3075 | |
| 3076 | fi |
| 3077 | |
| 3078 | if test $ac_cv_header_stdc = yes; then |
| 3079 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3080 | cat >conftest.$ac_ext <<_ACEOF |
| 3081 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3082 | /* confdefs.h. */ |
| 3083 | _ACEOF |
| 3084 | cat confdefs.h >>conftest.$ac_ext |
| 3085 | cat >>conftest.$ac_ext <<_ACEOF |
| 3086 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3087 | #include <stdlib.h> |
| 3088 | |
| 3089 | _ACEOF |
| 3090 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3091 | $EGREP "free" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3092 | : |
| 3093 | else |
| 3094 | ac_cv_header_stdc=no |
| 3095 | fi |
| 3096 | rm -f conftest* |
| 3097 | |
| 3098 | fi |
| 3099 | |
| 3100 | if test $ac_cv_header_stdc = yes; then |
| 3101 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3102 | if test "$cross_compiling" = yes; then |
| 3103 | : |
| 3104 | else |
| 3105 | cat >conftest.$ac_ext <<_ACEOF |
| 3106 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3107 | /* confdefs.h. */ |
| 3108 | _ACEOF |
| 3109 | cat confdefs.h >>conftest.$ac_ext |
| 3110 | cat >>conftest.$ac_ext <<_ACEOF |
| 3111 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3112 | #include <ctype.h> |
| 3113 | #if ((' ' & 0x0FF) == 0x020) |
| 3114 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3115 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3116 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3117 | # define ISLOWER(c) \ |
| 3118 | (('a' <= (c) && (c) <= 'i') \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3119 | || ('j' <= (c) && (c) <= 'r') \ |
| 3120 | || ('s' <= (c) && (c) <= 'z')) |
| 3121 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3122 | #endif |
| 3123 | |
| 3124 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3125 | int |
| 3126 | main () |
| 3127 | { |
| 3128 | int i; |
| 3129 | for (i = 0; i < 256; i++) |
| 3130 | if (XOR (islower (i), ISLOWER (i)) |
| 3131 | || toupper (i) != TOUPPER (i)) |
| 3132 | exit(2); |
| 3133 | exit (0); |
| 3134 | } |
| 3135 | _ACEOF |
| 3136 | rm -f conftest$ac_exeext |
| 3137 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3138 | (eval $ac_link) 2>&5 |
| 3139 | ac_status=$? |
| 3140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3141 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3143 | (eval $ac_try) 2>&5 |
| 3144 | ac_status=$? |
| 3145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3146 | (exit $ac_status); }; }; then |
| 3147 | : |
| 3148 | else |
| 3149 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3150 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3152 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3153 | ( exit $ac_status ) |
| 3154 | ac_cv_header_stdc=no |
| 3155 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3156 | 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] | 3157 | fi |
| 3158 | fi |
| 3159 | fi |
| 3160 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3161 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 3162 | if test $ac_cv_header_stdc = yes; then |
| 3163 | |
| 3164 | cat >>confdefs.h <<\_ACEOF |
| 3165 | #define STDC_HEADERS 1 |
| 3166 | _ACEOF |
| 3167 | |
| 3168 | fi |
| 3169 | |
| 3170 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3171 | |
| 3172 | |
| 3173 | |
| 3174 | |
| 3175 | |
| 3176 | |
| 3177 | |
| 3178 | |
| 3179 | |
| 3180 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3181 | inttypes.h stdint.h unistd.h |
| 3182 | do |
| 3183 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3184 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3185 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3186 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3188 | else |
| 3189 | cat >conftest.$ac_ext <<_ACEOF |
| 3190 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3191 | /* confdefs.h. */ |
| 3192 | _ACEOF |
| 3193 | cat confdefs.h >>conftest.$ac_ext |
| 3194 | cat >>conftest.$ac_ext <<_ACEOF |
| 3195 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3196 | $ac_includes_default |
| 3197 | |
| 3198 | #include <$ac_header> |
| 3199 | _ACEOF |
| 3200 | rm -f conftest.$ac_objext |
| 3201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3202 | (eval $ac_compile) 2>&5 |
| 3203 | ac_status=$? |
| 3204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3205 | (exit $ac_status); } && |
| 3206 | { ac_try='test -s conftest.$ac_objext' |
| 3207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3208 | (eval $ac_try) 2>&5 |
| 3209 | ac_status=$? |
| 3210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3211 | (exit $ac_status); }; }; then |
| 3212 | eval "$as_ac_Header=yes" |
| 3213 | else |
| 3214 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3216 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3217 | eval "$as_ac_Header=no" |
| 3218 | fi |
| 3219 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3220 | fi |
| 3221 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3222 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3223 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3224 | cat >>confdefs.h <<_ACEOF |
| 3225 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3226 | _ACEOF |
| 3227 | |
| 3228 | fi |
| 3229 | |
| 3230 | done |
| 3231 | |
| 3232 | |
| 3233 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 3234 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 3235 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 3236 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 3237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3238 | fi |
| 3239 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 3240 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 3241 | else |
| 3242 | # Is the header compilable? |
| 3243 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 3244 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 |
| 3245 | cat >conftest.$ac_ext <<_ACEOF |
| 3246 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3247 | /* confdefs.h. */ |
| 3248 | _ACEOF |
| 3249 | cat confdefs.h >>conftest.$ac_ext |
| 3250 | cat >>conftest.$ac_ext <<_ACEOF |
| 3251 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3252 | $ac_includes_default |
| 3253 | #include <minix/config.h> |
| 3254 | _ACEOF |
| 3255 | rm -f conftest.$ac_objext |
| 3256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3257 | (eval $ac_compile) 2>&5 |
| 3258 | ac_status=$? |
| 3259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3260 | (exit $ac_status); } && |
| 3261 | { ac_try='test -s conftest.$ac_objext' |
| 3262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3263 | (eval $ac_try) 2>&5 |
| 3264 | ac_status=$? |
| 3265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3266 | (exit $ac_status); }; }; then |
| 3267 | ac_header_compiler=yes |
| 3268 | else |
| 3269 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3271 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3272 | ac_header_compiler=no |
| 3273 | fi |
| 3274 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3275 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3276 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3277 | |
| 3278 | # Is the header present? |
| 3279 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 3280 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 |
| 3281 | cat >conftest.$ac_ext <<_ACEOF |
| 3282 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3283 | /* confdefs.h. */ |
| 3284 | _ACEOF |
| 3285 | cat confdefs.h >>conftest.$ac_ext |
| 3286 | cat >>conftest.$ac_ext <<_ACEOF |
| 3287 | /* end confdefs.h. */ |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3288 | #include <minix/config.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3289 | _ACEOF |
| 3290 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3291 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3292 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3293 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3294 | rm -f conftest.er1 |
| 3295 | cat conftest.err >&5 |
| 3296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3297 | (exit $ac_status); } >/dev/null; then |
| 3298 | if test -s conftest.err; then |
| 3299 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3300 | else |
| 3301 | ac_cpp_err= |
| 3302 | fi |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3303 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3304 | ac_cpp_err=yes |
| 3305 | fi |
| 3306 | if test -z "$ac_cpp_err"; then |
| 3307 | ac_header_preproc=yes |
| 3308 | else |
| 3309 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3311 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3312 | ac_header_preproc=no |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3313 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3314 | rm -f conftest.err conftest.$ac_ext |
| 3315 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3316 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3317 | |
| 3318 | # So? What about this header? |
| 3319 | case $ac_header_compiler:$ac_header_preproc in |
| 3320 | yes:no ) |
| 3321 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3322 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3323 | { 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] | 3324 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} |
| 3325 | ( |
| 3326 | cat <<\_ASBOX |
| 3327 | ## ------------------------------------ ## |
| 3328 | ## Report this to bug-autoconf@gnu.org. ## |
| 3329 | ## ------------------------------------ ## |
| 3330 | _ASBOX |
| 3331 | ) | |
| 3332 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3333 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3334 | no:yes ) |
| 3335 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 3336 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 3337 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 3338 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 3339 | { 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] | 3340 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} |
| 3341 | ( |
| 3342 | cat <<\_ASBOX |
| 3343 | ## ------------------------------------ ## |
| 3344 | ## Report this to bug-autoconf@gnu.org. ## |
| 3345 | ## ------------------------------------ ## |
| 3346 | _ASBOX |
| 3347 | ) | |
| 3348 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3349 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3350 | esac |
| 3351 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 3352 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 3353 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 3354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3355 | else |
| 3356 | ac_cv_header_minix_config_h=$ac_header_preproc |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3357 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3358 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 3359 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 3360 | |
| 3361 | fi |
| 3362 | if test $ac_cv_header_minix_config_h = yes; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3363 | MINIX=yes |
| 3364 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3365 | MINIX= |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3366 | fi |
| 3367 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3368 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3369 | if test "$MINIX" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3370 | |
| 3371 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3372 | #define _POSIX_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3373 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3374 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3375 | |
| 3376 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3377 | #define _POSIX_1_SOURCE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3378 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3379 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3380 | |
| 3381 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3382 | #define _MINIX 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3383 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3384 | |
| 3385 | fi |
| 3386 | |
| 3387 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3388 | # Check for unsupported systems |
| 3389 | case $ac_sys_system/$ac_sys_release in |
| 3390 | SunOS/4*|DYNIX/*|dgux*/*|IRIX/4*|Linux*/1*) |
| 3391 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3392 | echo See README for details. |
| 3393 | exit 1;; |
| 3394 | esac |
| 3395 | |
| 3396 | if test "$MINIX" = yes; then |
| 3397 | echo This system \(MINIX\) is no longer supported. |
| 3398 | echo Read README for details. |
| 3399 | exit 1 |
| 3400 | fi |
| 3401 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3402 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3403 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3404 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3405 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3406 | # Check whether --with-suffix or --without-suffix was given. |
| 3407 | if test "${with_suffix+set}" = set; then |
| 3408 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3409 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3410 | case $withval in |
| 3411 | no) EXEEXT=;; |
| 3412 | yes) EXEEXT=.exe;; |
| 3413 | *) EXEEXT=$withval;; |
| 3414 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3415 | fi; |
| 3416 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3417 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3418 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3419 | # Test whether we're running on a non-case-sensitive system, in which |
| 3420 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3421 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3422 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3423 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3424 | if test ! -d CaseSensitiveTestDir; then |
| 3425 | mkdir CaseSensitiveTestDir |
| 3426 | fi |
| 3427 | |
| 3428 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3429 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3430 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3431 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3432 | BUILDEXEEXT=.exe |
| 3433 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3434 | echo "$as_me:$LINENO: result: no" >&5 |
| 3435 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3436 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3437 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3438 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3439 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3440 | case $MACHDEP in |
| 3441 | bsdos*) |
| 3442 | case $CC in |
| 3443 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3444 | esac;; |
| 3445 | esac |
| 3446 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3447 | case $ac_sys_system in |
| 3448 | hp*|HP*) |
| 3449 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3450 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3451 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3452 | Monterey*) |
| 3453 | case $CC in |
| 3454 | cc) CC="$CC -Wl,-Bexport";; |
| 3455 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3456 | SunOS*) |
| 3457 | # 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] | 3458 | |
| 3459 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3460 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3461 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3462 | |
| 3463 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3464 | esac |
| 3465 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3466 | |
| 3467 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3468 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3469 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3470 | if test -z "$LIBRARY" |
| 3471 | then |
| 3472 | LIBRARY='libpython$(VERSION).a' |
| 3473 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3474 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3475 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3476 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3477 | # 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] | 3478 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3479 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3480 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3481 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3482 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3483 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3484 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3485 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3486 | # RUNSHARED is used to run shared python without installed libraries |
| 3487 | # |
| 3488 | # INSTSONAME is the name of the shared library that will be use to install |
| 3489 | # on the system - some systems like version suffix, others don't |
| 3490 | |
| 3491 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3492 | |
| 3493 | |
| 3494 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3495 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3496 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3497 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3498 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3499 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3500 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3501 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3502 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3503 | # 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] | 3504 | # If CXX is set, and if it is needed to link a main function that was |
| 3505 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3506 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3507 | # 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] | 3508 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3509 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3510 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3511 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3512 | if test -z "$LINKCC" |
| 3513 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3514 | if test -z "$CXX"; then |
| 3515 | LINKCC="\$(PURIFY) \$(CC)" |
| 3516 | else |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3517 | 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] | 3518 | $CXX -c conftest.$ac_ext 2>&5 |
| 3519 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3520 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3521 | then |
| 3522 | LINKCC="\$(PURIFY) \$(CC)" |
| 3523 | else |
| 3524 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3525 | fi |
| 3526 | rm -fr conftest* |
| 3527 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3528 | case $ac_sys_system in |
| 3529 | AIX*) |
Neal Norwitz | 0b27ff9 | 2003-03-31 15:53:49 +0000 | [diff] [blame] | 3530 | exp_extra="\"\"" |
| 3531 | if test $ac_sys_release -ge 5 -o \ |
| 3532 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3533 | exp_extra="." |
| 3534 | fi |
| 3535 | 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] | 3536 | dgux*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3537 | LINKCC="LD_RUN_PATH=$libdir $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3538 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3539 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3540 | esac |
| 3541 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3542 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3543 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3544 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3545 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3546 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3547 | # Check whether --enable-shared or --disable-shared was given. |
| 3548 | if test "${enable_shared+set}" = set; then |
| 3549 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3550 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3551 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3552 | |
| 3553 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3554 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3555 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3556 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3557 | enable_shared="yes";; |
| 3558 | *) |
| 3559 | enable_shared="no";; |
| 3560 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3561 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3562 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3563 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3564 | |
| 3565 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3566 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3567 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3568 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3569 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3570 | # library that we build, but we do not want to link against it (we |
| 3571 | # will find it with a -framework option). For this reason there is an |
| 3572 | # extra variable BLDLIBRARY against which Python and the extension |
| 3573 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3574 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3575 | if test "$enable_framework" |
| 3576 | then |
| 3577 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 3578 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3579 | BLDLIBRARY='' |
| 3580 | else |
| 3581 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3582 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3583 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3584 | # Other platforms follow |
| 3585 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3586 | |
| 3587 | cat >>confdefs.h <<\_ACEOF |
| 3588 | #define Py_ENABLE_SHARED 1 |
| 3589 | _ACEOF |
| 3590 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3591 | case $ac_sys_system in |
| 3592 | BeOS*) |
| 3593 | LDLIBRARY='libpython$(VERSION).so' |
| 3594 | ;; |
| 3595 | CYGWIN*) |
| 3596 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3597 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3598 | ;; |
| 3599 | SunOS*) |
| 3600 | LDLIBRARY='libpython$(VERSION).so' |
Martin v. Löwis | d141a8c | 2003-06-14 15:20:28 +0000 | [diff] [blame] | 3601 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3602 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 2389c41 | 2003-10-31 15:42:07 +0000 | [diff] [blame] | 3603 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3604 | ;; |
Martin v. Löwis | 96ce805 | 2003-05-31 07:58:45 +0000 | [diff] [blame] | 3605 | Linux*|GNU*|NetBSD*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3606 | LDLIBRARY='libpython$(VERSION).so' |
| 3607 | BLDLIBRARY='-L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3608 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3609 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3610 | ;; |
| 3611 | hp*|HP*) |
| 3612 | LDLIBRARY='libpython$(VERSION).sl' |
| 3613 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3614 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3615 | ;; |
| 3616 | OSF*) |
| 3617 | LDLIBRARY='libpython$(VERSION).so' |
| 3618 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3619 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3620 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3621 | atheos*) |
| 3622 | LDLIBRARY='libpython$(VERSION).so' |
| 3623 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3624 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3625 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3626 | esac |
| 3627 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 3628 | case $MACHDEP in |
| 3629 | dguxR4) |
| 3630 | LDLIBRARY='libpython$(VERSION).so' |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3631 | BASECFLAGS="$BASECFLAGS -pic" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3632 | ;; |
| 3633 | esac |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 3634 | else # shared is disabled |
| 3635 | case $ac_sys_system in |
| 3636 | CYGWIN*) |
| 3637 | BLDLIBRARY='$(LIBRARY)' |
| 3638 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3639 | ;; |
| 3640 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3641 | fi |
| 3642 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3643 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3644 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3645 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3646 | if test -n "$ac_tool_prefix"; then |
| 3647 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3648 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3649 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3650 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3651 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3653 | else |
| 3654 | if test -n "$RANLIB"; then |
| 3655 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3656 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3658 | for as_dir in $PATH |
| 3659 | do |
| 3660 | IFS=$as_save_IFS |
| 3661 | test -z "$as_dir" && as_dir=. |
| 3662 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3663 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3664 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3665 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3666 | break 2 |
| 3667 | fi |
| 3668 | done |
| 3669 | done |
| 3670 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3671 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3672 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3673 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3674 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3675 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3676 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3677 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3678 | echo "$as_me:$LINENO: result: no" >&5 |
| 3679 | echo "${ECHO_T}no" >&6 |
| 3680 | fi |
| 3681 | |
| 3682 | fi |
| 3683 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3684 | ac_ct_RANLIB=$RANLIB |
| 3685 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3686 | set dummy ranlib; ac_word=$2 |
| 3687 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3688 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3689 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3691 | else |
| 3692 | if test -n "$ac_ct_RANLIB"; then |
| 3693 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3694 | else |
| 3695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3696 | for as_dir in $PATH |
| 3697 | do |
| 3698 | IFS=$as_save_IFS |
| 3699 | test -z "$as_dir" && as_dir=. |
| 3700 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3701 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3702 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3703 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3704 | break 2 |
| 3705 | fi |
| 3706 | done |
| 3707 | done |
| 3708 | |
| 3709 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3710 | fi |
| 3711 | fi |
| 3712 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3713 | if test -n "$ac_ct_RANLIB"; then |
| 3714 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3715 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3716 | else |
| 3717 | echo "$as_me:$LINENO: result: no" >&5 |
| 3718 | echo "${ECHO_T}no" >&6 |
| 3719 | fi |
| 3720 | |
| 3721 | RANLIB=$ac_ct_RANLIB |
| 3722 | else |
| 3723 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3724 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3725 | |
| 3726 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3727 | for ac_prog in ar aal |
| 3728 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3729 | # 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] | 3730 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3731 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3732 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3733 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3735 | else |
| 3736 | if test -n "$AR"; then |
| 3737 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3738 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3740 | for as_dir in $PATH |
| 3741 | do |
| 3742 | IFS=$as_save_IFS |
| 3743 | test -z "$as_dir" && as_dir=. |
| 3744 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3745 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3746 | ac_cv_prog_AR="$ac_prog" |
| 3747 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3748 | break 2 |
| 3749 | fi |
| 3750 | done |
| 3751 | done |
| 3752 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3753 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3754 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3755 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3756 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3757 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3758 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3759 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3760 | echo "$as_me:$LINENO: result: no" >&5 |
| 3761 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3762 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3763 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3764 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3765 | done |
| 3766 | test -n "$AR" || AR="ar" |
| 3767 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3768 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3769 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3770 | bsdos*|hp*|HP*) |
| 3771 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3772 | if test -z "$INSTALL" |
| 3773 | then |
| 3774 | INSTALL="${srcdir}/install-sh -c" |
| 3775 | fi |
| 3776 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3777 | ac_aux_dir= |
| 3778 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3779 | if test -f $ac_dir/install-sh; then |
| 3780 | ac_aux_dir=$ac_dir |
| 3781 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3782 | break |
| 3783 | elif test -f $ac_dir/install.sh; then |
| 3784 | ac_aux_dir=$ac_dir |
| 3785 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3786 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3787 | elif test -f $ac_dir/shtool; then |
| 3788 | ac_aux_dir=$ac_dir |
| 3789 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3790 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3791 | fi |
| 3792 | done |
| 3793 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3794 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3795 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3796 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3797 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3798 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3799 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3800 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3801 | |
| 3802 | # Find a good install program. We prefer a C program (faster), |
| 3803 | # so one script is as good as another. But avoid the broken or |
| 3804 | # incompatible versions: |
| 3805 | # SysV /etc/install, /usr/sbin/install |
| 3806 | # SunOS /usr/etc/install |
| 3807 | # IRIX /sbin/install |
| 3808 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3809 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3810 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3811 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3812 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3813 | # ./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] | 3814 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3815 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3816 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3817 | if test "${ac_cv_path_install+set}" = set; then |
| 3818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3819 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3821 | for as_dir in $PATH |
| 3822 | do |
| 3823 | IFS=$as_save_IFS |
| 3824 | test -z "$as_dir" && as_dir=. |
| 3825 | # Account for people who put trailing slashes in PATH elements. |
| 3826 | case $as_dir/ in |
| 3827 | ./ | .// | /cC/* | \ |
| 3828 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3829 | /usr/ucb/* ) ;; |
| 3830 | *) |
| 3831 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3832 | # Don't use installbsd from OSF since it installs stuff as root |
| 3833 | # by default. |
| 3834 | for ac_prog in ginstall scoinst install; do |
| 3835 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3836 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3837 | if test $ac_prog = install && |
| 3838 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3839 | # AIX install. It has an incompatible calling convention. |
| 3840 | : |
| 3841 | elif test $ac_prog = install && |
| 3842 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3843 | # program-specific install script used by HP pwplus--don't use. |
| 3844 | : |
| 3845 | else |
| 3846 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3847 | break 3 |
| 3848 | fi |
| 3849 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3850 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3851 | done |
| 3852 | ;; |
| 3853 | esac |
| 3854 | done |
| 3855 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3856 | |
| 3857 | fi |
| 3858 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3859 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3860 | else |
| 3861 | # As a last resort, use the slow shell script. We don't cache a |
| 3862 | # path for INSTALL within a source directory, because that will |
| 3863 | # break other packages using the cache if that directory is |
| 3864 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3865 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3866 | fi |
| 3867 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3868 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3869 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3870 | |
| 3871 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3872 | # It thinks the first close brace ends the variable substitution. |
| 3873 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3874 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3875 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3876 | |
| 3877 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3878 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3879 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3880 | # Not every filesystem supports hard links |
| 3881 | |
| 3882 | if test -z "$LN" ; then |
| 3883 | case $ac_sys_system in |
| 3884 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3885 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3886 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3887 | *) LN=ln;; |
| 3888 | esac |
| 3889 | fi |
| 3890 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3891 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3892 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3893 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3894 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3895 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3896 | if test "${with_pydebug+set}" = set; then |
| 3897 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3898 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3899 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3900 | then |
| 3901 | |
| 3902 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3903 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3904 | _ACEOF |
| 3905 | |
| 3906 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3907 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3908 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3909 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3910 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3911 | fi |
| 3912 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3913 | echo "$as_me:$LINENO: result: no" >&5 |
| 3914 | echo "${ECHO_T}no" >&6 |
| 3915 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3916 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3917 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 3918 | # merged with this chunk of code? |
| 3919 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3920 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3921 | # ------------------------ |
| 3922 | # (The following bit of code is complicated enough - please keep things |
| 3923 | # indented properly. Just pretend you're editing Python code. ;-) |
| 3924 | |
| 3925 | # There are two parallel sets of case statements below, one that checks to |
| 3926 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 3927 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 3928 | # user set OPT. |
| 3929 | |
| 3930 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 3931 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3932 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3933 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3934 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3935 | case $GCC in |
| 3936 | yes) |
| 3937 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3938 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3939 | if test "$Py_DEBUG" = 'true' ; then |
| 3940 | # Optimization messes up debuggers, so turn it off for |
| 3941 | # debug builds. |
| 3942 | OPT="-g -Wall -Wstrict-prototypes" |
| 3943 | else |
| 3944 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3945 | fi |
| 3946 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3947 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3948 | OPT="-O3 -Wall -Wstrict-prototypes" |
| 3949 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3950 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3951 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3952 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 3953 | ;; |
| 3954 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3955 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3956 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3957 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3958 | OPT="-O" |
| 3959 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3960 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3961 | |
| 3962 | # The current (beta) Monterey compiler dies with optimizations |
| 3963 | # 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] | 3964 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3965 | Monterey*) |
| 3966 | OPT="" |
| 3967 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3968 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3969 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3970 | fi |
| 3971 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3972 | |
| 3973 | # tweak BASECFLAGS based on compiler and platform |
| 3974 | case $GCC in |
| 3975 | yes) |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3976 | # Python violates C99 rules, by casting between incompatible |
| 3977 | # pointer types. GCC may generate bad code as a result of that, |
| 3978 | # so use -fno-strict-aliasing if supported. |
| 3979 | echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 3980 | echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6 |
| 3981 | ac_save_cc="$CC" |
| 3982 | CC="$CC -fno-strict-aliasing" |
| 3983 | if test "$cross_compiling" = yes; then |
| 3984 | ac_cv_no_strict_aliasing_ok=no |
| 3985 | else |
| 3986 | cat >conftest.$ac_ext <<_ACEOF |
| 3987 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3988 | /* confdefs.h. */ |
| 3989 | _ACEOF |
| 3990 | cat confdefs.h >>conftest.$ac_ext |
| 3991 | cat >>conftest.$ac_ext <<_ACEOF |
| 3992 | /* end confdefs.h. */ |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3993 | int main() { return 0; } |
| 3994 | _ACEOF |
| 3995 | rm -f conftest$ac_exeext |
| 3996 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3997 | (eval $ac_link) 2>&5 |
| 3998 | ac_status=$? |
| 3999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4000 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4002 | (eval $ac_try) 2>&5 |
| 4003 | ac_status=$? |
| 4004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4005 | (exit $ac_status); }; }; then |
| 4006 | ac_cv_no_strict_aliasing_ok=yes |
| 4007 | else |
| 4008 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4009 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4011 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4012 | ( exit $ac_status ) |
| 4013 | ac_cv_no_strict_aliasing_ok=no |
| 4014 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4015 | 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] | 4016 | fi |
| 4017 | CC="$ac_save_cc" |
| 4018 | echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 4019 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6 |
| 4020 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 4021 | then |
| 4022 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 4023 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4024 | case $ac_sys_system in |
| 4025 | SCO_SV*) |
| 4026 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 4027 | ;; |
| 4028 | # is there any other compiler on Darwin besides gcc? |
| 4029 | Darwin*) |
Jack Jansen | e004041 | 2003-07-23 22:17:28 +0000 | [diff] [blame] | 4030 | BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4031 | ;; |
| 4032 | esac |
| 4033 | ;; |
| 4034 | |
| 4035 | *) |
| 4036 | case $ac_sys_system in |
| 4037 | OpenUNIX*|UnixWare*) |
| 4038 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 4039 | ;; |
Neal Norwitz | b44f165 | 2003-05-26 14:11:55 +0000 | [diff] [blame] | 4040 | OSF*) |
| 4041 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 4042 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4043 | SCO_SV*) |
| 4044 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 4045 | ;; |
| 4046 | esac |
| 4047 | ;; |
| 4048 | esac |
| 4049 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 4050 | if test "$Py_DEBUG" = 'true'; then |
| 4051 | : |
| 4052 | else |
| 4053 | OPT="-DNDEBUG $OPT" |
| 4054 | fi |
| 4055 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 4056 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 4057 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4058 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 4059 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4060 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4061 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 4062 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 4063 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 4064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4065 | else |
| 4066 | ac_save_cc="$CC" |
| 4067 | CC="$CC -OPT:Olimit=0" |
| 4068 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 4069 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4070 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4071 | cat >conftest.$ac_ext <<_ACEOF |
| 4072 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4073 | /* confdefs.h. */ |
| 4074 | _ACEOF |
| 4075 | cat confdefs.h >>conftest.$ac_ext |
| 4076 | cat >>conftest.$ac_ext <<_ACEOF |
| 4077 | /* end confdefs.h. */ |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4078 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4079 | _ACEOF |
| 4080 | rm -f conftest$ac_exeext |
| 4081 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4082 | (eval $ac_link) 2>&5 |
| 4083 | ac_status=$? |
| 4084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4085 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4087 | (eval $ac_try) 2>&5 |
| 4088 | ac_status=$? |
| 4089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4090 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4091 | ac_cv_opt_olimit_ok=yes |
| 4092 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4093 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4094 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4096 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4097 | ( exit $ac_status ) |
| 4098 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4099 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4100 | 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] | 4101 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4102 | CC="$ac_save_cc" |
| 4103 | fi |
| 4104 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4105 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 4106 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 4107 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4108 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4109 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 4110 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 4111 | # environment? |
| 4112 | Darwin*) |
| 4113 | ;; |
| 4114 | *) |
| 4115 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 4116 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4117 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4118 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4119 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 4120 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 4121 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 4122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4123 | else |
| 4124 | ac_save_cc="$CC" |
| 4125 | CC="$CC -Olimit 1500" |
| 4126 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 4127 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4128 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4129 | cat >conftest.$ac_ext <<_ACEOF |
| 4130 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4131 | /* confdefs.h. */ |
| 4132 | _ACEOF |
| 4133 | cat confdefs.h >>conftest.$ac_ext |
| 4134 | cat >>conftest.$ac_ext <<_ACEOF |
| 4135 | /* end confdefs.h. */ |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4136 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4137 | _ACEOF |
| 4138 | rm -f conftest$ac_exeext |
| 4139 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4140 | (eval $ac_link) 2>&5 |
| 4141 | ac_status=$? |
| 4142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4143 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4145 | (eval $ac_try) 2>&5 |
| 4146 | ac_status=$? |
| 4147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4148 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4149 | ac_cv_olimit_ok=yes |
| 4150 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4151 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4152 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4153 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4154 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4155 | ( exit $ac_status ) |
| 4156 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 4157 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4158 | 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] | 4159 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4160 | CC="$ac_save_cc" |
| 4161 | fi |
| 4162 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4163 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 4164 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4165 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4166 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4167 | fi |
| 4168 | fi |
| 4169 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4170 | # On some compilers, pthreads are available without further options |
| 4171 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 4172 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 4173 | # So we have to see first whether pthreads are available without |
| 4174 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4175 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 4176 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 4177 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 4178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4179 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4180 | if test "$cross_compiling" = yes; then |
| 4181 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4182 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4183 | cat >conftest.$ac_ext <<_ACEOF |
| 4184 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4185 | /* confdefs.h. */ |
| 4186 | _ACEOF |
| 4187 | cat confdefs.h >>conftest.$ac_ext |
| 4188 | cat >>conftest.$ac_ext <<_ACEOF |
| 4189 | /* end confdefs.h. */ |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4190 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4191 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4192 | |
| 4193 | void* routine(void* p){return NULL;} |
| 4194 | |
| 4195 | int main(){ |
| 4196 | pthread_t p; |
| 4197 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4198 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4199 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4200 | return 0; |
| 4201 | } |
| 4202 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4203 | _ACEOF |
| 4204 | rm -f conftest$ac_exeext |
| 4205 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4206 | (eval $ac_link) 2>&5 |
| 4207 | ac_status=$? |
| 4208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4209 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4211 | (eval $ac_try) 2>&5 |
| 4212 | ac_status=$? |
| 4213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4214 | (exit $ac_status); }; }; then |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4215 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4216 | ac_cv_pthread_is_default=yes |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4217 | ac_cv_kthread=no |
| 4218 | ac_cv_pthread=no |
| 4219 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4220 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4221 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4222 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4225 | ( exit $ac_status ) |
| 4226 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4227 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4228 | 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] | 4229 | fi |
| 4230 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4231 | fi |
| 4232 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4233 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 4234 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4235 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4236 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4237 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4238 | then |
| 4239 | ac_cv_kpthread=no |
| 4240 | else |
| 4241 | # -Kpthread, if available, provides the right #defines |
| 4242 | # and linker options to make pthread_create available |
| 4243 | # Some compilers won't report that they do not support -Kpthread, |
| 4244 | # so we need to run a program to see whether it really made the |
| 4245 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4246 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 4247 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 4248 | if test "${ac_cv_kpthread+set}" = set; then |
| 4249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4250 | else |
| 4251 | ac_save_cc="$CC" |
| 4252 | CC="$CC -Kpthread" |
| 4253 | if test "$cross_compiling" = yes; then |
| 4254 | ac_cv_kpthread=no |
| 4255 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4256 | cat >conftest.$ac_ext <<_ACEOF |
| 4257 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4258 | /* confdefs.h. */ |
| 4259 | _ACEOF |
| 4260 | cat confdefs.h >>conftest.$ac_ext |
| 4261 | cat >>conftest.$ac_ext <<_ACEOF |
| 4262 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4263 | |
| 4264 | #include <pthread.h> |
| 4265 | |
| 4266 | void* routine(void* p){return NULL;} |
| 4267 | |
| 4268 | int main(){ |
| 4269 | pthread_t p; |
| 4270 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4271 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4272 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4273 | return 0; |
| 4274 | } |
| 4275 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4276 | _ACEOF |
| 4277 | rm -f conftest$ac_exeext |
| 4278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4279 | (eval $ac_link) 2>&5 |
| 4280 | ac_status=$? |
| 4281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4282 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4284 | (eval $ac_try) 2>&5 |
| 4285 | ac_status=$? |
| 4286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4287 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4288 | ac_cv_kpthread=yes |
| 4289 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4290 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4291 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4293 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4294 | ( exit $ac_status ) |
| 4295 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4296 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4297 | 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] | 4298 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4299 | CC="$ac_save_cc" |
| 4300 | fi |
| 4301 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4302 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 4303 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4304 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4305 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4306 | 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] | 4307 | then |
| 4308 | # -Kthread, if available, provides the right #defines |
| 4309 | # and linker options to make pthread_create available |
| 4310 | # Some compilers won't report that they do not support -Kthread, |
| 4311 | # so we need to run a program to see whether it really made the |
| 4312 | # function available. |
| 4313 | echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 4314 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6 |
| 4315 | if test "${ac_cv_kthread+set}" = set; then |
| 4316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4317 | else |
| 4318 | ac_save_cc="$CC" |
| 4319 | CC="$CC -Kthread" |
| 4320 | if test "$cross_compiling" = yes; then |
| 4321 | ac_cv_kthread=no |
| 4322 | else |
| 4323 | cat >conftest.$ac_ext <<_ACEOF |
| 4324 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4325 | /* confdefs.h. */ |
| 4326 | _ACEOF |
| 4327 | cat confdefs.h >>conftest.$ac_ext |
| 4328 | cat >>conftest.$ac_ext <<_ACEOF |
| 4329 | /* end confdefs.h. */ |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4330 | |
| 4331 | #include <pthread.h> |
| 4332 | |
| 4333 | void* routine(void* p){return NULL;} |
| 4334 | |
| 4335 | int main(){ |
| 4336 | pthread_t p; |
| 4337 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4338 | return 1; |
| 4339 | (void)pthread_detach(p); |
| 4340 | return 0; |
| 4341 | } |
| 4342 | |
| 4343 | _ACEOF |
| 4344 | rm -f conftest$ac_exeext |
| 4345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4346 | (eval $ac_link) 2>&5 |
| 4347 | ac_status=$? |
| 4348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4349 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4351 | (eval $ac_try) 2>&5 |
| 4352 | ac_status=$? |
| 4353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4354 | (exit $ac_status); }; }; then |
| 4355 | ac_cv_kthread=yes |
| 4356 | else |
| 4357 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4358 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4360 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4361 | ( exit $ac_status ) |
| 4362 | ac_cv_kthread=no |
| 4363 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4364 | 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] | 4365 | fi |
| 4366 | CC="$ac_save_cc" |
| 4367 | fi |
| 4368 | |
| 4369 | echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 4370 | echo "${ECHO_T}$ac_cv_kthread" >&6 |
| 4371 | fi |
| 4372 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4373 | 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] | 4374 | then |
| 4375 | # -pthread, if available, provides the right #defines |
| 4376 | # and linker options to make pthread_create available |
| 4377 | # Some compilers won't report that they do not support -pthread, |
| 4378 | # so we need to run a program to see whether it really made the |
| 4379 | # function available. |
| 4380 | echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 4381 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6 |
| 4382 | if test "${ac_cv_thread+set}" = set; then |
| 4383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4384 | else |
| 4385 | ac_save_cc="$CC" |
| 4386 | CC="$CC -pthread" |
| 4387 | if test "$cross_compiling" = yes; then |
| 4388 | ac_cv_pthread=no |
| 4389 | else |
| 4390 | cat >conftest.$ac_ext <<_ACEOF |
| 4391 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4392 | /* confdefs.h. */ |
| 4393 | _ACEOF |
| 4394 | cat confdefs.h >>conftest.$ac_ext |
| 4395 | cat >>conftest.$ac_ext <<_ACEOF |
| 4396 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4397 | |
| 4398 | #include <pthread.h> |
| 4399 | |
| 4400 | void* routine(void* p){return NULL;} |
| 4401 | |
| 4402 | int main(){ |
| 4403 | pthread_t p; |
| 4404 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4405 | return 1; |
| 4406 | (void)pthread_detach(p); |
| 4407 | return 0; |
| 4408 | } |
| 4409 | |
| 4410 | _ACEOF |
| 4411 | rm -f conftest$ac_exeext |
| 4412 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4413 | (eval $ac_link) 2>&5 |
| 4414 | ac_status=$? |
| 4415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4416 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4418 | (eval $ac_try) 2>&5 |
| 4419 | ac_status=$? |
| 4420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4421 | (exit $ac_status); }; }; then |
| 4422 | ac_cv_pthread=yes |
| 4423 | else |
| 4424 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4425 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4427 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4428 | ( exit $ac_status ) |
| 4429 | ac_cv_pthread=no |
| 4430 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4431 | 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] | 4432 | fi |
| 4433 | CC="$ac_save_cc" |
| 4434 | fi |
| 4435 | |
| 4436 | echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 4437 | echo "${ECHO_T}$ac_cv_pthread" >&6 |
| 4438 | fi |
| 4439 | |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4440 | # If we have set a CC compiler flag for thread support then |
| 4441 | # check if it works for CXX, too. |
| 4442 | ac_cv_cxx_thread=no |
| 4443 | if test ! -z "$CXX" |
| 4444 | then |
| 4445 | echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 4446 | echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6 |
| 4447 | ac_save_cxx="$CXX" |
| 4448 | |
| 4449 | if test "$ac_cv_kpthread" = "yes" |
| 4450 | then |
| 4451 | CXX="$CXX -Kpthread" |
| 4452 | ac_cv_cxx_thread=yes |
| 4453 | elif test "$ac_cv_kthread" = "yes" |
| 4454 | then |
| 4455 | CXX="$CXX -Kthread" |
| 4456 | ac_cv_cxx_thread=yes |
| 4457 | elif test "$ac_cv_pthread" = "yes" |
| 4458 | then |
| 4459 | CXX="$CXX -pthread" |
| 4460 | ac_cv_cxx_thread=yes |
| 4461 | fi |
| 4462 | |
| 4463 | if test $ac_cv_cxx_thread = yes |
| 4464 | then |
| 4465 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 4466 | $CXX -c conftest.$ac_ext 2>&5 |
| 4467 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 4468 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 4469 | then |
| 4470 | ac_cv_cxx_thread=yes |
| 4471 | else |
| 4472 | ac_cv_cxx_thread=no |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4473 | fi |
| 4474 | rm -fr conftest* |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4475 | fi |
| 4476 | fi |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 4477 | CXX="$ac_save_cxx" |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4478 | echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 4479 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6 |
| 4480 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4481 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4482 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4483 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4484 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4485 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4487 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4488 | cat >conftest.$ac_ext <<_ACEOF |
| 4489 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4490 | /* confdefs.h. */ |
| 4491 | _ACEOF |
| 4492 | cat confdefs.h >>conftest.$ac_ext |
| 4493 | cat >>conftest.$ac_ext <<_ACEOF |
| 4494 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4495 | #include <stdlib.h> |
| 4496 | #include <stdarg.h> |
| 4497 | #include <string.h> |
| 4498 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4499 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4500 | int |
| 4501 | main () |
| 4502 | { |
| 4503 | |
| 4504 | ; |
| 4505 | return 0; |
| 4506 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4507 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4508 | rm -f conftest.$ac_objext |
| 4509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4510 | (eval $ac_compile) 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4511 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4513 | (exit $ac_status); } && |
| 4514 | { ac_try='test -s conftest.$ac_objext' |
| 4515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4516 | (eval $ac_try) 2>&5 |
| 4517 | ac_status=$? |
| 4518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4519 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4520 | ac_cv_header_stdc=yes |
| 4521 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4522 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4524 | |
| 4525 | ac_cv_header_stdc=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4526 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4527 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4528 | |
| 4529 | if test $ac_cv_header_stdc = yes; then |
| 4530 | # 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] | 4531 | cat >conftest.$ac_ext <<_ACEOF |
| 4532 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4533 | /* confdefs.h. */ |
| 4534 | _ACEOF |
| 4535 | cat confdefs.h >>conftest.$ac_ext |
| 4536 | cat >>conftest.$ac_ext <<_ACEOF |
| 4537 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4538 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4539 | |
| 4540 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4541 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4542 | $EGREP "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4543 | : |
| 4544 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4545 | ac_cv_header_stdc=no |
| 4546 | fi |
| 4547 | rm -f conftest* |
| 4548 | |
| 4549 | fi |
| 4550 | |
| 4551 | if test $ac_cv_header_stdc = yes; then |
| 4552 | # 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] | 4553 | cat >conftest.$ac_ext <<_ACEOF |
| 4554 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4555 | /* confdefs.h. */ |
| 4556 | _ACEOF |
| 4557 | cat confdefs.h >>conftest.$ac_ext |
| 4558 | cat >>conftest.$ac_ext <<_ACEOF |
| 4559 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4560 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4561 | |
| 4562 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4563 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4564 | $EGREP "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4565 | : |
| 4566 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4567 | ac_cv_header_stdc=no |
| 4568 | fi |
| 4569 | rm -f conftest* |
| 4570 | |
| 4571 | fi |
| 4572 | |
| 4573 | if test $ac_cv_header_stdc = yes; then |
| 4574 | # /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] | 4575 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4576 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4577 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4578 | cat >conftest.$ac_ext <<_ACEOF |
| 4579 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4580 | /* confdefs.h. */ |
| 4581 | _ACEOF |
| 4582 | cat confdefs.h >>conftest.$ac_ext |
| 4583 | cat >>conftest.$ac_ext <<_ACEOF |
| 4584 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4585 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4586 | #if ((' ' & 0x0FF) == 0x020) |
| 4587 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4588 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4589 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4590 | # define ISLOWER(c) \ |
| 4591 | (('a' <= (c) && (c) <= 'i') \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4592 | || ('j' <= (c) && (c) <= 'r') \ |
| 4593 | || ('s' <= (c) && (c) <= 'z')) |
| 4594 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4595 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4596 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4597 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4598 | int |
| 4599 | main () |
| 4600 | { |
| 4601 | int i; |
| 4602 | for (i = 0; i < 256; i++) |
| 4603 | if (XOR (islower (i), ISLOWER (i)) |
| 4604 | || toupper (i) != TOUPPER (i)) |
| 4605 | exit(2); |
| 4606 | exit (0); |
| 4607 | } |
| 4608 | _ACEOF |
| 4609 | rm -f conftest$ac_exeext |
| 4610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4611 | (eval $ac_link) 2>&5 |
| 4612 | ac_status=$? |
| 4613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4614 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4616 | (eval $ac_try) 2>&5 |
| 4617 | ac_status=$? |
| 4618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4619 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4620 | : |
| 4621 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4622 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4623 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4624 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4626 | ( exit $ac_status ) |
| 4627 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4628 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4629 | 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] | 4630 | fi |
| 4631 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4632 | fi |
| 4633 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4634 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4635 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4636 | |
| 4637 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4638 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4639 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4640 | |
| 4641 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4642 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | |
| 4668 | |
| 4669 | |
| 4670 | |
| 4671 | |
| 4672 | |
| 4673 | |
| 4674 | |
| 4675 | |
| 4676 | |
| 4677 | |
| 4678 | |
| 4679 | |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4680 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4681 | |
Neal Norwitz | 8225103 | 2003-05-23 14:35:24 +0000 | [diff] [blame] | 4682 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4683 | 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] | 4684 | libintl.h locale.h ncurses.h poll.h pthread.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4685 | signal.h stdarg.h stddef.h stdlib.h stropts.h termios.h thread.h \ |
| 4686 | unistd.h utime.h \ |
Neal Norwitz | 8225103 | 2003-05-23 14:35:24 +0000 | [diff] [blame] | 4687 | 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] | 4688 | 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] | 4689 | 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] | 4690 | sys/resource.h netpacket/packet.h sysexits.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4691 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4692 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4693 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4694 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4695 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4696 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4698 | fi |
| 4699 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4700 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4701 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4702 | # Is the header compilable? |
| 4703 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4704 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4705 | cat >conftest.$ac_ext <<_ACEOF |
| 4706 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4707 | /* confdefs.h. */ |
| 4708 | _ACEOF |
| 4709 | cat confdefs.h >>conftest.$ac_ext |
| 4710 | cat >>conftest.$ac_ext <<_ACEOF |
| 4711 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4712 | $ac_includes_default |
| 4713 | #include <$ac_header> |
| 4714 | _ACEOF |
| 4715 | rm -f conftest.$ac_objext |
| 4716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4717 | (eval $ac_compile) 2>&5 |
| 4718 | ac_status=$? |
| 4719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4720 | (exit $ac_status); } && |
| 4721 | { ac_try='test -s conftest.$ac_objext' |
| 4722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4723 | (eval $ac_try) 2>&5 |
| 4724 | ac_status=$? |
| 4725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4726 | (exit $ac_status); }; }; then |
| 4727 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4728 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4729 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4731 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4732 | ac_header_compiler=no |
| 4733 | fi |
| 4734 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4735 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4736 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4737 | |
| 4738 | # Is the header present? |
| 4739 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4740 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4741 | cat >conftest.$ac_ext <<_ACEOF |
| 4742 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4743 | /* confdefs.h. */ |
| 4744 | _ACEOF |
| 4745 | cat confdefs.h >>conftest.$ac_ext |
| 4746 | cat >>conftest.$ac_ext <<_ACEOF |
| 4747 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4748 | #include <$ac_header> |
| 4749 | _ACEOF |
| 4750 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4751 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4752 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4753 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4754 | rm -f conftest.er1 |
| 4755 | cat conftest.err >&5 |
| 4756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4757 | (exit $ac_status); } >/dev/null; then |
| 4758 | if test -s conftest.err; then |
| 4759 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4760 | else |
| 4761 | ac_cpp_err= |
| 4762 | fi |
| 4763 | else |
| 4764 | ac_cpp_err=yes |
| 4765 | fi |
| 4766 | if test -z "$ac_cpp_err"; then |
| 4767 | ac_header_preproc=yes |
| 4768 | else |
| 4769 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4770 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4771 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4772 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4773 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4774 | rm -f conftest.err conftest.$ac_ext |
| 4775 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4776 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4777 | |
| 4778 | # So? What about this header? |
| 4779 | case $ac_header_compiler:$ac_header_preproc in |
| 4780 | yes:no ) |
| 4781 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4782 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4783 | { 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] | 4784 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4785 | ( |
| 4786 | cat <<\_ASBOX |
| 4787 | ## ------------------------------------ ## |
| 4788 | ## Report this to bug-autoconf@gnu.org. ## |
| 4789 | ## ------------------------------------ ## |
| 4790 | _ASBOX |
| 4791 | ) | |
| 4792 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4793 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4794 | no:yes ) |
| 4795 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4796 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4797 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4798 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4799 | { 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] | 4800 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4801 | ( |
| 4802 | cat <<\_ASBOX |
| 4803 | ## ------------------------------------ ## |
| 4804 | ## Report this to bug-autoconf@gnu.org. ## |
| 4805 | ## ------------------------------------ ## |
| 4806 | _ASBOX |
| 4807 | ) | |
| 4808 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4809 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4810 | esac |
| 4811 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4812 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4813 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4815 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4816 | eval "$as_ac_Header=$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4817 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4818 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4819 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4820 | |
| 4821 | fi |
| 4822 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4823 | cat >>confdefs.h <<_ACEOF |
| 4824 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4825 | _ACEOF |
| 4826 | |
| 4827 | fi |
| 4828 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4829 | done |
| 4830 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4831 | |
| 4832 | |
| 4833 | |
| 4834 | |
| 4835 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4836 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4837 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4838 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4839 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4840 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4841 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4843 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4844 | cat >conftest.$ac_ext <<_ACEOF |
| 4845 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4846 | /* confdefs.h. */ |
| 4847 | _ACEOF |
| 4848 | cat confdefs.h >>conftest.$ac_ext |
| 4849 | cat >>conftest.$ac_ext <<_ACEOF |
| 4850 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4851 | #include <sys/types.h> |
| 4852 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4853 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4854 | int |
| 4855 | main () |
| 4856 | { |
| 4857 | if ((DIR *) 0) |
| 4858 | return 0; |
| 4859 | ; |
| 4860 | return 0; |
| 4861 | } |
| 4862 | _ACEOF |
| 4863 | rm -f conftest.$ac_objext |
| 4864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4865 | (eval $ac_compile) 2>&5 |
| 4866 | ac_status=$? |
| 4867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4868 | (exit $ac_status); } && |
| 4869 | { ac_try='test -s conftest.$ac_objext' |
| 4870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4871 | (eval $ac_try) 2>&5 |
| 4872 | ac_status=$? |
| 4873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4874 | (exit $ac_status); }; }; then |
| 4875 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4876 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4877 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4879 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4880 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4881 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4882 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4883 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4884 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4885 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4886 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4887 | cat >>confdefs.h <<_ACEOF |
| 4888 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4889 | _ACEOF |
| 4890 | |
| 4891 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4892 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4893 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4894 | done |
| 4895 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4896 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4897 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4898 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4899 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4901 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4902 | ac_func_search_save_LIBS=$LIBS |
| 4903 | ac_cv_search_opendir=no |
| 4904 | cat >conftest.$ac_ext <<_ACEOF |
| 4905 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4906 | /* confdefs.h. */ |
| 4907 | _ACEOF |
| 4908 | cat confdefs.h >>conftest.$ac_ext |
| 4909 | cat >>conftest.$ac_ext <<_ACEOF |
| 4910 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4911 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4912 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4913 | #ifdef __cplusplus |
| 4914 | extern "C" |
| 4915 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4916 | /* 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] | 4917 | builtin and then its argument prototype would still apply. */ |
| 4918 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4919 | int |
| 4920 | main () |
| 4921 | { |
| 4922 | opendir (); |
| 4923 | ; |
| 4924 | return 0; |
| 4925 | } |
| 4926 | _ACEOF |
| 4927 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4928 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4929 | (eval $ac_link) 2>&5 |
| 4930 | ac_status=$? |
| 4931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4932 | (exit $ac_status); } && |
| 4933 | { ac_try='test -s conftest$ac_exeext' |
| 4934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4935 | (eval $ac_try) 2>&5 |
| 4936 | ac_status=$? |
| 4937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4938 | (exit $ac_status); }; }; then |
| 4939 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4940 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4941 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4943 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4944 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4945 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4946 | if test "$ac_cv_search_opendir" = no; then |
| 4947 | for ac_lib in dir; do |
| 4948 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4949 | cat >conftest.$ac_ext <<_ACEOF |
| 4950 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4951 | /* confdefs.h. */ |
| 4952 | _ACEOF |
| 4953 | cat confdefs.h >>conftest.$ac_ext |
| 4954 | cat >>conftest.$ac_ext <<_ACEOF |
| 4955 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4956 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4957 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4958 | #ifdef __cplusplus |
| 4959 | extern "C" |
| 4960 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4961 | /* 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] | 4962 | builtin and then its argument prototype would still apply. */ |
| 4963 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4964 | int |
| 4965 | main () |
| 4966 | { |
| 4967 | opendir (); |
| 4968 | ; |
| 4969 | return 0; |
| 4970 | } |
| 4971 | _ACEOF |
| 4972 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4973 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4974 | (eval $ac_link) 2>&5 |
| 4975 | ac_status=$? |
| 4976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4977 | (exit $ac_status); } && |
| 4978 | { ac_try='test -s conftest$ac_exeext' |
| 4979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4980 | (eval $ac_try) 2>&5 |
| 4981 | ac_status=$? |
| 4982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4983 | (exit $ac_status); }; }; then |
| 4984 | ac_cv_search_opendir="-l$ac_lib" |
| 4985 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4986 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4987 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4989 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4990 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4991 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4992 | done |
| 4993 | fi |
| 4994 | LIBS=$ac_func_search_save_LIBS |
| 4995 | fi |
| 4996 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4997 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4998 | if test "$ac_cv_search_opendir" != no; then |
| 4999 | 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] | 5000 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5001 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5002 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5003 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5004 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5005 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 5006 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5008 | else |
| 5009 | ac_func_search_save_LIBS=$LIBS |
| 5010 | ac_cv_search_opendir=no |
| 5011 | cat >conftest.$ac_ext <<_ACEOF |
| 5012 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5013 | /* confdefs.h. */ |
| 5014 | _ACEOF |
| 5015 | cat confdefs.h >>conftest.$ac_ext |
| 5016 | cat >>conftest.$ac_ext <<_ACEOF |
| 5017 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5018 | |
| 5019 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5020 | #ifdef __cplusplus |
| 5021 | extern "C" |
| 5022 | #endif |
| 5023 | /* We use char because int might match the return type of a gcc2 |
| 5024 | builtin and then its argument prototype would still apply. */ |
| 5025 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5026 | int |
| 5027 | main () |
| 5028 | { |
| 5029 | opendir (); |
| 5030 | ; |
| 5031 | return 0; |
| 5032 | } |
| 5033 | _ACEOF |
| 5034 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5035 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5036 | (eval $ac_link) 2>&5 |
| 5037 | ac_status=$? |
| 5038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5039 | (exit $ac_status); } && |
| 5040 | { ac_try='test -s conftest$ac_exeext' |
| 5041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5042 | (eval $ac_try) 2>&5 |
| 5043 | ac_status=$? |
| 5044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5045 | (exit $ac_status); }; }; then |
| 5046 | ac_cv_search_opendir="none required" |
| 5047 | else |
| 5048 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5049 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5050 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5051 | fi |
| 5052 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5053 | if test "$ac_cv_search_opendir" = no; then |
| 5054 | for ac_lib in x; do |
| 5055 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 5056 | cat >conftest.$ac_ext <<_ACEOF |
| 5057 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5058 | /* confdefs.h. */ |
| 5059 | _ACEOF |
| 5060 | cat confdefs.h >>conftest.$ac_ext |
| 5061 | cat >>conftest.$ac_ext <<_ACEOF |
| 5062 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5063 | |
| 5064 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5065 | #ifdef __cplusplus |
| 5066 | extern "C" |
| 5067 | #endif |
| 5068 | /* We use char because int might match the return type of a gcc2 |
| 5069 | builtin and then its argument prototype would still apply. */ |
| 5070 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5071 | int |
| 5072 | main () |
| 5073 | { |
| 5074 | opendir (); |
| 5075 | ; |
| 5076 | return 0; |
| 5077 | } |
| 5078 | _ACEOF |
| 5079 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5080 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5081 | (eval $ac_link) 2>&5 |
| 5082 | ac_status=$? |
| 5083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5084 | (exit $ac_status); } && |
| 5085 | { ac_try='test -s conftest$ac_exeext' |
| 5086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5087 | (eval $ac_try) 2>&5 |
| 5088 | ac_status=$? |
| 5089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5090 | (exit $ac_status); }; }; then |
| 5091 | ac_cv_search_opendir="-l$ac_lib" |
| 5092 | break |
| 5093 | else |
| 5094 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5096 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5097 | fi |
| 5098 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5099 | done |
| 5100 | fi |
| 5101 | LIBS=$ac_func_search_save_LIBS |
| 5102 | fi |
| 5103 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5104 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 5105 | if test "$ac_cv_search_opendir" != no; then |
| 5106 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 5107 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5108 | fi |
| 5109 | |
| 5110 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5111 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5112 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 5113 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 5114 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 5115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5116 | else |
| 5117 | cat >conftest.$ac_ext <<_ACEOF |
| 5118 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5119 | /* confdefs.h. */ |
| 5120 | _ACEOF |
| 5121 | cat confdefs.h >>conftest.$ac_ext |
| 5122 | cat >>conftest.$ac_ext <<_ACEOF |
| 5123 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5124 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5125 | int |
| 5126 | main () |
| 5127 | { |
| 5128 | return makedev(0, 0); |
| 5129 | ; |
| 5130 | return 0; |
| 5131 | } |
| 5132 | _ACEOF |
| 5133 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5134 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5135 | (eval $ac_link) 2>&5 |
| 5136 | ac_status=$? |
| 5137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5138 | (exit $ac_status); } && |
| 5139 | { ac_try='test -s conftest$ac_exeext' |
| 5140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5141 | (eval $ac_try) 2>&5 |
| 5142 | ac_status=$? |
| 5143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5144 | (exit $ac_status); }; }; then |
| 5145 | ac_cv_header_sys_types_h_makedev=yes |
| 5146 | else |
| 5147 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5148 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5149 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5150 | ac_cv_header_sys_types_h_makedev=no |
| 5151 | fi |
| 5152 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5153 | |
| 5154 | fi |
| 5155 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 5156 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 5157 | |
| 5158 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 5159 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5160 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5161 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5162 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5164 | fi |
| 5165 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5166 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5167 | else |
| 5168 | # Is the header compilable? |
| 5169 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 5170 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 5171 | cat >conftest.$ac_ext <<_ACEOF |
| 5172 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5173 | /* confdefs.h. */ |
| 5174 | _ACEOF |
| 5175 | cat confdefs.h >>conftest.$ac_ext |
| 5176 | cat >>conftest.$ac_ext <<_ACEOF |
| 5177 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5178 | $ac_includes_default |
| 5179 | #include <sys/mkdev.h> |
| 5180 | _ACEOF |
| 5181 | rm -f conftest.$ac_objext |
| 5182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5183 | (eval $ac_compile) 2>&5 |
| 5184 | ac_status=$? |
| 5185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5186 | (exit $ac_status); } && |
| 5187 | { ac_try='test -s conftest.$ac_objext' |
| 5188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5189 | (eval $ac_try) 2>&5 |
| 5190 | ac_status=$? |
| 5191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5192 | (exit $ac_status); }; }; then |
| 5193 | ac_header_compiler=yes |
| 5194 | else |
| 5195 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5197 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5198 | ac_header_compiler=no |
| 5199 | fi |
| 5200 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5201 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5202 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5203 | |
| 5204 | # Is the header present? |
| 5205 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 5206 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 5207 | cat >conftest.$ac_ext <<_ACEOF |
| 5208 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5209 | /* confdefs.h. */ |
| 5210 | _ACEOF |
| 5211 | cat confdefs.h >>conftest.$ac_ext |
| 5212 | cat >>conftest.$ac_ext <<_ACEOF |
| 5213 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5214 | #include <sys/mkdev.h> |
| 5215 | _ACEOF |
| 5216 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5217 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5218 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5219 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5220 | rm -f conftest.er1 |
| 5221 | cat conftest.err >&5 |
| 5222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5223 | (exit $ac_status); } >/dev/null; then |
| 5224 | if test -s conftest.err; then |
| 5225 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5226 | else |
| 5227 | ac_cpp_err= |
| 5228 | fi |
| 5229 | else |
| 5230 | ac_cpp_err=yes |
| 5231 | fi |
| 5232 | if test -z "$ac_cpp_err"; then |
| 5233 | ac_header_preproc=yes |
| 5234 | else |
| 5235 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5236 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5237 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5238 | ac_header_preproc=no |
| 5239 | fi |
| 5240 | rm -f conftest.err conftest.$ac_ext |
| 5241 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5242 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5243 | |
| 5244 | # So? What about this header? |
| 5245 | case $ac_header_compiler:$ac_header_preproc in |
| 5246 | yes:no ) |
| 5247 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5248 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5249 | { 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] | 5250 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 5251 | ( |
| 5252 | cat <<\_ASBOX |
| 5253 | ## ------------------------------------ ## |
| 5254 | ## Report this to bug-autoconf@gnu.org. ## |
| 5255 | ## ------------------------------------ ## |
| 5256 | _ASBOX |
| 5257 | ) | |
| 5258 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5259 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5260 | no:yes ) |
| 5261 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 5262 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 5263 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 5264 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 5265 | { 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] | 5266 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 5267 | ( |
| 5268 | cat <<\_ASBOX |
| 5269 | ## ------------------------------------ ## |
| 5270 | ## Report this to bug-autoconf@gnu.org. ## |
| 5271 | ## ------------------------------------ ## |
| 5272 | _ASBOX |
| 5273 | ) | |
| 5274 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5275 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5276 | esac |
| 5277 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5278 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5279 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5281 | else |
| 5282 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 5283 | fi |
| 5284 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5285 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5286 | |
| 5287 | fi |
| 5288 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 5289 | |
| 5290 | cat >>confdefs.h <<\_ACEOF |
| 5291 | #define MAJOR_IN_MKDEV 1 |
| 5292 | _ACEOF |
| 5293 | |
| 5294 | fi |
| 5295 | |
| 5296 | |
| 5297 | |
| 5298 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 5299 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5300 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5301 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5302 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5304 | fi |
| 5305 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5306 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5307 | else |
| 5308 | # Is the header compilable? |
| 5309 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 5310 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 5311 | cat >conftest.$ac_ext <<_ACEOF |
| 5312 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5313 | /* confdefs.h. */ |
| 5314 | _ACEOF |
| 5315 | cat confdefs.h >>conftest.$ac_ext |
| 5316 | cat >>conftest.$ac_ext <<_ACEOF |
| 5317 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5318 | $ac_includes_default |
| 5319 | #include <sys/sysmacros.h> |
| 5320 | _ACEOF |
| 5321 | rm -f conftest.$ac_objext |
| 5322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5323 | (eval $ac_compile) 2>&5 |
| 5324 | ac_status=$? |
| 5325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5326 | (exit $ac_status); } && |
| 5327 | { ac_try='test -s conftest.$ac_objext' |
| 5328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5329 | (eval $ac_try) 2>&5 |
| 5330 | ac_status=$? |
| 5331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5332 | (exit $ac_status); }; }; then |
| 5333 | ac_header_compiler=yes |
| 5334 | else |
| 5335 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5337 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5338 | ac_header_compiler=no |
| 5339 | fi |
| 5340 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5341 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5342 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5343 | |
| 5344 | # Is the header present? |
| 5345 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 5346 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 5347 | cat >conftest.$ac_ext <<_ACEOF |
| 5348 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5349 | /* confdefs.h. */ |
| 5350 | _ACEOF |
| 5351 | cat confdefs.h >>conftest.$ac_ext |
| 5352 | cat >>conftest.$ac_ext <<_ACEOF |
| 5353 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5354 | #include <sys/sysmacros.h> |
| 5355 | _ACEOF |
| 5356 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5357 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5358 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5359 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5360 | rm -f conftest.er1 |
| 5361 | cat conftest.err >&5 |
| 5362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5363 | (exit $ac_status); } >/dev/null; then |
| 5364 | if test -s conftest.err; then |
| 5365 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5366 | else |
| 5367 | ac_cpp_err= |
| 5368 | fi |
| 5369 | else |
| 5370 | ac_cpp_err=yes |
| 5371 | fi |
| 5372 | if test -z "$ac_cpp_err"; then |
| 5373 | ac_header_preproc=yes |
| 5374 | else |
| 5375 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5377 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5378 | ac_header_preproc=no |
| 5379 | fi |
| 5380 | rm -f conftest.err conftest.$ac_ext |
| 5381 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5382 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5383 | |
| 5384 | # So? What about this header? |
| 5385 | case $ac_header_compiler:$ac_header_preproc in |
| 5386 | yes:no ) |
| 5387 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5388 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5389 | { 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] | 5390 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 5391 | ( |
| 5392 | cat <<\_ASBOX |
| 5393 | ## ------------------------------------ ## |
| 5394 | ## Report this to bug-autoconf@gnu.org. ## |
| 5395 | ## ------------------------------------ ## |
| 5396 | _ASBOX |
| 5397 | ) | |
| 5398 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5399 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5400 | no:yes ) |
| 5401 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 5402 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 5403 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 5404 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 5405 | { 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] | 5406 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 5407 | ( |
| 5408 | cat <<\_ASBOX |
| 5409 | ## ------------------------------------ ## |
| 5410 | ## Report this to bug-autoconf@gnu.org. ## |
| 5411 | ## ------------------------------------ ## |
| 5412 | _ASBOX |
| 5413 | ) | |
| 5414 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5415 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5416 | esac |
| 5417 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5418 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5419 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5421 | else |
| 5422 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 5423 | fi |
| 5424 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5425 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5426 | |
| 5427 | fi |
| 5428 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 5429 | |
| 5430 | cat >>confdefs.h <<\_ACEOF |
| 5431 | #define MAJOR_IN_SYSMACROS 1 |
| 5432 | _ACEOF |
| 5433 | |
| 5434 | fi |
| 5435 | |
| 5436 | |
| 5437 | fi |
| 5438 | fi |
| 5439 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5440 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5441 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5442 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5443 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 5444 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 5445 | cat >conftest.$ac_ext <<_ACEOF |
| 5446 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5447 | /* confdefs.h. */ |
| 5448 | _ACEOF |
| 5449 | cat confdefs.h >>conftest.$ac_ext |
| 5450 | cat >>conftest.$ac_ext <<_ACEOF |
| 5451 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5452 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5453 | |
| 5454 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5455 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5456 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5457 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5458 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5459 | |
| 5460 | |
| 5461 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5462 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5463 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5464 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 5465 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5466 | fi |
| 5467 | rm -f conftest* |
| 5468 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5469 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 5470 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5471 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5472 | # Check whether using makedev requires defining _OSF_SOURCE |
| 5473 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 5474 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 5475 | cat >conftest.$ac_ext <<_ACEOF |
| 5476 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5477 | /* confdefs.h. */ |
| 5478 | _ACEOF |
| 5479 | cat confdefs.h >>conftest.$ac_ext |
| 5480 | cat >>conftest.$ac_ext <<_ACEOF |
| 5481 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5482 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5483 | int |
| 5484 | main () |
| 5485 | { |
| 5486 | makedev(0, 0) |
| 5487 | ; |
| 5488 | return 0; |
| 5489 | } |
| 5490 | _ACEOF |
| 5491 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5492 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5493 | (eval $ac_link) 2>&5 |
| 5494 | ac_status=$? |
| 5495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5496 | (exit $ac_status); } && |
| 5497 | { ac_try='test -s conftest$ac_exeext' |
| 5498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5499 | (eval $ac_try) 2>&5 |
| 5500 | ac_status=$? |
| 5501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5502 | (exit $ac_status); }; }; then |
| 5503 | ac_cv_has_makedev=yes |
| 5504 | else |
| 5505 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5507 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5508 | ac_cv_has_makedev=no |
| 5509 | fi |
| 5510 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5511 | if test "$ac_cv_has_makedev" = "no"; then |
| 5512 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 5513 | cat >conftest.$ac_ext <<_ACEOF |
| 5514 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5515 | /* confdefs.h. */ |
| 5516 | _ACEOF |
| 5517 | cat confdefs.h >>conftest.$ac_ext |
| 5518 | cat >>conftest.$ac_ext <<_ACEOF |
| 5519 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5520 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5521 | #define _OSF_SOURCE 1 |
| 5522 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5523 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5524 | int |
| 5525 | main () |
| 5526 | { |
| 5527 | makedev(0, 0) |
| 5528 | ; |
| 5529 | return 0; |
| 5530 | } |
| 5531 | _ACEOF |
| 5532 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5533 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5534 | (eval $ac_link) 2>&5 |
| 5535 | ac_status=$? |
| 5536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5537 | (exit $ac_status); } && |
| 5538 | { ac_try='test -s conftest$ac_exeext' |
| 5539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5540 | (eval $ac_try) 2>&5 |
| 5541 | ac_status=$? |
| 5542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5543 | (exit $ac_status); }; }; then |
| 5544 | ac_cv_has_makedev=yes |
| 5545 | else |
| 5546 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5548 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5549 | ac_cv_has_makedev=no |
| 5550 | fi |
| 5551 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5552 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5553 | |
| 5554 | cat >>confdefs.h <<\_ACEOF |
| 5555 | #define _OSF_SOURCE 1 |
| 5556 | _ACEOF |
| 5557 | |
| 5558 | fi |
| 5559 | fi |
| 5560 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 5561 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 5562 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5563 | |
| 5564 | cat >>confdefs.h <<\_ACEOF |
| 5565 | #define HAVE_MAKEDEV 1 |
| 5566 | _ACEOF |
| 5567 | |
| 5568 | fi |
| 5569 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5570 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 5571 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 5572 | # defined, but the compiler does not support pragma redefine_extname, |
| 5573 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 5574 | # structures (such as rlimit64) without declaring them. As a |
| 5575 | # work-around, disable LFS on such configurations |
| 5576 | |
| 5577 | use_lfs=yes |
| 5578 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 5579 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 5580 | cat >conftest.$ac_ext <<_ACEOF |
| 5581 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5582 | /* confdefs.h. */ |
| 5583 | _ACEOF |
| 5584 | cat confdefs.h >>conftest.$ac_ext |
| 5585 | cat >>conftest.$ac_ext <<_ACEOF |
| 5586 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5587 | |
| 5588 | #define _LARGEFILE_SOURCE 1 |
| 5589 | #define _FILE_OFFSET_BITS 64 |
| 5590 | #include <sys/resource.h> |
| 5591 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5592 | int |
| 5593 | main () |
| 5594 | { |
| 5595 | struct rlimit foo; |
| 5596 | ; |
| 5597 | return 0; |
| 5598 | } |
| 5599 | _ACEOF |
| 5600 | rm -f conftest.$ac_objext |
| 5601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5602 | (eval $ac_compile) 2>&5 |
| 5603 | ac_status=$? |
| 5604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5605 | (exit $ac_status); } && |
| 5606 | { ac_try='test -s conftest.$ac_objext' |
| 5607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5608 | (eval $ac_try) 2>&5 |
| 5609 | ac_status=$? |
| 5610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5611 | (exit $ac_status); }; }; then |
| 5612 | sol_lfs_bug=no |
| 5613 | else |
| 5614 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5616 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5617 | sol_lfs_bug=yes |
| 5618 | fi |
| 5619 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5620 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 5621 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 5622 | if test "$sol_lfs_bug" = "yes"; then |
| 5623 | use_lfs=no |
| 5624 | fi |
| 5625 | |
| 5626 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5627 | # Two defines needed to enable largefile support on various platforms |
| 5628 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5629 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5630 | cat >>confdefs.h <<\_ACEOF |
| 5631 | #define _LARGEFILE_SOURCE 1 |
| 5632 | _ACEOF |
| 5633 | |
| 5634 | |
| 5635 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5636 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5637 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5638 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5639 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5640 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 5641 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 5642 | cat >> confdefs.h <<\EOF |
| 5643 | #if defined(SCO_DS) |
| 5644 | #undef _OFF_T |
| 5645 | #endif |
| 5646 | EOF |
| 5647 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5648 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5649 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 5650 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 5651 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 5652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5653 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5654 | cat >conftest.$ac_ext <<_ACEOF |
| 5655 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5656 | /* confdefs.h. */ |
| 5657 | _ACEOF |
| 5658 | cat confdefs.h >>conftest.$ac_ext |
| 5659 | cat >>conftest.$ac_ext <<_ACEOF |
| 5660 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5661 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5662 | int |
| 5663 | main () |
| 5664 | { |
| 5665 | if ((mode_t *) 0) |
| 5666 | return 0; |
| 5667 | if (sizeof (mode_t)) |
| 5668 | return 0; |
| 5669 | ; |
| 5670 | return 0; |
| 5671 | } |
| 5672 | _ACEOF |
| 5673 | rm -f conftest.$ac_objext |
| 5674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5675 | (eval $ac_compile) 2>&5 |
| 5676 | ac_status=$? |
| 5677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5678 | (exit $ac_status); } && |
| 5679 | { ac_try='test -s conftest.$ac_objext' |
| 5680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5681 | (eval $ac_try) 2>&5 |
| 5682 | ac_status=$? |
| 5683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5684 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5685 | ac_cv_type_mode_t=yes |
| 5686 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5687 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5689 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5690 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5691 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5692 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5693 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5694 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 5695 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 5696 | if test $ac_cv_type_mode_t = yes; then |
| 5697 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5698 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5699 | |
| 5700 | cat >>confdefs.h <<_ACEOF |
| 5701 | #define mode_t int |
| 5702 | _ACEOF |
| 5703 | |
| 5704 | fi |
| 5705 | |
| 5706 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5707 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 5708 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5710 | else |
| 5711 | cat >conftest.$ac_ext <<_ACEOF |
| 5712 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5713 | /* confdefs.h. */ |
| 5714 | _ACEOF |
| 5715 | cat confdefs.h >>conftest.$ac_ext |
| 5716 | cat >>conftest.$ac_ext <<_ACEOF |
| 5717 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5718 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5719 | int |
| 5720 | main () |
| 5721 | { |
| 5722 | if ((off_t *) 0) |
| 5723 | return 0; |
| 5724 | if (sizeof (off_t)) |
| 5725 | return 0; |
| 5726 | ; |
| 5727 | return 0; |
| 5728 | } |
| 5729 | _ACEOF |
| 5730 | rm -f conftest.$ac_objext |
| 5731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5732 | (eval $ac_compile) 2>&5 |
| 5733 | ac_status=$? |
| 5734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5735 | (exit $ac_status); } && |
| 5736 | { ac_try='test -s conftest.$ac_objext' |
| 5737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5738 | (eval $ac_try) 2>&5 |
| 5739 | ac_status=$? |
| 5740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5741 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5742 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5743 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5744 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5746 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5747 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5748 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5749 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5750 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5751 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5752 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 5753 | if test $ac_cv_type_off_t = yes; then |
| 5754 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5755 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5756 | |
| 5757 | cat >>confdefs.h <<_ACEOF |
| 5758 | #define off_t long |
| 5759 | _ACEOF |
| 5760 | |
| 5761 | fi |
| 5762 | |
| 5763 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 5764 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 5765 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 5766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5767 | else |
| 5768 | cat >conftest.$ac_ext <<_ACEOF |
| 5769 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5770 | /* confdefs.h. */ |
| 5771 | _ACEOF |
| 5772 | cat confdefs.h >>conftest.$ac_ext |
| 5773 | cat >>conftest.$ac_ext <<_ACEOF |
| 5774 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5775 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5776 | int |
| 5777 | main () |
| 5778 | { |
| 5779 | if ((pid_t *) 0) |
| 5780 | return 0; |
| 5781 | if (sizeof (pid_t)) |
| 5782 | return 0; |
| 5783 | ; |
| 5784 | return 0; |
| 5785 | } |
| 5786 | _ACEOF |
| 5787 | rm -f conftest.$ac_objext |
| 5788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5789 | (eval $ac_compile) 2>&5 |
| 5790 | ac_status=$? |
| 5791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5792 | (exit $ac_status); } && |
| 5793 | { ac_try='test -s conftest.$ac_objext' |
| 5794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5795 | (eval $ac_try) 2>&5 |
| 5796 | ac_status=$? |
| 5797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5798 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5799 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5800 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5801 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5803 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5804 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5805 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5806 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5807 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5808 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 5809 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 5810 | if test $ac_cv_type_pid_t = yes; then |
| 5811 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5812 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5813 | |
| 5814 | cat >>confdefs.h <<_ACEOF |
| 5815 | #define pid_t int |
| 5816 | _ACEOF |
| 5817 | |
| 5818 | fi |
| 5819 | |
| 5820 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 5821 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 5822 | if test "${ac_cv_type_signal+set}" = set; then |
| 5823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5824 | else |
| 5825 | cat >conftest.$ac_ext <<_ACEOF |
| 5826 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5827 | /* confdefs.h. */ |
| 5828 | _ACEOF |
| 5829 | cat confdefs.h >>conftest.$ac_ext |
| 5830 | cat >>conftest.$ac_ext <<_ACEOF |
| 5831 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5832 | #include <sys/types.h> |
| 5833 | #include <signal.h> |
| 5834 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5835 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5836 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5837 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5838 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 5839 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5840 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5841 | #endif |
| 5842 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5843 | int |
| 5844 | main () |
| 5845 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5846 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5847 | ; |
| 5848 | return 0; |
| 5849 | } |
| 5850 | _ACEOF |
| 5851 | rm -f conftest.$ac_objext |
| 5852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5853 | (eval $ac_compile) 2>&5 |
| 5854 | ac_status=$? |
| 5855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5856 | (exit $ac_status); } && |
| 5857 | { ac_try='test -s conftest.$ac_objext' |
| 5858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5859 | (eval $ac_try) 2>&5 |
| 5860 | ac_status=$? |
| 5861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5862 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5863 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5864 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5865 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5867 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5868 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5869 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5870 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5871 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5872 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 5873 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5874 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5875 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5876 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5877 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5878 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5879 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5880 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5881 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 5882 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5884 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5885 | cat >conftest.$ac_ext <<_ACEOF |
| 5886 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5887 | /* confdefs.h. */ |
| 5888 | _ACEOF |
| 5889 | cat confdefs.h >>conftest.$ac_ext |
| 5890 | cat >>conftest.$ac_ext <<_ACEOF |
| 5891 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5892 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5893 | int |
| 5894 | main () |
| 5895 | { |
| 5896 | if ((size_t *) 0) |
| 5897 | return 0; |
| 5898 | if (sizeof (size_t)) |
| 5899 | return 0; |
| 5900 | ; |
| 5901 | return 0; |
| 5902 | } |
| 5903 | _ACEOF |
| 5904 | rm -f conftest.$ac_objext |
| 5905 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5906 | (eval $ac_compile) 2>&5 |
| 5907 | ac_status=$? |
| 5908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5909 | (exit $ac_status); } && |
| 5910 | { ac_try='test -s conftest.$ac_objext' |
| 5911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5912 | (eval $ac_try) 2>&5 |
| 5913 | ac_status=$? |
| 5914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5915 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5916 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5917 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5918 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5919 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5920 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5921 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5922 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5923 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5924 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5925 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5926 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 5927 | if test $ac_cv_type_size_t = yes; then |
| 5928 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5929 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5930 | |
| 5931 | cat >>confdefs.h <<_ACEOF |
| 5932 | #define size_t unsigned |
| 5933 | _ACEOF |
| 5934 | |
| 5935 | fi |
| 5936 | |
| 5937 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 5938 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 5939 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 5940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5941 | else |
| 5942 | cat >conftest.$ac_ext <<_ACEOF |
| 5943 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5944 | /* confdefs.h. */ |
| 5945 | _ACEOF |
| 5946 | cat confdefs.h >>conftest.$ac_ext |
| 5947 | cat >>conftest.$ac_ext <<_ACEOF |
| 5948 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5949 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5950 | |
| 5951 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5952 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5953 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5954 | ac_cv_type_uid_t=yes |
| 5955 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5956 | ac_cv_type_uid_t=no |
| 5957 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5958 | rm -f conftest* |
| 5959 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5960 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5961 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 5962 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5963 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5964 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5965 | cat >>confdefs.h <<\_ACEOF |
| 5966 | #define uid_t int |
| 5967 | _ACEOF |
| 5968 | |
| 5969 | |
| 5970 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5971 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5972 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5973 | |
| 5974 | fi |
| 5975 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5976 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5977 | # Sizes of various common basic types |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5978 | echo "$as_me:$LINENO: checking for int" >&5 |
| 5979 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 5980 | if test "${ac_cv_type_int+set}" = set; then |
| 5981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5982 | else |
| 5983 | cat >conftest.$ac_ext <<_ACEOF |
| 5984 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5985 | /* confdefs.h. */ |
| 5986 | _ACEOF |
| 5987 | cat confdefs.h >>conftest.$ac_ext |
| 5988 | cat >>conftest.$ac_ext <<_ACEOF |
| 5989 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5990 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5991 | int |
| 5992 | main () |
| 5993 | { |
| 5994 | if ((int *) 0) |
| 5995 | return 0; |
| 5996 | if (sizeof (int)) |
| 5997 | return 0; |
| 5998 | ; |
| 5999 | return 0; |
| 6000 | } |
| 6001 | _ACEOF |
| 6002 | rm -f conftest.$ac_objext |
| 6003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6004 | (eval $ac_compile) 2>&5 |
| 6005 | ac_status=$? |
| 6006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6007 | (exit $ac_status); } && |
| 6008 | { ac_try='test -s conftest.$ac_objext' |
| 6009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6010 | (eval $ac_try) 2>&5 |
| 6011 | ac_status=$? |
| 6012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6013 | (exit $ac_status); }; }; then |
| 6014 | ac_cv_type_int=yes |
| 6015 | else |
| 6016 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6018 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6019 | ac_cv_type_int=no |
| 6020 | fi |
| 6021 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6022 | fi |
| 6023 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 6024 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 6025 | |
| 6026 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 6027 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 6028 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 6029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6030 | else |
| 6031 | if test "$ac_cv_type_int" = yes; then |
| 6032 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6033 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6034 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6035 | # This bug is HP SR number 8606223364. |
| 6036 | if test "$cross_compiling" = yes; then |
| 6037 | # Depending upon the size, compute the lo and hi bounds. |
| 6038 | cat >conftest.$ac_ext <<_ACEOF |
| 6039 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6040 | /* confdefs.h. */ |
| 6041 | _ACEOF |
| 6042 | cat confdefs.h >>conftest.$ac_ext |
| 6043 | cat >>conftest.$ac_ext <<_ACEOF |
| 6044 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6045 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6046 | int |
| 6047 | main () |
| 6048 | { |
| 6049 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 6050 | test_array [0] = 0 |
| 6051 | |
| 6052 | ; |
| 6053 | return 0; |
| 6054 | } |
| 6055 | _ACEOF |
| 6056 | rm -f conftest.$ac_objext |
| 6057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6058 | (eval $ac_compile) 2>&5 |
| 6059 | ac_status=$? |
| 6060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6061 | (exit $ac_status); } && |
| 6062 | { ac_try='test -s conftest.$ac_objext' |
| 6063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6064 | (eval $ac_try) 2>&5 |
| 6065 | ac_status=$? |
| 6066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6067 | (exit $ac_status); }; }; then |
| 6068 | ac_lo=0 ac_mid=0 |
| 6069 | while :; do |
| 6070 | cat >conftest.$ac_ext <<_ACEOF |
| 6071 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6072 | /* confdefs.h. */ |
| 6073 | _ACEOF |
| 6074 | cat confdefs.h >>conftest.$ac_ext |
| 6075 | cat >>conftest.$ac_ext <<_ACEOF |
| 6076 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6077 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6078 | int |
| 6079 | main () |
| 6080 | { |
| 6081 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6082 | test_array [0] = 0 |
| 6083 | |
| 6084 | ; |
| 6085 | return 0; |
| 6086 | } |
| 6087 | _ACEOF |
| 6088 | rm -f conftest.$ac_objext |
| 6089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6090 | (eval $ac_compile) 2>&5 |
| 6091 | ac_status=$? |
| 6092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6093 | (exit $ac_status); } && |
| 6094 | { ac_try='test -s conftest.$ac_objext' |
| 6095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6096 | (eval $ac_try) 2>&5 |
| 6097 | ac_status=$? |
| 6098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6099 | (exit $ac_status); }; }; then |
| 6100 | ac_hi=$ac_mid; break |
| 6101 | else |
| 6102 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6104 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6105 | ac_lo=`expr $ac_mid + 1` |
| 6106 | if test $ac_lo -le $ac_mid; then |
| 6107 | ac_lo= ac_hi= |
| 6108 | break |
| 6109 | fi |
| 6110 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6111 | fi |
| 6112 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6113 | done |
| 6114 | else |
| 6115 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6116 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6117 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6118 | cat >conftest.$ac_ext <<_ACEOF |
| 6119 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6120 | /* confdefs.h. */ |
| 6121 | _ACEOF |
| 6122 | cat confdefs.h >>conftest.$ac_ext |
| 6123 | cat >>conftest.$ac_ext <<_ACEOF |
| 6124 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6125 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6126 | int |
| 6127 | main () |
| 6128 | { |
| 6129 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 6130 | test_array [0] = 0 |
| 6131 | |
| 6132 | ; |
| 6133 | return 0; |
| 6134 | } |
| 6135 | _ACEOF |
| 6136 | rm -f conftest.$ac_objext |
| 6137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6138 | (eval $ac_compile) 2>&5 |
| 6139 | ac_status=$? |
| 6140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6141 | (exit $ac_status); } && |
| 6142 | { ac_try='test -s conftest.$ac_objext' |
| 6143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6144 | (eval $ac_try) 2>&5 |
| 6145 | ac_status=$? |
| 6146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6147 | (exit $ac_status); }; }; then |
| 6148 | ac_hi=-1 ac_mid=-1 |
| 6149 | while :; do |
| 6150 | cat >conftest.$ac_ext <<_ACEOF |
| 6151 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6152 | /* confdefs.h. */ |
| 6153 | _ACEOF |
| 6154 | cat confdefs.h >>conftest.$ac_ext |
| 6155 | cat >>conftest.$ac_ext <<_ACEOF |
| 6156 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6157 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6158 | int |
| 6159 | main () |
| 6160 | { |
| 6161 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 6162 | test_array [0] = 0 |
| 6163 | |
| 6164 | ; |
| 6165 | return 0; |
| 6166 | } |
| 6167 | _ACEOF |
| 6168 | rm -f conftest.$ac_objext |
| 6169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6170 | (eval $ac_compile) 2>&5 |
| 6171 | ac_status=$? |
| 6172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6173 | (exit $ac_status); } && |
| 6174 | { ac_try='test -s conftest.$ac_objext' |
| 6175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6176 | (eval $ac_try) 2>&5 |
| 6177 | ac_status=$? |
| 6178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6179 | (exit $ac_status); }; }; then |
| 6180 | ac_lo=$ac_mid; break |
| 6181 | else |
| 6182 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6184 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6185 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6186 | if test $ac_mid -le $ac_hi; then |
| 6187 | ac_lo= ac_hi= |
| 6188 | break |
| 6189 | fi |
| 6190 | ac_mid=`expr 2 '*' $ac_mid` |
| 6191 | fi |
| 6192 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6193 | done |
| 6194 | else |
| 6195 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6197 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6198 | ac_lo= ac_hi= |
| 6199 | fi |
| 6200 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6201 | fi |
| 6202 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6203 | # Binary search between lo and hi bounds. |
| 6204 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6205 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6206 | cat >conftest.$ac_ext <<_ACEOF |
| 6207 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6208 | /* confdefs.h. */ |
| 6209 | _ACEOF |
| 6210 | cat confdefs.h >>conftest.$ac_ext |
| 6211 | cat >>conftest.$ac_ext <<_ACEOF |
| 6212 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6213 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6214 | int |
| 6215 | main () |
| 6216 | { |
| 6217 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6218 | test_array [0] = 0 |
| 6219 | |
| 6220 | ; |
| 6221 | return 0; |
| 6222 | } |
| 6223 | _ACEOF |
| 6224 | rm -f conftest.$ac_objext |
| 6225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6226 | (eval $ac_compile) 2>&5 |
| 6227 | ac_status=$? |
| 6228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6229 | (exit $ac_status); } && |
| 6230 | { ac_try='test -s conftest.$ac_objext' |
| 6231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6232 | (eval $ac_try) 2>&5 |
| 6233 | ac_status=$? |
| 6234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6235 | (exit $ac_status); }; }; then |
| 6236 | ac_hi=$ac_mid |
| 6237 | else |
| 6238 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6239 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6240 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6241 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6242 | fi |
| 6243 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6244 | done |
| 6245 | case $ac_lo in |
| 6246 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6247 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6248 | See \`config.log' for more details." >&5 |
| 6249 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6250 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6251 | { (exit 1); exit 1; }; } ;; |
| 6252 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6253 | else |
| 6254 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6255 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6256 | See \`config.log' for more details." >&5 |
| 6257 | echo "$as_me: error: cannot run test program while cross compiling |
| 6258 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6259 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6260 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6261 | cat >conftest.$ac_ext <<_ACEOF |
| 6262 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6263 | /* confdefs.h. */ |
| 6264 | _ACEOF |
| 6265 | cat confdefs.h >>conftest.$ac_ext |
| 6266 | cat >>conftest.$ac_ext <<_ACEOF |
| 6267 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6268 | $ac_includes_default |
| 6269 | long longval () { return (long) (sizeof (int)); } |
| 6270 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6271 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6272 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6273 | int |
| 6274 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6275 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6276 | |
| 6277 | FILE *f = fopen ("conftest.val", "w"); |
| 6278 | if (! f) |
| 6279 | exit (1); |
| 6280 | if (((long) (sizeof (int))) < 0) |
| 6281 | { |
| 6282 | long i = longval (); |
| 6283 | if (i != ((long) (sizeof (int)))) |
| 6284 | exit (1); |
| 6285 | fprintf (f, "%ld\n", i); |
| 6286 | } |
| 6287 | else |
| 6288 | { |
| 6289 | unsigned long i = ulongval (); |
| 6290 | if (i != ((long) (sizeof (int)))) |
| 6291 | exit (1); |
| 6292 | fprintf (f, "%lu\n", i); |
| 6293 | } |
| 6294 | exit (ferror (f) || fclose (f) != 0); |
| 6295 | |
| 6296 | ; |
| 6297 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6298 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6299 | _ACEOF |
| 6300 | rm -f conftest$ac_exeext |
| 6301 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6302 | (eval $ac_link) 2>&5 |
| 6303 | ac_status=$? |
| 6304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6305 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6307 | (eval $ac_try) 2>&5 |
| 6308 | ac_status=$? |
| 6309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6310 | (exit $ac_status); }; }; then |
| 6311 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6312 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6313 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6314 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6316 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6317 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6318 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6319 | See \`config.log' for more details." >&5 |
| 6320 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6321 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6322 | { (exit 1); exit 1; }; } |
| 6323 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6324 | 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] | 6325 | fi |
| 6326 | fi |
| 6327 | rm -f conftest.val |
| 6328 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6329 | ac_cv_sizeof_int=0 |
| 6330 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6331 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6332 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 6333 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 6334 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6335 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6336 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6337 | |
| 6338 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6339 | echo "$as_me:$LINENO: checking for long" >&5 |
| 6340 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 6341 | if test "${ac_cv_type_long+set}" = set; then |
| 6342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6343 | else |
| 6344 | cat >conftest.$ac_ext <<_ACEOF |
| 6345 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6346 | /* confdefs.h. */ |
| 6347 | _ACEOF |
| 6348 | cat confdefs.h >>conftest.$ac_ext |
| 6349 | cat >>conftest.$ac_ext <<_ACEOF |
| 6350 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6351 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6352 | int |
| 6353 | main () |
| 6354 | { |
| 6355 | if ((long *) 0) |
| 6356 | return 0; |
| 6357 | if (sizeof (long)) |
| 6358 | return 0; |
| 6359 | ; |
| 6360 | return 0; |
| 6361 | } |
| 6362 | _ACEOF |
| 6363 | rm -f conftest.$ac_objext |
| 6364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6365 | (eval $ac_compile) 2>&5 |
| 6366 | ac_status=$? |
| 6367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6368 | (exit $ac_status); } && |
| 6369 | { ac_try='test -s conftest.$ac_objext' |
| 6370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6371 | (eval $ac_try) 2>&5 |
| 6372 | ac_status=$? |
| 6373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6374 | (exit $ac_status); }; }; then |
| 6375 | ac_cv_type_long=yes |
| 6376 | else |
| 6377 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6379 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6380 | ac_cv_type_long=no |
| 6381 | fi |
| 6382 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6383 | fi |
| 6384 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 6385 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 6386 | |
| 6387 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 6388 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 6389 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 6390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6391 | else |
| 6392 | if test "$ac_cv_type_long" = yes; then |
| 6393 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6394 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6395 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6396 | # This bug is HP SR number 8606223364. |
| 6397 | if test "$cross_compiling" = yes; then |
| 6398 | # Depending upon the size, compute the lo and hi bounds. |
| 6399 | cat >conftest.$ac_ext <<_ACEOF |
| 6400 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6401 | /* confdefs.h. */ |
| 6402 | _ACEOF |
| 6403 | cat confdefs.h >>conftest.$ac_ext |
| 6404 | cat >>conftest.$ac_ext <<_ACEOF |
| 6405 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6406 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6407 | int |
| 6408 | main () |
| 6409 | { |
| 6410 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 6411 | test_array [0] = 0 |
| 6412 | |
| 6413 | ; |
| 6414 | return 0; |
| 6415 | } |
| 6416 | _ACEOF |
| 6417 | rm -f conftest.$ac_objext |
| 6418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6419 | (eval $ac_compile) 2>&5 |
| 6420 | ac_status=$? |
| 6421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6422 | (exit $ac_status); } && |
| 6423 | { ac_try='test -s conftest.$ac_objext' |
| 6424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6425 | (eval $ac_try) 2>&5 |
| 6426 | ac_status=$? |
| 6427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6428 | (exit $ac_status); }; }; then |
| 6429 | ac_lo=0 ac_mid=0 |
| 6430 | while :; do |
| 6431 | cat >conftest.$ac_ext <<_ACEOF |
| 6432 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6433 | /* confdefs.h. */ |
| 6434 | _ACEOF |
| 6435 | cat confdefs.h >>conftest.$ac_ext |
| 6436 | cat >>conftest.$ac_ext <<_ACEOF |
| 6437 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6438 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6439 | int |
| 6440 | main () |
| 6441 | { |
| 6442 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6443 | test_array [0] = 0 |
| 6444 | |
| 6445 | ; |
| 6446 | return 0; |
| 6447 | } |
| 6448 | _ACEOF |
| 6449 | rm -f conftest.$ac_objext |
| 6450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6451 | (eval $ac_compile) 2>&5 |
| 6452 | ac_status=$? |
| 6453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6454 | (exit $ac_status); } && |
| 6455 | { ac_try='test -s conftest.$ac_objext' |
| 6456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6457 | (eval $ac_try) 2>&5 |
| 6458 | ac_status=$? |
| 6459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6460 | (exit $ac_status); }; }; then |
| 6461 | ac_hi=$ac_mid; break |
| 6462 | else |
| 6463 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6465 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6466 | ac_lo=`expr $ac_mid + 1` |
| 6467 | if test $ac_lo -le $ac_mid; then |
| 6468 | ac_lo= ac_hi= |
| 6469 | break |
| 6470 | fi |
| 6471 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6472 | fi |
| 6473 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6474 | done |
| 6475 | else |
| 6476 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6478 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6479 | cat >conftest.$ac_ext <<_ACEOF |
| 6480 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6481 | /* confdefs.h. */ |
| 6482 | _ACEOF |
| 6483 | cat confdefs.h >>conftest.$ac_ext |
| 6484 | cat >>conftest.$ac_ext <<_ACEOF |
| 6485 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6486 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6487 | int |
| 6488 | main () |
| 6489 | { |
| 6490 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 6491 | test_array [0] = 0 |
| 6492 | |
| 6493 | ; |
| 6494 | return 0; |
| 6495 | } |
| 6496 | _ACEOF |
| 6497 | rm -f conftest.$ac_objext |
| 6498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6499 | (eval $ac_compile) 2>&5 |
| 6500 | ac_status=$? |
| 6501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6502 | (exit $ac_status); } && |
| 6503 | { ac_try='test -s conftest.$ac_objext' |
| 6504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6505 | (eval $ac_try) 2>&5 |
| 6506 | ac_status=$? |
| 6507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6508 | (exit $ac_status); }; }; then |
| 6509 | ac_hi=-1 ac_mid=-1 |
| 6510 | while :; do |
| 6511 | cat >conftest.$ac_ext <<_ACEOF |
| 6512 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6513 | /* confdefs.h. */ |
| 6514 | _ACEOF |
| 6515 | cat confdefs.h >>conftest.$ac_ext |
| 6516 | cat >>conftest.$ac_ext <<_ACEOF |
| 6517 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6518 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6519 | int |
| 6520 | main () |
| 6521 | { |
| 6522 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 6523 | test_array [0] = 0 |
| 6524 | |
| 6525 | ; |
| 6526 | return 0; |
| 6527 | } |
| 6528 | _ACEOF |
| 6529 | rm -f conftest.$ac_objext |
| 6530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6531 | (eval $ac_compile) 2>&5 |
| 6532 | ac_status=$? |
| 6533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6534 | (exit $ac_status); } && |
| 6535 | { ac_try='test -s conftest.$ac_objext' |
| 6536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6537 | (eval $ac_try) 2>&5 |
| 6538 | ac_status=$? |
| 6539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6540 | (exit $ac_status); }; }; then |
| 6541 | ac_lo=$ac_mid; break |
| 6542 | else |
| 6543 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6546 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6547 | if test $ac_mid -le $ac_hi; then |
| 6548 | ac_lo= ac_hi= |
| 6549 | break |
| 6550 | fi |
| 6551 | ac_mid=`expr 2 '*' $ac_mid` |
| 6552 | fi |
| 6553 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6554 | done |
| 6555 | else |
| 6556 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6558 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6559 | ac_lo= ac_hi= |
| 6560 | fi |
| 6561 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6562 | fi |
| 6563 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6564 | # Binary search between lo and hi bounds. |
| 6565 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6566 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6567 | cat >conftest.$ac_ext <<_ACEOF |
| 6568 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6569 | /* confdefs.h. */ |
| 6570 | _ACEOF |
| 6571 | cat confdefs.h >>conftest.$ac_ext |
| 6572 | cat >>conftest.$ac_ext <<_ACEOF |
| 6573 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6574 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6575 | int |
| 6576 | main () |
| 6577 | { |
| 6578 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6579 | test_array [0] = 0 |
| 6580 | |
| 6581 | ; |
| 6582 | return 0; |
| 6583 | } |
| 6584 | _ACEOF |
| 6585 | rm -f conftest.$ac_objext |
| 6586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6587 | (eval $ac_compile) 2>&5 |
| 6588 | ac_status=$? |
| 6589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6590 | (exit $ac_status); } && |
| 6591 | { ac_try='test -s conftest.$ac_objext' |
| 6592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6593 | (eval $ac_try) 2>&5 |
| 6594 | ac_status=$? |
| 6595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6596 | (exit $ac_status); }; }; then |
| 6597 | ac_hi=$ac_mid |
| 6598 | else |
| 6599 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6601 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6602 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6603 | fi |
| 6604 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6605 | done |
| 6606 | case $ac_lo in |
| 6607 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6608 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 6609 | See \`config.log' for more details." >&5 |
| 6610 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 6611 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6612 | { (exit 1); exit 1; }; } ;; |
| 6613 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6614 | else |
| 6615 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6616 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6617 | See \`config.log' for more details." >&5 |
| 6618 | echo "$as_me: error: cannot run test program while cross compiling |
| 6619 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6620 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6621 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6622 | cat >conftest.$ac_ext <<_ACEOF |
| 6623 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6624 | /* confdefs.h. */ |
| 6625 | _ACEOF |
| 6626 | cat confdefs.h >>conftest.$ac_ext |
| 6627 | cat >>conftest.$ac_ext <<_ACEOF |
| 6628 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6629 | $ac_includes_default |
| 6630 | long longval () { return (long) (sizeof (long)); } |
| 6631 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6632 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6633 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6634 | int |
| 6635 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6636 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6637 | |
| 6638 | FILE *f = fopen ("conftest.val", "w"); |
| 6639 | if (! f) |
| 6640 | exit (1); |
| 6641 | if (((long) (sizeof (long))) < 0) |
| 6642 | { |
| 6643 | long i = longval (); |
| 6644 | if (i != ((long) (sizeof (long)))) |
| 6645 | exit (1); |
| 6646 | fprintf (f, "%ld\n", i); |
| 6647 | } |
| 6648 | else |
| 6649 | { |
| 6650 | unsigned long i = ulongval (); |
| 6651 | if (i != ((long) (sizeof (long)))) |
| 6652 | exit (1); |
| 6653 | fprintf (f, "%lu\n", i); |
| 6654 | } |
| 6655 | exit (ferror (f) || fclose (f) != 0); |
| 6656 | |
| 6657 | ; |
| 6658 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6659 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6660 | _ACEOF |
| 6661 | rm -f conftest$ac_exeext |
| 6662 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6663 | (eval $ac_link) 2>&5 |
| 6664 | ac_status=$? |
| 6665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6666 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6668 | (eval $ac_try) 2>&5 |
| 6669 | ac_status=$? |
| 6670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6671 | (exit $ac_status); }; }; then |
| 6672 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6673 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6674 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6675 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6677 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6678 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6679 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 6680 | See \`config.log' for more details." >&5 |
| 6681 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 6682 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6683 | { (exit 1); exit 1; }; } |
| 6684 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6685 | 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] | 6686 | fi |
| 6687 | fi |
| 6688 | rm -f conftest.val |
| 6689 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6690 | ac_cv_sizeof_long=0 |
| 6691 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6692 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6693 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 6694 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 6695 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6696 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6697 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6698 | |
| 6699 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6700 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 6701 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 6702 | if test "${ac_cv_type_void_p+set}" = set; then |
| 6703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6704 | else |
| 6705 | cat >conftest.$ac_ext <<_ACEOF |
| 6706 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6707 | /* confdefs.h. */ |
| 6708 | _ACEOF |
| 6709 | cat confdefs.h >>conftest.$ac_ext |
| 6710 | cat >>conftest.$ac_ext <<_ACEOF |
| 6711 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6712 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6713 | int |
| 6714 | main () |
| 6715 | { |
| 6716 | if ((void * *) 0) |
| 6717 | return 0; |
| 6718 | if (sizeof (void *)) |
| 6719 | return 0; |
| 6720 | ; |
| 6721 | return 0; |
| 6722 | } |
| 6723 | _ACEOF |
| 6724 | rm -f conftest.$ac_objext |
| 6725 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6726 | (eval $ac_compile) 2>&5 |
| 6727 | ac_status=$? |
| 6728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6729 | (exit $ac_status); } && |
| 6730 | { ac_try='test -s conftest.$ac_objext' |
| 6731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6732 | (eval $ac_try) 2>&5 |
| 6733 | ac_status=$? |
| 6734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6735 | (exit $ac_status); }; }; then |
| 6736 | ac_cv_type_void_p=yes |
| 6737 | else |
| 6738 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6739 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6740 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6741 | ac_cv_type_void_p=no |
| 6742 | fi |
| 6743 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6744 | fi |
| 6745 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 6746 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 6747 | |
| 6748 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 6749 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 6750 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 6751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6752 | else |
| 6753 | if test "$ac_cv_type_void_p" = yes; then |
| 6754 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6755 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6756 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6757 | # This bug is HP SR number 8606223364. |
| 6758 | if test "$cross_compiling" = yes; then |
| 6759 | # Depending upon the size, compute the lo and hi bounds. |
| 6760 | cat >conftest.$ac_ext <<_ACEOF |
| 6761 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6762 | /* confdefs.h. */ |
| 6763 | _ACEOF |
| 6764 | cat confdefs.h >>conftest.$ac_ext |
| 6765 | cat >>conftest.$ac_ext <<_ACEOF |
| 6766 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6767 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6768 | int |
| 6769 | main () |
| 6770 | { |
| 6771 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 6772 | test_array [0] = 0 |
| 6773 | |
| 6774 | ; |
| 6775 | return 0; |
| 6776 | } |
| 6777 | _ACEOF |
| 6778 | rm -f conftest.$ac_objext |
| 6779 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6780 | (eval $ac_compile) 2>&5 |
| 6781 | ac_status=$? |
| 6782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6783 | (exit $ac_status); } && |
| 6784 | { ac_try='test -s conftest.$ac_objext' |
| 6785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6786 | (eval $ac_try) 2>&5 |
| 6787 | ac_status=$? |
| 6788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6789 | (exit $ac_status); }; }; then |
| 6790 | ac_lo=0 ac_mid=0 |
| 6791 | while :; do |
| 6792 | cat >conftest.$ac_ext <<_ACEOF |
| 6793 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6794 | /* confdefs.h. */ |
| 6795 | _ACEOF |
| 6796 | cat confdefs.h >>conftest.$ac_ext |
| 6797 | cat >>conftest.$ac_ext <<_ACEOF |
| 6798 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6799 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6800 | int |
| 6801 | main () |
| 6802 | { |
| 6803 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6804 | test_array [0] = 0 |
| 6805 | |
| 6806 | ; |
| 6807 | return 0; |
| 6808 | } |
| 6809 | _ACEOF |
| 6810 | rm -f conftest.$ac_objext |
| 6811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6812 | (eval $ac_compile) 2>&5 |
| 6813 | ac_status=$? |
| 6814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6815 | (exit $ac_status); } && |
| 6816 | { ac_try='test -s conftest.$ac_objext' |
| 6817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6818 | (eval $ac_try) 2>&5 |
| 6819 | ac_status=$? |
| 6820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6821 | (exit $ac_status); }; }; then |
| 6822 | ac_hi=$ac_mid; break |
| 6823 | else |
| 6824 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6826 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6827 | ac_lo=`expr $ac_mid + 1` |
| 6828 | if test $ac_lo -le $ac_mid; then |
| 6829 | ac_lo= ac_hi= |
| 6830 | break |
| 6831 | fi |
| 6832 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6833 | fi |
| 6834 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6835 | done |
| 6836 | else |
| 6837 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6838 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6839 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6840 | cat >conftest.$ac_ext <<_ACEOF |
| 6841 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6842 | /* confdefs.h. */ |
| 6843 | _ACEOF |
| 6844 | cat confdefs.h >>conftest.$ac_ext |
| 6845 | cat >>conftest.$ac_ext <<_ACEOF |
| 6846 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6847 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6848 | int |
| 6849 | main () |
| 6850 | { |
| 6851 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 6852 | test_array [0] = 0 |
| 6853 | |
| 6854 | ; |
| 6855 | return 0; |
| 6856 | } |
| 6857 | _ACEOF |
| 6858 | rm -f conftest.$ac_objext |
| 6859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6860 | (eval $ac_compile) 2>&5 |
| 6861 | ac_status=$? |
| 6862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6863 | (exit $ac_status); } && |
| 6864 | { ac_try='test -s conftest.$ac_objext' |
| 6865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6866 | (eval $ac_try) 2>&5 |
| 6867 | ac_status=$? |
| 6868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6869 | (exit $ac_status); }; }; then |
| 6870 | ac_hi=-1 ac_mid=-1 |
| 6871 | while :; do |
| 6872 | cat >conftest.$ac_ext <<_ACEOF |
| 6873 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6874 | /* confdefs.h. */ |
| 6875 | _ACEOF |
| 6876 | cat confdefs.h >>conftest.$ac_ext |
| 6877 | cat >>conftest.$ac_ext <<_ACEOF |
| 6878 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6879 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6880 | int |
| 6881 | main () |
| 6882 | { |
| 6883 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 6884 | test_array [0] = 0 |
| 6885 | |
| 6886 | ; |
| 6887 | return 0; |
| 6888 | } |
| 6889 | _ACEOF |
| 6890 | rm -f conftest.$ac_objext |
| 6891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6892 | (eval $ac_compile) 2>&5 |
| 6893 | ac_status=$? |
| 6894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6895 | (exit $ac_status); } && |
| 6896 | { ac_try='test -s conftest.$ac_objext' |
| 6897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6898 | (eval $ac_try) 2>&5 |
| 6899 | ac_status=$? |
| 6900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6901 | (exit $ac_status); }; }; then |
| 6902 | ac_lo=$ac_mid; break |
| 6903 | else |
| 6904 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6906 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6907 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6908 | if test $ac_mid -le $ac_hi; then |
| 6909 | ac_lo= ac_hi= |
| 6910 | break |
| 6911 | fi |
| 6912 | ac_mid=`expr 2 '*' $ac_mid` |
| 6913 | fi |
| 6914 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6915 | done |
| 6916 | else |
| 6917 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6920 | ac_lo= ac_hi= |
| 6921 | fi |
| 6922 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6923 | fi |
| 6924 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6925 | # Binary search between lo and hi bounds. |
| 6926 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6927 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6928 | cat >conftest.$ac_ext <<_ACEOF |
| 6929 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6930 | /* confdefs.h. */ |
| 6931 | _ACEOF |
| 6932 | cat confdefs.h >>conftest.$ac_ext |
| 6933 | cat >>conftest.$ac_ext <<_ACEOF |
| 6934 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6935 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6936 | int |
| 6937 | main () |
| 6938 | { |
| 6939 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6940 | test_array [0] = 0 |
| 6941 | |
| 6942 | ; |
| 6943 | return 0; |
| 6944 | } |
| 6945 | _ACEOF |
| 6946 | rm -f conftest.$ac_objext |
| 6947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6948 | (eval $ac_compile) 2>&5 |
| 6949 | ac_status=$? |
| 6950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6951 | (exit $ac_status); } && |
| 6952 | { ac_try='test -s conftest.$ac_objext' |
| 6953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6954 | (eval $ac_try) 2>&5 |
| 6955 | ac_status=$? |
| 6956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6957 | (exit $ac_status); }; }; then |
| 6958 | ac_hi=$ac_mid |
| 6959 | else |
| 6960 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6961 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6962 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6963 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6964 | fi |
| 6965 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6966 | done |
| 6967 | case $ac_lo in |
| 6968 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6969 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 6970 | See \`config.log' for more details." >&5 |
| 6971 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 6972 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6973 | { (exit 1); exit 1; }; } ;; |
| 6974 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6975 | else |
| 6976 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6977 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6978 | See \`config.log' for more details." >&5 |
| 6979 | echo "$as_me: error: cannot run test program while cross compiling |
| 6980 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6981 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6982 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6983 | cat >conftest.$ac_ext <<_ACEOF |
| 6984 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6985 | /* confdefs.h. */ |
| 6986 | _ACEOF |
| 6987 | cat confdefs.h >>conftest.$ac_ext |
| 6988 | cat >>conftest.$ac_ext <<_ACEOF |
| 6989 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6990 | $ac_includes_default |
| 6991 | long longval () { return (long) (sizeof (void *)); } |
| 6992 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6993 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6994 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6995 | int |
| 6996 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6997 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6998 | |
| 6999 | FILE *f = fopen ("conftest.val", "w"); |
| 7000 | if (! f) |
| 7001 | exit (1); |
| 7002 | if (((long) (sizeof (void *))) < 0) |
| 7003 | { |
| 7004 | long i = longval (); |
| 7005 | if (i != ((long) (sizeof (void *)))) |
| 7006 | exit (1); |
| 7007 | fprintf (f, "%ld\n", i); |
| 7008 | } |
| 7009 | else |
| 7010 | { |
| 7011 | unsigned long i = ulongval (); |
| 7012 | if (i != ((long) (sizeof (void *)))) |
| 7013 | exit (1); |
| 7014 | fprintf (f, "%lu\n", i); |
| 7015 | } |
| 7016 | exit (ferror (f) || fclose (f) != 0); |
| 7017 | |
| 7018 | ; |
| 7019 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7020 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7021 | _ACEOF |
| 7022 | rm -f conftest$ac_exeext |
| 7023 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7024 | (eval $ac_link) 2>&5 |
| 7025 | ac_status=$? |
| 7026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7027 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7029 | (eval $ac_try) 2>&5 |
| 7030 | ac_status=$? |
| 7031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7032 | (exit $ac_status); }; }; then |
| 7033 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7034 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7035 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7036 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7038 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7039 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7040 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 7041 | See \`config.log' for more details." >&5 |
| 7042 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 7043 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7044 | { (exit 1); exit 1; }; } |
| 7045 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7046 | 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] | 7047 | fi |
| 7048 | fi |
| 7049 | rm -f conftest.val |
| 7050 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7051 | ac_cv_sizeof_void_p=0 |
| 7052 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7053 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7054 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 7055 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 7056 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7057 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7058 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7059 | |
| 7060 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7061 | echo "$as_me:$LINENO: checking for char" >&5 |
| 7062 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 7063 | if test "${ac_cv_type_char+set}" = set; then |
| 7064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7065 | else |
| 7066 | cat >conftest.$ac_ext <<_ACEOF |
| 7067 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7068 | /* confdefs.h. */ |
| 7069 | _ACEOF |
| 7070 | cat confdefs.h >>conftest.$ac_ext |
| 7071 | cat >>conftest.$ac_ext <<_ACEOF |
| 7072 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7073 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7074 | int |
| 7075 | main () |
| 7076 | { |
| 7077 | if ((char *) 0) |
| 7078 | return 0; |
| 7079 | if (sizeof (char)) |
| 7080 | return 0; |
| 7081 | ; |
| 7082 | return 0; |
| 7083 | } |
| 7084 | _ACEOF |
| 7085 | rm -f conftest.$ac_objext |
| 7086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7087 | (eval $ac_compile) 2>&5 |
| 7088 | ac_status=$? |
| 7089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7090 | (exit $ac_status); } && |
| 7091 | { ac_try='test -s conftest.$ac_objext' |
| 7092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7093 | (eval $ac_try) 2>&5 |
| 7094 | ac_status=$? |
| 7095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7096 | (exit $ac_status); }; }; then |
| 7097 | ac_cv_type_char=yes |
| 7098 | else |
| 7099 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7100 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7101 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7102 | ac_cv_type_char=no |
| 7103 | fi |
| 7104 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7105 | fi |
| 7106 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 7107 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 7108 | |
| 7109 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 7110 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 7111 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 7112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7113 | else |
| 7114 | if test "$ac_cv_type_char" = yes; then |
| 7115 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7116 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7117 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7118 | # This bug is HP SR number 8606223364. |
| 7119 | if test "$cross_compiling" = yes; then |
| 7120 | # Depending upon the size, compute the lo and hi bounds. |
| 7121 | cat >conftest.$ac_ext <<_ACEOF |
| 7122 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7123 | /* confdefs.h. */ |
| 7124 | _ACEOF |
| 7125 | cat confdefs.h >>conftest.$ac_ext |
| 7126 | cat >>conftest.$ac_ext <<_ACEOF |
| 7127 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7128 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7129 | int |
| 7130 | main () |
| 7131 | { |
| 7132 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 7133 | test_array [0] = 0 |
| 7134 | |
| 7135 | ; |
| 7136 | return 0; |
| 7137 | } |
| 7138 | _ACEOF |
| 7139 | rm -f conftest.$ac_objext |
| 7140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7141 | (eval $ac_compile) 2>&5 |
| 7142 | ac_status=$? |
| 7143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7144 | (exit $ac_status); } && |
| 7145 | { ac_try='test -s conftest.$ac_objext' |
| 7146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7147 | (eval $ac_try) 2>&5 |
| 7148 | ac_status=$? |
| 7149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7150 | (exit $ac_status); }; }; then |
| 7151 | ac_lo=0 ac_mid=0 |
| 7152 | while :; do |
| 7153 | cat >conftest.$ac_ext <<_ACEOF |
| 7154 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7155 | /* confdefs.h. */ |
| 7156 | _ACEOF |
| 7157 | cat confdefs.h >>conftest.$ac_ext |
| 7158 | cat >>conftest.$ac_ext <<_ACEOF |
| 7159 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7160 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7161 | int |
| 7162 | main () |
| 7163 | { |
| 7164 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 7165 | test_array [0] = 0 |
| 7166 | |
| 7167 | ; |
| 7168 | return 0; |
| 7169 | } |
| 7170 | _ACEOF |
| 7171 | rm -f conftest.$ac_objext |
| 7172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7173 | (eval $ac_compile) 2>&5 |
| 7174 | ac_status=$? |
| 7175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7176 | (exit $ac_status); } && |
| 7177 | { ac_try='test -s conftest.$ac_objext' |
| 7178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7179 | (eval $ac_try) 2>&5 |
| 7180 | ac_status=$? |
| 7181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7182 | (exit $ac_status); }; }; then |
| 7183 | ac_hi=$ac_mid; break |
| 7184 | else |
| 7185 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7186 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7187 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7188 | ac_lo=`expr $ac_mid + 1` |
| 7189 | if test $ac_lo -le $ac_mid; then |
| 7190 | ac_lo= ac_hi= |
| 7191 | break |
| 7192 | fi |
| 7193 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7194 | fi |
| 7195 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7196 | done |
| 7197 | else |
| 7198 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7200 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7201 | cat >conftest.$ac_ext <<_ACEOF |
| 7202 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7203 | /* confdefs.h. */ |
| 7204 | _ACEOF |
| 7205 | cat confdefs.h >>conftest.$ac_ext |
| 7206 | cat >>conftest.$ac_ext <<_ACEOF |
| 7207 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7208 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7209 | int |
| 7210 | main () |
| 7211 | { |
| 7212 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 7213 | test_array [0] = 0 |
| 7214 | |
| 7215 | ; |
| 7216 | return 0; |
| 7217 | } |
| 7218 | _ACEOF |
| 7219 | rm -f conftest.$ac_objext |
| 7220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7221 | (eval $ac_compile) 2>&5 |
| 7222 | ac_status=$? |
| 7223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7224 | (exit $ac_status); } && |
| 7225 | { ac_try='test -s conftest.$ac_objext' |
| 7226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7227 | (eval $ac_try) 2>&5 |
| 7228 | ac_status=$? |
| 7229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7230 | (exit $ac_status); }; }; then |
| 7231 | ac_hi=-1 ac_mid=-1 |
| 7232 | while :; do |
| 7233 | cat >conftest.$ac_ext <<_ACEOF |
| 7234 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7235 | /* confdefs.h. */ |
| 7236 | _ACEOF |
| 7237 | cat confdefs.h >>conftest.$ac_ext |
| 7238 | cat >>conftest.$ac_ext <<_ACEOF |
| 7239 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7240 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7241 | int |
| 7242 | main () |
| 7243 | { |
| 7244 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 7245 | test_array [0] = 0 |
| 7246 | |
| 7247 | ; |
| 7248 | return 0; |
| 7249 | } |
| 7250 | _ACEOF |
| 7251 | rm -f conftest.$ac_objext |
| 7252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7253 | (eval $ac_compile) 2>&5 |
| 7254 | ac_status=$? |
| 7255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7256 | (exit $ac_status); } && |
| 7257 | { ac_try='test -s conftest.$ac_objext' |
| 7258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7259 | (eval $ac_try) 2>&5 |
| 7260 | ac_status=$? |
| 7261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7262 | (exit $ac_status); }; }; then |
| 7263 | ac_lo=$ac_mid; break |
| 7264 | else |
| 7265 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7267 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7268 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7269 | if test $ac_mid -le $ac_hi; then |
| 7270 | ac_lo= ac_hi= |
| 7271 | break |
| 7272 | fi |
| 7273 | ac_mid=`expr 2 '*' $ac_mid` |
| 7274 | fi |
| 7275 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7276 | done |
| 7277 | else |
| 7278 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7280 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7281 | ac_lo= ac_hi= |
| 7282 | fi |
| 7283 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7284 | fi |
| 7285 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7286 | # Binary search between lo and hi bounds. |
| 7287 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7288 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7289 | cat >conftest.$ac_ext <<_ACEOF |
| 7290 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7291 | /* confdefs.h. */ |
| 7292 | _ACEOF |
| 7293 | cat confdefs.h >>conftest.$ac_ext |
| 7294 | cat >>conftest.$ac_ext <<_ACEOF |
| 7295 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7296 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7297 | int |
| 7298 | main () |
| 7299 | { |
| 7300 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 7301 | test_array [0] = 0 |
| 7302 | |
| 7303 | ; |
| 7304 | return 0; |
| 7305 | } |
| 7306 | _ACEOF |
| 7307 | rm -f conftest.$ac_objext |
| 7308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7309 | (eval $ac_compile) 2>&5 |
| 7310 | ac_status=$? |
| 7311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7312 | (exit $ac_status); } && |
| 7313 | { ac_try='test -s conftest.$ac_objext' |
| 7314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7315 | (eval $ac_try) 2>&5 |
| 7316 | ac_status=$? |
| 7317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7318 | (exit $ac_status); }; }; then |
| 7319 | ac_hi=$ac_mid |
| 7320 | else |
| 7321 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7323 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7324 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7325 | fi |
| 7326 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7327 | done |
| 7328 | case $ac_lo in |
| 7329 | ?*) ac_cv_sizeof_char=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7330 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
| 7331 | See \`config.log' for more details." >&5 |
| 7332 | echo "$as_me: error: cannot compute sizeof (char), 77 |
| 7333 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7334 | { (exit 1); exit 1; }; } ;; |
| 7335 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7336 | else |
| 7337 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7338 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7339 | See \`config.log' for more details." >&5 |
| 7340 | echo "$as_me: error: cannot run test program while cross compiling |
| 7341 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7342 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7343 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7344 | cat >conftest.$ac_ext <<_ACEOF |
| 7345 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7346 | /* confdefs.h. */ |
| 7347 | _ACEOF |
| 7348 | cat confdefs.h >>conftest.$ac_ext |
| 7349 | cat >>conftest.$ac_ext <<_ACEOF |
| 7350 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7351 | $ac_includes_default |
| 7352 | long longval () { return (long) (sizeof (char)); } |
| 7353 | unsigned long ulongval () { return (long) (sizeof (char)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7354 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7355 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7356 | int |
| 7357 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7358 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7359 | |
| 7360 | FILE *f = fopen ("conftest.val", "w"); |
| 7361 | if (! f) |
| 7362 | exit (1); |
| 7363 | if (((long) (sizeof (char))) < 0) |
| 7364 | { |
| 7365 | long i = longval (); |
| 7366 | if (i != ((long) (sizeof (char)))) |
| 7367 | exit (1); |
| 7368 | fprintf (f, "%ld\n", i); |
| 7369 | } |
| 7370 | else |
| 7371 | { |
| 7372 | unsigned long i = ulongval (); |
| 7373 | if (i != ((long) (sizeof (char)))) |
| 7374 | exit (1); |
| 7375 | fprintf (f, "%lu\n", i); |
| 7376 | } |
| 7377 | exit (ferror (f) || fclose (f) != 0); |
| 7378 | |
| 7379 | ; |
| 7380 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7381 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7382 | _ACEOF |
| 7383 | rm -f conftest$ac_exeext |
| 7384 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7385 | (eval $ac_link) 2>&5 |
| 7386 | ac_status=$? |
| 7387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7388 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7390 | (eval $ac_try) 2>&5 |
| 7391 | ac_status=$? |
| 7392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7393 | (exit $ac_status); }; }; then |
| 7394 | ac_cv_sizeof_char=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7395 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7396 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7397 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7399 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7400 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7401 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
| 7402 | See \`config.log' for more details." >&5 |
| 7403 | echo "$as_me: error: cannot compute sizeof (char), 77 |
| 7404 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7405 | { (exit 1); exit 1; }; } |
| 7406 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7407 | 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] | 7408 | fi |
| 7409 | fi |
| 7410 | rm -f conftest.val |
| 7411 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7412 | ac_cv_sizeof_char=0 |
| 7413 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7414 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7415 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 7416 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 7417 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7418 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7419 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7420 | |
| 7421 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7422 | echo "$as_me:$LINENO: checking for short" >&5 |
| 7423 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 7424 | if test "${ac_cv_type_short+set}" = set; then |
| 7425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7426 | else |
| 7427 | cat >conftest.$ac_ext <<_ACEOF |
| 7428 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7429 | /* confdefs.h. */ |
| 7430 | _ACEOF |
| 7431 | cat confdefs.h >>conftest.$ac_ext |
| 7432 | cat >>conftest.$ac_ext <<_ACEOF |
| 7433 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7434 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7435 | int |
| 7436 | main () |
| 7437 | { |
| 7438 | if ((short *) 0) |
| 7439 | return 0; |
| 7440 | if (sizeof (short)) |
| 7441 | return 0; |
| 7442 | ; |
| 7443 | return 0; |
| 7444 | } |
| 7445 | _ACEOF |
| 7446 | rm -f conftest.$ac_objext |
| 7447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7448 | (eval $ac_compile) 2>&5 |
| 7449 | ac_status=$? |
| 7450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7451 | (exit $ac_status); } && |
| 7452 | { ac_try='test -s conftest.$ac_objext' |
| 7453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7454 | (eval $ac_try) 2>&5 |
| 7455 | ac_status=$? |
| 7456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7457 | (exit $ac_status); }; }; then |
| 7458 | ac_cv_type_short=yes |
| 7459 | else |
| 7460 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7461 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7462 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7463 | ac_cv_type_short=no |
| 7464 | fi |
| 7465 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7466 | fi |
| 7467 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 7468 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 7469 | |
| 7470 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 7471 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 7472 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 7473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7474 | else |
| 7475 | if test "$ac_cv_type_short" = yes; then |
| 7476 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7477 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7478 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7479 | # This bug is HP SR number 8606223364. |
| 7480 | if test "$cross_compiling" = yes; then |
| 7481 | # Depending upon the size, compute the lo and hi bounds. |
| 7482 | cat >conftest.$ac_ext <<_ACEOF |
| 7483 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7484 | /* confdefs.h. */ |
| 7485 | _ACEOF |
| 7486 | cat confdefs.h >>conftest.$ac_ext |
| 7487 | cat >>conftest.$ac_ext <<_ACEOF |
| 7488 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7489 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7490 | int |
| 7491 | main () |
| 7492 | { |
| 7493 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 7494 | test_array [0] = 0 |
| 7495 | |
| 7496 | ; |
| 7497 | return 0; |
| 7498 | } |
| 7499 | _ACEOF |
| 7500 | rm -f conftest.$ac_objext |
| 7501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7502 | (eval $ac_compile) 2>&5 |
| 7503 | ac_status=$? |
| 7504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7505 | (exit $ac_status); } && |
| 7506 | { ac_try='test -s conftest.$ac_objext' |
| 7507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7508 | (eval $ac_try) 2>&5 |
| 7509 | ac_status=$? |
| 7510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7511 | (exit $ac_status); }; }; then |
| 7512 | ac_lo=0 ac_mid=0 |
| 7513 | while :; do |
| 7514 | cat >conftest.$ac_ext <<_ACEOF |
| 7515 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7516 | /* confdefs.h. */ |
| 7517 | _ACEOF |
| 7518 | cat confdefs.h >>conftest.$ac_ext |
| 7519 | cat >>conftest.$ac_ext <<_ACEOF |
| 7520 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7521 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7522 | int |
| 7523 | main () |
| 7524 | { |
| 7525 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7526 | test_array [0] = 0 |
| 7527 | |
| 7528 | ; |
| 7529 | return 0; |
| 7530 | } |
| 7531 | _ACEOF |
| 7532 | rm -f conftest.$ac_objext |
| 7533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7534 | (eval $ac_compile) 2>&5 |
| 7535 | ac_status=$? |
| 7536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7537 | (exit $ac_status); } && |
| 7538 | { ac_try='test -s conftest.$ac_objext' |
| 7539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7540 | (eval $ac_try) 2>&5 |
| 7541 | ac_status=$? |
| 7542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7543 | (exit $ac_status); }; }; then |
| 7544 | ac_hi=$ac_mid; break |
| 7545 | else |
| 7546 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7548 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7549 | ac_lo=`expr $ac_mid + 1` |
| 7550 | if test $ac_lo -le $ac_mid; then |
| 7551 | ac_lo= ac_hi= |
| 7552 | break |
| 7553 | fi |
| 7554 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7555 | fi |
| 7556 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7557 | done |
| 7558 | else |
| 7559 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7560 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7561 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7562 | cat >conftest.$ac_ext <<_ACEOF |
| 7563 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7564 | /* confdefs.h. */ |
| 7565 | _ACEOF |
| 7566 | cat confdefs.h >>conftest.$ac_ext |
| 7567 | cat >>conftest.$ac_ext <<_ACEOF |
| 7568 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7569 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7570 | int |
| 7571 | main () |
| 7572 | { |
| 7573 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 7574 | test_array [0] = 0 |
| 7575 | |
| 7576 | ; |
| 7577 | return 0; |
| 7578 | } |
| 7579 | _ACEOF |
| 7580 | rm -f conftest.$ac_objext |
| 7581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7582 | (eval $ac_compile) 2>&5 |
| 7583 | ac_status=$? |
| 7584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7585 | (exit $ac_status); } && |
| 7586 | { ac_try='test -s conftest.$ac_objext' |
| 7587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7588 | (eval $ac_try) 2>&5 |
| 7589 | ac_status=$? |
| 7590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7591 | (exit $ac_status); }; }; then |
| 7592 | ac_hi=-1 ac_mid=-1 |
| 7593 | while :; do |
| 7594 | cat >conftest.$ac_ext <<_ACEOF |
| 7595 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7596 | /* confdefs.h. */ |
| 7597 | _ACEOF |
| 7598 | cat confdefs.h >>conftest.$ac_ext |
| 7599 | cat >>conftest.$ac_ext <<_ACEOF |
| 7600 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7601 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7602 | int |
| 7603 | main () |
| 7604 | { |
| 7605 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 7606 | test_array [0] = 0 |
| 7607 | |
| 7608 | ; |
| 7609 | return 0; |
| 7610 | } |
| 7611 | _ACEOF |
| 7612 | rm -f conftest.$ac_objext |
| 7613 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7614 | (eval $ac_compile) 2>&5 |
| 7615 | ac_status=$? |
| 7616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7617 | (exit $ac_status); } && |
| 7618 | { ac_try='test -s conftest.$ac_objext' |
| 7619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7620 | (eval $ac_try) 2>&5 |
| 7621 | ac_status=$? |
| 7622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7623 | (exit $ac_status); }; }; then |
| 7624 | ac_lo=$ac_mid; break |
| 7625 | else |
| 7626 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7628 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7629 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7630 | if test $ac_mid -le $ac_hi; then |
| 7631 | ac_lo= ac_hi= |
| 7632 | break |
| 7633 | fi |
| 7634 | ac_mid=`expr 2 '*' $ac_mid` |
| 7635 | fi |
| 7636 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7637 | done |
| 7638 | else |
| 7639 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7641 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7642 | ac_lo= ac_hi= |
| 7643 | fi |
| 7644 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7645 | fi |
| 7646 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7647 | # Binary search between lo and hi bounds. |
| 7648 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7649 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7650 | cat >conftest.$ac_ext <<_ACEOF |
| 7651 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7652 | /* confdefs.h. */ |
| 7653 | _ACEOF |
| 7654 | cat confdefs.h >>conftest.$ac_ext |
| 7655 | cat >>conftest.$ac_ext <<_ACEOF |
| 7656 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7657 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7658 | int |
| 7659 | main () |
| 7660 | { |
| 7661 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7662 | test_array [0] = 0 |
| 7663 | |
| 7664 | ; |
| 7665 | return 0; |
| 7666 | } |
| 7667 | _ACEOF |
| 7668 | rm -f conftest.$ac_objext |
| 7669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7670 | (eval $ac_compile) 2>&5 |
| 7671 | ac_status=$? |
| 7672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7673 | (exit $ac_status); } && |
| 7674 | { ac_try='test -s conftest.$ac_objext' |
| 7675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7676 | (eval $ac_try) 2>&5 |
| 7677 | ac_status=$? |
| 7678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7679 | (exit $ac_status); }; }; then |
| 7680 | ac_hi=$ac_mid |
| 7681 | else |
| 7682 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7684 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7685 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7686 | fi |
| 7687 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7688 | done |
| 7689 | case $ac_lo in |
| 7690 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7691 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7692 | See \`config.log' for more details." >&5 |
| 7693 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7694 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7695 | { (exit 1); exit 1; }; } ;; |
| 7696 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7697 | else |
| 7698 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7699 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7700 | See \`config.log' for more details." >&5 |
| 7701 | echo "$as_me: error: cannot run test program while cross compiling |
| 7702 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7703 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7704 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7705 | cat >conftest.$ac_ext <<_ACEOF |
| 7706 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7707 | /* confdefs.h. */ |
| 7708 | _ACEOF |
| 7709 | cat confdefs.h >>conftest.$ac_ext |
| 7710 | cat >>conftest.$ac_ext <<_ACEOF |
| 7711 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7712 | $ac_includes_default |
| 7713 | long longval () { return (long) (sizeof (short)); } |
| 7714 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7715 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7716 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7717 | int |
| 7718 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7719 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7720 | |
| 7721 | FILE *f = fopen ("conftest.val", "w"); |
| 7722 | if (! f) |
| 7723 | exit (1); |
| 7724 | if (((long) (sizeof (short))) < 0) |
| 7725 | { |
| 7726 | long i = longval (); |
| 7727 | if (i != ((long) (sizeof (short)))) |
| 7728 | exit (1); |
| 7729 | fprintf (f, "%ld\n", i); |
| 7730 | } |
| 7731 | else |
| 7732 | { |
| 7733 | unsigned long i = ulongval (); |
| 7734 | if (i != ((long) (sizeof (short)))) |
| 7735 | exit (1); |
| 7736 | fprintf (f, "%lu\n", i); |
| 7737 | } |
| 7738 | exit (ferror (f) || fclose (f) != 0); |
| 7739 | |
| 7740 | ; |
| 7741 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7742 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7743 | _ACEOF |
| 7744 | rm -f conftest$ac_exeext |
| 7745 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7746 | (eval $ac_link) 2>&5 |
| 7747 | ac_status=$? |
| 7748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7749 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7751 | (eval $ac_try) 2>&5 |
| 7752 | ac_status=$? |
| 7753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7754 | (exit $ac_status); }; }; then |
| 7755 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7756 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7757 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7758 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7759 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7760 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7761 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7762 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7763 | See \`config.log' for more details." >&5 |
| 7764 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7765 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7766 | { (exit 1); exit 1; }; } |
| 7767 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7768 | 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] | 7769 | fi |
| 7770 | fi |
| 7771 | rm -f conftest.val |
| 7772 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7773 | ac_cv_sizeof_short=0 |
| 7774 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7775 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7776 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 7777 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 7778 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7779 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7780 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7781 | |
| 7782 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7783 | echo "$as_me:$LINENO: checking for float" >&5 |
| 7784 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 7785 | if test "${ac_cv_type_float+set}" = set; then |
| 7786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7787 | else |
| 7788 | cat >conftest.$ac_ext <<_ACEOF |
| 7789 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7790 | /* confdefs.h. */ |
| 7791 | _ACEOF |
| 7792 | cat confdefs.h >>conftest.$ac_ext |
| 7793 | cat >>conftest.$ac_ext <<_ACEOF |
| 7794 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7795 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7796 | int |
| 7797 | main () |
| 7798 | { |
| 7799 | if ((float *) 0) |
| 7800 | return 0; |
| 7801 | if (sizeof (float)) |
| 7802 | return 0; |
| 7803 | ; |
| 7804 | return 0; |
| 7805 | } |
| 7806 | _ACEOF |
| 7807 | rm -f conftest.$ac_objext |
| 7808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7809 | (eval $ac_compile) 2>&5 |
| 7810 | ac_status=$? |
| 7811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7812 | (exit $ac_status); } && |
| 7813 | { ac_try='test -s conftest.$ac_objext' |
| 7814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7815 | (eval $ac_try) 2>&5 |
| 7816 | ac_status=$? |
| 7817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7818 | (exit $ac_status); }; }; then |
| 7819 | ac_cv_type_float=yes |
| 7820 | else |
| 7821 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7822 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7823 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7824 | ac_cv_type_float=no |
| 7825 | fi |
| 7826 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7827 | fi |
| 7828 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 7829 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 7830 | |
| 7831 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 7832 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 7833 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 7834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7835 | else |
| 7836 | if test "$ac_cv_type_float" = yes; then |
| 7837 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7838 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7839 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7840 | # This bug is HP SR number 8606223364. |
| 7841 | if test "$cross_compiling" = yes; then |
| 7842 | # Depending upon the size, compute the lo and hi bounds. |
| 7843 | cat >conftest.$ac_ext <<_ACEOF |
| 7844 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7845 | /* confdefs.h. */ |
| 7846 | _ACEOF |
| 7847 | cat confdefs.h >>conftest.$ac_ext |
| 7848 | cat >>conftest.$ac_ext <<_ACEOF |
| 7849 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7850 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7851 | int |
| 7852 | main () |
| 7853 | { |
| 7854 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 7855 | test_array [0] = 0 |
| 7856 | |
| 7857 | ; |
| 7858 | return 0; |
| 7859 | } |
| 7860 | _ACEOF |
| 7861 | rm -f conftest.$ac_objext |
| 7862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7863 | (eval $ac_compile) 2>&5 |
| 7864 | ac_status=$? |
| 7865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7866 | (exit $ac_status); } && |
| 7867 | { ac_try='test -s conftest.$ac_objext' |
| 7868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7869 | (eval $ac_try) 2>&5 |
| 7870 | ac_status=$? |
| 7871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7872 | (exit $ac_status); }; }; then |
| 7873 | ac_lo=0 ac_mid=0 |
| 7874 | while :; do |
| 7875 | cat >conftest.$ac_ext <<_ACEOF |
| 7876 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7877 | /* confdefs.h. */ |
| 7878 | _ACEOF |
| 7879 | cat confdefs.h >>conftest.$ac_ext |
| 7880 | cat >>conftest.$ac_ext <<_ACEOF |
| 7881 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7882 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7883 | int |
| 7884 | main () |
| 7885 | { |
| 7886 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7887 | test_array [0] = 0 |
| 7888 | |
| 7889 | ; |
| 7890 | return 0; |
| 7891 | } |
| 7892 | _ACEOF |
| 7893 | rm -f conftest.$ac_objext |
| 7894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7895 | (eval $ac_compile) 2>&5 |
| 7896 | ac_status=$? |
| 7897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7898 | (exit $ac_status); } && |
| 7899 | { ac_try='test -s conftest.$ac_objext' |
| 7900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7901 | (eval $ac_try) 2>&5 |
| 7902 | ac_status=$? |
| 7903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7904 | (exit $ac_status); }; }; then |
| 7905 | ac_hi=$ac_mid; break |
| 7906 | else |
| 7907 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7909 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7910 | ac_lo=`expr $ac_mid + 1` |
| 7911 | if test $ac_lo -le $ac_mid; then |
| 7912 | ac_lo= ac_hi= |
| 7913 | break |
| 7914 | fi |
| 7915 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7916 | fi |
| 7917 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7918 | done |
| 7919 | else |
| 7920 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7922 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7923 | cat >conftest.$ac_ext <<_ACEOF |
| 7924 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7925 | /* confdefs.h. */ |
| 7926 | _ACEOF |
| 7927 | cat confdefs.h >>conftest.$ac_ext |
| 7928 | cat >>conftest.$ac_ext <<_ACEOF |
| 7929 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7930 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7931 | int |
| 7932 | main () |
| 7933 | { |
| 7934 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 7935 | test_array [0] = 0 |
| 7936 | |
| 7937 | ; |
| 7938 | return 0; |
| 7939 | } |
| 7940 | _ACEOF |
| 7941 | rm -f conftest.$ac_objext |
| 7942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7943 | (eval $ac_compile) 2>&5 |
| 7944 | ac_status=$? |
| 7945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7946 | (exit $ac_status); } && |
| 7947 | { ac_try='test -s conftest.$ac_objext' |
| 7948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7949 | (eval $ac_try) 2>&5 |
| 7950 | ac_status=$? |
| 7951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7952 | (exit $ac_status); }; }; then |
| 7953 | ac_hi=-1 ac_mid=-1 |
| 7954 | while :; do |
| 7955 | cat >conftest.$ac_ext <<_ACEOF |
| 7956 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7957 | /* confdefs.h. */ |
| 7958 | _ACEOF |
| 7959 | cat confdefs.h >>conftest.$ac_ext |
| 7960 | cat >>conftest.$ac_ext <<_ACEOF |
| 7961 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7962 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7963 | int |
| 7964 | main () |
| 7965 | { |
| 7966 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 7967 | test_array [0] = 0 |
| 7968 | |
| 7969 | ; |
| 7970 | return 0; |
| 7971 | } |
| 7972 | _ACEOF |
| 7973 | rm -f conftest.$ac_objext |
| 7974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7975 | (eval $ac_compile) 2>&5 |
| 7976 | ac_status=$? |
| 7977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7978 | (exit $ac_status); } && |
| 7979 | { ac_try='test -s conftest.$ac_objext' |
| 7980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7981 | (eval $ac_try) 2>&5 |
| 7982 | ac_status=$? |
| 7983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7984 | (exit $ac_status); }; }; then |
| 7985 | ac_lo=$ac_mid; break |
| 7986 | else |
| 7987 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7989 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7990 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7991 | if test $ac_mid -le $ac_hi; then |
| 7992 | ac_lo= ac_hi= |
| 7993 | break |
| 7994 | fi |
| 7995 | ac_mid=`expr 2 '*' $ac_mid` |
| 7996 | fi |
| 7997 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7998 | done |
| 7999 | else |
| 8000 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8002 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8003 | ac_lo= ac_hi= |
| 8004 | fi |
| 8005 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8006 | fi |
| 8007 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8008 | # Binary search between lo and hi bounds. |
| 8009 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8010 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8011 | cat >conftest.$ac_ext <<_ACEOF |
| 8012 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8013 | /* confdefs.h. */ |
| 8014 | _ACEOF |
| 8015 | cat confdefs.h >>conftest.$ac_ext |
| 8016 | cat >>conftest.$ac_ext <<_ACEOF |
| 8017 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8018 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8019 | int |
| 8020 | main () |
| 8021 | { |
| 8022 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 8023 | test_array [0] = 0 |
| 8024 | |
| 8025 | ; |
| 8026 | return 0; |
| 8027 | } |
| 8028 | _ACEOF |
| 8029 | rm -f conftest.$ac_objext |
| 8030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8031 | (eval $ac_compile) 2>&5 |
| 8032 | ac_status=$? |
| 8033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8034 | (exit $ac_status); } && |
| 8035 | { ac_try='test -s conftest.$ac_objext' |
| 8036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8037 | (eval $ac_try) 2>&5 |
| 8038 | ac_status=$? |
| 8039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8040 | (exit $ac_status); }; }; then |
| 8041 | ac_hi=$ac_mid |
| 8042 | else |
| 8043 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8045 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8046 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8047 | fi |
| 8048 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8049 | done |
| 8050 | case $ac_lo in |
| 8051 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8052 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8053 | See \`config.log' for more details." >&5 |
| 8054 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8055 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8056 | { (exit 1); exit 1; }; } ;; |
| 8057 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8058 | else |
| 8059 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8060 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8061 | See \`config.log' for more details." >&5 |
| 8062 | echo "$as_me: error: cannot run test program while cross compiling |
| 8063 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8064 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8065 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8066 | cat >conftest.$ac_ext <<_ACEOF |
| 8067 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8068 | /* confdefs.h. */ |
| 8069 | _ACEOF |
| 8070 | cat confdefs.h >>conftest.$ac_ext |
| 8071 | cat >>conftest.$ac_ext <<_ACEOF |
| 8072 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8073 | $ac_includes_default |
| 8074 | long longval () { return (long) (sizeof (float)); } |
| 8075 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8076 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8077 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8078 | int |
| 8079 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8080 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8081 | |
| 8082 | FILE *f = fopen ("conftest.val", "w"); |
| 8083 | if (! f) |
| 8084 | exit (1); |
| 8085 | if (((long) (sizeof (float))) < 0) |
| 8086 | { |
| 8087 | long i = longval (); |
| 8088 | if (i != ((long) (sizeof (float)))) |
| 8089 | exit (1); |
| 8090 | fprintf (f, "%ld\n", i); |
| 8091 | } |
| 8092 | else |
| 8093 | { |
| 8094 | unsigned long i = ulongval (); |
| 8095 | if (i != ((long) (sizeof (float)))) |
| 8096 | exit (1); |
| 8097 | fprintf (f, "%lu\n", i); |
| 8098 | } |
| 8099 | exit (ferror (f) || fclose (f) != 0); |
| 8100 | |
| 8101 | ; |
| 8102 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8103 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8104 | _ACEOF |
| 8105 | rm -f conftest$ac_exeext |
| 8106 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8107 | (eval $ac_link) 2>&5 |
| 8108 | ac_status=$? |
| 8109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8110 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8112 | (eval $ac_try) 2>&5 |
| 8113 | ac_status=$? |
| 8114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8115 | (exit $ac_status); }; }; then |
| 8116 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8117 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8118 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8119 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8121 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8122 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8123 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8124 | See \`config.log' for more details." >&5 |
| 8125 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8126 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8127 | { (exit 1); exit 1; }; } |
| 8128 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8129 | 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] | 8130 | fi |
| 8131 | fi |
| 8132 | rm -f conftest.val |
| 8133 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8134 | ac_cv_sizeof_float=0 |
| 8135 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8136 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8137 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 8138 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 8139 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8140 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8141 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8142 | |
| 8143 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8144 | echo "$as_me:$LINENO: checking for double" >&5 |
| 8145 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 8146 | if test "${ac_cv_type_double+set}" = set; then |
| 8147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8148 | else |
| 8149 | cat >conftest.$ac_ext <<_ACEOF |
| 8150 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8151 | /* confdefs.h. */ |
| 8152 | _ACEOF |
| 8153 | cat confdefs.h >>conftest.$ac_ext |
| 8154 | cat >>conftest.$ac_ext <<_ACEOF |
| 8155 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8156 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8157 | int |
| 8158 | main () |
| 8159 | { |
| 8160 | if ((double *) 0) |
| 8161 | return 0; |
| 8162 | if (sizeof (double)) |
| 8163 | return 0; |
| 8164 | ; |
| 8165 | return 0; |
| 8166 | } |
| 8167 | _ACEOF |
| 8168 | rm -f conftest.$ac_objext |
| 8169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8170 | (eval $ac_compile) 2>&5 |
| 8171 | ac_status=$? |
| 8172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8173 | (exit $ac_status); } && |
| 8174 | { ac_try='test -s conftest.$ac_objext' |
| 8175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8176 | (eval $ac_try) 2>&5 |
| 8177 | ac_status=$? |
| 8178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8179 | (exit $ac_status); }; }; then |
| 8180 | ac_cv_type_double=yes |
| 8181 | else |
| 8182 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8184 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8185 | ac_cv_type_double=no |
| 8186 | fi |
| 8187 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8188 | fi |
| 8189 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 8190 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 8191 | |
| 8192 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 8193 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 8194 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 8195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8196 | else |
| 8197 | if test "$ac_cv_type_double" = yes; then |
| 8198 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8199 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8200 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8201 | # This bug is HP SR number 8606223364. |
| 8202 | if test "$cross_compiling" = yes; then |
| 8203 | # Depending upon the size, compute the lo and hi bounds. |
| 8204 | cat >conftest.$ac_ext <<_ACEOF |
| 8205 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8206 | /* confdefs.h. */ |
| 8207 | _ACEOF |
| 8208 | cat confdefs.h >>conftest.$ac_ext |
| 8209 | cat >>conftest.$ac_ext <<_ACEOF |
| 8210 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8211 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8212 | int |
| 8213 | main () |
| 8214 | { |
| 8215 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 8216 | test_array [0] = 0 |
| 8217 | |
| 8218 | ; |
| 8219 | return 0; |
| 8220 | } |
| 8221 | _ACEOF |
| 8222 | rm -f conftest.$ac_objext |
| 8223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8224 | (eval $ac_compile) 2>&5 |
| 8225 | ac_status=$? |
| 8226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8227 | (exit $ac_status); } && |
| 8228 | { ac_try='test -s conftest.$ac_objext' |
| 8229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8230 | (eval $ac_try) 2>&5 |
| 8231 | ac_status=$? |
| 8232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8233 | (exit $ac_status); }; }; then |
| 8234 | ac_lo=0 ac_mid=0 |
| 8235 | while :; do |
| 8236 | cat >conftest.$ac_ext <<_ACEOF |
| 8237 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8238 | /* confdefs.h. */ |
| 8239 | _ACEOF |
| 8240 | cat confdefs.h >>conftest.$ac_ext |
| 8241 | cat >>conftest.$ac_ext <<_ACEOF |
| 8242 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8243 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8244 | int |
| 8245 | main () |
| 8246 | { |
| 8247 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8248 | test_array [0] = 0 |
| 8249 | |
| 8250 | ; |
| 8251 | return 0; |
| 8252 | } |
| 8253 | _ACEOF |
| 8254 | rm -f conftest.$ac_objext |
| 8255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8256 | (eval $ac_compile) 2>&5 |
| 8257 | ac_status=$? |
| 8258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8259 | (exit $ac_status); } && |
| 8260 | { ac_try='test -s conftest.$ac_objext' |
| 8261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8262 | (eval $ac_try) 2>&5 |
| 8263 | ac_status=$? |
| 8264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8265 | (exit $ac_status); }; }; then |
| 8266 | ac_hi=$ac_mid; break |
| 8267 | else |
| 8268 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8269 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8270 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8271 | ac_lo=`expr $ac_mid + 1` |
| 8272 | if test $ac_lo -le $ac_mid; then |
| 8273 | ac_lo= ac_hi= |
| 8274 | break |
| 8275 | fi |
| 8276 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8277 | fi |
| 8278 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8279 | done |
| 8280 | else |
| 8281 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8283 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8284 | cat >conftest.$ac_ext <<_ACEOF |
| 8285 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8286 | /* confdefs.h. */ |
| 8287 | _ACEOF |
| 8288 | cat confdefs.h >>conftest.$ac_ext |
| 8289 | cat >>conftest.$ac_ext <<_ACEOF |
| 8290 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8291 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8292 | int |
| 8293 | main () |
| 8294 | { |
| 8295 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 8296 | test_array [0] = 0 |
| 8297 | |
| 8298 | ; |
| 8299 | return 0; |
| 8300 | } |
| 8301 | _ACEOF |
| 8302 | rm -f conftest.$ac_objext |
| 8303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8304 | (eval $ac_compile) 2>&5 |
| 8305 | ac_status=$? |
| 8306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8307 | (exit $ac_status); } && |
| 8308 | { ac_try='test -s conftest.$ac_objext' |
| 8309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8310 | (eval $ac_try) 2>&5 |
| 8311 | ac_status=$? |
| 8312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8313 | (exit $ac_status); }; }; then |
| 8314 | ac_hi=-1 ac_mid=-1 |
| 8315 | while :; do |
| 8316 | cat >conftest.$ac_ext <<_ACEOF |
| 8317 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8318 | /* confdefs.h. */ |
| 8319 | _ACEOF |
| 8320 | cat confdefs.h >>conftest.$ac_ext |
| 8321 | cat >>conftest.$ac_ext <<_ACEOF |
| 8322 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8323 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8324 | int |
| 8325 | main () |
| 8326 | { |
| 8327 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 8328 | test_array [0] = 0 |
| 8329 | |
| 8330 | ; |
| 8331 | return 0; |
| 8332 | } |
| 8333 | _ACEOF |
| 8334 | rm -f conftest.$ac_objext |
| 8335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8336 | (eval $ac_compile) 2>&5 |
| 8337 | ac_status=$? |
| 8338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8339 | (exit $ac_status); } && |
| 8340 | { ac_try='test -s conftest.$ac_objext' |
| 8341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8342 | (eval $ac_try) 2>&5 |
| 8343 | ac_status=$? |
| 8344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8345 | (exit $ac_status); }; }; then |
| 8346 | ac_lo=$ac_mid; break |
| 8347 | else |
| 8348 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8349 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8350 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8351 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8352 | if test $ac_mid -le $ac_hi; then |
| 8353 | ac_lo= ac_hi= |
| 8354 | break |
| 8355 | fi |
| 8356 | ac_mid=`expr 2 '*' $ac_mid` |
| 8357 | fi |
| 8358 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8359 | done |
| 8360 | else |
| 8361 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8363 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8364 | ac_lo= ac_hi= |
| 8365 | fi |
| 8366 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8367 | fi |
| 8368 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8369 | # Binary search between lo and hi bounds. |
| 8370 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8371 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8372 | cat >conftest.$ac_ext <<_ACEOF |
| 8373 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8374 | /* confdefs.h. */ |
| 8375 | _ACEOF |
| 8376 | cat confdefs.h >>conftest.$ac_ext |
| 8377 | cat >>conftest.$ac_ext <<_ACEOF |
| 8378 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8379 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8380 | int |
| 8381 | main () |
| 8382 | { |
| 8383 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8384 | test_array [0] = 0 |
| 8385 | |
| 8386 | ; |
| 8387 | return 0; |
| 8388 | } |
| 8389 | _ACEOF |
| 8390 | rm -f conftest.$ac_objext |
| 8391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8392 | (eval $ac_compile) 2>&5 |
| 8393 | ac_status=$? |
| 8394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8395 | (exit $ac_status); } && |
| 8396 | { ac_try='test -s conftest.$ac_objext' |
| 8397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8398 | (eval $ac_try) 2>&5 |
| 8399 | ac_status=$? |
| 8400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8401 | (exit $ac_status); }; }; then |
| 8402 | ac_hi=$ac_mid |
| 8403 | else |
| 8404 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8406 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8407 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8408 | fi |
| 8409 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8410 | done |
| 8411 | case $ac_lo in |
| 8412 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8413 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8414 | See \`config.log' for more details." >&5 |
| 8415 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8416 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8417 | { (exit 1); exit 1; }; } ;; |
| 8418 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8419 | else |
| 8420 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8421 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8422 | See \`config.log' for more details." >&5 |
| 8423 | echo "$as_me: error: cannot run test program while cross compiling |
| 8424 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8425 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8426 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8427 | cat >conftest.$ac_ext <<_ACEOF |
| 8428 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8429 | /* confdefs.h. */ |
| 8430 | _ACEOF |
| 8431 | cat confdefs.h >>conftest.$ac_ext |
| 8432 | cat >>conftest.$ac_ext <<_ACEOF |
| 8433 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8434 | $ac_includes_default |
| 8435 | long longval () { return (long) (sizeof (double)); } |
| 8436 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8437 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8438 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8439 | int |
| 8440 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8441 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8442 | |
| 8443 | FILE *f = fopen ("conftest.val", "w"); |
| 8444 | if (! f) |
| 8445 | exit (1); |
| 8446 | if (((long) (sizeof (double))) < 0) |
| 8447 | { |
| 8448 | long i = longval (); |
| 8449 | if (i != ((long) (sizeof (double)))) |
| 8450 | exit (1); |
| 8451 | fprintf (f, "%ld\n", i); |
| 8452 | } |
| 8453 | else |
| 8454 | { |
| 8455 | unsigned long i = ulongval (); |
| 8456 | if (i != ((long) (sizeof (double)))) |
| 8457 | exit (1); |
| 8458 | fprintf (f, "%lu\n", i); |
| 8459 | } |
| 8460 | exit (ferror (f) || fclose (f) != 0); |
| 8461 | |
| 8462 | ; |
| 8463 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8464 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8465 | _ACEOF |
| 8466 | rm -f conftest$ac_exeext |
| 8467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8468 | (eval $ac_link) 2>&5 |
| 8469 | ac_status=$? |
| 8470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8471 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8473 | (eval $ac_try) 2>&5 |
| 8474 | ac_status=$? |
| 8475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8476 | (exit $ac_status); }; }; then |
| 8477 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8478 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8479 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8480 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8482 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8483 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8484 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8485 | See \`config.log' for more details." >&5 |
| 8486 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8487 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8488 | { (exit 1); exit 1; }; } |
| 8489 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8490 | 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] | 8491 | fi |
| 8492 | fi |
| 8493 | rm -f conftest.val |
| 8494 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8495 | ac_cv_sizeof_double=0 |
| 8496 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8497 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8498 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 8499 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 8500 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8501 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8502 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8503 | |
| 8504 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8505 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 8506 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 8507 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 8508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8509 | else |
| 8510 | cat >conftest.$ac_ext <<_ACEOF |
| 8511 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8512 | /* confdefs.h. */ |
| 8513 | _ACEOF |
| 8514 | cat confdefs.h >>conftest.$ac_ext |
| 8515 | cat >>conftest.$ac_ext <<_ACEOF |
| 8516 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8517 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8518 | int |
| 8519 | main () |
| 8520 | { |
| 8521 | if ((fpos_t *) 0) |
| 8522 | return 0; |
| 8523 | if (sizeof (fpos_t)) |
| 8524 | return 0; |
| 8525 | ; |
| 8526 | return 0; |
| 8527 | } |
| 8528 | _ACEOF |
| 8529 | rm -f conftest.$ac_objext |
| 8530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8531 | (eval $ac_compile) 2>&5 |
| 8532 | ac_status=$? |
| 8533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8534 | (exit $ac_status); } && |
| 8535 | { ac_try='test -s conftest.$ac_objext' |
| 8536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8537 | (eval $ac_try) 2>&5 |
| 8538 | ac_status=$? |
| 8539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8540 | (exit $ac_status); }; }; then |
| 8541 | ac_cv_type_fpos_t=yes |
| 8542 | else |
| 8543 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8546 | ac_cv_type_fpos_t=no |
| 8547 | fi |
| 8548 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8549 | fi |
| 8550 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 8551 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 8552 | |
| 8553 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 8554 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 8555 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 8556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8557 | else |
| 8558 | if test "$ac_cv_type_fpos_t" = yes; then |
| 8559 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8560 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8561 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8562 | # This bug is HP SR number 8606223364. |
| 8563 | if test "$cross_compiling" = yes; then |
| 8564 | # Depending upon the size, compute the lo and hi bounds. |
| 8565 | cat >conftest.$ac_ext <<_ACEOF |
| 8566 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8567 | /* confdefs.h. */ |
| 8568 | _ACEOF |
| 8569 | cat confdefs.h >>conftest.$ac_ext |
| 8570 | cat >>conftest.$ac_ext <<_ACEOF |
| 8571 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8572 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8573 | int |
| 8574 | main () |
| 8575 | { |
| 8576 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 8577 | test_array [0] = 0 |
| 8578 | |
| 8579 | ; |
| 8580 | return 0; |
| 8581 | } |
| 8582 | _ACEOF |
| 8583 | rm -f conftest.$ac_objext |
| 8584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8585 | (eval $ac_compile) 2>&5 |
| 8586 | ac_status=$? |
| 8587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8588 | (exit $ac_status); } && |
| 8589 | { ac_try='test -s conftest.$ac_objext' |
| 8590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8591 | (eval $ac_try) 2>&5 |
| 8592 | ac_status=$? |
| 8593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8594 | (exit $ac_status); }; }; then |
| 8595 | ac_lo=0 ac_mid=0 |
| 8596 | while :; do |
| 8597 | cat >conftest.$ac_ext <<_ACEOF |
| 8598 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8599 | /* confdefs.h. */ |
| 8600 | _ACEOF |
| 8601 | cat confdefs.h >>conftest.$ac_ext |
| 8602 | cat >>conftest.$ac_ext <<_ACEOF |
| 8603 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8604 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8605 | int |
| 8606 | main () |
| 8607 | { |
| 8608 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8609 | test_array [0] = 0 |
| 8610 | |
| 8611 | ; |
| 8612 | return 0; |
| 8613 | } |
| 8614 | _ACEOF |
| 8615 | rm -f conftest.$ac_objext |
| 8616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8617 | (eval $ac_compile) 2>&5 |
| 8618 | ac_status=$? |
| 8619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8620 | (exit $ac_status); } && |
| 8621 | { ac_try='test -s conftest.$ac_objext' |
| 8622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8623 | (eval $ac_try) 2>&5 |
| 8624 | ac_status=$? |
| 8625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8626 | (exit $ac_status); }; }; then |
| 8627 | ac_hi=$ac_mid; break |
| 8628 | else |
| 8629 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8631 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8632 | ac_lo=`expr $ac_mid + 1` |
| 8633 | if test $ac_lo -le $ac_mid; then |
| 8634 | ac_lo= ac_hi= |
| 8635 | break |
| 8636 | fi |
| 8637 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8638 | fi |
| 8639 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8640 | done |
| 8641 | else |
| 8642 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8643 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8644 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8645 | cat >conftest.$ac_ext <<_ACEOF |
| 8646 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8647 | /* confdefs.h. */ |
| 8648 | _ACEOF |
| 8649 | cat confdefs.h >>conftest.$ac_ext |
| 8650 | cat >>conftest.$ac_ext <<_ACEOF |
| 8651 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8652 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8653 | int |
| 8654 | main () |
| 8655 | { |
| 8656 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 8657 | test_array [0] = 0 |
| 8658 | |
| 8659 | ; |
| 8660 | return 0; |
| 8661 | } |
| 8662 | _ACEOF |
| 8663 | rm -f conftest.$ac_objext |
| 8664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8665 | (eval $ac_compile) 2>&5 |
| 8666 | ac_status=$? |
| 8667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8668 | (exit $ac_status); } && |
| 8669 | { ac_try='test -s conftest.$ac_objext' |
| 8670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8671 | (eval $ac_try) 2>&5 |
| 8672 | ac_status=$? |
| 8673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8674 | (exit $ac_status); }; }; then |
| 8675 | ac_hi=-1 ac_mid=-1 |
| 8676 | while :; do |
| 8677 | cat >conftest.$ac_ext <<_ACEOF |
| 8678 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8679 | /* confdefs.h. */ |
| 8680 | _ACEOF |
| 8681 | cat confdefs.h >>conftest.$ac_ext |
| 8682 | cat >>conftest.$ac_ext <<_ACEOF |
| 8683 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8684 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8685 | int |
| 8686 | main () |
| 8687 | { |
| 8688 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 8689 | test_array [0] = 0 |
| 8690 | |
| 8691 | ; |
| 8692 | return 0; |
| 8693 | } |
| 8694 | _ACEOF |
| 8695 | rm -f conftest.$ac_objext |
| 8696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8697 | (eval $ac_compile) 2>&5 |
| 8698 | ac_status=$? |
| 8699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8700 | (exit $ac_status); } && |
| 8701 | { ac_try='test -s conftest.$ac_objext' |
| 8702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8703 | (eval $ac_try) 2>&5 |
| 8704 | ac_status=$? |
| 8705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8706 | (exit $ac_status); }; }; then |
| 8707 | ac_lo=$ac_mid; break |
| 8708 | else |
| 8709 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8711 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8712 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8713 | if test $ac_mid -le $ac_hi; then |
| 8714 | ac_lo= ac_hi= |
| 8715 | break |
| 8716 | fi |
| 8717 | ac_mid=`expr 2 '*' $ac_mid` |
| 8718 | fi |
| 8719 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8720 | done |
| 8721 | else |
| 8722 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8724 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8725 | ac_lo= ac_hi= |
| 8726 | fi |
| 8727 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8728 | fi |
| 8729 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8730 | # Binary search between lo and hi bounds. |
| 8731 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8732 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8733 | cat >conftest.$ac_ext <<_ACEOF |
| 8734 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8735 | /* confdefs.h. */ |
| 8736 | _ACEOF |
| 8737 | cat confdefs.h >>conftest.$ac_ext |
| 8738 | cat >>conftest.$ac_ext <<_ACEOF |
| 8739 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8740 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8741 | int |
| 8742 | main () |
| 8743 | { |
| 8744 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8745 | test_array [0] = 0 |
| 8746 | |
| 8747 | ; |
| 8748 | return 0; |
| 8749 | } |
| 8750 | _ACEOF |
| 8751 | rm -f conftest.$ac_objext |
| 8752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8753 | (eval $ac_compile) 2>&5 |
| 8754 | ac_status=$? |
| 8755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8756 | (exit $ac_status); } && |
| 8757 | { ac_try='test -s conftest.$ac_objext' |
| 8758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8759 | (eval $ac_try) 2>&5 |
| 8760 | ac_status=$? |
| 8761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8762 | (exit $ac_status); }; }; then |
| 8763 | ac_hi=$ac_mid |
| 8764 | else |
| 8765 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8767 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8768 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8769 | fi |
| 8770 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8771 | done |
| 8772 | case $ac_lo in |
| 8773 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8774 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 8775 | See \`config.log' for more details." >&5 |
| 8776 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 8777 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8778 | { (exit 1); exit 1; }; } ;; |
| 8779 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8780 | else |
| 8781 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8782 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8783 | See \`config.log' for more details." >&5 |
| 8784 | echo "$as_me: error: cannot run test program while cross compiling |
| 8785 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8786 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8787 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8788 | cat >conftest.$ac_ext <<_ACEOF |
| 8789 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8790 | /* confdefs.h. */ |
| 8791 | _ACEOF |
| 8792 | cat confdefs.h >>conftest.$ac_ext |
| 8793 | cat >>conftest.$ac_ext <<_ACEOF |
| 8794 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8795 | $ac_includes_default |
| 8796 | long longval () { return (long) (sizeof (fpos_t)); } |
| 8797 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8798 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8799 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8800 | int |
| 8801 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8802 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8803 | |
| 8804 | FILE *f = fopen ("conftest.val", "w"); |
| 8805 | if (! f) |
| 8806 | exit (1); |
| 8807 | if (((long) (sizeof (fpos_t))) < 0) |
| 8808 | { |
| 8809 | long i = longval (); |
| 8810 | if (i != ((long) (sizeof (fpos_t)))) |
| 8811 | exit (1); |
| 8812 | fprintf (f, "%ld\n", i); |
| 8813 | } |
| 8814 | else |
| 8815 | { |
| 8816 | unsigned long i = ulongval (); |
| 8817 | if (i != ((long) (sizeof (fpos_t)))) |
| 8818 | exit (1); |
| 8819 | fprintf (f, "%lu\n", i); |
| 8820 | } |
| 8821 | exit (ferror (f) || fclose (f) != 0); |
| 8822 | |
| 8823 | ; |
| 8824 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8825 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8826 | _ACEOF |
| 8827 | rm -f conftest$ac_exeext |
| 8828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8829 | (eval $ac_link) 2>&5 |
| 8830 | ac_status=$? |
| 8831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8832 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8834 | (eval $ac_try) 2>&5 |
| 8835 | ac_status=$? |
| 8836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8837 | (exit $ac_status); }; }; then |
| 8838 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8839 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8840 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8841 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8842 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8843 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8844 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8845 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 8846 | See \`config.log' for more details." >&5 |
| 8847 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 8848 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8849 | { (exit 1); exit 1; }; } |
| 8850 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8851 | 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] | 8852 | fi |
| 8853 | fi |
| 8854 | rm -f conftest.val |
| 8855 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8856 | ac_cv_sizeof_fpos_t=0 |
| 8857 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8858 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8859 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 8860 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 8861 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8862 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8863 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8864 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8865 | |
| 8866 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8867 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 8868 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8869 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8870 | cat >conftest.$ac_ext <<_ACEOF |
| 8871 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8872 | /* confdefs.h. */ |
| 8873 | _ACEOF |
| 8874 | cat confdefs.h >>conftest.$ac_ext |
| 8875 | cat >>conftest.$ac_ext <<_ACEOF |
| 8876 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8877 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8878 | int |
| 8879 | main () |
| 8880 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8881 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8882 | ; |
| 8883 | return 0; |
| 8884 | } |
| 8885 | _ACEOF |
| 8886 | rm -f conftest.$ac_objext |
| 8887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8888 | (eval $ac_compile) 2>&5 |
| 8889 | ac_status=$? |
| 8890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8891 | (exit $ac_status); } && |
| 8892 | { ac_try='test -s conftest.$ac_objext' |
| 8893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8894 | (eval $ac_try) 2>&5 |
| 8895 | ac_status=$? |
| 8896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8897 | (exit $ac_status); }; }; then |
| 8898 | |
| 8899 | |
| 8900 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8901 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8902 | _ACEOF |
| 8903 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8904 | have_long_long=yes |
| 8905 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8906 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8907 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8909 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8910 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8911 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8912 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 8913 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8914 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8915 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 8916 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 8917 | if test "${ac_cv_type_long_long+set}" = set; then |
| 8918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8919 | else |
| 8920 | cat >conftest.$ac_ext <<_ACEOF |
| 8921 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8922 | /* confdefs.h. */ |
| 8923 | _ACEOF |
| 8924 | cat confdefs.h >>conftest.$ac_ext |
| 8925 | cat >>conftest.$ac_ext <<_ACEOF |
| 8926 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8927 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8928 | int |
| 8929 | main () |
| 8930 | { |
| 8931 | if ((long long *) 0) |
| 8932 | return 0; |
| 8933 | if (sizeof (long long)) |
| 8934 | return 0; |
| 8935 | ; |
| 8936 | return 0; |
| 8937 | } |
| 8938 | _ACEOF |
| 8939 | rm -f conftest.$ac_objext |
| 8940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8941 | (eval $ac_compile) 2>&5 |
| 8942 | ac_status=$? |
| 8943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8944 | (exit $ac_status); } && |
| 8945 | { ac_try='test -s conftest.$ac_objext' |
| 8946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8947 | (eval $ac_try) 2>&5 |
| 8948 | ac_status=$? |
| 8949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8950 | (exit $ac_status); }; }; then |
| 8951 | ac_cv_type_long_long=yes |
| 8952 | else |
| 8953 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8955 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8956 | ac_cv_type_long_long=no |
| 8957 | fi |
| 8958 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8959 | fi |
| 8960 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 8961 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 8962 | |
| 8963 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 8964 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 8965 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 8966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8967 | else |
| 8968 | if test "$ac_cv_type_long_long" = yes; then |
| 8969 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8970 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8971 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8972 | # This bug is HP SR number 8606223364. |
| 8973 | if test "$cross_compiling" = yes; then |
| 8974 | # Depending upon the size, compute the lo and hi bounds. |
| 8975 | cat >conftest.$ac_ext <<_ACEOF |
| 8976 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8977 | /* confdefs.h. */ |
| 8978 | _ACEOF |
| 8979 | cat confdefs.h >>conftest.$ac_ext |
| 8980 | cat >>conftest.$ac_ext <<_ACEOF |
| 8981 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8982 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8983 | int |
| 8984 | main () |
| 8985 | { |
| 8986 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 8987 | test_array [0] = 0 |
| 8988 | |
| 8989 | ; |
| 8990 | return 0; |
| 8991 | } |
| 8992 | _ACEOF |
| 8993 | rm -f conftest.$ac_objext |
| 8994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8995 | (eval $ac_compile) 2>&5 |
| 8996 | ac_status=$? |
| 8997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8998 | (exit $ac_status); } && |
| 8999 | { ac_try='test -s conftest.$ac_objext' |
| 9000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9001 | (eval $ac_try) 2>&5 |
| 9002 | ac_status=$? |
| 9003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9004 | (exit $ac_status); }; }; then |
| 9005 | ac_lo=0 ac_mid=0 |
| 9006 | while :; do |
| 9007 | cat >conftest.$ac_ext <<_ACEOF |
| 9008 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9009 | /* confdefs.h. */ |
| 9010 | _ACEOF |
| 9011 | cat confdefs.h >>conftest.$ac_ext |
| 9012 | cat >>conftest.$ac_ext <<_ACEOF |
| 9013 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9014 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9015 | int |
| 9016 | main () |
| 9017 | { |
| 9018 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9019 | test_array [0] = 0 |
| 9020 | |
| 9021 | ; |
| 9022 | return 0; |
| 9023 | } |
| 9024 | _ACEOF |
| 9025 | rm -f conftest.$ac_objext |
| 9026 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9027 | (eval $ac_compile) 2>&5 |
| 9028 | ac_status=$? |
| 9029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9030 | (exit $ac_status); } && |
| 9031 | { ac_try='test -s conftest.$ac_objext' |
| 9032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9033 | (eval $ac_try) 2>&5 |
| 9034 | ac_status=$? |
| 9035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9036 | (exit $ac_status); }; }; then |
| 9037 | ac_hi=$ac_mid; break |
| 9038 | else |
| 9039 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9040 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9041 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9042 | ac_lo=`expr $ac_mid + 1` |
| 9043 | if test $ac_lo -le $ac_mid; then |
| 9044 | ac_lo= ac_hi= |
| 9045 | break |
| 9046 | fi |
| 9047 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 9048 | fi |
| 9049 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9050 | done |
| 9051 | else |
| 9052 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9053 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9054 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9055 | cat >conftest.$ac_ext <<_ACEOF |
| 9056 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9057 | /* confdefs.h. */ |
| 9058 | _ACEOF |
| 9059 | cat confdefs.h >>conftest.$ac_ext |
| 9060 | cat >>conftest.$ac_ext <<_ACEOF |
| 9061 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9062 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9063 | int |
| 9064 | main () |
| 9065 | { |
| 9066 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 9067 | test_array [0] = 0 |
| 9068 | |
| 9069 | ; |
| 9070 | return 0; |
| 9071 | } |
| 9072 | _ACEOF |
| 9073 | rm -f conftest.$ac_objext |
| 9074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9075 | (eval $ac_compile) 2>&5 |
| 9076 | ac_status=$? |
| 9077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9078 | (exit $ac_status); } && |
| 9079 | { ac_try='test -s conftest.$ac_objext' |
| 9080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9081 | (eval $ac_try) 2>&5 |
| 9082 | ac_status=$? |
| 9083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9084 | (exit $ac_status); }; }; then |
| 9085 | ac_hi=-1 ac_mid=-1 |
| 9086 | while :; do |
| 9087 | cat >conftest.$ac_ext <<_ACEOF |
| 9088 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9089 | /* confdefs.h. */ |
| 9090 | _ACEOF |
| 9091 | cat confdefs.h >>conftest.$ac_ext |
| 9092 | cat >>conftest.$ac_ext <<_ACEOF |
| 9093 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9094 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9095 | int |
| 9096 | main () |
| 9097 | { |
| 9098 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 9099 | test_array [0] = 0 |
| 9100 | |
| 9101 | ; |
| 9102 | return 0; |
| 9103 | } |
| 9104 | _ACEOF |
| 9105 | rm -f conftest.$ac_objext |
| 9106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9107 | (eval $ac_compile) 2>&5 |
| 9108 | ac_status=$? |
| 9109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9110 | (exit $ac_status); } && |
| 9111 | { ac_try='test -s conftest.$ac_objext' |
| 9112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9113 | (eval $ac_try) 2>&5 |
| 9114 | ac_status=$? |
| 9115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9116 | (exit $ac_status); }; }; then |
| 9117 | ac_lo=$ac_mid; break |
| 9118 | else |
| 9119 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9121 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9122 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9123 | if test $ac_mid -le $ac_hi; then |
| 9124 | ac_lo= ac_hi= |
| 9125 | break |
| 9126 | fi |
| 9127 | ac_mid=`expr 2 '*' $ac_mid` |
| 9128 | fi |
| 9129 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9130 | done |
| 9131 | else |
| 9132 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9133 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9134 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9135 | ac_lo= ac_hi= |
| 9136 | fi |
| 9137 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9138 | fi |
| 9139 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9140 | # Binary search between lo and hi bounds. |
| 9141 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9142 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9143 | cat >conftest.$ac_ext <<_ACEOF |
| 9144 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9145 | /* confdefs.h. */ |
| 9146 | _ACEOF |
| 9147 | cat confdefs.h >>conftest.$ac_ext |
| 9148 | cat >>conftest.$ac_ext <<_ACEOF |
| 9149 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9150 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9151 | int |
| 9152 | main () |
| 9153 | { |
| 9154 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9155 | test_array [0] = 0 |
| 9156 | |
| 9157 | ; |
| 9158 | return 0; |
| 9159 | } |
| 9160 | _ACEOF |
| 9161 | rm -f conftest.$ac_objext |
| 9162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9163 | (eval $ac_compile) 2>&5 |
| 9164 | ac_status=$? |
| 9165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9166 | (exit $ac_status); } && |
| 9167 | { ac_try='test -s conftest.$ac_objext' |
| 9168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9169 | (eval $ac_try) 2>&5 |
| 9170 | ac_status=$? |
| 9171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9172 | (exit $ac_status); }; }; then |
| 9173 | ac_hi=$ac_mid |
| 9174 | else |
| 9175 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9177 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9178 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9179 | fi |
| 9180 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9181 | done |
| 9182 | case $ac_lo in |
| 9183 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9184 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 9185 | See \`config.log' for more details." >&5 |
| 9186 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 9187 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9188 | { (exit 1); exit 1; }; } ;; |
| 9189 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9190 | else |
| 9191 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9192 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9193 | See \`config.log' for more details." >&5 |
| 9194 | echo "$as_me: error: cannot run test program while cross compiling |
| 9195 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9196 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9197 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9198 | cat >conftest.$ac_ext <<_ACEOF |
| 9199 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9200 | /* confdefs.h. */ |
| 9201 | _ACEOF |
| 9202 | cat confdefs.h >>conftest.$ac_ext |
| 9203 | cat >>conftest.$ac_ext <<_ACEOF |
| 9204 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9205 | $ac_includes_default |
| 9206 | long longval () { return (long) (sizeof (long long)); } |
| 9207 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9208 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9209 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9210 | int |
| 9211 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9212 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9213 | |
| 9214 | FILE *f = fopen ("conftest.val", "w"); |
| 9215 | if (! f) |
| 9216 | exit (1); |
| 9217 | if (((long) (sizeof (long long))) < 0) |
| 9218 | { |
| 9219 | long i = longval (); |
| 9220 | if (i != ((long) (sizeof (long long)))) |
| 9221 | exit (1); |
| 9222 | fprintf (f, "%ld\n", i); |
| 9223 | } |
| 9224 | else |
| 9225 | { |
| 9226 | unsigned long i = ulongval (); |
| 9227 | if (i != ((long) (sizeof (long long)))) |
| 9228 | exit (1); |
| 9229 | fprintf (f, "%lu\n", i); |
| 9230 | } |
| 9231 | exit (ferror (f) || fclose (f) != 0); |
| 9232 | |
| 9233 | ; |
| 9234 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9235 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9236 | _ACEOF |
| 9237 | rm -f conftest$ac_exeext |
| 9238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9239 | (eval $ac_link) 2>&5 |
| 9240 | ac_status=$? |
| 9241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9242 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9244 | (eval $ac_try) 2>&5 |
| 9245 | ac_status=$? |
| 9246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9247 | (exit $ac_status); }; }; then |
| 9248 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9249 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9250 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9251 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9253 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9254 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9255 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 9256 | See \`config.log' for more details." >&5 |
| 9257 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 9258 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9259 | { (exit 1); exit 1; }; } |
| 9260 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9261 | 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] | 9262 | fi |
| 9263 | fi |
| 9264 | rm -f conftest.val |
| 9265 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9266 | ac_cv_sizeof_long_long=0 |
| 9267 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9268 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9269 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 9270 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 9271 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9272 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9273 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9274 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9275 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9276 | fi |
| 9277 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9278 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 9279 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9280 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9281 | cat >conftest.$ac_ext <<_ACEOF |
| 9282 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9283 | /* confdefs.h. */ |
| 9284 | _ACEOF |
| 9285 | cat confdefs.h >>conftest.$ac_ext |
| 9286 | cat >>conftest.$ac_ext <<_ACEOF |
| 9287 | /* end confdefs.h. */ |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9288 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9289 | int |
| 9290 | main () |
| 9291 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9292 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9293 | ; |
| 9294 | return 0; |
| 9295 | } |
| 9296 | _ACEOF |
| 9297 | rm -f conftest.$ac_objext |
| 9298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9299 | (eval $ac_compile) 2>&5 |
| 9300 | ac_status=$? |
| 9301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9302 | (exit $ac_status); } && |
| 9303 | { ac_try='test -s conftest.$ac_objext' |
| 9304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9305 | (eval $ac_try) 2>&5 |
| 9306 | ac_status=$? |
| 9307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9308 | (exit $ac_status); }; }; then |
| 9309 | |
| 9310 | |
| 9311 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9312 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9313 | _ACEOF |
| 9314 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 9315 | have_uintptr_t=yes |
| 9316 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9317 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9318 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9319 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9320 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9321 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9322 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9323 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 9324 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9325 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9326 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 9327 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 9328 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 9329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9330 | else |
| 9331 | cat >conftest.$ac_ext <<_ACEOF |
| 9332 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9333 | /* confdefs.h. */ |
| 9334 | _ACEOF |
| 9335 | cat confdefs.h >>conftest.$ac_ext |
| 9336 | cat >>conftest.$ac_ext <<_ACEOF |
| 9337 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9338 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9339 | int |
| 9340 | main () |
| 9341 | { |
| 9342 | if ((uintptr_t *) 0) |
| 9343 | return 0; |
| 9344 | if (sizeof (uintptr_t)) |
| 9345 | return 0; |
| 9346 | ; |
| 9347 | return 0; |
| 9348 | } |
| 9349 | _ACEOF |
| 9350 | rm -f conftest.$ac_objext |
| 9351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9352 | (eval $ac_compile) 2>&5 |
| 9353 | ac_status=$? |
| 9354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9355 | (exit $ac_status); } && |
| 9356 | { ac_try='test -s conftest.$ac_objext' |
| 9357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9358 | (eval $ac_try) 2>&5 |
| 9359 | ac_status=$? |
| 9360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9361 | (exit $ac_status); }; }; then |
| 9362 | ac_cv_type_uintptr_t=yes |
| 9363 | else |
| 9364 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9366 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9367 | ac_cv_type_uintptr_t=no |
| 9368 | fi |
| 9369 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9370 | fi |
| 9371 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 9372 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 9373 | |
| 9374 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 9375 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 9376 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 9377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9378 | else |
| 9379 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 9380 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 9381 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9382 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9383 | # This bug is HP SR number 8606223364. |
| 9384 | if test "$cross_compiling" = yes; then |
| 9385 | # Depending upon the size, compute the lo and hi bounds. |
| 9386 | cat >conftest.$ac_ext <<_ACEOF |
| 9387 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9388 | /* confdefs.h. */ |
| 9389 | _ACEOF |
| 9390 | cat confdefs.h >>conftest.$ac_ext |
| 9391 | cat >>conftest.$ac_ext <<_ACEOF |
| 9392 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9393 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9394 | int |
| 9395 | main () |
| 9396 | { |
| 9397 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 9398 | test_array [0] = 0 |
| 9399 | |
| 9400 | ; |
| 9401 | return 0; |
| 9402 | } |
| 9403 | _ACEOF |
| 9404 | rm -f conftest.$ac_objext |
| 9405 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9406 | (eval $ac_compile) 2>&5 |
| 9407 | ac_status=$? |
| 9408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9409 | (exit $ac_status); } && |
| 9410 | { ac_try='test -s conftest.$ac_objext' |
| 9411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9412 | (eval $ac_try) 2>&5 |
| 9413 | ac_status=$? |
| 9414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9415 | (exit $ac_status); }; }; then |
| 9416 | ac_lo=0 ac_mid=0 |
| 9417 | while :; do |
| 9418 | cat >conftest.$ac_ext <<_ACEOF |
| 9419 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9420 | /* confdefs.h. */ |
| 9421 | _ACEOF |
| 9422 | cat confdefs.h >>conftest.$ac_ext |
| 9423 | cat >>conftest.$ac_ext <<_ACEOF |
| 9424 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9425 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9426 | int |
| 9427 | main () |
| 9428 | { |
| 9429 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 9430 | test_array [0] = 0 |
| 9431 | |
| 9432 | ; |
| 9433 | return 0; |
| 9434 | } |
| 9435 | _ACEOF |
| 9436 | rm -f conftest.$ac_objext |
| 9437 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9438 | (eval $ac_compile) 2>&5 |
| 9439 | ac_status=$? |
| 9440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9441 | (exit $ac_status); } && |
| 9442 | { ac_try='test -s conftest.$ac_objext' |
| 9443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9444 | (eval $ac_try) 2>&5 |
| 9445 | ac_status=$? |
| 9446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9447 | (exit $ac_status); }; }; then |
| 9448 | ac_hi=$ac_mid; break |
| 9449 | else |
| 9450 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9452 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9453 | ac_lo=`expr $ac_mid + 1` |
| 9454 | if test $ac_lo -le $ac_mid; then |
| 9455 | ac_lo= ac_hi= |
| 9456 | break |
| 9457 | fi |
| 9458 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 9459 | fi |
| 9460 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9461 | done |
| 9462 | else |
| 9463 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9465 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9466 | cat >conftest.$ac_ext <<_ACEOF |
| 9467 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9468 | /* confdefs.h. */ |
| 9469 | _ACEOF |
| 9470 | cat confdefs.h >>conftest.$ac_ext |
| 9471 | cat >>conftest.$ac_ext <<_ACEOF |
| 9472 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9473 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9474 | int |
| 9475 | main () |
| 9476 | { |
| 9477 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 9478 | test_array [0] = 0 |
| 9479 | |
| 9480 | ; |
| 9481 | return 0; |
| 9482 | } |
| 9483 | _ACEOF |
| 9484 | rm -f conftest.$ac_objext |
| 9485 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9486 | (eval $ac_compile) 2>&5 |
| 9487 | ac_status=$? |
| 9488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9489 | (exit $ac_status); } && |
| 9490 | { ac_try='test -s conftest.$ac_objext' |
| 9491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9492 | (eval $ac_try) 2>&5 |
| 9493 | ac_status=$? |
| 9494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9495 | (exit $ac_status); }; }; then |
| 9496 | ac_hi=-1 ac_mid=-1 |
| 9497 | while :; do |
| 9498 | cat >conftest.$ac_ext <<_ACEOF |
| 9499 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9500 | /* confdefs.h. */ |
| 9501 | _ACEOF |
| 9502 | cat confdefs.h >>conftest.$ac_ext |
| 9503 | cat >>conftest.$ac_ext <<_ACEOF |
| 9504 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9505 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9506 | int |
| 9507 | main () |
| 9508 | { |
| 9509 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 9510 | test_array [0] = 0 |
| 9511 | |
| 9512 | ; |
| 9513 | return 0; |
| 9514 | } |
| 9515 | _ACEOF |
| 9516 | rm -f conftest.$ac_objext |
| 9517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9518 | (eval $ac_compile) 2>&5 |
| 9519 | ac_status=$? |
| 9520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9521 | (exit $ac_status); } && |
| 9522 | { ac_try='test -s conftest.$ac_objext' |
| 9523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9524 | (eval $ac_try) 2>&5 |
| 9525 | ac_status=$? |
| 9526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9527 | (exit $ac_status); }; }; then |
| 9528 | ac_lo=$ac_mid; break |
| 9529 | else |
| 9530 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9532 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9533 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9534 | if test $ac_mid -le $ac_hi; then |
| 9535 | ac_lo= ac_hi= |
| 9536 | break |
| 9537 | fi |
| 9538 | ac_mid=`expr 2 '*' $ac_mid` |
| 9539 | fi |
| 9540 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9541 | done |
| 9542 | else |
| 9543 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9546 | ac_lo= ac_hi= |
| 9547 | fi |
| 9548 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9549 | fi |
| 9550 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9551 | # Binary search between lo and hi bounds. |
| 9552 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9553 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9554 | cat >conftest.$ac_ext <<_ACEOF |
| 9555 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9556 | /* confdefs.h. */ |
| 9557 | _ACEOF |
| 9558 | cat confdefs.h >>conftest.$ac_ext |
| 9559 | cat >>conftest.$ac_ext <<_ACEOF |
| 9560 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9561 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9562 | int |
| 9563 | main () |
| 9564 | { |
| 9565 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 9566 | test_array [0] = 0 |
| 9567 | |
| 9568 | ; |
| 9569 | return 0; |
| 9570 | } |
| 9571 | _ACEOF |
| 9572 | rm -f conftest.$ac_objext |
| 9573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9574 | (eval $ac_compile) 2>&5 |
| 9575 | ac_status=$? |
| 9576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9577 | (exit $ac_status); } && |
| 9578 | { ac_try='test -s conftest.$ac_objext' |
| 9579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9580 | (eval $ac_try) 2>&5 |
| 9581 | ac_status=$? |
| 9582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9583 | (exit $ac_status); }; }; then |
| 9584 | ac_hi=$ac_mid |
| 9585 | else |
| 9586 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9588 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9589 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9590 | fi |
| 9591 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9592 | done |
| 9593 | case $ac_lo in |
| 9594 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9595 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 9596 | See \`config.log' for more details." >&5 |
| 9597 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 9598 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9599 | { (exit 1); exit 1; }; } ;; |
| 9600 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9601 | else |
| 9602 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9603 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9604 | See \`config.log' for more details." >&5 |
| 9605 | echo "$as_me: error: cannot run test program while cross compiling |
| 9606 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9607 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9608 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9609 | cat >conftest.$ac_ext <<_ACEOF |
| 9610 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9611 | /* confdefs.h. */ |
| 9612 | _ACEOF |
| 9613 | cat confdefs.h >>conftest.$ac_ext |
| 9614 | cat >>conftest.$ac_ext <<_ACEOF |
| 9615 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9616 | $ac_includes_default |
| 9617 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 9618 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9619 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9620 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9621 | int |
| 9622 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9623 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9624 | |
| 9625 | FILE *f = fopen ("conftest.val", "w"); |
| 9626 | if (! f) |
| 9627 | exit (1); |
| 9628 | if (((long) (sizeof (uintptr_t))) < 0) |
| 9629 | { |
| 9630 | long i = longval (); |
| 9631 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9632 | exit (1); |
| 9633 | fprintf (f, "%ld\n", i); |
| 9634 | } |
| 9635 | else |
| 9636 | { |
| 9637 | unsigned long i = ulongval (); |
| 9638 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9639 | exit (1); |
| 9640 | fprintf (f, "%lu\n", i); |
| 9641 | } |
| 9642 | exit (ferror (f) || fclose (f) != 0); |
| 9643 | |
| 9644 | ; |
| 9645 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9646 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9647 | _ACEOF |
| 9648 | rm -f conftest$ac_exeext |
| 9649 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9650 | (eval $ac_link) 2>&5 |
| 9651 | ac_status=$? |
| 9652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9653 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9655 | (eval $ac_try) 2>&5 |
| 9656 | ac_status=$? |
| 9657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9658 | (exit $ac_status); }; }; then |
| 9659 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9660 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9661 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9662 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9663 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9664 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9665 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9666 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 9667 | See \`config.log' for more details." >&5 |
| 9668 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 9669 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9670 | { (exit 1); exit 1; }; } |
| 9671 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9672 | 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] | 9673 | fi |
| 9674 | fi |
| 9675 | rm -f conftest.val |
| 9676 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9677 | ac_cv_sizeof_uintptr_t=0 |
| 9678 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9679 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9680 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 9681 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 9682 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9683 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9684 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9685 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9686 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9687 | fi |
| 9688 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9689 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9690 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 9691 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 9692 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 9693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9694 | else |
| 9695 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9696 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9697 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9698 | cat >conftest.$ac_ext <<_ACEOF |
| 9699 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9700 | /* confdefs.h. */ |
| 9701 | _ACEOF |
| 9702 | cat confdefs.h >>conftest.$ac_ext |
| 9703 | cat >>conftest.$ac_ext <<_ACEOF |
| 9704 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9705 | #include <stdio.h> |
| 9706 | #include <sys/types.h> |
| 9707 | main() |
| 9708 | { |
| 9709 | FILE *f=fopen("conftestval", "w"); |
| 9710 | if (!f) exit(1); |
| 9711 | fprintf(f, "%d\n", sizeof(off_t)); |
| 9712 | exit(0); |
| 9713 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9714 | _ACEOF |
| 9715 | rm -f conftest$ac_exeext |
| 9716 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9717 | (eval $ac_link) 2>&5 |
| 9718 | ac_status=$? |
| 9719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9720 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9722 | (eval $ac_try) 2>&5 |
| 9723 | ac_status=$? |
| 9724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9725 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9726 | ac_cv_sizeof_off_t=`cat conftestval` |
| 9727 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9728 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9729 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9731 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9732 | ( exit $ac_status ) |
| 9733 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9734 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9735 | 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] | 9736 | fi |
| 9737 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9738 | fi |
| 9739 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9740 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 9741 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 9742 | |
| 9743 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9744 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9745 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9746 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9747 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9748 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 9749 | 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] | 9750 | if test "$have_long_long" = yes -a \ |
| 9751 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 9752 | "$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] | 9753 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9754 | cat >>confdefs.h <<\_ACEOF |
| 9755 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 9756 | _ACEOF |
| 9757 | |
| 9758 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9759 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9760 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9761 | echo "$as_me:$LINENO: result: no" >&5 |
| 9762 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9763 | fi |
| 9764 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9765 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9766 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 9767 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 9768 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 9769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9770 | else |
| 9771 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9772 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9773 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9774 | cat >conftest.$ac_ext <<_ACEOF |
| 9775 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9776 | /* confdefs.h. */ |
| 9777 | _ACEOF |
| 9778 | cat confdefs.h >>conftest.$ac_ext |
| 9779 | cat >>conftest.$ac_ext <<_ACEOF |
| 9780 | /* end confdefs.h. */ |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9781 | #include <stdio.h> |
| 9782 | #include <time.h> |
| 9783 | main() |
| 9784 | { |
| 9785 | FILE *f=fopen("conftestval", "w"); |
| 9786 | if (!f) exit(1); |
| 9787 | fprintf(f, "%d\n", sizeof(time_t)); |
| 9788 | exit(0); |
| 9789 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9790 | _ACEOF |
| 9791 | rm -f conftest$ac_exeext |
| 9792 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9793 | (eval $ac_link) 2>&5 |
| 9794 | ac_status=$? |
| 9795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9796 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9798 | (eval $ac_try) 2>&5 |
| 9799 | ac_status=$? |
| 9800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9801 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9802 | ac_cv_sizeof_time_t=`cat conftestval` |
| 9803 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9804 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9805 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9807 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9808 | ( exit $ac_status ) |
| 9809 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9810 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9811 | 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] | 9812 | fi |
| 9813 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9814 | fi |
| 9815 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9816 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 9817 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 9818 | |
| 9819 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9820 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9821 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9822 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9823 | |
| 9824 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9825 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9826 | ac_save_cc="$CC" |
| 9827 | if test "$ac_cv_kpthread" = "yes" |
| 9828 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9829 | elif test "$ac_cv_kthread" = "yes" |
| 9830 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9831 | elif test "$ac_cv_pthread" = "yes" |
| 9832 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9833 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9834 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 9835 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9836 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9837 | cat >conftest.$ac_ext <<_ACEOF |
| 9838 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9839 | /* confdefs.h. */ |
| 9840 | _ACEOF |
| 9841 | cat confdefs.h >>conftest.$ac_ext |
| 9842 | cat >>conftest.$ac_ext <<_ACEOF |
| 9843 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9844 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9845 | int |
| 9846 | main () |
| 9847 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 9848 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9849 | ; |
| 9850 | return 0; |
| 9851 | } |
| 9852 | _ACEOF |
| 9853 | rm -f conftest.$ac_objext |
| 9854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9855 | (eval $ac_compile) 2>&5 |
| 9856 | ac_status=$? |
| 9857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9858 | (exit $ac_status); } && |
| 9859 | { ac_try='test -s conftest.$ac_objext' |
| 9860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9861 | (eval $ac_try) 2>&5 |
| 9862 | ac_status=$? |
| 9863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9864 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9865 | have_pthread_t=yes |
| 9866 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9867 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9869 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9870 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9871 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9872 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 9873 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9874 | if test "$have_pthread_t" = yes ; then |
| 9875 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9876 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 9877 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 9878 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 9879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9880 | else |
| 9881 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9882 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9883 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9884 | cat >conftest.$ac_ext <<_ACEOF |
| 9885 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9886 | /* confdefs.h. */ |
| 9887 | _ACEOF |
| 9888 | cat confdefs.h >>conftest.$ac_ext |
| 9889 | cat >>conftest.$ac_ext <<_ACEOF |
| 9890 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9891 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 9892 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9893 | main() |
| 9894 | { |
| 9895 | FILE *f=fopen("conftestval", "w"); |
| 9896 | if (!f) exit(1); |
| 9897 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 9898 | exit(0); |
| 9899 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9900 | _ACEOF |
| 9901 | rm -f conftest$ac_exeext |
| 9902 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9903 | (eval $ac_link) 2>&5 |
| 9904 | ac_status=$? |
| 9905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9906 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9908 | (eval $ac_try) 2>&5 |
| 9909 | ac_status=$? |
| 9910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9911 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9912 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 9913 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9914 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9915 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9917 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9918 | ( exit $ac_status ) |
| 9919 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9920 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9921 | 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] | 9922 | fi |
| 9923 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9924 | fi |
| 9925 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9926 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 9927 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 9928 | |
| 9929 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9930 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9931 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9932 | |
| 9933 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9934 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9935 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9936 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 9937 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9938 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 9939 | if test "${enable_toolbox_glue+set}" = set; then |
| 9940 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9942 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9943 | |
| 9944 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9945 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9946 | case $ac_sys_system/$ac_sys_release in |
| 9947 | Darwin/*) |
| 9948 | enable_toolbox_glue="yes";; |
| 9949 | *) |
| 9950 | enable_toolbox_glue="no";; |
| 9951 | esac |
| 9952 | fi |
| 9953 | case "$enable_toolbox_glue" in |
| 9954 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 9955 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9956 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9957 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9958 | |
| 9959 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9960 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9961 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9962 | |
| 9963 | ;; |
| 9964 | *) |
| 9965 | extra_frameworks="" |
| 9966 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9967 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9968 | ;; |
| 9969 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9970 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 9971 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9972 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9973 | |
| 9974 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9975 | Darwin/1.3*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9976 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9977 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 9978 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/Python' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9979 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 9980 | Darwin/*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9981 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9982 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 9983 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/Python' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9984 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9985 | esac |
| 9986 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9987 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 9988 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9989 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9990 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9991 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9992 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9993 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9994 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9995 | cat >>confdefs.h <<\_ACEOF |
| 9996 | #define WITH_NEXT_FRAMEWORK 1 |
| 9997 | _ACEOF |
| 9998 | |
| 9999 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10000 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10001 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10002 | echo "$as_me:$LINENO: result: no" >&5 |
| 10003 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10004 | fi |
| 10005 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10006 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 10007 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10008 | case $ac_sys_system/$ac_sys_release in |
| 10009 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10010 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10011 | cat >>confdefs.h <<\_ACEOF |
| 10012 | #define WITH_DYLD 1 |
| 10013 | _ACEOF |
| 10014 | |
| 10015 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 10016 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10017 | ;; |
| 10018 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10019 | echo "$as_me:$LINENO: result: no" >&5 |
| 10020 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10021 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10022 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10023 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10024 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10025 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10026 | |
| 10027 | |
| 10028 | |
| 10029 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10030 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10031 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10032 | echo "$as_me:$LINENO: checking SO" >&5 |
| 10033 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10034 | if test -z "$SO" |
| 10035 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10036 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 10037 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10038 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 10039 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10040 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 10041 | else |
| 10042 | # this might also be a termcap variable, see #610332 |
| 10043 | echo |
| 10044 | echo '=====================================================================' |
| 10045 | echo '+ +' |
| 10046 | echo '+ WARNING: You have set SO in your environment. +' |
| 10047 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 10048 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 10049 | echo '+ +' |
| 10050 | echo '=====================================================================' |
| 10051 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10052 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10053 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 10054 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10055 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 10056 | # -- "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] | 10057 | # (Shared libraries in this instance are shared modules to be loaded into |
| 10058 | # 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] | 10059 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 10060 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10061 | if test -z "$LDSHARED" |
| 10062 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10063 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10064 | AIX*) |
| 10065 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 10066 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10067 | ;; |
| 10068 | BeOS*) |
| 10069 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 10070 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10071 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10072 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 10073 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10074 | SunOS/4*) LDSHARED="ld";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10075 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10076 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 10077 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 10078 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10079 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10080 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10081 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 10082 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10083 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10084 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10085 | if test "$enable_framework" ; then |
| 10086 | # Link against the framework. All externals should be defined. |
Jack Jansen | c8607b7 | 2003-12-08 01:10:12 +0000 | [diff] [blame] | 10087 | BLDSHARED="$LDSHARED "'-Wl,-F. -framework $(PYTHONFRAMEWORK)' |
| 10088 | LDSHARED="$LDSHARED "'-Wl,-F$(PYTHONFRAMEWORKPREFIX) -framework $(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10089 | else |
| 10090 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10091 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10092 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10093 | Darwin/*) |
| 10094 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10095 | if test "$enable_framework" ; then |
| 10096 | # Link against the framework. All externals should be defined. |
Jack Jansen | c8607b7 | 2003-12-08 01:10:12 +0000 | [diff] [blame] | 10097 | BLDSHARED="$LDSHARED "'-Wl,-F. -framework $(PYTHONFRAMEWORK)' |
| 10098 | LDSHARED="$LDSHARED "'-Wl,-F$(PYTHONFRAMEWORKPREFIX) -framework $(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10099 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 10100 | # No framework, use the Python app as bundle-loader |
| 10101 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 10102 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10103 | fi ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 10104 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 10105 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 10106 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 10107 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 10108 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 10109 | then |
| 10110 | LDSHARED="cc -shared ${LDFLAGS}" |
| 10111 | else |
| 10112 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 10113 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 10114 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10115 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10116 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 10117 | then LDSHARED='$(CC) -shared' |
| 10118 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10119 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 10120 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10121 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10122 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10123 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10124 | *) LDSHARED="ld";; |
| 10125 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10126 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10127 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 10128 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10129 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10130 | # 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] | 10131 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10132 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 10133 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10134 | if test -z "$CCSHARED" |
| 10135 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10136 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 10137 | SunOS*) if test "$GCC" = yes; |
| 10138 | then CCSHARED="-fPIC"; |
| 10139 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10140 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 10141 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10142 | else CCSHARED="+z"; |
| 10143 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10144 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 10145 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 10146 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10147 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10148 | if test "$GCC" = "yes" |
| 10149 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10150 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10151 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10152 | SCO_SV*) |
| 10153 | if test "$GCC" = "yes" |
| 10154 | then CCSHARED="-fPIC" |
| 10155 | else CCSHARED="-Kpic -belf" |
| 10156 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10157 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10158 | IRIX*/6*) case $CC in |
| 10159 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 10160 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10161 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10162 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10163 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10164 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10165 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 10166 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10167 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10168 | # 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] | 10169 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 10170 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10171 | if test -z "$LINKFORSHARED" |
| 10172 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10173 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10174 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 10175 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10176 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 10177 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 10178 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10179 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10180 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10181 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10182 | # -u __dummy makes the linker aware of the objc runtime |
| 10183 | # in System.framework; otherwise, __objcInit (referenced in |
| 10184 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 10185 | # loading of any modules which reference it in System.framework. |
| 10186 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 10187 | # not used by the core itself but which needs to be in the core so |
| 10188 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 10189 | # -prebind is no longer used, because it actually seems to give a |
| 10190 | # slowdown in stead of a speedup, maybe due to the large number of |
| 10191 | # dynamic loads Python does. |
| 10192 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10193 | if test "$enable_framework" |
| 10194 | then |
Jack Jansen | c8607b7 | 2003-12-08 01:10:12 +0000 | [diff] [blame] | 10195 | LINKFORSHARED="$LINKFORSHARED -Wl,-F. -framework Python" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10196 | fi |
| 10197 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10198 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10199 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 10200 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10201 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 10202 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 10203 | then |
| 10204 | LINKFORSHARED="-Wl,--export-dynamic" |
| 10205 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10206 | SunOS/5*) case $CC in |
| 10207 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 10208 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 10209 | then |
| 10210 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10211 | fi;; |
| 10212 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 10213 | CYGWIN*) |
| 10214 | if test $enable_shared = "no" |
| 10215 | then |
| 10216 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 10217 | fi;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10218 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10219 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10220 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 10221 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10222 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10223 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10224 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 10225 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10226 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 10227 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 10228 | case $ac_sys_system in |
| 10229 | CYGWIN*) |
| 10230 | # Cygwin needs CCSHARED when building extension DLLs |
| 10231 | # but not when building the interpreter DLL. |
| 10232 | CFLAGSFORSHARED='';; |
| 10233 | *) |
| 10234 | CFLAGSFORSHARED='$(CCSHARED)' |
| 10235 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10236 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10237 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 10238 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10239 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10240 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 10241 | # library (with --enable-shared). |
| 10242 | # 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] | 10243 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 10244 | # if it is not required, since it creates a dependency of the shared library |
| 10245 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 10246 | # don't need to link LIBS explicitly. The default should be only changed |
| 10247 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10248 | |
| 10249 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 10250 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 10251 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10252 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 10253 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10254 | esac |
| 10255 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 10256 | echo "${ECHO_T}$SHLIBS" >&6 |
| 10257 | |
| 10258 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10259 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10260 | |
| 10261 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10262 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 10263 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10265 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10266 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10267 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10268 | cat >conftest.$ac_ext <<_ACEOF |
| 10269 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10270 | /* confdefs.h. */ |
| 10271 | _ACEOF |
| 10272 | cat confdefs.h >>conftest.$ac_ext |
| 10273 | cat >>conftest.$ac_ext <<_ACEOF |
| 10274 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10275 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10276 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10277 | #ifdef __cplusplus |
| 10278 | extern "C" |
| 10279 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10280 | /* 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] | 10281 | builtin and then its argument prototype would still apply. */ |
| 10282 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10283 | int |
| 10284 | main () |
| 10285 | { |
| 10286 | dlopen (); |
| 10287 | ; |
| 10288 | return 0; |
| 10289 | } |
| 10290 | _ACEOF |
| 10291 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10293 | (eval $ac_link) 2>&5 |
| 10294 | ac_status=$? |
| 10295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10296 | (exit $ac_status); } && |
| 10297 | { ac_try='test -s conftest$ac_exeext' |
| 10298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10299 | (eval $ac_try) 2>&5 |
| 10300 | ac_status=$? |
| 10301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10302 | (exit $ac_status); }; }; then |
| 10303 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10304 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10305 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10306 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10307 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10308 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10309 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10310 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10311 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10312 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10313 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10314 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 10315 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10316 | cat >>confdefs.h <<_ACEOF |
| 10317 | #define HAVE_LIBDL 1 |
| 10318 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10319 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10320 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10321 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10322 | fi |
| 10323 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10324 | |
| 10325 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10326 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 10327 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10329 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10330 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10331 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10332 | cat >conftest.$ac_ext <<_ACEOF |
| 10333 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10334 | /* confdefs.h. */ |
| 10335 | _ACEOF |
| 10336 | cat confdefs.h >>conftest.$ac_ext |
| 10337 | cat >>conftest.$ac_ext <<_ACEOF |
| 10338 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10339 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10340 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10341 | #ifdef __cplusplus |
| 10342 | extern "C" |
| 10343 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10344 | /* 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] | 10345 | builtin and then its argument prototype would still apply. */ |
| 10346 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10347 | int |
| 10348 | main () |
| 10349 | { |
| 10350 | shl_load (); |
| 10351 | ; |
| 10352 | return 0; |
| 10353 | } |
| 10354 | _ACEOF |
| 10355 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10356 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10357 | (eval $ac_link) 2>&5 |
| 10358 | ac_status=$? |
| 10359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10360 | (exit $ac_status); } && |
| 10361 | { ac_try='test -s conftest$ac_exeext' |
| 10362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10363 | (eval $ac_try) 2>&5 |
| 10364 | ac_status=$? |
| 10365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10366 | (exit $ac_status); }; }; then |
| 10367 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10368 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10369 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10370 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10371 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10372 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10373 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10374 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10375 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10376 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10377 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10378 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 10379 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 10380 | cat >>confdefs.h <<_ACEOF |
| 10381 | #define HAVE_LIBDLD 1 |
| 10382 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10383 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10384 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10385 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10386 | fi |
| 10387 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10388 | |
| 10389 | # only check for sem_ini if thread support is requested |
| 10390 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
| 10391 | 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] | 10392 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 10393 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10395 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10396 | ac_func_search_save_LIBS=$LIBS |
| 10397 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10398 | cat >conftest.$ac_ext <<_ACEOF |
| 10399 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10400 | /* confdefs.h. */ |
| 10401 | _ACEOF |
| 10402 | cat confdefs.h >>conftest.$ac_ext |
| 10403 | cat >>conftest.$ac_ext <<_ACEOF |
| 10404 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10405 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10406 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10407 | #ifdef __cplusplus |
| 10408 | extern "C" |
| 10409 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10410 | /* 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] | 10411 | builtin and then its argument prototype would still apply. */ |
| 10412 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10413 | int |
| 10414 | main () |
| 10415 | { |
| 10416 | sem_init (); |
| 10417 | ; |
| 10418 | return 0; |
| 10419 | } |
| 10420 | _ACEOF |
| 10421 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10422 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10423 | (eval $ac_link) 2>&5 |
| 10424 | ac_status=$? |
| 10425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10426 | (exit $ac_status); } && |
| 10427 | { ac_try='test -s conftest$ac_exeext' |
| 10428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10429 | (eval $ac_try) 2>&5 |
| 10430 | ac_status=$? |
| 10431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10432 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10433 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10434 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10435 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10436 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10437 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10438 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10439 | 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] | 10440 | if test "$ac_cv_search_sem_init" = no; then |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 10441 | for ac_lib in pthread rt posix4; do |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10442 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10443 | cat >conftest.$ac_ext <<_ACEOF |
| 10444 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10445 | /* confdefs.h. */ |
| 10446 | _ACEOF |
| 10447 | cat confdefs.h >>conftest.$ac_ext |
| 10448 | cat >>conftest.$ac_ext <<_ACEOF |
| 10449 | /* end confdefs.h. */ |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10450 | |
| 10451 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10452 | #ifdef __cplusplus |
| 10453 | extern "C" |
| 10454 | #endif |
| 10455 | /* We use char because int might match the return type of a gcc2 |
| 10456 | builtin and then its argument prototype would still apply. */ |
| 10457 | char sem_init (); |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10458 | int |
| 10459 | main () |
| 10460 | { |
| 10461 | sem_init (); |
| 10462 | ; |
| 10463 | return 0; |
| 10464 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10465 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10466 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10468 | (eval $ac_link) 2>&5 |
| 10469 | ac_status=$? |
| 10470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10471 | (exit $ac_status); } && |
| 10472 | { ac_try='test -s conftest$ac_exeext' |
| 10473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10474 | (eval $ac_try) 2>&5 |
| 10475 | ac_status=$? |
| 10476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10477 | (exit $ac_status); }; }; then |
| 10478 | ac_cv_search_sem_init="-l$ac_lib" |
| 10479 | break |
| 10480 | else |
| 10481 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10483 | |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10484 | fi |
| 10485 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10486 | done |
| 10487 | fi |
| 10488 | LIBS=$ac_func_search_save_LIBS |
| 10489 | fi |
| 10490 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 10491 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 10492 | if test "$ac_cv_search_sem_init" != no; then |
| 10493 | 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] | 10494 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10495 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 10496 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10497 | # posix4 on Solaris 2.6 |
| 10498 | # pthread (first!) on Linux |
| 10499 | fi |
| 10500 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10501 | # check if we need libintl for locale functions |
| 10502 | echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 10503 | echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6 |
| 10504 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
| 10505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10506 | else |
| 10507 | ac_check_lib_save_LIBS=$LIBS |
| 10508 | LIBS="-lintl $LIBS" |
| 10509 | cat >conftest.$ac_ext <<_ACEOF |
| 10510 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10511 | /* confdefs.h. */ |
| 10512 | _ACEOF |
| 10513 | cat confdefs.h >>conftest.$ac_ext |
| 10514 | cat >>conftest.$ac_ext <<_ACEOF |
| 10515 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10516 | |
| 10517 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10518 | #ifdef __cplusplus |
| 10519 | extern "C" |
| 10520 | #endif |
| 10521 | /* We use char because int might match the return type of a gcc2 |
| 10522 | builtin and then its argument prototype would still apply. */ |
| 10523 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10524 | int |
| 10525 | main () |
| 10526 | { |
| 10527 | textdomain (); |
| 10528 | ; |
| 10529 | return 0; |
| 10530 | } |
| 10531 | _ACEOF |
| 10532 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10533 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10534 | (eval $ac_link) 2>&5 |
| 10535 | ac_status=$? |
| 10536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10537 | (exit $ac_status); } && |
| 10538 | { ac_try='test -s conftest$ac_exeext' |
| 10539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10540 | (eval $ac_try) 2>&5 |
| 10541 | ac_status=$? |
| 10542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10543 | (exit $ac_status); }; }; then |
| 10544 | ac_cv_lib_intl_textdomain=yes |
| 10545 | else |
| 10546 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10548 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10549 | ac_cv_lib_intl_textdomain=no |
| 10550 | fi |
| 10551 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10552 | LIBS=$ac_check_lib_save_LIBS |
| 10553 | fi |
| 10554 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 10555 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6 |
| 10556 | if test $ac_cv_lib_intl_textdomain = yes; then |
| 10557 | |
| 10558 | cat >>confdefs.h <<\_ACEOF |
| 10559 | #define WITH_LIBINTL 1 |
| 10560 | _ACEOF |
| 10561 | |
| 10562 | fi |
| 10563 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10564 | |
| 10565 | # checks for system dependent C++ extensions support |
| 10566 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10567 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 10568 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 10569 | cat >conftest.$ac_ext <<_ACEOF |
| 10570 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10571 | /* confdefs.h. */ |
| 10572 | _ACEOF |
| 10573 | cat confdefs.h >>conftest.$ac_ext |
| 10574 | cat >>conftest.$ac_ext <<_ACEOF |
| 10575 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10576 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10577 | int |
| 10578 | main () |
| 10579 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10580 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10581 | ; |
| 10582 | return 0; |
| 10583 | } |
| 10584 | _ACEOF |
| 10585 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10586 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10587 | (eval $ac_link) 2>&5 |
| 10588 | ac_status=$? |
| 10589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10590 | (exit $ac_status); } && |
| 10591 | { ac_try='test -s conftest$ac_exeext' |
| 10592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10593 | (eval $ac_try) 2>&5 |
| 10594 | ac_status=$? |
| 10595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10596 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10597 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10598 | cat >>confdefs.h <<\_ACEOF |
| 10599 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 10600 | _ACEOF |
| 10601 | |
| 10602 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10603 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10604 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10605 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10607 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10608 | echo "$as_me:$LINENO: result: no" >&5 |
| 10609 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10610 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10611 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10612 | *) ;; |
| 10613 | esac |
| 10614 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 10615 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Martin v. Löwis | e117258 | 2002-11-13 08:51:19 +0000 | [diff] [blame] | 10616 | # However on SGI IRIX 4, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10617 | # BeOS' sockets are stashed in libnet. |
| 10618 | case "$ac_sys_system" in |
| 10619 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10620 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10621 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 10622 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 10623 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 10624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10625 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10626 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10627 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10628 | cat >conftest.$ac_ext <<_ACEOF |
| 10629 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10630 | /* confdefs.h. */ |
| 10631 | _ACEOF |
| 10632 | cat confdefs.h >>conftest.$ac_ext |
| 10633 | cat >>conftest.$ac_ext <<_ACEOF |
| 10634 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10635 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10636 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10637 | #ifdef __cplusplus |
| 10638 | extern "C" |
| 10639 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10640 | /* 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] | 10641 | builtin and then its argument prototype would still apply. */ |
| 10642 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10643 | int |
| 10644 | main () |
| 10645 | { |
| 10646 | t_open (); |
| 10647 | ; |
| 10648 | return 0; |
| 10649 | } |
| 10650 | _ACEOF |
| 10651 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10652 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10653 | (eval $ac_link) 2>&5 |
| 10654 | ac_status=$? |
| 10655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10656 | (exit $ac_status); } && |
| 10657 | { ac_try='test -s conftest$ac_exeext' |
| 10658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10659 | (eval $ac_try) 2>&5 |
| 10660 | ac_status=$? |
| 10661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10662 | (exit $ac_status); }; }; then |
| 10663 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10664 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10665 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10667 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10668 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10669 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10670 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10671 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10672 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10673 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 10674 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 10675 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10676 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10677 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 10678 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10679 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 10680 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 10681 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 10682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10683 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10684 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10685 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10686 | cat >conftest.$ac_ext <<_ACEOF |
| 10687 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10688 | /* confdefs.h. */ |
| 10689 | _ACEOF |
| 10690 | cat confdefs.h >>conftest.$ac_ext |
| 10691 | cat >>conftest.$ac_ext <<_ACEOF |
| 10692 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10693 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10694 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10695 | #ifdef __cplusplus |
| 10696 | extern "C" |
| 10697 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10698 | /* 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] | 10699 | builtin and then its argument prototype would still apply. */ |
| 10700 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10701 | int |
| 10702 | main () |
| 10703 | { |
| 10704 | socket (); |
| 10705 | ; |
| 10706 | return 0; |
| 10707 | } |
| 10708 | _ACEOF |
| 10709 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10711 | (eval $ac_link) 2>&5 |
| 10712 | ac_status=$? |
| 10713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10714 | (exit $ac_status); } && |
| 10715 | { ac_try='test -s conftest$ac_exeext' |
| 10716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10717 | (eval $ac_try) 2>&5 |
| 10718 | ac_status=$? |
| 10719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10720 | (exit $ac_status); }; }; then |
| 10721 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10722 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10723 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10725 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10726 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10727 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10728 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10729 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10730 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10731 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 10732 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 10733 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10734 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10735 | fi |
| 10736 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 10737 | ;; |
| 10738 | esac |
| 10739 | case "$ac_sys_system" in |
| 10740 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10741 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 10742 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 10743 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 10744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10745 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10746 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10747 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10748 | cat >conftest.$ac_ext <<_ACEOF |
| 10749 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10750 | /* confdefs.h. */ |
| 10751 | _ACEOF |
| 10752 | cat confdefs.h >>conftest.$ac_ext |
| 10753 | cat >>conftest.$ac_ext <<_ACEOF |
| 10754 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10755 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10756 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10757 | #ifdef __cplusplus |
| 10758 | extern "C" |
| 10759 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10760 | /* 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] | 10761 | builtin and then its argument prototype would still apply. */ |
| 10762 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10763 | int |
| 10764 | main () |
| 10765 | { |
| 10766 | socket (); |
| 10767 | ; |
| 10768 | return 0; |
| 10769 | } |
| 10770 | _ACEOF |
| 10771 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10772 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10773 | (eval $ac_link) 2>&5 |
| 10774 | ac_status=$? |
| 10775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10776 | (exit $ac_status); } && |
| 10777 | { ac_try='test -s conftest$ac_exeext' |
| 10778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10779 | (eval $ac_try) 2>&5 |
| 10780 | ac_status=$? |
| 10781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10782 | (exit $ac_status); }; }; then |
| 10783 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10784 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10785 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10787 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10788 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10789 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10790 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10791 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10792 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10793 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 10794 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 10795 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10796 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10797 | fi |
| 10798 | # BeOS |
| 10799 | ;; |
| 10800 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 10801 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10802 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 10803 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 10804 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 10805 | # Check whether --with-libs or --without-libs was given. |
| 10806 | if test "${with_libs+set}" = set; then |
| 10807 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10808 | |
| 10809 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 10810 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 10811 | LIBS="$withval $LIBS" |
| 10812 | |
| 10813 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10814 | echo "$as_me:$LINENO: result: no" >&5 |
| 10815 | echo "${ECHO_T}no" >&6 |
| 10816 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10817 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10818 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10819 | |
| 10820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10821 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 10822 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 10823 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10824 | # Check whether --with-signal-module or --without-signal-module was given. |
| 10825 | if test "${with_signal_module+set}" = set; then |
| 10826 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10827 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10828 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10829 | |
| 10830 | if test -z "$with_signal_module" |
| 10831 | then with_signal_module="yes" |
| 10832 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10833 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 10834 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10835 | |
| 10836 | if test "${with_signal_module}" = "yes"; then |
| 10837 | USE_SIGNAL_MODULE="" |
| 10838 | SIGNAL_OBJS="" |
| 10839 | else |
| 10840 | USE_SIGNAL_MODULE="#" |
| 10841 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 10842 | fi |
| 10843 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 10844 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10845 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10846 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10847 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10848 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 10849 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 10850 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10851 | |
| 10852 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 10853 | if test "${with_dec_threads+set}" = set; then |
| 10854 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10855 | |
| 10856 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 10857 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10858 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10859 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10860 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10861 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10862 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10863 | echo "$as_me:$LINENO: result: no" >&5 |
| 10864 | echo "${ECHO_T}no" >&6 |
| 10865 | fi; |
| 10866 | |
| 10867 | # Templates for things AC_DEFINEd more than once. |
| 10868 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10869 | |
| 10870 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10871 | |
| 10872 | |
| 10873 | |
| 10874 | |
| 10875 | |
| 10876 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 10877 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 10878 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10879 | # Check whether --with-threads or --without-threads was given. |
| 10880 | if test "${with_threads+set}" = set; then |
| 10881 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10882 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10883 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10884 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10885 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10886 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10887 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10888 | if test "${with_thread+set}" = set; then |
| 10889 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10890 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10891 | fi; |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10892 | |
| 10893 | if test -z "$with_threads" |
| 10894 | then with_threads="yes" |
| 10895 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10896 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 10897 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10898 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10899 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10900 | if test "$with_threads" = "no" |
| 10901 | then |
| 10902 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10903 | elif test "$ac_cv_pthread_is_default" = yes |
| 10904 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10905 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10906 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10907 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10908 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10909 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10910 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10911 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10912 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10913 | |
| 10914 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10915 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10916 | elif test "$ac_cv_kpthread" = "yes" |
| 10917 | then |
| 10918 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10919 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10920 | CXX="$CXX -Kpthread" |
| 10921 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10922 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10923 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10924 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10925 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10926 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10927 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10928 | elif test "$ac_cv_kthread" = "yes" |
| 10929 | then |
| 10930 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10931 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10932 | CXX="$CXX -Kthread" |
| 10933 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10934 | cat >>confdefs.h <<\_ACEOF |
| 10935 | #define WITH_THREAD 1 |
| 10936 | _ACEOF |
| 10937 | |
| 10938 | posix_threads=yes |
| 10939 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10940 | elif test "$ac_cv_pthread" = "yes" |
| 10941 | then |
| 10942 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10943 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 10944 | CXX="$CXX -pthread" |
| 10945 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10946 | cat >>confdefs.h <<\_ACEOF |
| 10947 | #define WITH_THREAD 1 |
| 10948 | _ACEOF |
| 10949 | |
| 10950 | posix_threads=yes |
| 10951 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10952 | else |
| 10953 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 10954 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 10955 | fi |
| 10956 | if test ! -z "$withval" -a -d "$withval" |
| 10957 | then LDFLAGS="$LDFLAGS -L$withval" |
| 10958 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10959 | |
| 10960 | # According to the POSIX spec, a pthreads implementation must |
| 10961 | # 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] | 10962 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 10963 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 10964 | cat >conftest.$ac_ext <<_ACEOF |
| 10965 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10966 | /* confdefs.h. */ |
| 10967 | _ACEOF |
| 10968 | cat confdefs.h >>conftest.$ac_ext |
| 10969 | cat >>conftest.$ac_ext <<_ACEOF |
| 10970 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10971 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10972 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10973 | #ifdef _POSIX_THREADS |
| 10974 | yes |
| 10975 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10976 | |
| 10977 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10978 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10979 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10980 | unistd_defines_pthreads=yes |
| 10981 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10982 | unistd_defines_pthreads=no |
| 10983 | fi |
| 10984 | rm -f conftest* |
| 10985 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10986 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 10987 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10988 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10989 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10990 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10991 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10992 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10993 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10994 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10995 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10996 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10998 | fi |
| 10999 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 11000 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11001 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11002 | # Is the header compilable? |
| 11003 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 11004 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 11005 | cat >conftest.$ac_ext <<_ACEOF |
| 11006 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11007 | /* confdefs.h. */ |
| 11008 | _ACEOF |
| 11009 | cat confdefs.h >>conftest.$ac_ext |
| 11010 | cat >>conftest.$ac_ext <<_ACEOF |
| 11011 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11012 | $ac_includes_default |
| 11013 | #include <cthreads.h> |
| 11014 | _ACEOF |
| 11015 | rm -f conftest.$ac_objext |
| 11016 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11017 | (eval $ac_compile) 2>&5 |
| 11018 | ac_status=$? |
| 11019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11020 | (exit $ac_status); } && |
| 11021 | { ac_try='test -s conftest.$ac_objext' |
| 11022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11023 | (eval $ac_try) 2>&5 |
| 11024 | ac_status=$? |
| 11025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11026 | (exit $ac_status); }; }; then |
| 11027 | ac_header_compiler=yes |
| 11028 | else |
| 11029 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11031 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11032 | ac_header_compiler=no |
| 11033 | fi |
| 11034 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11035 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11036 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11037 | |
| 11038 | # Is the header present? |
| 11039 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 11040 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 11041 | cat >conftest.$ac_ext <<_ACEOF |
| 11042 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11043 | /* confdefs.h. */ |
| 11044 | _ACEOF |
| 11045 | cat confdefs.h >>conftest.$ac_ext |
| 11046 | cat >>conftest.$ac_ext <<_ACEOF |
| 11047 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11048 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11049 | _ACEOF |
| 11050 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11051 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11052 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11053 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11054 | rm -f conftest.er1 |
| 11055 | cat conftest.err >&5 |
| 11056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11057 | (exit $ac_status); } >/dev/null; then |
| 11058 | if test -s conftest.err; then |
| 11059 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11060 | else |
| 11061 | ac_cpp_err= |
| 11062 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11063 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11064 | ac_cpp_err=yes |
| 11065 | fi |
| 11066 | if test -z "$ac_cpp_err"; then |
| 11067 | ac_header_preproc=yes |
| 11068 | else |
| 11069 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11071 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11072 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11073 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11074 | rm -f conftest.err conftest.$ac_ext |
| 11075 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11076 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11077 | |
| 11078 | # So? What about this header? |
| 11079 | case $ac_header_compiler:$ac_header_preproc in |
| 11080 | yes:no ) |
| 11081 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11082 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11083 | { 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] | 11084 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 11085 | ( |
| 11086 | cat <<\_ASBOX |
| 11087 | ## ------------------------------------ ## |
| 11088 | ## Report this to bug-autoconf@gnu.org. ## |
| 11089 | ## ------------------------------------ ## |
| 11090 | _ASBOX |
| 11091 | ) | |
| 11092 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11093 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11094 | no:yes ) |
| 11095 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 11096 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 11097 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 11098 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 11099 | { 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] | 11100 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 11101 | ( |
| 11102 | cat <<\_ASBOX |
| 11103 | ## ------------------------------------ ## |
| 11104 | ## Report this to bug-autoconf@gnu.org. ## |
| 11105 | ## ------------------------------------ ## |
| 11106 | _ASBOX |
| 11107 | ) | |
| 11108 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11109 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11110 | esac |
| 11111 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 11112 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 11113 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11115 | else |
| 11116 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11117 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11118 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 11119 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 11120 | |
| 11121 | fi |
| 11122 | if test $ac_cv_header_cthreads_h = yes; then |
| 11123 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11124 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11125 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11126 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11127 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11128 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11129 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11130 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11131 | |
| 11132 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11133 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11134 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11135 | |
| 11136 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11137 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11138 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11139 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11140 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11141 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 11142 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 11143 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11145 | fi |
| 11146 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 11147 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11148 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11149 | # Is the header compilable? |
| 11150 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 11151 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 11152 | cat >conftest.$ac_ext <<_ACEOF |
| 11153 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11154 | /* confdefs.h. */ |
| 11155 | _ACEOF |
| 11156 | cat confdefs.h >>conftest.$ac_ext |
| 11157 | cat >>conftest.$ac_ext <<_ACEOF |
| 11158 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11159 | $ac_includes_default |
| 11160 | #include <mach/cthreads.h> |
| 11161 | _ACEOF |
| 11162 | rm -f conftest.$ac_objext |
| 11163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11164 | (eval $ac_compile) 2>&5 |
| 11165 | ac_status=$? |
| 11166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11167 | (exit $ac_status); } && |
| 11168 | { ac_try='test -s conftest.$ac_objext' |
| 11169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11170 | (eval $ac_try) 2>&5 |
| 11171 | ac_status=$? |
| 11172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11173 | (exit $ac_status); }; }; then |
| 11174 | ac_header_compiler=yes |
| 11175 | else |
| 11176 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11178 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11179 | ac_header_compiler=no |
| 11180 | fi |
| 11181 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11182 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11183 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11184 | |
| 11185 | # Is the header present? |
| 11186 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 11187 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 11188 | cat >conftest.$ac_ext <<_ACEOF |
| 11189 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11190 | /* confdefs.h. */ |
| 11191 | _ACEOF |
| 11192 | cat confdefs.h >>conftest.$ac_ext |
| 11193 | cat >>conftest.$ac_ext <<_ACEOF |
| 11194 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11195 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11196 | _ACEOF |
| 11197 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11198 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11199 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11200 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11201 | rm -f conftest.er1 |
| 11202 | cat conftest.err >&5 |
| 11203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11204 | (exit $ac_status); } >/dev/null; then |
| 11205 | if test -s conftest.err; then |
| 11206 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11207 | else |
| 11208 | ac_cpp_err= |
| 11209 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11210 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11211 | ac_cpp_err=yes |
| 11212 | fi |
| 11213 | if test -z "$ac_cpp_err"; then |
| 11214 | ac_header_preproc=yes |
| 11215 | else |
| 11216 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11218 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11219 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11220 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11221 | rm -f conftest.err conftest.$ac_ext |
| 11222 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11223 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11224 | |
| 11225 | # So? What about this header? |
| 11226 | case $ac_header_compiler:$ac_header_preproc in |
| 11227 | yes:no ) |
| 11228 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11229 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11230 | { 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] | 11231 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 11232 | ( |
| 11233 | cat <<\_ASBOX |
| 11234 | ## ------------------------------------ ## |
| 11235 | ## Report this to bug-autoconf@gnu.org. ## |
| 11236 | ## ------------------------------------ ## |
| 11237 | _ASBOX |
| 11238 | ) | |
| 11239 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11240 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11241 | no:yes ) |
| 11242 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 11243 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 11244 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 11245 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 11246 | { 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] | 11247 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 11248 | ( |
| 11249 | cat <<\_ASBOX |
| 11250 | ## ------------------------------------ ## |
| 11251 | ## Report this to bug-autoconf@gnu.org. ## |
| 11252 | ## ------------------------------------ ## |
| 11253 | _ASBOX |
| 11254 | ) | |
| 11255 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11256 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11257 | esac |
| 11258 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 11259 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 11260 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11262 | else |
| 11263 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11264 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11265 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 11266 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 11267 | |
| 11268 | fi |
| 11269 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 11270 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11271 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11272 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11273 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11274 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11275 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11276 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11277 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11278 | |
| 11279 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11280 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11281 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11282 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11283 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11284 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11285 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11286 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 11287 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 11288 | |
| 11289 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11290 | if test "${with_pth+set}" = set; then |
| 11291 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11292 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11293 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11294 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11295 | #define WITH_THREAD 1 |
| 11296 | _ACEOF |
| 11297 | |
| 11298 | |
| 11299 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11300 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11301 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11302 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11303 | LIBS="-lpth $LIBS" |
| 11304 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11305 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11306 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11307 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11308 | |
| 11309 | # Just looking for pthread_create in libpthread is not enough: |
| 11310 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 11311 | # So we really have to include pthread.h, and then link. |
| 11312 | _libs=$LIBS |
| 11313 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11314 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 11315 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 11316 | cat >conftest.$ac_ext <<_ACEOF |
| 11317 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11318 | /* confdefs.h. */ |
| 11319 | _ACEOF |
| 11320 | cat confdefs.h >>conftest.$ac_ext |
| 11321 | cat >>conftest.$ac_ext <<_ACEOF |
| 11322 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11323 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11324 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11325 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11326 | int |
| 11327 | main () |
| 11328 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11329 | |
| 11330 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11331 | ; |
| 11332 | return 0; |
| 11333 | } |
| 11334 | _ACEOF |
| 11335 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11337 | (eval $ac_link) 2>&5 |
| 11338 | ac_status=$? |
| 11339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11340 | (exit $ac_status); } && |
| 11341 | { ac_try='test -s conftest$ac_exeext' |
| 11342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11343 | (eval $ac_try) 2>&5 |
| 11344 | ac_status=$? |
| 11345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11346 | (exit $ac_status); }; }; then |
| 11347 | |
| 11348 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11349 | echo "${ECHO_T}yes" >&6 |
| 11350 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11351 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11352 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11353 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11354 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11355 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11356 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11357 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11359 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11360 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11361 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11362 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 11363 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 11364 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 11365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11366 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11367 | cat >conftest.$ac_ext <<_ACEOF |
| 11368 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11369 | /* confdefs.h. */ |
| 11370 | _ACEOF |
| 11371 | cat confdefs.h >>conftest.$ac_ext |
| 11372 | cat >>conftest.$ac_ext <<_ACEOF |
| 11373 | /* end confdefs.h. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11374 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11375 | which can conflict with char pthread_detach (); below. |
| 11376 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 11377 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 11378 | including <limits.h> includes <sys/time.h> and causes problems |
| 11379 | checking for functions defined therein. */ |
| 11380 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11381 | # include <limits.h> |
| 11382 | #else |
| 11383 | # include <assert.h> |
| 11384 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11385 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11386 | #ifdef __cplusplus |
| 11387 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11388 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11389 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11390 | /* 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] | 11391 | builtin and then its argument prototype would still apply. */ |
| 11392 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11393 | /* The GNU C library defines this for functions which it implements |
| 11394 | to always fail with ENOSYS. Some functions are actually named |
| 11395 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 11396 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11397 | choke me |
| 11398 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11399 | char (*f) () = pthread_detach; |
| 11400 | #endif |
| 11401 | #ifdef __cplusplus |
| 11402 | } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11403 | #endif |
| 11404 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11405 | int |
| 11406 | main () |
| 11407 | { |
| 11408 | return f != pthread_detach; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11409 | ; |
| 11410 | return 0; |
| 11411 | } |
| 11412 | _ACEOF |
| 11413 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11414 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11415 | (eval $ac_link) 2>&5 |
| 11416 | ac_status=$? |
| 11417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11418 | (exit $ac_status); } && |
| 11419 | { ac_try='test -s conftest$ac_exeext' |
| 11420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11421 | (eval $ac_try) 2>&5 |
| 11422 | ac_status=$? |
| 11423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11424 | (exit $ac_status); }; }; then |
| 11425 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11426 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11427 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11428 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11429 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11430 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11431 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11432 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11433 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11434 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 11435 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 11436 | if test $ac_cv_func_pthread_detach = yes; then |
| 11437 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11438 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11439 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11440 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11441 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11442 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11443 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11444 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11445 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11446 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 11447 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 11448 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11450 | fi |
| 11451 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 11452 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 11453 | else |
| 11454 | # Is the header compilable? |
| 11455 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 11456 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 11457 | cat >conftest.$ac_ext <<_ACEOF |
| 11458 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11459 | /* confdefs.h. */ |
| 11460 | _ACEOF |
| 11461 | cat confdefs.h >>conftest.$ac_ext |
| 11462 | cat >>conftest.$ac_ext <<_ACEOF |
| 11463 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11464 | $ac_includes_default |
| 11465 | #include <atheos/threads.h> |
| 11466 | _ACEOF |
| 11467 | rm -f conftest.$ac_objext |
| 11468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11469 | (eval $ac_compile) 2>&5 |
| 11470 | ac_status=$? |
| 11471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11472 | (exit $ac_status); } && |
| 11473 | { ac_try='test -s conftest.$ac_objext' |
| 11474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11475 | (eval $ac_try) 2>&5 |
| 11476 | ac_status=$? |
| 11477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11478 | (exit $ac_status); }; }; then |
| 11479 | ac_header_compiler=yes |
| 11480 | else |
| 11481 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11483 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11484 | ac_header_compiler=no |
| 11485 | fi |
| 11486 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11487 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11488 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11489 | |
| 11490 | # Is the header present? |
| 11491 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 11492 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 11493 | cat >conftest.$ac_ext <<_ACEOF |
| 11494 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11495 | /* confdefs.h. */ |
| 11496 | _ACEOF |
| 11497 | cat confdefs.h >>conftest.$ac_ext |
| 11498 | cat >>conftest.$ac_ext <<_ACEOF |
| 11499 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11500 | #include <atheos/threads.h> |
| 11501 | _ACEOF |
| 11502 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11503 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11504 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11505 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11506 | rm -f conftest.er1 |
| 11507 | cat conftest.err >&5 |
| 11508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11509 | (exit $ac_status); } >/dev/null; then |
| 11510 | if test -s conftest.err; then |
| 11511 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11512 | else |
| 11513 | ac_cpp_err= |
| 11514 | fi |
| 11515 | else |
| 11516 | ac_cpp_err=yes |
| 11517 | fi |
| 11518 | if test -z "$ac_cpp_err"; then |
| 11519 | ac_header_preproc=yes |
| 11520 | else |
| 11521 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11523 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11524 | ac_header_preproc=no |
| 11525 | fi |
| 11526 | rm -f conftest.err conftest.$ac_ext |
| 11527 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11528 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11529 | |
| 11530 | # So? What about this header? |
| 11531 | case $ac_header_compiler:$ac_header_preproc in |
| 11532 | yes:no ) |
| 11533 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11534 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11535 | { 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] | 11536 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 11537 | ( |
| 11538 | cat <<\_ASBOX |
| 11539 | ## ------------------------------------ ## |
| 11540 | ## Report this to bug-autoconf@gnu.org. ## |
| 11541 | ## ------------------------------------ ## |
| 11542 | _ASBOX |
| 11543 | ) | |
| 11544 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11545 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11546 | no:yes ) |
| 11547 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 11548 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 11549 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 11550 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 11551 | { 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] | 11552 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 11553 | ( |
| 11554 | cat <<\_ASBOX |
| 11555 | ## ------------------------------------ ## |
| 11556 | ## Report this to bug-autoconf@gnu.org. ## |
| 11557 | ## ------------------------------------ ## |
| 11558 | _ASBOX |
| 11559 | ) | |
| 11560 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11561 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11562 | esac |
| 11563 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 11564 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 11565 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11567 | else |
| 11568 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 11569 | fi |
| 11570 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 11571 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 11572 | |
| 11573 | fi |
| 11574 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 11575 | cat >>confdefs.h <<\_ACEOF |
| 11576 | #define WITH_THREAD 1 |
| 11577 | _ACEOF |
| 11578 | |
| 11579 | |
| 11580 | cat >>confdefs.h <<\_ACEOF |
| 11581 | #define ATHEOS_THREADS 1 |
| 11582 | _ACEOF |
| 11583 | |
| 11584 | THREADOBJ="Python/thread.o" |
| 11585 | else |
| 11586 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11587 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11588 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 11589 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 11590 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11592 | fi |
| 11593 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 11594 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11595 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11596 | # Is the header compilable? |
| 11597 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 11598 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 11599 | cat >conftest.$ac_ext <<_ACEOF |
| 11600 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11601 | /* confdefs.h. */ |
| 11602 | _ACEOF |
| 11603 | cat confdefs.h >>conftest.$ac_ext |
| 11604 | cat >>conftest.$ac_ext <<_ACEOF |
| 11605 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11606 | $ac_includes_default |
| 11607 | #include <kernel/OS.h> |
| 11608 | _ACEOF |
| 11609 | rm -f conftest.$ac_objext |
| 11610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11611 | (eval $ac_compile) 2>&5 |
| 11612 | ac_status=$? |
| 11613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11614 | (exit $ac_status); } && |
| 11615 | { ac_try='test -s conftest.$ac_objext' |
| 11616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11617 | (eval $ac_try) 2>&5 |
| 11618 | ac_status=$? |
| 11619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11620 | (exit $ac_status); }; }; then |
| 11621 | ac_header_compiler=yes |
| 11622 | else |
| 11623 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11624 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11626 | ac_header_compiler=no |
| 11627 | fi |
| 11628 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11629 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11630 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11631 | |
| 11632 | # Is the header present? |
| 11633 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 11634 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 11635 | cat >conftest.$ac_ext <<_ACEOF |
| 11636 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11637 | /* confdefs.h. */ |
| 11638 | _ACEOF |
| 11639 | cat confdefs.h >>conftest.$ac_ext |
| 11640 | cat >>conftest.$ac_ext <<_ACEOF |
| 11641 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11642 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11643 | _ACEOF |
| 11644 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11645 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11646 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11647 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11648 | rm -f conftest.er1 |
| 11649 | cat conftest.err >&5 |
| 11650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11651 | (exit $ac_status); } >/dev/null; then |
| 11652 | if test -s conftest.err; then |
| 11653 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11654 | else |
| 11655 | ac_cpp_err= |
| 11656 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11657 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11658 | ac_cpp_err=yes |
| 11659 | fi |
| 11660 | if test -z "$ac_cpp_err"; then |
| 11661 | ac_header_preproc=yes |
| 11662 | else |
| 11663 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11665 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11666 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11667 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11668 | rm -f conftest.err conftest.$ac_ext |
| 11669 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11670 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11672 | # So? What about this header? |
| 11673 | case $ac_header_compiler:$ac_header_preproc in |
| 11674 | yes:no ) |
| 11675 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11676 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11677 | { 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] | 11678 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
| 11679 | ( |
| 11680 | cat <<\_ASBOX |
| 11681 | ## ------------------------------------ ## |
| 11682 | ## Report this to bug-autoconf@gnu.org. ## |
| 11683 | ## ------------------------------------ ## |
| 11684 | _ASBOX |
| 11685 | ) | |
| 11686 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11687 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11688 | no:yes ) |
| 11689 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 11690 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 11691 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 11692 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 11693 | { 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] | 11694 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
| 11695 | ( |
| 11696 | cat <<\_ASBOX |
| 11697 | ## ------------------------------------ ## |
| 11698 | ## Report this to bug-autoconf@gnu.org. ## |
| 11699 | ## ------------------------------------ ## |
| 11700 | _ASBOX |
| 11701 | ) | |
| 11702 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11703 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11704 | esac |
| 11705 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 11706 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 11707 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11709 | else |
| 11710 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 11711 | fi |
| 11712 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 11713 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 11714 | |
| 11715 | fi |
| 11716 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 11717 | cat >>confdefs.h <<\_ACEOF |
| 11718 | #define WITH_THREAD 1 |
| 11719 | _ACEOF |
| 11720 | |
| 11721 | |
| 11722 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11723 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11724 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11725 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11726 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11727 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11728 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11729 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 11730 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 11731 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 11732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11733 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11734 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11735 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11736 | cat >conftest.$ac_ext <<_ACEOF |
| 11737 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11738 | /* confdefs.h. */ |
| 11739 | _ACEOF |
| 11740 | cat confdefs.h >>conftest.$ac_ext |
| 11741 | cat >>conftest.$ac_ext <<_ACEOF |
| 11742 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11743 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11744 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11745 | #ifdef __cplusplus |
| 11746 | extern "C" |
| 11747 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11748 | /* 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] | 11749 | builtin and then its argument prototype would still apply. */ |
| 11750 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11751 | int |
| 11752 | main () |
| 11753 | { |
| 11754 | pthread_create (); |
| 11755 | ; |
| 11756 | return 0; |
| 11757 | } |
| 11758 | _ACEOF |
| 11759 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11760 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11761 | (eval $ac_link) 2>&5 |
| 11762 | ac_status=$? |
| 11763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11764 | (exit $ac_status); } && |
| 11765 | { ac_try='test -s conftest$ac_exeext' |
| 11766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11767 | (eval $ac_try) 2>&5 |
| 11768 | ac_status=$? |
| 11769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11770 | (exit $ac_status); }; }; then |
| 11771 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11772 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11773 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11774 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11775 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11776 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11777 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11778 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11779 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11780 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11781 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 11782 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 11783 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 11784 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11785 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11786 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11787 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11788 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11789 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11790 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11791 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11792 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11793 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 11794 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 11795 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 11796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11797 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11798 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11799 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11800 | cat >conftest.$ac_ext <<_ACEOF |
| 11801 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11802 | /* confdefs.h. */ |
| 11803 | _ACEOF |
| 11804 | cat confdefs.h >>conftest.$ac_ext |
| 11805 | cat >>conftest.$ac_ext <<_ACEOF |
| 11806 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11807 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11808 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11809 | #ifdef __cplusplus |
| 11810 | extern "C" |
| 11811 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11812 | /* 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] | 11813 | builtin and then its argument prototype would still apply. */ |
| 11814 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11815 | int |
| 11816 | main () |
| 11817 | { |
| 11818 | pthread_create (); |
| 11819 | ; |
| 11820 | return 0; |
| 11821 | } |
| 11822 | _ACEOF |
| 11823 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11824 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11825 | (eval $ac_link) 2>&5 |
| 11826 | ac_status=$? |
| 11827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11828 | (exit $ac_status); } && |
| 11829 | { ac_try='test -s conftest$ac_exeext' |
| 11830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11831 | (eval $ac_try) 2>&5 |
| 11832 | ac_status=$? |
| 11833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11834 | (exit $ac_status); }; }; then |
| 11835 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11836 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11837 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11838 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11839 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11840 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11841 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11842 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11843 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11844 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11845 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 11846 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 11847 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 11848 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11849 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11850 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11851 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11852 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11853 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11854 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11855 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11856 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11857 | echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5 |
| 11858 | echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6 |
| 11859 | if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then |
| 11860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11861 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11862 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11863 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11864 | cat >conftest.$ac_ext <<_ACEOF |
| 11865 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11866 | /* confdefs.h. */ |
| 11867 | _ACEOF |
| 11868 | cat confdefs.h >>conftest.$ac_ext |
| 11869 | cat >>conftest.$ac_ext <<_ACEOF |
| 11870 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11871 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11872 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11873 | #ifdef __cplusplus |
| 11874 | extern "C" |
| 11875 | #endif |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11876 | /* 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] | 11877 | builtin and then its argument prototype would still apply. */ |
| 11878 | char __d6_pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11879 | int |
| 11880 | main () |
| 11881 | { |
| 11882 | __d6_pthread_create (); |
| 11883 | ; |
| 11884 | return 0; |
| 11885 | } |
| 11886 | _ACEOF |
| 11887 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11888 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11889 | (eval $ac_link) 2>&5 |
| 11890 | ac_status=$? |
| 11891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11892 | (exit $ac_status); } && |
| 11893 | { ac_try='test -s conftest$ac_exeext' |
| 11894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11895 | (eval $ac_try) 2>&5 |
| 11896 | ac_status=$? |
| 11897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11898 | (exit $ac_status); }; }; then |
| 11899 | ac_cv_lib_thread___d6_pthread_create=yes |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11900 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11901 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11904 | ac_cv_lib_thread___d6_pthread_create=no |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11905 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11906 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11907 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11908 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11909 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5 |
| 11910 | echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6 |
| 11911 | if test $ac_cv_lib_thread___d6_pthread_create = yes; then |
| 11912 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11913 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11914 | _ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11915 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 11916 | echo Systems with __d6_pthread_create are not supported anymore. |
| 11917 | echo See README |
| 11918 | exit 1 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11919 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11920 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11921 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11922 | else |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11923 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11924 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 11925 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 11926 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 11927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11928 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11929 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11930 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11931 | cat >conftest.$ac_ext <<_ACEOF |
| 11932 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11933 | /* confdefs.h. */ |
| 11934 | _ACEOF |
| 11935 | cat confdefs.h >>conftest.$ac_ext |
| 11936 | cat >>conftest.$ac_ext <<_ACEOF |
| 11937 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11938 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11939 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11940 | #ifdef __cplusplus |
| 11941 | extern "C" |
| 11942 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11943 | /* 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] | 11944 | builtin and then its argument prototype would still apply. */ |
| 11945 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11946 | int |
| 11947 | main () |
| 11948 | { |
| 11949 | __pthread_create_system (); |
| 11950 | ; |
| 11951 | return 0; |
| 11952 | } |
| 11953 | _ACEOF |
| 11954 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11955 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11956 | (eval $ac_link) 2>&5 |
| 11957 | ac_status=$? |
| 11958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11959 | (exit $ac_status); } && |
| 11960 | { ac_try='test -s conftest$ac_exeext' |
| 11961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11962 | (eval $ac_try) 2>&5 |
| 11963 | ac_status=$? |
| 11964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11965 | (exit $ac_status); }; }; then |
| 11966 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11967 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11968 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11970 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11971 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11972 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11973 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11974 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11975 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11976 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 11977 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 11978 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 11979 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11980 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11981 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11982 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11983 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11984 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11985 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11986 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11987 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11988 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 11989 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 11990 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 11991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11992 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11993 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11994 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11995 | cat >conftest.$ac_ext <<_ACEOF |
| 11996 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11997 | /* confdefs.h. */ |
| 11998 | _ACEOF |
| 11999 | cat confdefs.h >>conftest.$ac_ext |
| 12000 | cat >>conftest.$ac_ext <<_ACEOF |
| 12001 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12002 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12003 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12004 | #ifdef __cplusplus |
| 12005 | extern "C" |
| 12006 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12007 | /* 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] | 12008 | builtin and then its argument prototype would still apply. */ |
| 12009 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12010 | int |
| 12011 | main () |
| 12012 | { |
| 12013 | pthread_create (); |
| 12014 | ; |
| 12015 | return 0; |
| 12016 | } |
| 12017 | _ACEOF |
| 12018 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12019 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12020 | (eval $ac_link) 2>&5 |
| 12021 | ac_status=$? |
| 12022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12023 | (exit $ac_status); } && |
| 12024 | { ac_try='test -s conftest$ac_exeext' |
| 12025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12026 | (eval $ac_try) 2>&5 |
| 12027 | ac_status=$? |
| 12028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12029 | (exit $ac_status); }; }; then |
| 12030 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12031 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12032 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12034 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12035 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12036 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12037 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12038 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12039 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12040 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 12041 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 12042 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 12043 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12044 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12045 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12046 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12047 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12048 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12049 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12050 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 12051 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12052 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 12053 | fi |
| 12054 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12055 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12056 | fi |
| 12057 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 12058 | fi |
| 12059 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12060 | fi |
| 12061 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12062 | fi |
| 12063 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12064 | fi |
| 12065 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12066 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12067 | fi |
| 12068 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12069 | |
| 12070 | fi |
| 12071 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12072 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12073 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12074 | fi; |
| 12075 | fi |
| 12076 | |
| 12077 | |
| 12078 | fi |
| 12079 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12080 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12081 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12082 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 12083 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 12084 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 12085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12086 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12087 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12088 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12089 | cat >conftest.$ac_ext <<_ACEOF |
| 12090 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12091 | /* confdefs.h. */ |
| 12092 | _ACEOF |
| 12093 | cat confdefs.h >>conftest.$ac_ext |
| 12094 | cat >>conftest.$ac_ext <<_ACEOF |
| 12095 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12096 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12097 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12098 | #ifdef __cplusplus |
| 12099 | extern "C" |
| 12100 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12101 | /* 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] | 12102 | builtin and then its argument prototype would still apply. */ |
| 12103 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12104 | int |
| 12105 | main () |
| 12106 | { |
| 12107 | usconfig (); |
| 12108 | ; |
| 12109 | return 0; |
| 12110 | } |
| 12111 | _ACEOF |
| 12112 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12113 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12114 | (eval $ac_link) 2>&5 |
| 12115 | ac_status=$? |
| 12116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12117 | (exit $ac_status); } && |
| 12118 | { ac_try='test -s conftest$ac_exeext' |
| 12119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12120 | (eval $ac_try) 2>&5 |
| 12121 | ac_status=$? |
| 12122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12123 | (exit $ac_status); }; }; then |
| 12124 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12125 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12126 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12128 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12129 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12130 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12131 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12132 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12133 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12134 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 12135 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 12136 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 12137 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12138 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12139 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12140 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12141 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12142 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12143 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12144 | fi |
| 12145 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12146 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 12147 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12148 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 12149 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 12150 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 12151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12152 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12153 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12154 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12155 | cat >conftest.$ac_ext <<_ACEOF |
| 12156 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12157 | /* confdefs.h. */ |
| 12158 | _ACEOF |
| 12159 | cat confdefs.h >>conftest.$ac_ext |
| 12160 | cat >>conftest.$ac_ext <<_ACEOF |
| 12161 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12162 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12163 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12164 | #ifdef __cplusplus |
| 12165 | extern "C" |
| 12166 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12167 | /* 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] | 12168 | builtin and then its argument prototype would still apply. */ |
| 12169 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12170 | int |
| 12171 | main () |
| 12172 | { |
| 12173 | thr_create (); |
| 12174 | ; |
| 12175 | return 0; |
| 12176 | } |
| 12177 | _ACEOF |
| 12178 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12179 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12180 | (eval $ac_link) 2>&5 |
| 12181 | ac_status=$? |
| 12182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12183 | (exit $ac_status); } && |
| 12184 | { ac_try='test -s conftest$ac_exeext' |
| 12185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12186 | (eval $ac_try) 2>&5 |
| 12187 | ac_status=$? |
| 12188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12189 | (exit $ac_status); }; }; then |
| 12190 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12191 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12192 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12194 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12195 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12196 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12197 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12198 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12199 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12200 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 12201 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 12202 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 12203 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12204 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12205 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12206 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12207 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12208 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12209 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12210 | fi |
| 12211 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12212 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12213 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12214 | if test "$USE_THREAD_MODULE" != "#" |
| 12215 | then |
| 12216 | # If the above checks didn't disable threads, (at least) OSF1 |
| 12217 | # needs this '-threads' argument during linking. |
| 12218 | case $ac_sys_system in |
| 12219 | OSF1) LDLAST=-threads;; |
| 12220 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 12221 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12222 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12223 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12224 | if test "$posix_threads" = "yes"; then |
| 12225 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12226 | |
| 12227 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12228 | #define _POSIX_THREADS 1 |
| 12229 | _ACEOF |
| 12230 | |
| 12231 | fi |
| 12232 | |
| 12233 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 12234 | case $ac_sys_system/$ac_sys_release in |
| 12235 | SunOS/5.6) |
| 12236 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12237 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 12238 | _ACEOF |
| 12239 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12240 | ;; |
| 12241 | SunOS/5.8) |
| 12242 | cat >>confdefs.h <<\_ACEOF |
| 12243 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 12244 | _ACEOF |
| 12245 | |
| 12246 | ;; |
| 12247 | esac |
| 12248 | |
| 12249 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 12250 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 12251 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 12252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12253 | else |
| 12254 | if test "$cross_compiling" = yes; then |
| 12255 | ac_cv_pthread_system_supported=no |
| 12256 | else |
| 12257 | cat >conftest.$ac_ext <<_ACEOF |
| 12258 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12259 | /* confdefs.h. */ |
| 12260 | _ACEOF |
| 12261 | cat confdefs.h >>conftest.$ac_ext |
| 12262 | cat >>conftest.$ac_ext <<_ACEOF |
| 12263 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12264 | #include <pthread.h> |
| 12265 | void *foo(void *parm) { |
| 12266 | return NULL; |
| 12267 | } |
| 12268 | main() { |
| 12269 | pthread_attr_t attr; |
| 12270 | pthread_t id; |
| 12271 | if (pthread_attr_init(&attr)) exit(-1); |
| 12272 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 12273 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 12274 | exit(0); |
| 12275 | } |
| 12276 | _ACEOF |
| 12277 | rm -f conftest$ac_exeext |
| 12278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12279 | (eval $ac_link) 2>&5 |
| 12280 | ac_status=$? |
| 12281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12282 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12284 | (eval $ac_try) 2>&5 |
| 12285 | ac_status=$? |
| 12286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12287 | (exit $ac_status); }; }; then |
| 12288 | ac_cv_pthread_system_supported=yes |
| 12289 | else |
| 12290 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12291 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12293 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12294 | ( exit $ac_status ) |
| 12295 | ac_cv_pthread_system_supported=no |
| 12296 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12297 | 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] | 12298 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12299 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12300 | fi |
| 12301 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12302 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 12303 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
| 12304 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 12305 | |
| 12306 | cat >>confdefs.h <<\_ACEOF |
| 12307 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 12308 | _ACEOF |
| 12309 | |
| 12310 | fi |
| 12311 | |
| 12312 | for ac_func in pthread_sigmask |
| 12313 | do |
| 12314 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12315 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12316 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12317 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12319 | else |
| 12320 | cat >conftest.$ac_ext <<_ACEOF |
| 12321 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12322 | /* confdefs.h. */ |
| 12323 | _ACEOF |
| 12324 | cat confdefs.h >>conftest.$ac_ext |
| 12325 | cat >>conftest.$ac_ext <<_ACEOF |
| 12326 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12327 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12328 | which can conflict with char $ac_func (); below. |
| 12329 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 12330 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 12331 | including <limits.h> includes <sys/time.h> and causes problems |
| 12332 | checking for functions defined therein. */ |
| 12333 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12334 | # include <limits.h> |
| 12335 | #else |
| 12336 | # include <assert.h> |
| 12337 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12338 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12339 | #ifdef __cplusplus |
| 12340 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12341 | { |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12342 | #endif |
| 12343 | /* We use char because int might match the return type of a gcc2 |
| 12344 | builtin and then its argument prototype would still apply. */ |
| 12345 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12346 | /* The GNU C library defines this for functions which it implements |
| 12347 | to always fail with ENOSYS. Some functions are actually named |
| 12348 | something starting with __ and the normal name is an alias. */ |
| 12349 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12350 | choke me |
| 12351 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12352 | char (*f) () = $ac_func; |
| 12353 | #endif |
| 12354 | #ifdef __cplusplus |
| 12355 | } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12356 | #endif |
| 12357 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12358 | int |
| 12359 | main () |
| 12360 | { |
| 12361 | return f != $ac_func; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12362 | ; |
| 12363 | return 0; |
| 12364 | } |
| 12365 | _ACEOF |
| 12366 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12368 | (eval $ac_link) 2>&5 |
| 12369 | ac_status=$? |
| 12370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12371 | (exit $ac_status); } && |
| 12372 | { ac_try='test -s conftest$ac_exeext' |
| 12373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12374 | (eval $ac_try) 2>&5 |
| 12375 | ac_status=$? |
| 12376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12377 | (exit $ac_status); }; }; then |
| 12378 | eval "$as_ac_var=yes" |
| 12379 | else |
| 12380 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12382 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12383 | eval "$as_ac_var=no" |
| 12384 | fi |
| 12385 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12386 | fi |
| 12387 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12388 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12389 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12390 | cat >>confdefs.h <<_ACEOF |
| 12391 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12392 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12393 | case $ac_sys_system in |
| 12394 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12395 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12396 | cat >>confdefs.h <<\_ACEOF |
| 12397 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 12398 | _ACEOF |
| 12399 | |
| 12400 | ;; |
| 12401 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12402 | fi |
| 12403 | done |
| 12404 | |
| 12405 | fi |
| 12406 | |
| 12407 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12408 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12409 | |
| 12410 | |
| 12411 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 12412 | 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] | 12413 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 12414 | if test "${enable_ipv6+set}" = set; then |
| 12415 | enableval="$enable_ipv6" |
| 12416 | case "$enableval" in |
| 12417 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12418 | echo "$as_me:$LINENO: result: no" >&5 |
| 12419 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12420 | ipv6=no |
| 12421 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12422 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 12423 | echo "${ECHO_T}yes" >&6 |
| 12424 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12425 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12426 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12427 | |
| 12428 | ipv6=yes |
| 12429 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12430 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12431 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12432 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12433 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12434 | echo "$as_me:$LINENO: result: no" >&5 |
| 12435 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12436 | ipv6=no |
| 12437 | |
| 12438 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12439 | cat >conftest.$ac_ext <<_ACEOF |
| 12440 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12441 | /* confdefs.h. */ |
| 12442 | _ACEOF |
| 12443 | cat confdefs.h >>conftest.$ac_ext |
| 12444 | cat >>conftest.$ac_ext <<_ACEOF |
| 12445 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12446 | /* AF_INET6 available check */ |
| 12447 | #include <sys/types.h> |
| 12448 | #include <sys/socket.h> |
| 12449 | main() |
| 12450 | { |
| 12451 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 12452 | exit(1); |
| 12453 | else |
| 12454 | exit(0); |
| 12455 | } |
| 12456 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12457 | _ACEOF |
| 12458 | rm -f conftest$ac_exeext |
| 12459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12460 | (eval $ac_link) 2>&5 |
| 12461 | ac_status=$? |
| 12462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12463 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12465 | (eval $ac_try) 2>&5 |
| 12466 | ac_status=$? |
| 12467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12468 | (exit $ac_status); }; }; then |
| 12469 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12470 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12471 | ipv6=yes |
| 12472 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12473 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12474 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12476 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12477 | ( exit $ac_status ) |
| 12478 | echo "$as_me:$LINENO: result: no" >&5 |
| 12479 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12480 | ipv6=no |
| 12481 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12482 | 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] | 12483 | fi |
| 12484 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12485 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12486 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 12487 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 12488 | cat >conftest.$ac_ext <<_ACEOF |
| 12489 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12490 | /* confdefs.h. */ |
| 12491 | _ACEOF |
| 12492 | cat confdefs.h >>conftest.$ac_ext |
| 12493 | cat >>conftest.$ac_ext <<_ACEOF |
| 12494 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12495 | #include <sys/types.h> |
| 12496 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12497 | int |
| 12498 | main () |
| 12499 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12500 | struct sockaddr_in6 x; |
| 12501 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12502 | ; |
| 12503 | return 0; |
| 12504 | } |
| 12505 | _ACEOF |
| 12506 | rm -f conftest.$ac_objext |
| 12507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12508 | (eval $ac_compile) 2>&5 |
| 12509 | ac_status=$? |
| 12510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12511 | (exit $ac_status); } && |
| 12512 | { ac_try='test -s conftest.$ac_objext' |
| 12513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12514 | (eval $ac_try) 2>&5 |
| 12515 | ac_status=$? |
| 12516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12517 | (exit $ac_status); }; }; then |
| 12518 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12519 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12520 | ipv6=yes |
| 12521 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12522 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12524 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12525 | echo "$as_me:$LINENO: result: no" >&5 |
| 12526 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12527 | ipv6=no |
| 12528 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12529 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12530 | fi |
| 12531 | |
| 12532 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12533 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12534 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12535 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12536 | |
| 12537 | fi |
| 12538 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12539 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12540 | |
| 12541 | ipv6type=unknown |
| 12542 | ipv6lib=none |
| 12543 | ipv6trylibc=no |
| 12544 | |
| 12545 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12546 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 12547 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 12548 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 12549 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12550 | case $i in |
| 12551 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12552 | cat >conftest.$ac_ext <<_ACEOF |
| 12553 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12554 | /* confdefs.h. */ |
| 12555 | _ACEOF |
| 12556 | cat confdefs.h >>conftest.$ac_ext |
| 12557 | cat >>conftest.$ac_ext <<_ACEOF |
| 12558 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12559 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12560 | #include <netinet/in.h> |
| 12561 | #ifdef IPV6_INRIA_VERSION |
| 12562 | yes |
| 12563 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12564 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12565 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12566 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12567 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12568 | fi |
| 12569 | rm -f conftest* |
| 12570 | |
| 12571 | ;; |
| 12572 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12573 | cat >conftest.$ac_ext <<_ACEOF |
| 12574 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12575 | /* confdefs.h. */ |
| 12576 | _ACEOF |
| 12577 | cat confdefs.h >>conftest.$ac_ext |
| 12578 | cat >>conftest.$ac_ext <<_ACEOF |
| 12579 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12580 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12581 | #include <netinet/in.h> |
| 12582 | #ifdef __KAME__ |
| 12583 | yes |
| 12584 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12585 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12586 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12587 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12588 | ipv6type=$i; |
| 12589 | ipv6lib=inet6 |
| 12590 | ipv6libdir=/usr/local/v6/lib |
| 12591 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12592 | fi |
| 12593 | rm -f conftest* |
| 12594 | |
| 12595 | ;; |
| 12596 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12597 | cat >conftest.$ac_ext <<_ACEOF |
| 12598 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12599 | /* confdefs.h. */ |
| 12600 | _ACEOF |
| 12601 | cat confdefs.h >>conftest.$ac_ext |
| 12602 | cat >>conftest.$ac_ext <<_ACEOF |
| 12603 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12604 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12605 | #include <features.h> |
| 12606 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 12607 | yes |
| 12608 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12609 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12610 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12611 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12612 | ipv6type=$i; |
| 12613 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12614 | fi |
| 12615 | rm -f conftest* |
| 12616 | |
| 12617 | ;; |
| 12618 | linux-inet6) |
| 12619 | if test -d /usr/inet6; then |
| 12620 | ipv6type=$i |
| 12621 | ipv6lib=inet6 |
| 12622 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 12623 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12624 | fi |
| 12625 | ;; |
| 12626 | solaris) |
| 12627 | if test -f /etc/netconfig; then |
| 12628 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 12629 | ipv6type=$i |
| 12630 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12631 | fi |
| 12632 | fi |
| 12633 | ;; |
| 12634 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12635 | cat >conftest.$ac_ext <<_ACEOF |
| 12636 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12637 | /* confdefs.h. */ |
| 12638 | _ACEOF |
| 12639 | cat confdefs.h >>conftest.$ac_ext |
| 12640 | cat >>conftest.$ac_ext <<_ACEOF |
| 12641 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12642 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12643 | #include <sys/param.h> |
| 12644 | #ifdef _TOSHIBA_INET6 |
| 12645 | yes |
| 12646 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12647 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12648 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12649 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12650 | ipv6type=$i; |
| 12651 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12652 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12653 | fi |
| 12654 | rm -f conftest* |
| 12655 | |
| 12656 | ;; |
| 12657 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12658 | cat >conftest.$ac_ext <<_ACEOF |
| 12659 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12660 | /* confdefs.h. */ |
| 12661 | _ACEOF |
| 12662 | cat confdefs.h >>conftest.$ac_ext |
| 12663 | cat >>conftest.$ac_ext <<_ACEOF |
| 12664 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12665 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12666 | #include </usr/local/v6/include/sys/v6config.h> |
| 12667 | #ifdef __V6D__ |
| 12668 | yes |
| 12669 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12670 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12671 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12672 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12673 | ipv6type=$i; |
| 12674 | ipv6lib=v6; |
| 12675 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 12676 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12677 | fi |
| 12678 | rm -f conftest* |
| 12679 | |
| 12680 | ;; |
| 12681 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12682 | cat >conftest.$ac_ext <<_ACEOF |
| 12683 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12684 | /* confdefs.h. */ |
| 12685 | _ACEOF |
| 12686 | cat confdefs.h >>conftest.$ac_ext |
| 12687 | cat >>conftest.$ac_ext <<_ACEOF |
| 12688 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12689 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12690 | #include <sys/param.h> |
| 12691 | #ifdef _ZETA_MINAMI_INET6 |
| 12692 | yes |
| 12693 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12694 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12695 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12696 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12697 | ipv6type=$i; |
| 12698 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12699 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12700 | fi |
| 12701 | rm -f conftest* |
| 12702 | |
| 12703 | ;; |
| 12704 | esac |
| 12705 | if test "$ipv6type" != "unknown"; then |
| 12706 | break |
| 12707 | fi |
| 12708 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12709 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 12710 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12711 | fi |
| 12712 | |
| 12713 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 12714 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 12715 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 12716 | echo "using lib$ipv6lib" |
| 12717 | else |
| 12718 | if test $ipv6trylibc = "yes"; then |
| 12719 | echo "using libc" |
| 12720 | else |
| 12721 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 12722 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 12723 | echo 'ipv6 kit and compile beforehand.' |
| 12724 | exit 1 |
| 12725 | fi |
| 12726 | fi |
| 12727 | fi |
| 12728 | |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 12729 | # Check for universal newline support |
Guido van Rossum | 402905e | 2002-08-15 13:56:35 +0000 | [diff] [blame] | 12730 | echo "$as_me:$LINENO: checking for --with-universal-newlines" >&5 |
| 12731 | echo $ECHO_N "checking for --with-universal-newlines... $ECHO_C" >&6 |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 12732 | |
| 12733 | # Check whether --with-universal-newlines or --without-universal-newlines was given. |
| 12734 | if test "${with_universal_newlines+set}" = set; then |
| 12735 | withval="$with_universal_newlines" |
| 12736 | |
| 12737 | fi; |
| 12738 | |
| 12739 | if test -z "$with_universal_newlines" |
| 12740 | then with_universal_newlines="yes" |
| 12741 | fi |
Martin v. Löwis | 7e4cfcb | 2002-12-19 16:21:49 +0000 | [diff] [blame] | 12742 | if test "$with_universal_newlines" = "no" |
Martin v. Löwis | 03d00d5 | 2002-12-19 19:03:31 +0000 | [diff] [blame] | 12743 | then |
Martin v. Löwis | 7e4cfcb | 2002-12-19 16:21:49 +0000 | [diff] [blame] | 12744 | echo --without-universal-newlines is unsupported, see README |
| 12745 | exit 1 |
Martin v. Löwis | 03d00d5 | 2002-12-19 19:03:31 +0000 | [diff] [blame] | 12746 | else |
Martin v. Löwis | e8aea58 | 2002-04-16 05:51:02 +0000 | [diff] [blame] | 12747 | |
| 12748 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 12749 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 12750 | _ACEOF |
| 12751 | |
| 12752 | fi |
| 12753 | echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 |
| 12754 | echo "${ECHO_T}$with_universal_newlines" >&6 |
| 12755 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 12756 | # Check for --with-doc-strings |
| 12757 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 12758 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 12759 | |
| 12760 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 12761 | if test "${with_doc_strings+set}" = set; then |
| 12762 | withval="$with_doc_strings" |
| 12763 | |
| 12764 | fi; |
| 12765 | |
| 12766 | if test -z "$with_doc_strings" |
| 12767 | then with_doc_strings="yes" |
| 12768 | fi |
| 12769 | if test "$with_doc_strings" != "no" |
| 12770 | then |
| 12771 | |
| 12772 | cat >>confdefs.h <<\_ACEOF |
| 12773 | #define WITH_DOC_STRINGS 1 |
| 12774 | _ACEOF |
| 12775 | |
| 12776 | fi |
| 12777 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 12778 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 12779 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 12780 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12781 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 12782 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 12783 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 12784 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 12785 | if test "${with_pymalloc+set}" = set; then |
| 12786 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12787 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12788 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 12789 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12790 | if test -z "$with_pymalloc" |
| 12791 | then with_pymalloc="yes" |
| 12792 | fi |
| 12793 | if test "$with_pymalloc" != "no" |
| 12794 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12795 | |
| 12796 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12797 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12798 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12799 | |
| 12800 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12801 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 12802 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12803 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12804 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12805 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 12806 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 12807 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12808 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 12809 | if test "${with_wctype_functions+set}" = set; then |
| 12810 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12811 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12812 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12813 | then |
| 12814 | |
| 12815 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12816 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12817 | _ACEOF |
| 12818 | |
| 12819 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12820 | echo "${ECHO_T}yes" >&6 |
| 12821 | else echo "$as_me:$LINENO: result: no" >&5 |
| 12822 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12823 | fi |
| 12824 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12825 | echo "$as_me:$LINENO: result: no" >&5 |
| 12826 | echo "${ECHO_T}no" >&6 |
| 12827 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12828 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12829 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12830 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 12831 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12832 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12833 | echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5 |
| 12834 | echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6 |
| 12835 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12836 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12837 | if test "${with_sgi_dl+set}" = set; then |
| 12838 | withval="$with_sgi_dl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12839 | |
| 12840 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 12841 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 9ef3376 | 2002-12-02 22:23:56 +0000 | [diff] [blame] | 12842 | echo --with-sgi-dl is unsupported, see README |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 12843 | exit 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12844 | |
| 12845 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12846 | #define WITH_SGI_DL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12847 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12848 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12849 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12850 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 12851 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 12852 | then LDFLAGS="$LDFLAGS -L$dldir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12853 | else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5 |
| 12854 | echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;} |
| 12855 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12856 | fi |
| 12857 | DLINCLDIR=${dldir} |
| 12858 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12859 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12860 | echo "$as_me:$LINENO: result: no" >&5 |
| 12861 | echo "${ECHO_T}no" >&6 |
| 12862 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12863 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12864 | echo "$as_me:$LINENO: checking for --with-dl-dld" >&5 |
| 12865 | echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12866 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12867 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12868 | if test "${with_dl_dld+set}" = set; then |
| 12869 | withval="$with_dl_dld" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12870 | |
| 12871 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 12872 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 9ef3376 | 2002-12-02 22:23:56 +0000 | [diff] [blame] | 12873 | echo --with-dl-dld is unsupported, see README |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 12874 | exit 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12875 | |
| 12876 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12877 | #define WITH_DL_DLD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12878 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12879 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12880 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12881 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 12882 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 12883 | 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] | 12884 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 12885 | else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&5 |
| 12886 | echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&2;} |
| 12887 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12888 | fi |
| 12889 | DLINCLDIR=${dldir} |
| 12890 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12891 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12892 | echo "$as_me:$LINENO: result: no" >&5 |
| 12893 | echo "${ECHO_T}no" >&6 |
| 12894 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12895 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12896 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 12897 | # 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] | 12898 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12899 | for ac_func in dlopen |
| 12900 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12901 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12902 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12903 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12904 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12906 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12907 | cat >conftest.$ac_ext <<_ACEOF |
| 12908 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12909 | /* confdefs.h. */ |
| 12910 | _ACEOF |
| 12911 | cat confdefs.h >>conftest.$ac_ext |
| 12912 | cat >>conftest.$ac_ext <<_ACEOF |
| 12913 | /* end confdefs.h. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12914 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12915 | which can conflict with char $ac_func (); below. |
| 12916 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 12917 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 12918 | including <limits.h> includes <sys/time.h> and causes problems |
| 12919 | checking for functions defined therein. */ |
| 12920 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12921 | # include <limits.h> |
| 12922 | #else |
| 12923 | # include <assert.h> |
| 12924 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12925 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12926 | #ifdef __cplusplus |
| 12927 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12928 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12929 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12930 | /* 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] | 12931 | builtin and then its argument prototype would still apply. */ |
| 12932 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12933 | /* The GNU C library defines this for functions which it implements |
| 12934 | to always fail with ENOSYS. Some functions are actually named |
| 12935 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12936 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12937 | choke me |
| 12938 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12939 | char (*f) () = $ac_func; |
| 12940 | #endif |
| 12941 | #ifdef __cplusplus |
| 12942 | } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12943 | #endif |
| 12944 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12945 | int |
| 12946 | main () |
| 12947 | { |
| 12948 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12949 | ; |
| 12950 | return 0; |
| 12951 | } |
| 12952 | _ACEOF |
| 12953 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12955 | (eval $ac_link) 2>&5 |
| 12956 | ac_status=$? |
| 12957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12958 | (exit $ac_status); } && |
| 12959 | { ac_try='test -s conftest$ac_exeext' |
| 12960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12961 | (eval $ac_try) 2>&5 |
| 12962 | ac_status=$? |
| 12963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12964 | (exit $ac_status); }; }; then |
| 12965 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12966 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12967 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12969 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12970 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12971 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12972 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12973 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12974 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12975 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12976 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12977 | cat >>confdefs.h <<_ACEOF |
| 12978 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12979 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12980 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12981 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12982 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12983 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12984 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12985 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 12986 | # loading of modules. |
| 12987 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12988 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 12989 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12990 | if test -z "$DYNLOADFILE" |
| 12991 | then |
| 12992 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 12993 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 12994 | if test "$ac_cv_func_dlopen" = yes |
| 12995 | then DYNLOADFILE="dynload_shlib.o" |
| 12996 | else DYNLOADFILE="dynload_aix.o" |
| 12997 | fi |
| 12998 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12999 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 13000 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13001 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13002 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13003 | *) |
| 13004 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 13005 | # out any dynamic loading |
| 13006 | if test "$ac_cv_func_dlopen" = yes |
| 13007 | then DYNLOADFILE="dynload_shlib.o" |
| 13008 | else DYNLOADFILE="dynload_stub.o" |
| 13009 | fi |
| 13010 | ;; |
| 13011 | esac |
| 13012 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13013 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 13014 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13015 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 13016 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13017 | |
| 13018 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13019 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13020 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13021 | |
| 13022 | fi |
| 13023 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13024 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 13025 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13026 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13027 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 13028 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13029 | if test -z "$MACHDEP_OBJS" |
| 13030 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13031 | MACHDEP_OBJS=$extra_machdep_objs |
| 13032 | else |
| 13033 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13034 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13035 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 13036 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13037 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13038 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | |
| 13092 | |
| 13093 | |
| 13094 | |
| 13095 | |
| 13096 | |
| 13097 | |
| 13098 | |
| 13099 | |
| 13100 | |
| 13101 | |
| 13102 | |
| 13103 | |
| 13104 | |
| 13105 | |
| 13106 | |
| 13107 | |
| 13108 | |
| 13109 | |
Martin v. Löwis | 49ee14d | 2003-11-10 06:35:36 +0000 | [diff] [blame] | 13110 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13111 | for ac_func in alarm chown clock confstr ctermid execv \ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13112 | fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 13113 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | 49ee14d | 2003-11-10 06:35:36 +0000 | [diff] [blame] | 13114 | getpriority getpwent getsid getwd \ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13115 | kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 13116 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 13117 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13118 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 13119 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13120 | sigaction siginterrupt sigrelse strftime strptime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 13121 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 13122 | truncate uname unsetenv utimes waitpid wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13123 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13124 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13125 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13126 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13127 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13129 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13130 | cat >conftest.$ac_ext <<_ACEOF |
| 13131 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13132 | /* confdefs.h. */ |
| 13133 | _ACEOF |
| 13134 | cat confdefs.h >>conftest.$ac_ext |
| 13135 | cat >>conftest.$ac_ext <<_ACEOF |
| 13136 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13137 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13138 | which can conflict with char $ac_func (); below. |
| 13139 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13140 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13141 | including <limits.h> includes <sys/time.h> and causes problems |
| 13142 | checking for functions defined therein. */ |
| 13143 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13144 | # include <limits.h> |
| 13145 | #else |
| 13146 | # include <assert.h> |
| 13147 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13148 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13149 | #ifdef __cplusplus |
| 13150 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13151 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13152 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13153 | /* 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] | 13154 | builtin and then its argument prototype would still apply. */ |
| 13155 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13156 | /* The GNU C library defines this for functions which it implements |
| 13157 | to always fail with ENOSYS. Some functions are actually named |
| 13158 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13159 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13160 | choke me |
| 13161 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13162 | char (*f) () = $ac_func; |
| 13163 | #endif |
| 13164 | #ifdef __cplusplus |
| 13165 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13166 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13167 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13168 | int |
| 13169 | main () |
| 13170 | { |
| 13171 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13172 | ; |
| 13173 | return 0; |
| 13174 | } |
| 13175 | _ACEOF |
| 13176 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13177 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13178 | (eval $ac_link) 2>&5 |
| 13179 | ac_status=$? |
| 13180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13181 | (exit $ac_status); } && |
| 13182 | { ac_try='test -s conftest$ac_exeext' |
| 13183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13184 | (eval $ac_try) 2>&5 |
| 13185 | ac_status=$? |
| 13186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13187 | (exit $ac_status); }; }; then |
| 13188 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13189 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13190 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13191 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13192 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13193 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13194 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13195 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13196 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13197 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13198 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13199 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13200 | cat >>confdefs.h <<_ACEOF |
| 13201 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13202 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13203 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13204 | fi |
| 13205 | done |
| 13206 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13207 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13208 | # For some functions, having a definition is not sufficient, since |
| 13209 | # we want to take their address. |
| 13210 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 13211 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 13212 | cat >conftest.$ac_ext <<_ACEOF |
| 13213 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13214 | /* confdefs.h. */ |
| 13215 | _ACEOF |
| 13216 | cat confdefs.h >>conftest.$ac_ext |
| 13217 | cat >>conftest.$ac_ext <<_ACEOF |
| 13218 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13219 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13220 | int |
| 13221 | main () |
| 13222 | { |
| 13223 | void *x=chroot |
| 13224 | ; |
| 13225 | return 0; |
| 13226 | } |
| 13227 | _ACEOF |
| 13228 | rm -f conftest.$ac_objext |
| 13229 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13230 | (eval $ac_compile) 2>&5 |
| 13231 | ac_status=$? |
| 13232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13233 | (exit $ac_status); } && |
| 13234 | { ac_try='test -s conftest.$ac_objext' |
| 13235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13236 | (eval $ac_try) 2>&5 |
| 13237 | ac_status=$? |
| 13238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13239 | (exit $ac_status); }; }; then |
| 13240 | |
| 13241 | cat >>confdefs.h <<\_ACEOF |
| 13242 | #define HAVE_CHROOT 1 |
| 13243 | _ACEOF |
| 13244 | |
| 13245 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13246 | echo "${ECHO_T}yes" >&6 |
| 13247 | else |
| 13248 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13249 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13250 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13251 | echo "$as_me:$LINENO: result: no" >&5 |
| 13252 | echo "${ECHO_T}no" >&6 |
| 13253 | |
| 13254 | fi |
| 13255 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13256 | echo "$as_me:$LINENO: checking for link" >&5 |
| 13257 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 13258 | cat >conftest.$ac_ext <<_ACEOF |
| 13259 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13260 | /* confdefs.h. */ |
| 13261 | _ACEOF |
| 13262 | cat confdefs.h >>conftest.$ac_ext |
| 13263 | cat >>conftest.$ac_ext <<_ACEOF |
| 13264 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13265 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13266 | int |
| 13267 | main () |
| 13268 | { |
| 13269 | void *x=link |
| 13270 | ; |
| 13271 | return 0; |
| 13272 | } |
| 13273 | _ACEOF |
| 13274 | rm -f conftest.$ac_objext |
| 13275 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13276 | (eval $ac_compile) 2>&5 |
| 13277 | ac_status=$? |
| 13278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13279 | (exit $ac_status); } && |
| 13280 | { ac_try='test -s conftest.$ac_objext' |
| 13281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13282 | (eval $ac_try) 2>&5 |
| 13283 | ac_status=$? |
| 13284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13285 | (exit $ac_status); }; }; then |
| 13286 | |
| 13287 | cat >>confdefs.h <<\_ACEOF |
| 13288 | #define HAVE_LINK 1 |
| 13289 | _ACEOF |
| 13290 | |
| 13291 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13292 | echo "${ECHO_T}yes" >&6 |
| 13293 | else |
| 13294 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13296 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13297 | echo "$as_me:$LINENO: result: no" >&5 |
| 13298 | echo "${ECHO_T}no" >&6 |
| 13299 | |
| 13300 | fi |
| 13301 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13302 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 13303 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 13304 | cat >conftest.$ac_ext <<_ACEOF |
| 13305 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13306 | /* confdefs.h. */ |
| 13307 | _ACEOF |
| 13308 | cat confdefs.h >>conftest.$ac_ext |
| 13309 | cat >>conftest.$ac_ext <<_ACEOF |
| 13310 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13311 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13312 | int |
| 13313 | main () |
| 13314 | { |
| 13315 | void *x=symlink |
| 13316 | ; |
| 13317 | return 0; |
| 13318 | } |
| 13319 | _ACEOF |
| 13320 | rm -f conftest.$ac_objext |
| 13321 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13322 | (eval $ac_compile) 2>&5 |
| 13323 | ac_status=$? |
| 13324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13325 | (exit $ac_status); } && |
| 13326 | { ac_try='test -s conftest.$ac_objext' |
| 13327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13328 | (eval $ac_try) 2>&5 |
| 13329 | ac_status=$? |
| 13330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13331 | (exit $ac_status); }; }; then |
| 13332 | |
| 13333 | cat >>confdefs.h <<\_ACEOF |
| 13334 | #define HAVE_SYMLINK 1 |
| 13335 | _ACEOF |
| 13336 | |
| 13337 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13338 | echo "${ECHO_T}yes" >&6 |
| 13339 | else |
| 13340 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13341 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13342 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13343 | echo "$as_me:$LINENO: result: no" >&5 |
| 13344 | echo "${ECHO_T}no" >&6 |
| 13345 | |
| 13346 | fi |
| 13347 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13348 | echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 13349 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6 |
| 13350 | cat >conftest.$ac_ext <<_ACEOF |
| 13351 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13352 | /* confdefs.h. */ |
| 13353 | _ACEOF |
| 13354 | cat confdefs.h >>conftest.$ac_ext |
| 13355 | cat >>conftest.$ac_ext <<_ACEOF |
| 13356 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13357 | #include <unistd.h> |
| 13358 | int |
| 13359 | main () |
| 13360 | { |
| 13361 | void *x=fchdir |
| 13362 | ; |
| 13363 | return 0; |
| 13364 | } |
| 13365 | _ACEOF |
| 13366 | rm -f conftest.$ac_objext |
| 13367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13368 | (eval $ac_compile) 2>&5 |
| 13369 | ac_status=$? |
| 13370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13371 | (exit $ac_status); } && |
| 13372 | { ac_try='test -s conftest.$ac_objext' |
| 13373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13374 | (eval $ac_try) 2>&5 |
| 13375 | ac_status=$? |
| 13376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13377 | (exit $ac_status); }; }; then |
| 13378 | |
| 13379 | cat >>confdefs.h <<\_ACEOF |
| 13380 | #define HAVE_FCHDIR 1 |
| 13381 | _ACEOF |
| 13382 | |
| 13383 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13384 | echo "${ECHO_T}yes" >&6 |
| 13385 | else |
| 13386 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13387 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13388 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13389 | echo "$as_me:$LINENO: result: no" >&5 |
| 13390 | echo "${ECHO_T}no" >&6 |
| 13391 | |
| 13392 | fi |
| 13393 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13394 | echo "$as_me:$LINENO: checking for fsync" >&5 |
| 13395 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6 |
| 13396 | cat >conftest.$ac_ext <<_ACEOF |
| 13397 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13398 | /* confdefs.h. */ |
| 13399 | _ACEOF |
| 13400 | cat confdefs.h >>conftest.$ac_ext |
| 13401 | cat >>conftest.$ac_ext <<_ACEOF |
| 13402 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13403 | #include <unistd.h> |
| 13404 | int |
| 13405 | main () |
| 13406 | { |
| 13407 | void *x=fsync |
| 13408 | ; |
| 13409 | return 0; |
| 13410 | } |
| 13411 | _ACEOF |
| 13412 | rm -f conftest.$ac_objext |
| 13413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13414 | (eval $ac_compile) 2>&5 |
| 13415 | ac_status=$? |
| 13416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13417 | (exit $ac_status); } && |
| 13418 | { ac_try='test -s conftest.$ac_objext' |
| 13419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13420 | (eval $ac_try) 2>&5 |
| 13421 | ac_status=$? |
| 13422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13423 | (exit $ac_status); }; }; then |
| 13424 | |
| 13425 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13426 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13427 | _ACEOF |
| 13428 | |
| 13429 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13430 | echo "${ECHO_T}yes" >&6 |
| 13431 | else |
| 13432 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13434 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13435 | echo "$as_me:$LINENO: result: no" >&5 |
| 13436 | echo "${ECHO_T}no" >&6 |
| 13437 | |
| 13438 | fi |
| 13439 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13440 | echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 13441 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6 |
| 13442 | cat >conftest.$ac_ext <<_ACEOF |
| 13443 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13444 | /* confdefs.h. */ |
| 13445 | _ACEOF |
| 13446 | cat confdefs.h >>conftest.$ac_ext |
| 13447 | cat >>conftest.$ac_ext <<_ACEOF |
| 13448 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13449 | #include <unistd.h> |
| 13450 | int |
| 13451 | main () |
| 13452 | { |
| 13453 | void *x=fdatasync |
| 13454 | ; |
| 13455 | return 0; |
| 13456 | } |
| 13457 | _ACEOF |
| 13458 | rm -f conftest.$ac_objext |
| 13459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13460 | (eval $ac_compile) 2>&5 |
| 13461 | ac_status=$? |
| 13462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13463 | (exit $ac_status); } && |
| 13464 | { ac_try='test -s conftest.$ac_objext' |
| 13465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13466 | (eval $ac_try) 2>&5 |
| 13467 | ac_status=$? |
| 13468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13469 | (exit $ac_status); }; }; then |
| 13470 | |
| 13471 | cat >>confdefs.h <<\_ACEOF |
| 13472 | #define HAVE_FDATASYNC 1 |
| 13473 | _ACEOF |
| 13474 | |
| 13475 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13476 | echo "${ECHO_T}yes" >&6 |
| 13477 | else |
| 13478 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13480 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13481 | echo "$as_me:$LINENO: result: no" >&5 |
| 13482 | echo "${ECHO_T}no" >&6 |
| 13483 | |
| 13484 | fi |
| 13485 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13486 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13487 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 13488 | # functions ctermid_r, setgroups in the library, but no prototype |
| 13489 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 13490 | # address to avoid compiler warnings and potential miscompilations |
| 13491 | # because of the missing prototypes. |
| 13492 | |
| 13493 | echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 13494 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6 |
| 13495 | cat >conftest.$ac_ext <<_ACEOF |
| 13496 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13497 | /* confdefs.h. */ |
| 13498 | _ACEOF |
| 13499 | cat confdefs.h >>conftest.$ac_ext |
| 13500 | cat >>conftest.$ac_ext <<_ACEOF |
| 13501 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13502 | |
| 13503 | #include "confdefs.h" |
| 13504 | #include <stdio.h> |
| 13505 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13506 | int |
| 13507 | main () |
| 13508 | { |
| 13509 | void* p = ctermid_r |
| 13510 | ; |
| 13511 | return 0; |
| 13512 | } |
| 13513 | _ACEOF |
| 13514 | rm -f conftest.$ac_objext |
| 13515 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13516 | (eval $ac_compile) 2>&5 |
| 13517 | ac_status=$? |
| 13518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13519 | (exit $ac_status); } && |
| 13520 | { ac_try='test -s conftest.$ac_objext' |
| 13521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13522 | (eval $ac_try) 2>&5 |
| 13523 | ac_status=$? |
| 13524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13525 | (exit $ac_status); }; }; then |
| 13526 | |
| 13527 | cat >>confdefs.h <<\_ACEOF |
| 13528 | #define HAVE_CTERMID_R 1 |
| 13529 | _ACEOF |
| 13530 | |
| 13531 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13532 | echo "${ECHO_T}yes" >&6 |
| 13533 | else |
| 13534 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13535 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13536 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13537 | echo "$as_me:$LINENO: result: no" >&5 |
| 13538 | echo "${ECHO_T}no" >&6 |
| 13539 | |
| 13540 | fi |
| 13541 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13542 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13543 | echo "$as_me:$LINENO: checking for flock" >&5 |
| 13544 | echo $ECHO_N "checking for flock... $ECHO_C" >&6 |
| 13545 | cat >conftest.$ac_ext <<_ACEOF |
| 13546 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13547 | /* confdefs.h. */ |
| 13548 | _ACEOF |
| 13549 | cat confdefs.h >>conftest.$ac_ext |
| 13550 | cat >>conftest.$ac_ext <<_ACEOF |
| 13551 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13552 | |
| 13553 | #include "confdefs.h" |
| 13554 | #include <sys/file.h> |
| 13555 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13556 | int |
| 13557 | main () |
| 13558 | { |
| 13559 | void* p = flock |
| 13560 | ; |
| 13561 | return 0; |
| 13562 | } |
| 13563 | _ACEOF |
| 13564 | rm -f conftest.$ac_objext |
| 13565 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13566 | (eval $ac_compile) 2>&5 |
| 13567 | ac_status=$? |
| 13568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13569 | (exit $ac_status); } && |
| 13570 | { ac_try='test -s conftest.$ac_objext' |
| 13571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13572 | (eval $ac_try) 2>&5 |
| 13573 | ac_status=$? |
| 13574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13575 | (exit $ac_status); }; }; then |
| 13576 | |
| 13577 | cat >>confdefs.h <<\_ACEOF |
| 13578 | #define HAVE_FLOCK 1 |
| 13579 | _ACEOF |
| 13580 | |
| 13581 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13582 | echo "${ECHO_T}yes" >&6 |
| 13583 | else |
| 13584 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13586 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13587 | echo "$as_me:$LINENO: result: no" >&5 |
| 13588 | echo "${ECHO_T}no" >&6 |
| 13589 | |
| 13590 | fi |
| 13591 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13592 | |
| 13593 | echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 13594 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 |
| 13595 | cat >conftest.$ac_ext <<_ACEOF |
| 13596 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13597 | /* confdefs.h. */ |
| 13598 | _ACEOF |
| 13599 | cat confdefs.h >>conftest.$ac_ext |
| 13600 | cat >>conftest.$ac_ext <<_ACEOF |
| 13601 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13602 | |
| 13603 | #include "confdefs.h" |
| 13604 | #include <unistd.h> |
| 13605 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13606 | int |
| 13607 | main () |
| 13608 | { |
| 13609 | void* p = getpagesize |
| 13610 | ; |
| 13611 | return 0; |
| 13612 | } |
| 13613 | _ACEOF |
| 13614 | rm -f conftest.$ac_objext |
| 13615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13616 | (eval $ac_compile) 2>&5 |
| 13617 | ac_status=$? |
| 13618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13619 | (exit $ac_status); } && |
| 13620 | { ac_try='test -s conftest.$ac_objext' |
| 13621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13622 | (eval $ac_try) 2>&5 |
| 13623 | ac_status=$? |
| 13624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13625 | (exit $ac_status); }; }; then |
| 13626 | |
| 13627 | cat >>confdefs.h <<\_ACEOF |
| 13628 | #define HAVE_GETPAGESIZE 1 |
| 13629 | _ACEOF |
| 13630 | |
| 13631 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13632 | echo "${ECHO_T}yes" >&6 |
| 13633 | else |
| 13634 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13635 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13636 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13637 | echo "$as_me:$LINENO: result: no" >&5 |
| 13638 | echo "${ECHO_T}no" >&6 |
| 13639 | |
| 13640 | fi |
| 13641 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13642 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13643 | for ac_prog in true |
| 13644 | do |
| 13645 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 13646 | set dummy $ac_prog; ac_word=$2 |
| 13647 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13648 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 13649 | if test "${ac_cv_prog_TRUE+set}" = set; then |
| 13650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13651 | else |
| 13652 | if test -n "$TRUE"; then |
| 13653 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 13654 | else |
| 13655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13656 | for as_dir in $PATH |
| 13657 | do |
| 13658 | IFS=$as_save_IFS |
| 13659 | test -z "$as_dir" && as_dir=. |
| 13660 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13661 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13662 | ac_cv_prog_TRUE="$ac_prog" |
| 13663 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13664 | break 2 |
| 13665 | fi |
| 13666 | done |
| 13667 | done |
| 13668 | |
| 13669 | fi |
| 13670 | fi |
| 13671 | TRUE=$ac_cv_prog_TRUE |
| 13672 | if test -n "$TRUE"; then |
| 13673 | echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 13674 | echo "${ECHO_T}$TRUE" >&6 |
| 13675 | else |
| 13676 | echo "$as_me:$LINENO: result: no" >&5 |
| 13677 | echo "${ECHO_T}no" >&6 |
| 13678 | fi |
| 13679 | |
| 13680 | test -n "$TRUE" && break |
| 13681 | done |
| 13682 | test -n "$TRUE" || TRUE="/bin/true" |
| 13683 | |
| 13684 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13685 | echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 13686 | echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6 |
| 13687 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
| 13688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13689 | else |
| 13690 | ac_check_lib_save_LIBS=$LIBS |
| 13691 | LIBS="-lc $LIBS" |
| 13692 | cat >conftest.$ac_ext <<_ACEOF |
| 13693 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13694 | /* confdefs.h. */ |
| 13695 | _ACEOF |
| 13696 | cat confdefs.h >>conftest.$ac_ext |
| 13697 | cat >>conftest.$ac_ext <<_ACEOF |
| 13698 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13699 | |
| 13700 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13701 | #ifdef __cplusplus |
| 13702 | extern "C" |
| 13703 | #endif |
| 13704 | /* We use char because int might match the return type of a gcc2 |
| 13705 | builtin and then its argument prototype would still apply. */ |
| 13706 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13707 | int |
| 13708 | main () |
| 13709 | { |
| 13710 | inet_aton (); |
| 13711 | ; |
| 13712 | return 0; |
| 13713 | } |
| 13714 | _ACEOF |
| 13715 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13716 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13717 | (eval $ac_link) 2>&5 |
| 13718 | ac_status=$? |
| 13719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13720 | (exit $ac_status); } && |
| 13721 | { ac_try='test -s conftest$ac_exeext' |
| 13722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13723 | (eval $ac_try) 2>&5 |
| 13724 | ac_status=$? |
| 13725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13726 | (exit $ac_status); }; }; then |
| 13727 | ac_cv_lib_c_inet_aton=yes |
| 13728 | else |
| 13729 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13731 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13732 | ac_cv_lib_c_inet_aton=no |
| 13733 | fi |
| 13734 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13735 | LIBS=$ac_check_lib_save_LIBS |
| 13736 | fi |
| 13737 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 13738 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6 |
| 13739 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13740 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13741 | else |
| 13742 | |
| 13743 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 13744 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 13745 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 13746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13747 | else |
| 13748 | ac_check_lib_save_LIBS=$LIBS |
| 13749 | LIBS="-lresolv $LIBS" |
| 13750 | cat >conftest.$ac_ext <<_ACEOF |
| 13751 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13752 | /* confdefs.h. */ |
| 13753 | _ACEOF |
| 13754 | cat confdefs.h >>conftest.$ac_ext |
| 13755 | cat >>conftest.$ac_ext <<_ACEOF |
| 13756 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13757 | |
| 13758 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13759 | #ifdef __cplusplus |
| 13760 | extern "C" |
| 13761 | #endif |
| 13762 | /* We use char because int might match the return type of a gcc2 |
| 13763 | builtin and then its argument prototype would still apply. */ |
| 13764 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13765 | int |
| 13766 | main () |
| 13767 | { |
| 13768 | inet_aton (); |
| 13769 | ; |
| 13770 | return 0; |
| 13771 | } |
| 13772 | _ACEOF |
| 13773 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13774 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13775 | (eval $ac_link) 2>&5 |
| 13776 | ac_status=$? |
| 13777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13778 | (exit $ac_status); } && |
| 13779 | { ac_try='test -s conftest$ac_exeext' |
| 13780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13781 | (eval $ac_try) 2>&5 |
| 13782 | ac_status=$? |
| 13783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13784 | (exit $ac_status); }; }; then |
| 13785 | ac_cv_lib_resolv_inet_aton=yes |
| 13786 | else |
| 13787 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13788 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13789 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13790 | ac_cv_lib_resolv_inet_aton=no |
| 13791 | fi |
| 13792 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13793 | LIBS=$ac_check_lib_save_LIBS |
| 13794 | fi |
| 13795 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 13796 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 13797 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
| 13798 | cat >>confdefs.h <<_ACEOF |
| 13799 | #define HAVE_LIBRESOLV 1 |
| 13800 | _ACEOF |
| 13801 | |
| 13802 | LIBS="-lresolv $LIBS" |
| 13803 | |
| 13804 | fi |
| 13805 | |
| 13806 | |
| 13807 | fi |
| 13808 | |
| 13809 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13810 | echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 13811 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 |
| 13812 | cat >conftest.$ac_ext <<_ACEOF |
| 13813 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13814 | /* confdefs.h. */ |
| 13815 | _ACEOF |
| 13816 | cat confdefs.h >>conftest.$ac_ext |
| 13817 | cat >>conftest.$ac_ext <<_ACEOF |
| 13818 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13819 | |
| 13820 | #include "confdefs.h" |
| 13821 | #include <netdb.h> |
| 13822 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13823 | int |
| 13824 | main () |
| 13825 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13826 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13827 | ; |
| 13828 | return 0; |
| 13829 | } |
| 13830 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13831 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13833 | (eval $ac_link) 2>&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13834 | ac_status=$? |
| 13835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13836 | (exit $ac_status); } && |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13837 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13839 | (eval $ac_try) 2>&5 |
| 13840 | ac_status=$? |
| 13841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13842 | (exit $ac_status); }; }; then |
| 13843 | |
| 13844 | cat >>confdefs.h <<\_ACEOF |
| 13845 | #define HAVE_HSTRERROR 1 |
| 13846 | _ACEOF |
| 13847 | |
| 13848 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13849 | echo "${ECHO_T}yes" >&6 |
| 13850 | else |
| 13851 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13853 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13854 | echo "$as_me:$LINENO: result: no" >&5 |
| 13855 | echo "${ECHO_T}no" >&6 |
| 13856 | |
| 13857 | fi |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13858 | 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] | 13859 | |
| 13860 | echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 13861 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 |
| 13862 | cat >conftest.$ac_ext <<_ACEOF |
| 13863 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13864 | /* confdefs.h. */ |
| 13865 | _ACEOF |
| 13866 | cat confdefs.h >>conftest.$ac_ext |
| 13867 | cat >>conftest.$ac_ext <<_ACEOF |
| 13868 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13869 | |
| 13870 | #include "confdefs.h" |
| 13871 | #include <sys/socket.h> |
| 13872 | #include <netinet/in.h> |
| 13873 | #include <arpa/inet.h> |
| 13874 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13875 | int |
| 13876 | main () |
| 13877 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13878 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13879 | ; |
| 13880 | return 0; |
| 13881 | } |
| 13882 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13883 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13884 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13885 | (eval $ac_link) 2>&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13886 | ac_status=$? |
| 13887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13888 | (exit $ac_status); } && |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13889 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13891 | (eval $ac_try) 2>&5 |
| 13892 | ac_status=$? |
| 13893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13894 | (exit $ac_status); }; }; then |
| 13895 | |
| 13896 | cat >>confdefs.h <<\_ACEOF |
| 13897 | #define HAVE_INET_ATON 1 |
| 13898 | _ACEOF |
| 13899 | |
| 13900 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13901 | echo "${ECHO_T}yes" >&6 |
| 13902 | else |
| 13903 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13905 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13906 | echo "$as_me:$LINENO: result: no" >&5 |
| 13907 | echo "${ECHO_T}no" >&6 |
| 13908 | |
| 13909 | fi |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13910 | 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] | 13911 | |
| 13912 | echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 13913 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 |
| 13914 | cat >conftest.$ac_ext <<_ACEOF |
| 13915 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13916 | /* confdefs.h. */ |
| 13917 | _ACEOF |
| 13918 | cat confdefs.h >>conftest.$ac_ext |
| 13919 | cat >>conftest.$ac_ext <<_ACEOF |
| 13920 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13921 | |
| 13922 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 13923 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13924 | #include <sys/socket.h> |
| 13925 | #include <netinet/in.h> |
| 13926 | #include <arpa/inet.h> |
| 13927 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13928 | int |
| 13929 | main () |
| 13930 | { |
| 13931 | void* p = inet_pton |
| 13932 | ; |
| 13933 | return 0; |
| 13934 | } |
| 13935 | _ACEOF |
| 13936 | rm -f conftest.$ac_objext |
| 13937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13938 | (eval $ac_compile) 2>&5 |
| 13939 | ac_status=$? |
| 13940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13941 | (exit $ac_status); } && |
| 13942 | { ac_try='test -s conftest.$ac_objext' |
| 13943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13944 | (eval $ac_try) 2>&5 |
| 13945 | ac_status=$? |
| 13946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13947 | (exit $ac_status); }; }; then |
| 13948 | |
| 13949 | cat >>confdefs.h <<\_ACEOF |
| 13950 | #define HAVE_INET_PTON 1 |
| 13951 | _ACEOF |
| 13952 | |
| 13953 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13954 | echo "${ECHO_T}yes" >&6 |
| 13955 | else |
| 13956 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13958 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13959 | echo "$as_me:$LINENO: result: no" >&5 |
| 13960 | echo "${ECHO_T}no" >&6 |
| 13961 | |
| 13962 | fi |
| 13963 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13964 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 13965 | # 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] | 13966 | echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 13967 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 |
| 13968 | cat >conftest.$ac_ext <<_ACEOF |
| 13969 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13970 | /* confdefs.h. */ |
| 13971 | _ACEOF |
| 13972 | cat confdefs.h >>conftest.$ac_ext |
| 13973 | cat >>conftest.$ac_ext <<_ACEOF |
| 13974 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13975 | |
| 13976 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 13977 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 13978 | #ifdef HAVE_GRP_H |
| 13979 | #include <grp.h> |
| 13980 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13981 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13982 | int |
| 13983 | main () |
| 13984 | { |
| 13985 | void* p = setgroups |
| 13986 | ; |
| 13987 | return 0; |
| 13988 | } |
| 13989 | _ACEOF |
| 13990 | rm -f conftest.$ac_objext |
| 13991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13992 | (eval $ac_compile) 2>&5 |
| 13993 | ac_status=$? |
| 13994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13995 | (exit $ac_status); } && |
| 13996 | { ac_try='test -s conftest.$ac_objext' |
| 13997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13998 | (eval $ac_try) 2>&5 |
| 13999 | ac_status=$? |
| 14000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14001 | (exit $ac_status); }; }; then |
| 14002 | |
| 14003 | cat >>confdefs.h <<\_ACEOF |
| 14004 | #define HAVE_SETGROUPS 1 |
| 14005 | _ACEOF |
| 14006 | |
| 14007 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14008 | echo "${ECHO_T}yes" >&6 |
| 14009 | else |
| 14010 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14012 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14013 | echo "$as_me:$LINENO: result: no" >&5 |
| 14014 | echo "${ECHO_T}no" >&6 |
| 14015 | |
| 14016 | fi |
| 14017 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14018 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14019 | # check for openpty and forkpty |
| 14020 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14021 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14022 | for ac_func in openpty |
| 14023 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14024 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14025 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14026 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14027 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14029 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14030 | cat >conftest.$ac_ext <<_ACEOF |
| 14031 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14032 | /* confdefs.h. */ |
| 14033 | _ACEOF |
| 14034 | cat confdefs.h >>conftest.$ac_ext |
| 14035 | cat >>conftest.$ac_ext <<_ACEOF |
| 14036 | /* end confdefs.h. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14037 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14038 | which can conflict with char $ac_func (); below. |
| 14039 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14040 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14041 | including <limits.h> includes <sys/time.h> and causes problems |
| 14042 | checking for functions defined therein. */ |
| 14043 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14044 | # include <limits.h> |
| 14045 | #else |
| 14046 | # include <assert.h> |
| 14047 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14048 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14049 | #ifdef __cplusplus |
| 14050 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14051 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14052 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14053 | /* 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] | 14054 | builtin and then its argument prototype would still apply. */ |
| 14055 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14056 | /* The GNU C library defines this for functions which it implements |
| 14057 | to always fail with ENOSYS. Some functions are actually named |
| 14058 | something starting with __ and the normal name is an alias. */ |
| 14059 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14060 | choke me |
| 14061 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14062 | char (*f) () = $ac_func; |
| 14063 | #endif |
| 14064 | #ifdef __cplusplus |
| 14065 | } |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14066 | #endif |
| 14067 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14068 | int |
| 14069 | main () |
| 14070 | { |
| 14071 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14072 | ; |
| 14073 | return 0; |
| 14074 | } |
| 14075 | _ACEOF |
| 14076 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14078 | (eval $ac_link) 2>&5 |
| 14079 | ac_status=$? |
| 14080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14081 | (exit $ac_status); } && |
| 14082 | { ac_try='test -s conftest$ac_exeext' |
| 14083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14084 | (eval $ac_try) 2>&5 |
| 14085 | ac_status=$? |
| 14086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14087 | (exit $ac_status); }; }; then |
| 14088 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14089 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14090 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14092 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14093 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14094 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14095 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14096 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14097 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14098 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14099 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14100 | cat >>confdefs.h <<_ACEOF |
| 14101 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14102 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14103 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14104 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14105 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 14106 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 14107 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 14108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14109 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14110 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14111 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14112 | cat >conftest.$ac_ext <<_ACEOF |
| 14113 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14114 | /* confdefs.h. */ |
| 14115 | _ACEOF |
| 14116 | cat confdefs.h >>conftest.$ac_ext |
| 14117 | cat >>conftest.$ac_ext <<_ACEOF |
| 14118 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14119 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14120 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14121 | #ifdef __cplusplus |
| 14122 | extern "C" |
| 14123 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14124 | /* 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] | 14125 | builtin and then its argument prototype would still apply. */ |
| 14126 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14127 | int |
| 14128 | main () |
| 14129 | { |
| 14130 | openpty (); |
| 14131 | ; |
| 14132 | return 0; |
| 14133 | } |
| 14134 | _ACEOF |
| 14135 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14136 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14137 | (eval $ac_link) 2>&5 |
| 14138 | ac_status=$? |
| 14139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14140 | (exit $ac_status); } && |
| 14141 | { ac_try='test -s conftest$ac_exeext' |
| 14142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14143 | (eval $ac_try) 2>&5 |
| 14144 | ac_status=$? |
| 14145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14146 | (exit $ac_status); }; }; then |
| 14147 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14148 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14149 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14151 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14152 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14153 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14154 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 14155 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14156 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14157 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 14158 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 14159 | if test $ac_cv_lib_util_openpty = yes; then |
| 14160 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14161 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14162 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14163 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14164 | fi |
| 14165 | |
| 14166 | fi |
| 14167 | done |
| 14168 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14169 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14170 | for ac_func in forkpty |
| 14171 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14172 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14173 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14174 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14175 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14177 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14178 | cat >conftest.$ac_ext <<_ACEOF |
| 14179 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14180 | /* confdefs.h. */ |
| 14181 | _ACEOF |
| 14182 | cat confdefs.h >>conftest.$ac_ext |
| 14183 | cat >>conftest.$ac_ext <<_ACEOF |
| 14184 | /* end confdefs.h. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14185 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14186 | which can conflict with char $ac_func (); below. |
| 14187 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14188 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14189 | including <limits.h> includes <sys/time.h> and causes problems |
| 14190 | checking for functions defined therein. */ |
| 14191 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14192 | # include <limits.h> |
| 14193 | #else |
| 14194 | # include <assert.h> |
| 14195 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14196 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14197 | #ifdef __cplusplus |
| 14198 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14199 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14200 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14201 | /* 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] | 14202 | builtin and then its argument prototype would still apply. */ |
| 14203 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14204 | /* The GNU C library defines this for functions which it implements |
| 14205 | to always fail with ENOSYS. Some functions are actually named |
| 14206 | something starting with __ and the normal name is an alias. */ |
| 14207 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14208 | choke me |
| 14209 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14210 | char (*f) () = $ac_func; |
| 14211 | #endif |
| 14212 | #ifdef __cplusplus |
| 14213 | } |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14214 | #endif |
| 14215 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14216 | int |
| 14217 | main () |
| 14218 | { |
| 14219 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14220 | ; |
| 14221 | return 0; |
| 14222 | } |
| 14223 | _ACEOF |
| 14224 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14226 | (eval $ac_link) 2>&5 |
| 14227 | ac_status=$? |
| 14228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14229 | (exit $ac_status); } && |
| 14230 | { ac_try='test -s conftest$ac_exeext' |
| 14231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14232 | (eval $ac_try) 2>&5 |
| 14233 | ac_status=$? |
| 14234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14235 | (exit $ac_status); }; }; then |
| 14236 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14237 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14238 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14239 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14240 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14241 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14242 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14243 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14244 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14245 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14246 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14247 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14248 | cat >>confdefs.h <<_ACEOF |
| 14249 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14250 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14251 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14252 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14253 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 14254 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 14255 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 14256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14257 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14258 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14259 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14260 | cat >conftest.$ac_ext <<_ACEOF |
| 14261 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14262 | /* confdefs.h. */ |
| 14263 | _ACEOF |
| 14264 | cat confdefs.h >>conftest.$ac_ext |
| 14265 | cat >>conftest.$ac_ext <<_ACEOF |
| 14266 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14267 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14268 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14269 | #ifdef __cplusplus |
| 14270 | extern "C" |
| 14271 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14272 | /* 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] | 14273 | builtin and then its argument prototype would still apply. */ |
| 14274 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14275 | int |
| 14276 | main () |
| 14277 | { |
| 14278 | forkpty (); |
| 14279 | ; |
| 14280 | return 0; |
| 14281 | } |
| 14282 | _ACEOF |
| 14283 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14285 | (eval $ac_link) 2>&5 |
| 14286 | ac_status=$? |
| 14287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14288 | (exit $ac_status); } && |
| 14289 | { ac_try='test -s conftest$ac_exeext' |
| 14290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14291 | (eval $ac_try) 2>&5 |
| 14292 | ac_status=$? |
| 14293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14294 | (exit $ac_status); }; }; then |
| 14295 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14296 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14297 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14299 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14300 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14301 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14302 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 14303 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14304 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14305 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 14306 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 14307 | if test $ac_cv_lib_util_forkpty = yes; then |
| 14308 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14309 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14310 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14311 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14312 | fi |
| 14313 | |
| 14314 | fi |
| 14315 | done |
| 14316 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14317 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14318 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14319 | |
| 14320 | |
| 14321 | |
| 14322 | |
| 14323 | |
| 14324 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14325 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 14326 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14327 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14328 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14329 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14330 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14332 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14333 | cat >conftest.$ac_ext <<_ACEOF |
| 14334 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14335 | /* confdefs.h. */ |
| 14336 | _ACEOF |
| 14337 | cat confdefs.h >>conftest.$ac_ext |
| 14338 | cat >>conftest.$ac_ext <<_ACEOF |
| 14339 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14340 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14341 | which can conflict with char $ac_func (); below. |
| 14342 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14343 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14344 | including <limits.h> includes <sys/time.h> and causes problems |
| 14345 | checking for functions defined therein. */ |
| 14346 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14347 | # include <limits.h> |
| 14348 | #else |
| 14349 | # include <assert.h> |
| 14350 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14351 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14352 | #ifdef __cplusplus |
| 14353 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14354 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14355 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14356 | /* 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] | 14357 | builtin and then its argument prototype would still apply. */ |
| 14358 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14359 | /* The GNU C library defines this for functions which it implements |
| 14360 | to always fail with ENOSYS. Some functions are actually named |
| 14361 | something starting with __ and the normal name is an alias. */ |
| 14362 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14363 | choke me |
| 14364 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14365 | char (*f) () = $ac_func; |
| 14366 | #endif |
| 14367 | #ifdef __cplusplus |
| 14368 | } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14369 | #endif |
| 14370 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14371 | int |
| 14372 | main () |
| 14373 | { |
| 14374 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14375 | ; |
| 14376 | return 0; |
| 14377 | } |
| 14378 | _ACEOF |
| 14379 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14381 | (eval $ac_link) 2>&5 |
| 14382 | ac_status=$? |
| 14383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14384 | (exit $ac_status); } && |
| 14385 | { ac_try='test -s conftest$ac_exeext' |
| 14386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14387 | (eval $ac_try) 2>&5 |
| 14388 | ac_status=$? |
| 14389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14390 | (exit $ac_status); }; }; then |
| 14391 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14392 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14393 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14395 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14396 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14397 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14398 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14399 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14400 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14401 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14402 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14403 | cat >>confdefs.h <<_ACEOF |
| 14404 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14405 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14406 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14407 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14408 | done |
| 14409 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14410 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14411 | |
| 14412 | |
| 14413 | |
| 14414 | |
| 14415 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14416 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14417 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14418 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14419 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14420 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14421 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14423 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14424 | cat >conftest.$ac_ext <<_ACEOF |
| 14425 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14426 | /* confdefs.h. */ |
| 14427 | _ACEOF |
| 14428 | cat confdefs.h >>conftest.$ac_ext |
| 14429 | cat >>conftest.$ac_ext <<_ACEOF |
| 14430 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14431 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14432 | which can conflict with char $ac_func (); below. |
| 14433 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14434 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14435 | including <limits.h> includes <sys/time.h> and causes problems |
| 14436 | checking for functions defined therein. */ |
| 14437 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14438 | # include <limits.h> |
| 14439 | #else |
| 14440 | # include <assert.h> |
| 14441 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14442 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14443 | #ifdef __cplusplus |
| 14444 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14445 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14446 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14447 | /* 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] | 14448 | builtin and then its argument prototype would still apply. */ |
| 14449 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14450 | /* The GNU C library defines this for functions which it implements |
| 14451 | to always fail with ENOSYS. Some functions are actually named |
| 14452 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14453 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14454 | choke me |
| 14455 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14456 | char (*f) () = $ac_func; |
| 14457 | #endif |
| 14458 | #ifdef __cplusplus |
| 14459 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14460 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14461 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14462 | int |
| 14463 | main () |
| 14464 | { |
| 14465 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14466 | ; |
| 14467 | return 0; |
| 14468 | } |
| 14469 | _ACEOF |
| 14470 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14472 | (eval $ac_link) 2>&5 |
| 14473 | ac_status=$? |
| 14474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14475 | (exit $ac_status); } && |
| 14476 | { ac_try='test -s conftest$ac_exeext' |
| 14477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14478 | (eval $ac_try) 2>&5 |
| 14479 | ac_status=$? |
| 14480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14481 | (exit $ac_status); }; }; then |
| 14482 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14483 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14484 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14486 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14487 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14488 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14489 | 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] | 14490 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14491 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14492 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14493 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14494 | cat >>confdefs.h <<_ACEOF |
| 14495 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14496 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14497 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14498 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14499 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14500 | fi |
| 14501 | done |
| 14502 | |
| 14503 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14504 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14505 | for ac_func in getpgrp |
| 14506 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14507 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14508 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14509 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14510 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14512 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14513 | cat >conftest.$ac_ext <<_ACEOF |
| 14514 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14515 | /* confdefs.h. */ |
| 14516 | _ACEOF |
| 14517 | cat confdefs.h >>conftest.$ac_ext |
| 14518 | cat >>conftest.$ac_ext <<_ACEOF |
| 14519 | /* end confdefs.h. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14520 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14521 | which can conflict with char $ac_func (); below. |
| 14522 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14523 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14524 | including <limits.h> includes <sys/time.h> and causes problems |
| 14525 | checking for functions defined therein. */ |
| 14526 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14527 | # include <limits.h> |
| 14528 | #else |
| 14529 | # include <assert.h> |
| 14530 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14531 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14532 | #ifdef __cplusplus |
| 14533 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14534 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14535 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14536 | /* 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] | 14537 | builtin and then its argument prototype would still apply. */ |
| 14538 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14539 | /* The GNU C library defines this for functions which it implements |
| 14540 | to always fail with ENOSYS. Some functions are actually named |
| 14541 | something starting with __ and the normal name is an alias. */ |
| 14542 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14543 | choke me |
| 14544 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14545 | char (*f) () = $ac_func; |
| 14546 | #endif |
| 14547 | #ifdef __cplusplus |
| 14548 | } |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14549 | #endif |
| 14550 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14551 | int |
| 14552 | main () |
| 14553 | { |
| 14554 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14555 | ; |
| 14556 | return 0; |
| 14557 | } |
| 14558 | _ACEOF |
| 14559 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14560 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14561 | (eval $ac_link) 2>&5 |
| 14562 | ac_status=$? |
| 14563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14564 | (exit $ac_status); } && |
| 14565 | { ac_try='test -s conftest$ac_exeext' |
| 14566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14567 | (eval $ac_try) 2>&5 |
| 14568 | ac_status=$? |
| 14569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14570 | (exit $ac_status); }; }; then |
| 14571 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14572 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14573 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14575 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14576 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14577 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14578 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14579 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14580 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14581 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14582 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14583 | cat >>confdefs.h <<_ACEOF |
| 14584 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14585 | _ACEOF |
| 14586 | cat >conftest.$ac_ext <<_ACEOF |
| 14587 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14588 | /* confdefs.h. */ |
| 14589 | _ACEOF |
| 14590 | cat confdefs.h >>conftest.$ac_ext |
| 14591 | cat >>conftest.$ac_ext <<_ACEOF |
| 14592 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14593 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14594 | int |
| 14595 | main () |
| 14596 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14597 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14598 | ; |
| 14599 | return 0; |
| 14600 | } |
| 14601 | _ACEOF |
| 14602 | rm -f conftest.$ac_objext |
| 14603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14604 | (eval $ac_compile) 2>&5 |
| 14605 | ac_status=$? |
| 14606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14607 | (exit $ac_status); } && |
| 14608 | { ac_try='test -s conftest.$ac_objext' |
| 14609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14610 | (eval $ac_try) 2>&5 |
| 14611 | ac_status=$? |
| 14612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14613 | (exit $ac_status); }; }; then |
| 14614 | |
| 14615 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14616 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14617 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14618 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14619 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14620 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14621 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14623 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14624 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14625 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14626 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14627 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14628 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14629 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14630 | |
| 14631 | for ac_func in setpgrp |
| 14632 | do |
| 14633 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14634 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14635 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14636 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14638 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14639 | cat >conftest.$ac_ext <<_ACEOF |
| 14640 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14641 | /* confdefs.h. */ |
| 14642 | _ACEOF |
| 14643 | cat confdefs.h >>conftest.$ac_ext |
| 14644 | cat >>conftest.$ac_ext <<_ACEOF |
| 14645 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14646 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14647 | which can conflict with char $ac_func (); below. |
| 14648 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14649 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14650 | including <limits.h> includes <sys/time.h> and causes problems |
| 14651 | checking for functions defined therein. */ |
| 14652 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14653 | # include <limits.h> |
| 14654 | #else |
| 14655 | # include <assert.h> |
| 14656 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14657 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14658 | #ifdef __cplusplus |
| 14659 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14660 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14661 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14662 | /* We use char because int might match the return type of a gcc2 |
| 14663 | builtin and then its argument prototype would still apply. */ |
| 14664 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14665 | /* The GNU C library defines this for functions which it implements |
| 14666 | to always fail with ENOSYS. Some functions are actually named |
| 14667 | something starting with __ and the normal name is an alias. */ |
| 14668 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14669 | choke me |
| 14670 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14671 | char (*f) () = $ac_func; |
| 14672 | #endif |
| 14673 | #ifdef __cplusplus |
| 14674 | } |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14675 | #endif |
| 14676 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14677 | int |
| 14678 | main () |
| 14679 | { |
| 14680 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14681 | ; |
| 14682 | return 0; |
| 14683 | } |
| 14684 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14685 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14686 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14687 | (eval $ac_link) 2>&5 |
| 14688 | ac_status=$? |
| 14689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14690 | (exit $ac_status); } && |
| 14691 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14693 | (eval $ac_try) 2>&5 |
| 14694 | ac_status=$? |
| 14695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14696 | (exit $ac_status); }; }; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14697 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14698 | else |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14699 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14701 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14702 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14703 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14704 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14705 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14706 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14707 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14708 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14709 | cat >>confdefs.h <<_ACEOF |
| 14710 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14711 | _ACEOF |
| 14712 | cat >conftest.$ac_ext <<_ACEOF |
| 14713 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14714 | /* confdefs.h. */ |
| 14715 | _ACEOF |
| 14716 | cat confdefs.h >>conftest.$ac_ext |
| 14717 | cat >>conftest.$ac_ext <<_ACEOF |
| 14718 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14719 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14720 | int |
| 14721 | main () |
| 14722 | { |
| 14723 | setpgrp(0,0); |
| 14724 | ; |
| 14725 | return 0; |
| 14726 | } |
| 14727 | _ACEOF |
| 14728 | rm -f conftest.$ac_objext |
| 14729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14730 | (eval $ac_compile) 2>&5 |
| 14731 | ac_status=$? |
| 14732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14733 | (exit $ac_status); } && |
| 14734 | { ac_try='test -s conftest.$ac_objext' |
| 14735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14736 | (eval $ac_try) 2>&5 |
| 14737 | ac_status=$? |
| 14738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14739 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14740 | |
| 14741 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14742 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14743 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 14744 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14745 | |
| 14746 | else |
| 14747 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14749 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 14750 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 14751 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14752 | |
| 14753 | fi |
| 14754 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 14755 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14756 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14757 | for ac_func in gettimeofday |
| 14758 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14759 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14760 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14761 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14762 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14764 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14765 | cat >conftest.$ac_ext <<_ACEOF |
| 14766 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14767 | /* confdefs.h. */ |
| 14768 | _ACEOF |
| 14769 | cat confdefs.h >>conftest.$ac_ext |
| 14770 | cat >>conftest.$ac_ext <<_ACEOF |
| 14771 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14772 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14773 | which can conflict with char $ac_func (); below. |
| 14774 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14775 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14776 | including <limits.h> includes <sys/time.h> and causes problems |
| 14777 | checking for functions defined therein. */ |
| 14778 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14779 | # include <limits.h> |
| 14780 | #else |
| 14781 | # include <assert.h> |
| 14782 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14783 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14784 | #ifdef __cplusplus |
| 14785 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14786 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14787 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14788 | /* 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] | 14789 | builtin and then its argument prototype would still apply. */ |
| 14790 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14791 | /* The GNU C library defines this for functions which it implements |
| 14792 | to always fail with ENOSYS. Some functions are actually named |
| 14793 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14794 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14795 | choke me |
| 14796 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14797 | char (*f) () = $ac_func; |
| 14798 | #endif |
| 14799 | #ifdef __cplusplus |
| 14800 | } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14801 | #endif |
| 14802 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14803 | int |
| 14804 | main () |
| 14805 | { |
| 14806 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14807 | ; |
| 14808 | return 0; |
| 14809 | } |
| 14810 | _ACEOF |
| 14811 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14813 | (eval $ac_link) 2>&5 |
| 14814 | ac_status=$? |
| 14815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14816 | (exit $ac_status); } && |
| 14817 | { ac_try='test -s conftest$ac_exeext' |
| 14818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14819 | (eval $ac_try) 2>&5 |
| 14820 | ac_status=$? |
| 14821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14822 | (exit $ac_status); }; }; then |
| 14823 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14824 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14825 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14827 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14828 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14829 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14830 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14831 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14832 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14833 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14834 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14835 | cat >>confdefs.h <<_ACEOF |
| 14836 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14837 | _ACEOF |
| 14838 | cat >conftest.$ac_ext <<_ACEOF |
| 14839 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14840 | /* confdefs.h. */ |
| 14841 | _ACEOF |
| 14842 | cat confdefs.h >>conftest.$ac_ext |
| 14843 | cat >>conftest.$ac_ext <<_ACEOF |
| 14844 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14845 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14846 | int |
| 14847 | main () |
| 14848 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14849 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14850 | ; |
| 14851 | return 0; |
| 14852 | } |
| 14853 | _ACEOF |
| 14854 | rm -f conftest.$ac_objext |
| 14855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14856 | (eval $ac_compile) 2>&5 |
| 14857 | ac_status=$? |
| 14858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14859 | (exit $ac_status); } && |
| 14860 | { ac_try='test -s conftest.$ac_objext' |
| 14861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14862 | (eval $ac_try) 2>&5 |
| 14863 | ac_status=$? |
| 14864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14865 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14866 | : |
| 14867 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14868 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14869 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14870 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14871 | |
| 14872 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14873 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14874 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14875 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14876 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14877 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14878 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14879 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14880 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14881 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14882 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14883 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14884 | echo "$as_me:$LINENO: checking for major" >&5 |
| 14885 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 14886 | cat >conftest.$ac_ext <<_ACEOF |
| 14887 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14888 | /* confdefs.h. */ |
| 14889 | _ACEOF |
| 14890 | cat confdefs.h >>conftest.$ac_ext |
| 14891 | cat >>conftest.$ac_ext <<_ACEOF |
| 14892 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14893 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 14894 | #if defined(MAJOR_IN_MKDEV) |
| 14895 | #include <sys/mkdev.h> |
| 14896 | #elif defined(MAJOR_IN_SYSMACROS) |
| 14897 | #include <sys/sysmacros.h> |
| 14898 | #else |
| 14899 | #include <sys/types.h> |
| 14900 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14901 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14902 | int |
| 14903 | main () |
| 14904 | { |
| 14905 | |
| 14906 | makedev(major(0),minor(0)); |
| 14907 | |
| 14908 | ; |
| 14909 | return 0; |
| 14910 | } |
| 14911 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 14912 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14913 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14914 | (eval $ac_link) 2>&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14915 | ac_status=$? |
| 14916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14917 | (exit $ac_status); } && |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 14918 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14920 | (eval $ac_try) 2>&5 |
| 14921 | ac_status=$? |
| 14922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14923 | (exit $ac_status); }; }; then |
| 14924 | |
| 14925 | |
| 14926 | cat >>confdefs.h <<\_ACEOF |
| 14927 | #define HAVE_DEVICE_MACROS 1 |
| 14928 | _ACEOF |
| 14929 | |
| 14930 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14931 | echo "${ECHO_T}yes" >&6 |
| 14932 | |
| 14933 | else |
| 14934 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14936 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14937 | |
| 14938 | echo "$as_me:$LINENO: result: no" >&5 |
| 14939 | echo "${ECHO_T}no" >&6 |
| 14940 | |
| 14941 | fi |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 14942 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14943 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14944 | # 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] | 14945 | # for [no]getaddrinfo in netdb.h. |
| 14946 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 14947 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 14948 | cat >conftest.$ac_ext <<_ACEOF |
| 14949 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14950 | /* confdefs.h. */ |
| 14951 | _ACEOF |
| 14952 | cat confdefs.h >>conftest.$ac_ext |
| 14953 | cat >>conftest.$ac_ext <<_ACEOF |
| 14954 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14955 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 14956 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14957 | #include <sys/socket.h> |
| 14958 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 14959 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14960 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14961 | int |
| 14962 | main () |
| 14963 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14964 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14965 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14967 | ; |
| 14968 | return 0; |
| 14969 | } |
| 14970 | _ACEOF |
| 14971 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14972 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14973 | (eval $ac_link) 2>&5 |
| 14974 | ac_status=$? |
| 14975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14976 | (exit $ac_status); } && |
| 14977 | { ac_try='test -s conftest$ac_exeext' |
| 14978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14979 | (eval $ac_try) 2>&5 |
| 14980 | ac_status=$? |
| 14981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14982 | (exit $ac_status); }; }; then |
| 14983 | |
| 14984 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14985 | echo "${ECHO_T}yes" >&6 |
| 14986 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 14987 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14988 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14989 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 14990 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14991 | buggygetaddrinfo=yes |
| 14992 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14993 | cat >conftest.$ac_ext <<_ACEOF |
| 14994 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14995 | /* confdefs.h. */ |
| 14996 | _ACEOF |
| 14997 | cat confdefs.h >>conftest.$ac_ext |
| 14998 | cat >>conftest.$ac_ext <<_ACEOF |
| 14999 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15000 | |
| 15001 | #include <sys/types.h> |
| 15002 | #include <netdb.h> |
| 15003 | #include <string.h> |
| 15004 | #include <sys/socket.h> |
| 15005 | #include <netinet/in.h> |
| 15006 | |
| 15007 | main() |
| 15008 | { |
| 15009 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 15010 | struct addrinfo hints, *ai, *aitop; |
| 15011 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 15012 | |
| 15013 | for (passive = 0; passive <= 1; passive++) { |
| 15014 | memset(&hints, 0, sizeof(hints)); |
| 15015 | hints.ai_family = AF_UNSPEC; |
| 15016 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 15017 | hints.ai_socktype = SOCK_STREAM; |
| 15018 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 15019 | (void)gai_strerror(gaierr); |
| 15020 | goto bad; |
| 15021 | } |
| 15022 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 15023 | if (ai->ai_addr == NULL || |
| 15024 | ai->ai_addrlen == 0 || |
| 15025 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 15026 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 15027 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 15028 | goto bad; |
| 15029 | } |
| 15030 | switch (ai->ai_family) { |
| 15031 | case AF_INET: |
| 15032 | if (strcmp(strport, "54321") != 0) { |
| 15033 | goto bad; |
| 15034 | } |
| 15035 | if (passive) { |
| 15036 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 15037 | goto bad; |
| 15038 | } |
| 15039 | } else { |
| 15040 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 15041 | goto bad; |
| 15042 | } |
| 15043 | } |
| 15044 | inet4++; |
| 15045 | break; |
| 15046 | case AF_INET6: |
| 15047 | if (strcmp(strport, "54321") != 0) { |
| 15048 | goto bad; |
| 15049 | } |
| 15050 | if (passive) { |
| 15051 | if (strcmp(straddr, "::") != 0) { |
| 15052 | goto bad; |
| 15053 | } |
| 15054 | } else { |
| 15055 | if (strcmp(straddr, "::1") != 0) { |
| 15056 | goto bad; |
| 15057 | } |
| 15058 | } |
| 15059 | inet6++; |
| 15060 | break; |
| 15061 | case AF_UNSPEC: |
| 15062 | goto bad; |
| 15063 | break; |
| 15064 | default: |
| 15065 | /* another family support? */ |
| 15066 | break; |
| 15067 | } |
| 15068 | } |
| 15069 | } |
| 15070 | |
| 15071 | if (!(inet4 == 0 || inet4 == 2)) |
| 15072 | goto bad; |
| 15073 | if (!(inet6 == 0 || inet6 == 2)) |
| 15074 | goto bad; |
| 15075 | |
| 15076 | if (aitop) |
| 15077 | freeaddrinfo(aitop); |
| 15078 | exit(0); |
| 15079 | |
| 15080 | bad: |
| 15081 | if (aitop) |
| 15082 | freeaddrinfo(aitop); |
| 15083 | exit(1); |
| 15084 | } |
| 15085 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15086 | _ACEOF |
| 15087 | rm -f conftest$ac_exeext |
| 15088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15089 | (eval $ac_link) 2>&5 |
| 15090 | ac_status=$? |
| 15091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15092 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15094 | (eval $ac_try) 2>&5 |
| 15095 | ac_status=$? |
| 15096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15097 | (exit $ac_status); }; }; then |
| 15098 | echo "$as_me:$LINENO: result: good" >&5 |
| 15099 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15100 | buggygetaddrinfo=no |
| 15101 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15102 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15103 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15105 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15106 | ( exit $ac_status ) |
| 15107 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 15108 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15109 | buggygetaddrinfo=yes |
| 15110 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15111 | 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] | 15112 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15113 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15114 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15116 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15117 | |
| 15118 | echo "$as_me:$LINENO: result: no" >&5 |
| 15119 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15120 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15121 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15122 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15123 | 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] | 15124 | |
| 15125 | if test "$buggygetaddrinfo" = "yes"; then |
| 15126 | if test "$ipv6" = "yes"; then |
| 15127 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 15128 | echo ' or you can specify "--disable-ipv6"'. |
| 15129 | exit 1 |
| 15130 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15131 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15132 | |
| 15133 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15134 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15135 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15136 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15137 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15138 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 15139 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15140 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15141 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15142 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15143 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15144 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15146 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15147 | cat >conftest.$ac_ext <<_ACEOF |
| 15148 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15149 | /* confdefs.h. */ |
| 15150 | _ACEOF |
| 15151 | cat confdefs.h >>conftest.$ac_ext |
| 15152 | cat >>conftest.$ac_ext <<_ACEOF |
| 15153 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15154 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15155 | which can conflict with char $ac_func (); below. |
| 15156 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15157 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15158 | including <limits.h> includes <sys/time.h> and causes problems |
| 15159 | checking for functions defined therein. */ |
| 15160 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15161 | # include <limits.h> |
| 15162 | #else |
| 15163 | # include <assert.h> |
| 15164 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15165 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15166 | #ifdef __cplusplus |
| 15167 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15168 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15169 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15170 | /* 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] | 15171 | builtin and then its argument prototype would still apply. */ |
| 15172 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15173 | /* The GNU C library defines this for functions which it implements |
| 15174 | to always fail with ENOSYS. Some functions are actually named |
| 15175 | something starting with __ and the normal name is an alias. */ |
| 15176 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15177 | choke me |
| 15178 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15179 | char (*f) () = $ac_func; |
| 15180 | #endif |
| 15181 | #ifdef __cplusplus |
| 15182 | } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15183 | #endif |
| 15184 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15185 | int |
| 15186 | main () |
| 15187 | { |
| 15188 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15189 | ; |
| 15190 | return 0; |
| 15191 | } |
| 15192 | _ACEOF |
| 15193 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15195 | (eval $ac_link) 2>&5 |
| 15196 | ac_status=$? |
| 15197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15198 | (exit $ac_status); } && |
| 15199 | { ac_try='test -s conftest$ac_exeext' |
| 15200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15201 | (eval $ac_try) 2>&5 |
| 15202 | ac_status=$? |
| 15203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15204 | (exit $ac_status); }; }; then |
| 15205 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15206 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15207 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15209 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15210 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15211 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15212 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15213 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15214 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15215 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15216 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15217 | cat >>confdefs.h <<_ACEOF |
| 15218 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15219 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15220 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15221 | fi |
| 15222 | done |
| 15223 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15224 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15225 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15226 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 15227 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 15228 | if test "${ac_cv_header_time+set}" = set; then |
| 15229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15230 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15231 | cat >conftest.$ac_ext <<_ACEOF |
| 15232 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15233 | /* confdefs.h. */ |
| 15234 | _ACEOF |
| 15235 | cat confdefs.h >>conftest.$ac_ext |
| 15236 | cat >>conftest.$ac_ext <<_ACEOF |
| 15237 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15238 | #include <sys/types.h> |
| 15239 | #include <sys/time.h> |
| 15240 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15241 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15242 | int |
| 15243 | main () |
| 15244 | { |
| 15245 | if ((struct tm *) 0) |
| 15246 | return 0; |
| 15247 | ; |
| 15248 | return 0; |
| 15249 | } |
| 15250 | _ACEOF |
| 15251 | rm -f conftest.$ac_objext |
| 15252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15253 | (eval $ac_compile) 2>&5 |
| 15254 | ac_status=$? |
| 15255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15256 | (exit $ac_status); } && |
| 15257 | { ac_try='test -s conftest.$ac_objext' |
| 15258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15259 | (eval $ac_try) 2>&5 |
| 15260 | ac_status=$? |
| 15261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15262 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15263 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15264 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15265 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15267 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15268 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15269 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15270 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15271 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15272 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 15273 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15274 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15275 | |
| 15276 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15277 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15278 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15279 | |
| 15280 | fi |
| 15281 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15282 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 15283 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 15284 | if test "${ac_cv_struct_tm+set}" = set; then |
| 15285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15286 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15287 | cat >conftest.$ac_ext <<_ACEOF |
| 15288 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15289 | /* confdefs.h. */ |
| 15290 | _ACEOF |
| 15291 | cat confdefs.h >>conftest.$ac_ext |
| 15292 | cat >>conftest.$ac_ext <<_ACEOF |
| 15293 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15294 | #include <sys/types.h> |
| 15295 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15296 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15297 | int |
| 15298 | main () |
| 15299 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15300 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15301 | ; |
| 15302 | return 0; |
| 15303 | } |
| 15304 | _ACEOF |
| 15305 | rm -f conftest.$ac_objext |
| 15306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15307 | (eval $ac_compile) 2>&5 |
| 15308 | ac_status=$? |
| 15309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15310 | (exit $ac_status); } && |
| 15311 | { ac_try='test -s conftest.$ac_objext' |
| 15312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15313 | (eval $ac_try) 2>&5 |
| 15314 | ac_status=$? |
| 15315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15316 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15317 | ac_cv_struct_tm=time.h |
| 15318 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15319 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15321 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15322 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15323 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15324 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15325 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15326 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 15327 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15328 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15329 | |
| 15330 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15331 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15332 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15333 | |
| 15334 | fi |
| 15335 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15336 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 15337 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 15338 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 15339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15340 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15341 | cat >conftest.$ac_ext <<_ACEOF |
| 15342 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15343 | /* confdefs.h. */ |
| 15344 | _ACEOF |
| 15345 | cat confdefs.h >>conftest.$ac_ext |
| 15346 | cat >>conftest.$ac_ext <<_ACEOF |
| 15347 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15348 | #include <sys/types.h> |
| 15349 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15350 | |
| 15351 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15352 | int |
| 15353 | main () |
| 15354 | { |
| 15355 | static struct tm ac_aggr; |
| 15356 | if (ac_aggr.tm_zone) |
| 15357 | return 0; |
| 15358 | ; |
| 15359 | return 0; |
| 15360 | } |
| 15361 | _ACEOF |
| 15362 | rm -f conftest.$ac_objext |
| 15363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15364 | (eval $ac_compile) 2>&5 |
| 15365 | ac_status=$? |
| 15366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15367 | (exit $ac_status); } && |
| 15368 | { ac_try='test -s conftest.$ac_objext' |
| 15369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15370 | (eval $ac_try) 2>&5 |
| 15371 | ac_status=$? |
| 15372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15373 | (exit $ac_status); }; }; then |
| 15374 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15375 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15376 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15377 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15378 | |
| 15379 | cat >conftest.$ac_ext <<_ACEOF |
| 15380 | #line $LINENO "configure" |
| 15381 | /* confdefs.h. */ |
| 15382 | _ACEOF |
| 15383 | cat confdefs.h >>conftest.$ac_ext |
| 15384 | cat >>conftest.$ac_ext <<_ACEOF |
| 15385 | /* end confdefs.h. */ |
| 15386 | #include <sys/types.h> |
| 15387 | #include <$ac_cv_struct_tm> |
| 15388 | |
| 15389 | |
| 15390 | int |
| 15391 | main () |
| 15392 | { |
| 15393 | static struct tm ac_aggr; |
| 15394 | if (sizeof ac_aggr.tm_zone) |
| 15395 | return 0; |
| 15396 | ; |
| 15397 | return 0; |
| 15398 | } |
| 15399 | _ACEOF |
| 15400 | rm -f conftest.$ac_objext |
| 15401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15402 | (eval $ac_compile) 2>&5 |
| 15403 | ac_status=$? |
| 15404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15405 | (exit $ac_status); } && |
| 15406 | { ac_try='test -s conftest.$ac_objext' |
| 15407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15408 | (eval $ac_try) 2>&5 |
| 15409 | ac_status=$? |
| 15410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15411 | (exit $ac_status); }; }; then |
| 15412 | ac_cv_member_struct_tm_tm_zone=yes |
| 15413 | else |
| 15414 | echo "$as_me: failed program was:" >&5 |
| 15415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15416 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15417 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15418 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15419 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15420 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15421 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15422 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15423 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 15424 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 15425 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 15426 | |
| 15427 | cat >>confdefs.h <<_ACEOF |
| 15428 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 15429 | _ACEOF |
| 15430 | |
| 15431 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15432 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15433 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15434 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 15435 | |
| 15436 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15437 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15438 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15439 | |
| 15440 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15441 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 15442 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 15443 | if test "${ac_cv_var_tzname+set}" = set; then |
| 15444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15445 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15446 | cat >conftest.$ac_ext <<_ACEOF |
| 15447 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15448 | /* confdefs.h. */ |
| 15449 | _ACEOF |
| 15450 | cat confdefs.h >>conftest.$ac_ext |
| 15451 | cat >>conftest.$ac_ext <<_ACEOF |
| 15452 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15453 | #include <time.h> |
| 15454 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15455 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15456 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15457 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15458 | int |
| 15459 | main () |
| 15460 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15461 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15462 | ; |
| 15463 | return 0; |
| 15464 | } |
| 15465 | _ACEOF |
| 15466 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15468 | (eval $ac_link) 2>&5 |
| 15469 | ac_status=$? |
| 15470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15471 | (exit $ac_status); } && |
| 15472 | { ac_try='test -s conftest$ac_exeext' |
| 15473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15474 | (eval $ac_try) 2>&5 |
| 15475 | ac_status=$? |
| 15476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15477 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15478 | ac_cv_var_tzname=yes |
| 15479 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15480 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15482 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15483 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15484 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15485 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15486 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15487 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 15488 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15489 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15490 | |
| 15491 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15492 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15493 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15494 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15495 | fi |
| 15496 | fi |
| 15497 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15498 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 15499 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 15500 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 15501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15502 | else |
| 15503 | cat >conftest.$ac_ext <<_ACEOF |
| 15504 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15505 | /* confdefs.h. */ |
| 15506 | _ACEOF |
| 15507 | cat confdefs.h >>conftest.$ac_ext |
| 15508 | cat >>conftest.$ac_ext <<_ACEOF |
| 15509 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15510 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15511 | int |
| 15512 | main () |
| 15513 | { |
| 15514 | static struct stat ac_aggr; |
| 15515 | if (ac_aggr.st_rdev) |
| 15516 | return 0; |
| 15517 | ; |
| 15518 | return 0; |
| 15519 | } |
| 15520 | _ACEOF |
| 15521 | rm -f conftest.$ac_objext |
| 15522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15523 | (eval $ac_compile) 2>&5 |
| 15524 | ac_status=$? |
| 15525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15526 | (exit $ac_status); } && |
| 15527 | { ac_try='test -s conftest.$ac_objext' |
| 15528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15529 | (eval $ac_try) 2>&5 |
| 15530 | ac_status=$? |
| 15531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15532 | (exit $ac_status); }; }; then |
| 15533 | ac_cv_member_struct_stat_st_rdev=yes |
| 15534 | else |
| 15535 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15537 | |
| 15538 | cat >conftest.$ac_ext <<_ACEOF |
| 15539 | #line $LINENO "configure" |
| 15540 | /* confdefs.h. */ |
| 15541 | _ACEOF |
| 15542 | cat confdefs.h >>conftest.$ac_ext |
| 15543 | cat >>conftest.$ac_ext <<_ACEOF |
| 15544 | /* end confdefs.h. */ |
| 15545 | $ac_includes_default |
| 15546 | int |
| 15547 | main () |
| 15548 | { |
| 15549 | static struct stat ac_aggr; |
| 15550 | if (sizeof ac_aggr.st_rdev) |
| 15551 | return 0; |
| 15552 | ; |
| 15553 | return 0; |
| 15554 | } |
| 15555 | _ACEOF |
| 15556 | rm -f conftest.$ac_objext |
| 15557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15558 | (eval $ac_compile) 2>&5 |
| 15559 | ac_status=$? |
| 15560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15561 | (exit $ac_status); } && |
| 15562 | { ac_try='test -s conftest.$ac_objext' |
| 15563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15564 | (eval $ac_try) 2>&5 |
| 15565 | ac_status=$? |
| 15566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15567 | (exit $ac_status); }; }; then |
| 15568 | ac_cv_member_struct_stat_st_rdev=yes |
| 15569 | else |
| 15570 | echo "$as_me: failed program was:" >&5 |
| 15571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15572 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15573 | ac_cv_member_struct_stat_st_rdev=no |
| 15574 | fi |
| 15575 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15576 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15577 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15578 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15579 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 15580 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 15581 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 15582 | |
| 15583 | cat >>confdefs.h <<_ACEOF |
| 15584 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 15585 | _ACEOF |
| 15586 | |
| 15587 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15588 | fi |
| 15589 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15590 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 15591 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 15592 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 15593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15594 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15595 | cat >conftest.$ac_ext <<_ACEOF |
| 15596 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15597 | /* confdefs.h. */ |
| 15598 | _ACEOF |
| 15599 | cat confdefs.h >>conftest.$ac_ext |
| 15600 | cat >>conftest.$ac_ext <<_ACEOF |
| 15601 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15602 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15603 | int |
| 15604 | main () |
| 15605 | { |
| 15606 | static struct stat ac_aggr; |
| 15607 | if (ac_aggr.st_blksize) |
| 15608 | return 0; |
| 15609 | ; |
| 15610 | return 0; |
| 15611 | } |
| 15612 | _ACEOF |
| 15613 | rm -f conftest.$ac_objext |
| 15614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15615 | (eval $ac_compile) 2>&5 |
| 15616 | ac_status=$? |
| 15617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15618 | (exit $ac_status); } && |
| 15619 | { ac_try='test -s conftest.$ac_objext' |
| 15620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15621 | (eval $ac_try) 2>&5 |
| 15622 | ac_status=$? |
| 15623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15624 | (exit $ac_status); }; }; then |
| 15625 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15626 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15627 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15629 | |
| 15630 | cat >conftest.$ac_ext <<_ACEOF |
| 15631 | #line $LINENO "configure" |
| 15632 | /* confdefs.h. */ |
| 15633 | _ACEOF |
| 15634 | cat confdefs.h >>conftest.$ac_ext |
| 15635 | cat >>conftest.$ac_ext <<_ACEOF |
| 15636 | /* end confdefs.h. */ |
| 15637 | $ac_includes_default |
| 15638 | int |
| 15639 | main () |
| 15640 | { |
| 15641 | static struct stat ac_aggr; |
| 15642 | if (sizeof ac_aggr.st_blksize) |
| 15643 | return 0; |
| 15644 | ; |
| 15645 | return 0; |
| 15646 | } |
| 15647 | _ACEOF |
| 15648 | rm -f conftest.$ac_objext |
| 15649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15650 | (eval $ac_compile) 2>&5 |
| 15651 | ac_status=$? |
| 15652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15653 | (exit $ac_status); } && |
| 15654 | { ac_try='test -s conftest.$ac_objext' |
| 15655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15656 | (eval $ac_try) 2>&5 |
| 15657 | ac_status=$? |
| 15658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15659 | (exit $ac_status); }; }; then |
| 15660 | ac_cv_member_struct_stat_st_blksize=yes |
| 15661 | else |
| 15662 | echo "$as_me: failed program was:" >&5 |
| 15663 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15664 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15665 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15666 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15667 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15668 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15669 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15670 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15671 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 15672 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 15673 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15674 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15675 | cat >>confdefs.h <<_ACEOF |
| 15676 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 15677 | _ACEOF |
| 15678 | |
| 15679 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15680 | fi |
| 15681 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15682 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 15683 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 15684 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 15685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15686 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15687 | cat >conftest.$ac_ext <<_ACEOF |
| 15688 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15689 | /* confdefs.h. */ |
| 15690 | _ACEOF |
| 15691 | cat confdefs.h >>conftest.$ac_ext |
| 15692 | cat >>conftest.$ac_ext <<_ACEOF |
| 15693 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15694 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15695 | int |
| 15696 | main () |
| 15697 | { |
| 15698 | static struct stat ac_aggr; |
| 15699 | if (ac_aggr.st_blocks) |
| 15700 | return 0; |
| 15701 | ; |
| 15702 | return 0; |
| 15703 | } |
| 15704 | _ACEOF |
| 15705 | rm -f conftest.$ac_objext |
| 15706 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15707 | (eval $ac_compile) 2>&5 |
| 15708 | ac_status=$? |
| 15709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15710 | (exit $ac_status); } && |
| 15711 | { ac_try='test -s conftest.$ac_objext' |
| 15712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15713 | (eval $ac_try) 2>&5 |
| 15714 | ac_status=$? |
| 15715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15716 | (exit $ac_status); }; }; then |
| 15717 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15718 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15719 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15721 | |
| 15722 | cat >conftest.$ac_ext <<_ACEOF |
| 15723 | #line $LINENO "configure" |
| 15724 | /* confdefs.h. */ |
| 15725 | _ACEOF |
| 15726 | cat confdefs.h >>conftest.$ac_ext |
| 15727 | cat >>conftest.$ac_ext <<_ACEOF |
| 15728 | /* end confdefs.h. */ |
| 15729 | $ac_includes_default |
| 15730 | int |
| 15731 | main () |
| 15732 | { |
| 15733 | static struct stat ac_aggr; |
| 15734 | if (sizeof ac_aggr.st_blocks) |
| 15735 | return 0; |
| 15736 | ; |
| 15737 | return 0; |
| 15738 | } |
| 15739 | _ACEOF |
| 15740 | rm -f conftest.$ac_objext |
| 15741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15742 | (eval $ac_compile) 2>&5 |
| 15743 | ac_status=$? |
| 15744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15745 | (exit $ac_status); } && |
| 15746 | { ac_try='test -s conftest.$ac_objext' |
| 15747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15748 | (eval $ac_try) 2>&5 |
| 15749 | ac_status=$? |
| 15750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15751 | (exit $ac_status); }; }; then |
| 15752 | ac_cv_member_struct_stat_st_blocks=yes |
| 15753 | else |
| 15754 | echo "$as_me: failed program was:" >&5 |
| 15755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15756 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15757 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15758 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15759 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15760 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15761 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15762 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15763 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 15764 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 15765 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15766 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15767 | cat >>confdefs.h <<_ACEOF |
| 15768 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 15769 | _ACEOF |
| 15770 | |
| 15771 | |
| 15772 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15773 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15774 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15775 | |
| 15776 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15777 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 15778 | fi |
| 15779 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15780 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15781 | |
| 15782 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 15783 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 15784 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 15785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15786 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15787 | cat >conftest.$ac_ext <<_ACEOF |
| 15788 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15789 | /* confdefs.h. */ |
| 15790 | _ACEOF |
| 15791 | cat confdefs.h >>conftest.$ac_ext |
| 15792 | cat >>conftest.$ac_ext <<_ACEOF |
| 15793 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15794 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15795 | int |
| 15796 | main () |
| 15797 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15798 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15799 | ; |
| 15800 | return 0; |
| 15801 | } |
| 15802 | _ACEOF |
| 15803 | rm -f conftest.$ac_objext |
| 15804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15805 | (eval $ac_compile) 2>&5 |
| 15806 | ac_status=$? |
| 15807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15808 | (exit $ac_status); } && |
| 15809 | { ac_try='test -s conftest.$ac_objext' |
| 15810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15811 | (eval $ac_try) 2>&5 |
| 15812 | ac_status=$? |
| 15813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15814 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15815 | ac_cv_header_time_altzone=yes |
| 15816 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15817 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15819 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15820 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15821 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15822 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15823 | fi |
| 15824 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15825 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 15826 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15827 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15828 | |
| 15829 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15830 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15831 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15832 | |
| 15833 | fi |
| 15834 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15835 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15836 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 15837 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 15838 | cat >conftest.$ac_ext <<_ACEOF |
| 15839 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15840 | /* confdefs.h. */ |
| 15841 | _ACEOF |
| 15842 | cat confdefs.h >>conftest.$ac_ext |
| 15843 | cat >>conftest.$ac_ext <<_ACEOF |
| 15844 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15845 | |
| 15846 | #include <sys/types.h> |
| 15847 | #include <sys/select.h> |
| 15848 | #include <sys/time.h> |
| 15849 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15850 | int |
| 15851 | main () |
| 15852 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15853 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15854 | ; |
| 15855 | return 0; |
| 15856 | } |
| 15857 | _ACEOF |
| 15858 | rm -f conftest.$ac_objext |
| 15859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15860 | (eval $ac_compile) 2>&5 |
| 15861 | ac_status=$? |
| 15862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15863 | (exit $ac_status); } && |
| 15864 | { ac_try='test -s conftest.$ac_objext' |
| 15865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15866 | (eval $ac_try) 2>&5 |
| 15867 | ac_status=$? |
| 15868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15869 | (exit $ac_status); }; }; then |
| 15870 | |
| 15871 | |
| 15872 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15873 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15874 | _ACEOF |
| 15875 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15876 | was_it_defined=yes |
| 15877 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15878 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15879 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15881 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15882 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15883 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15884 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 15885 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15886 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15887 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 15888 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 15889 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 15890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15891 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15892 | cat >conftest.$ac_ext <<_ACEOF |
| 15893 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15894 | /* confdefs.h. */ |
| 15895 | _ACEOF |
| 15896 | cat confdefs.h >>conftest.$ac_ext |
| 15897 | cat >>conftest.$ac_ext <<_ACEOF |
| 15898 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15899 | |
| 15900 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15901 | int |
| 15902 | main () |
| 15903 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15904 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15905 | ; |
| 15906 | return 0; |
| 15907 | } |
| 15908 | _ACEOF |
| 15909 | rm -f conftest.$ac_objext |
| 15910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15911 | (eval $ac_compile) 2>&5 |
| 15912 | ac_status=$? |
| 15913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15914 | (exit $ac_status); } && |
| 15915 | { ac_try='test -s conftest.$ac_objext' |
| 15916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15917 | (eval $ac_try) 2>&5 |
| 15918 | ac_status=$? |
| 15919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15920 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15921 | ac_cv_struct_addrinfo=yes |
| 15922 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15923 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15925 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15926 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15927 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15928 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15929 | fi |
| 15930 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15931 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 15932 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15933 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15934 | |
| 15935 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15936 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15937 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15938 | |
| 15939 | fi |
| 15940 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15941 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 15942 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 15943 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 15944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15945 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15946 | cat >conftest.$ac_ext <<_ACEOF |
| 15947 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15948 | /* confdefs.h. */ |
| 15949 | _ACEOF |
| 15950 | cat confdefs.h >>conftest.$ac_ext |
| 15951 | cat >>conftest.$ac_ext <<_ACEOF |
| 15952 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15953 | |
| 15954 | # include <sys/types.h> |
| 15955 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15956 | int |
| 15957 | main () |
| 15958 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15959 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15960 | ; |
| 15961 | return 0; |
| 15962 | } |
| 15963 | _ACEOF |
| 15964 | rm -f conftest.$ac_objext |
| 15965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15966 | (eval $ac_compile) 2>&5 |
| 15967 | ac_status=$? |
| 15968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15969 | (exit $ac_status); } && |
| 15970 | { ac_try='test -s conftest.$ac_objext' |
| 15971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15972 | (eval $ac_try) 2>&5 |
| 15973 | ac_status=$? |
| 15974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15975 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15976 | ac_cv_struct_sockaddr_storage=yes |
| 15977 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15978 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15981 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15982 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15983 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15984 | fi |
| 15985 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15986 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 15987 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15988 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15989 | |
| 15990 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15991 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15992 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15993 | |
| 15994 | fi |
| 15995 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15996 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15997 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15998 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15999 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 16000 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 16001 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 16002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16003 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16004 | cat >conftest.$ac_ext <<_ACEOF |
| 16005 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16006 | /* confdefs.h. */ |
| 16007 | _ACEOF |
| 16008 | cat confdefs.h >>conftest.$ac_ext |
| 16009 | cat >>conftest.$ac_ext <<_ACEOF |
| 16010 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16011 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16012 | int |
| 16013 | main () |
| 16014 | { |
| 16015 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 16016 | test_array [0] = 0 |
| 16017 | |
| 16018 | ; |
| 16019 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16020 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16021 | _ACEOF |
| 16022 | rm -f conftest.$ac_objext |
| 16023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16024 | (eval $ac_compile) 2>&5 |
| 16025 | ac_status=$? |
| 16026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16027 | (exit $ac_status); } && |
| 16028 | { ac_try='test -s conftest.$ac_objext' |
| 16029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16030 | (eval $ac_try) 2>&5 |
| 16031 | ac_status=$? |
| 16032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16033 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16034 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16035 | else |
| 16036 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16038 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16039 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16040 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16041 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16042 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16043 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 16044 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16045 | 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] | 16046 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16047 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16048 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16049 | |
| 16050 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16051 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16052 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 16053 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 16054 | if test "${ac_cv_c_const+set}" = set; then |
| 16055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16056 | else |
| 16057 | cat >conftest.$ac_ext <<_ACEOF |
| 16058 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16059 | /* confdefs.h. */ |
| 16060 | _ACEOF |
| 16061 | cat confdefs.h >>conftest.$ac_ext |
| 16062 | cat >>conftest.$ac_ext <<_ACEOF |
| 16063 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16064 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16065 | int |
| 16066 | main () |
| 16067 | { |
| 16068 | /* FIXME: Include the comments suggested by Paul. */ |
| 16069 | #ifndef __cplusplus |
| 16070 | /* Ultrix mips cc rejects this. */ |
| 16071 | typedef int charset[2]; |
| 16072 | const charset x; |
| 16073 | /* SunOS 4.1.1 cc rejects this. */ |
| 16074 | char const *const *ccp; |
| 16075 | char **p; |
| 16076 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 16077 | struct point {int x, y;}; |
| 16078 | static struct point const zero = {0,0}; |
| 16079 | /* AIX XL C 1.02.0.0 rejects this. |
| 16080 | It does not let you subtract one const X* pointer from another in |
| 16081 | an arm of an if-expression whose if-part is not a constant |
| 16082 | expression */ |
| 16083 | const char *g = "string"; |
| 16084 | ccp = &g + (g ? g-g : 0); |
| 16085 | /* HPUX 7.0 cc rejects these. */ |
| 16086 | ++ccp; |
| 16087 | p = (char**) ccp; |
| 16088 | ccp = (char const *const *) p; |
| 16089 | { /* SCO 3.2v4 cc rejects this. */ |
| 16090 | char *t; |
| 16091 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16092 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16093 | *t++ = 0; |
| 16094 | } |
| 16095 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 16096 | int x[] = {25, 17}; |
| 16097 | const int *foo = &x[0]; |
| 16098 | ++foo; |
| 16099 | } |
| 16100 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 16101 | typedef const int *iptr; |
| 16102 | iptr p = 0; |
| 16103 | ++p; |
| 16104 | } |
| 16105 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 16106 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 16107 | struct s { int j; const int *ap[3]; }; |
| 16108 | struct s *b; b->j = 5; |
| 16109 | } |
| 16110 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 16111 | const int foo = 10; |
| 16112 | } |
| 16113 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16114 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16115 | ; |
| 16116 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16117 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16118 | _ACEOF |
| 16119 | rm -f conftest.$ac_objext |
| 16120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16121 | (eval $ac_compile) 2>&5 |
| 16122 | ac_status=$? |
| 16123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16124 | (exit $ac_status); } && |
| 16125 | { ac_try='test -s conftest.$ac_objext' |
| 16126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16127 | (eval $ac_try) 2>&5 |
| 16128 | ac_status=$? |
| 16129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16130 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16131 | ac_cv_c_const=yes |
| 16132 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16133 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16134 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16135 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16136 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16137 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16138 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16139 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16140 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 16141 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16142 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16143 | |
| 16144 | cat >>confdefs.h <<\_ACEOF |
| 16145 | #define const |
| 16146 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16147 | |
| 16148 | fi |
| 16149 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16150 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16151 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16152 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 16153 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 16154 | cat >conftest.$ac_ext <<_ACEOF |
| 16155 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16156 | /* confdefs.h. */ |
| 16157 | _ACEOF |
| 16158 | cat confdefs.h >>conftest.$ac_ext |
| 16159 | cat >>conftest.$ac_ext <<_ACEOF |
| 16160 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16161 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16162 | int |
| 16163 | main () |
| 16164 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16165 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16166 | ; |
| 16167 | return 0; |
| 16168 | } |
| 16169 | _ACEOF |
| 16170 | rm -f conftest.$ac_objext |
| 16171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16172 | (eval $ac_compile) 2>&5 |
| 16173 | ac_status=$? |
| 16174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16175 | (exit $ac_status); } && |
| 16176 | { ac_try='test -s conftest.$ac_objext' |
| 16177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16178 | (eval $ac_try) 2>&5 |
| 16179 | ac_status=$? |
| 16180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16181 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16182 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16183 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16184 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16185 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16186 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16187 | |
| 16188 | cat >>confdefs.h <<\_ACEOF |
| 16189 | #define volatile |
| 16190 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16191 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16192 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16193 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16194 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16195 | echo "$as_me:$LINENO: result: $works" >&5 |
| 16196 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16197 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16198 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16199 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 16200 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 16201 | cat >conftest.$ac_ext <<_ACEOF |
| 16202 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16203 | /* confdefs.h. */ |
| 16204 | _ACEOF |
| 16205 | cat confdefs.h >>conftest.$ac_ext |
| 16206 | cat >>conftest.$ac_ext <<_ACEOF |
| 16207 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 16208 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16209 | int |
| 16210 | main () |
| 16211 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16212 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16213 | ; |
| 16214 | return 0; |
| 16215 | } |
| 16216 | _ACEOF |
| 16217 | rm -f conftest.$ac_objext |
| 16218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16219 | (eval $ac_compile) 2>&5 |
| 16220 | ac_status=$? |
| 16221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16222 | (exit $ac_status); } && |
| 16223 | { ac_try='test -s conftest.$ac_objext' |
| 16224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16225 | (eval $ac_try) 2>&5 |
| 16226 | ac_status=$? |
| 16227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16228 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16229 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 16230 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16231 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16233 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16234 | |
| 16235 | cat >>confdefs.h <<\_ACEOF |
| 16236 | #define signed |
| 16237 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16238 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16239 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16240 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16241 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16242 | echo "$as_me:$LINENO: result: $works" >&5 |
| 16243 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16244 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16245 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16246 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 16247 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 16248 | cat >conftest.$ac_ext <<_ACEOF |
| 16249 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16250 | /* confdefs.h. */ |
| 16251 | _ACEOF |
| 16252 | cat confdefs.h >>conftest.$ac_ext |
| 16253 | cat >>conftest.$ac_ext <<_ACEOF |
| 16254 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16255 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16256 | int |
| 16257 | main () |
| 16258 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16259 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16260 | ; |
| 16261 | return 0; |
| 16262 | } |
| 16263 | _ACEOF |
| 16264 | rm -f conftest.$ac_objext |
| 16265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16266 | (eval $ac_compile) 2>&5 |
| 16267 | ac_status=$? |
| 16268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16269 | (exit $ac_status); } && |
| 16270 | { ac_try='test -s conftest.$ac_objext' |
| 16271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16272 | (eval $ac_try) 2>&5 |
| 16273 | ac_status=$? |
| 16274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16275 | (exit $ac_status); }; }; then |
| 16276 | |
| 16277 | |
| 16278 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16279 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16280 | _ACEOF |
| 16281 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16282 | have_prototypes=yes |
| 16283 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16284 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16285 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16287 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16288 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16289 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16290 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 16291 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16292 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16293 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16294 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 16295 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 16296 | cat >conftest.$ac_ext <<_ACEOF |
| 16297 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16298 | /* confdefs.h. */ |
| 16299 | _ACEOF |
| 16300 | cat confdefs.h >>conftest.$ac_ext |
| 16301 | cat >>conftest.$ac_ext <<_ACEOF |
| 16302 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16303 | |
| 16304 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 16305 | int foo(int x, ...) { |
| 16306 | va_list va; |
| 16307 | va_start(va, x); |
| 16308 | va_arg(va, int); |
| 16309 | va_arg(va, char *); |
| 16310 | va_arg(va, double); |
| 16311 | return 0; |
| 16312 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16313 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16314 | int |
| 16315 | main () |
| 16316 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 16317 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16318 | ; |
| 16319 | return 0; |
| 16320 | } |
| 16321 | _ACEOF |
| 16322 | rm -f conftest.$ac_objext |
| 16323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16324 | (eval $ac_compile) 2>&5 |
| 16325 | ac_status=$? |
| 16326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16327 | (exit $ac_status); } && |
| 16328 | { ac_try='test -s conftest.$ac_objext' |
| 16329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16330 | (eval $ac_try) 2>&5 |
| 16331 | ac_status=$? |
| 16332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16333 | (exit $ac_status); }; }; then |
| 16334 | |
| 16335 | |
| 16336 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16337 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16338 | _ACEOF |
| 16339 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16340 | works=yes |
| 16341 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16342 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16343 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16345 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16346 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16347 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16348 | echo "$as_me:$LINENO: result: $works" >&5 |
| 16349 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16350 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16351 | if test "$have_prototypes" = yes; then |
| 16352 | bad_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16353 | echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5 |
| 16354 | echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6 |
| 16355 | cat >conftest.$ac_ext <<_ACEOF |
| 16356 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16357 | /* confdefs.h. */ |
| 16358 | _ACEOF |
| 16359 | cat confdefs.h >>conftest.$ac_ext |
| 16360 | cat >>conftest.$ac_ext <<_ACEOF |
| 16361 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16362 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16363 | int |
| 16364 | main () |
| 16365 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16366 | char **t;execve("@",t,t); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16367 | ; |
| 16368 | return 0; |
| 16369 | } |
| 16370 | _ACEOF |
| 16371 | rm -f conftest.$ac_objext |
| 16372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16373 | (eval $ac_compile) 2>&5 |
| 16374 | ac_status=$? |
| 16375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16376 | (exit $ac_status); } && |
| 16377 | { ac_try='test -s conftest.$ac_objext' |
| 16378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16379 | (eval $ac_try) 2>&5 |
| 16380 | ac_status=$? |
| 16381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16382 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16383 | : |
| 16384 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16385 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16387 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16388 | |
| 16389 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16390 | #define BAD_EXEC_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16391 | _ACEOF |
| 16392 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16393 | bad_prototypes=yes |
| 16394 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16395 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16396 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16397 | echo "$as_me:$LINENO: result: $bad_prototypes" >&5 |
| 16398 | echo "${ECHO_T}$bad_prototypes" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16399 | fi |
| 16400 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16401 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16402 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 16403 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 16404 | cat >conftest.$ac_ext <<_ACEOF |
| 16405 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16406 | /* confdefs.h. */ |
| 16407 | _ACEOF |
| 16408 | cat confdefs.h >>conftest.$ac_ext |
| 16409 | cat >>conftest.$ac_ext <<_ACEOF |
| 16410 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16411 | #include <sys/types.h> |
| 16412 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16413 | int |
| 16414 | main () |
| 16415 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16416 | struct sockaddr x; |
| 16417 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16418 | ; |
| 16419 | return 0; |
| 16420 | } |
| 16421 | _ACEOF |
| 16422 | rm -f conftest.$ac_objext |
| 16423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16424 | (eval $ac_compile) 2>&5 |
| 16425 | ac_status=$? |
| 16426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16427 | (exit $ac_status); } && |
| 16428 | { ac_try='test -s conftest.$ac_objext' |
| 16429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16430 | (eval $ac_try) 2>&5 |
| 16431 | ac_status=$? |
| 16432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16433 | (exit $ac_status); }; }; then |
| 16434 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16435 | echo "${ECHO_T}yes" >&6 |
| 16436 | |
| 16437 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16438 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16439 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16440 | |
| 16441 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16442 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16444 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16445 | echo "$as_me:$LINENO: result: no" >&5 |
| 16446 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16447 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16448 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16449 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16450 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16451 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 16452 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 16453 | cat >conftest.$ac_ext <<_ACEOF |
| 16454 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16455 | /* confdefs.h. */ |
| 16456 | _ACEOF |
| 16457 | cat confdefs.h >>conftest.$ac_ext |
| 16458 | cat >>conftest.$ac_ext <<_ACEOF |
| 16459 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16460 | |
| 16461 | #ifdef HAVE_STDARG_PROTOTYPES |
| 16462 | #include <stdarg.h> |
| 16463 | #else |
| 16464 | #include <varargs.h> |
| 16465 | #endif |
| 16466 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16467 | int |
| 16468 | main () |
| 16469 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16470 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16471 | ; |
| 16472 | return 0; |
| 16473 | } |
| 16474 | _ACEOF |
| 16475 | rm -f conftest.$ac_objext |
| 16476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16477 | (eval $ac_compile) 2>&5 |
| 16478 | ac_status=$? |
| 16479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16480 | (exit $ac_status); } && |
| 16481 | { ac_try='test -s conftest.$ac_objext' |
| 16482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16483 | (eval $ac_try) 2>&5 |
| 16484 | ac_status=$? |
| 16485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16486 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16487 | : |
| 16488 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16489 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16491 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16492 | |
| 16493 | |
| 16494 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16495 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16496 | _ACEOF |
| 16497 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16498 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16499 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16500 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16501 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16502 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 16503 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16504 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16505 | # 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] | 16506 | |
| 16507 | |
| 16508 | |
| 16509 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 16510 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 16511 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 16512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16513 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16514 | cat >conftest.$ac_ext <<_ACEOF |
| 16515 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16516 | /* confdefs.h. */ |
| 16517 | _ACEOF |
| 16518 | cat confdefs.h >>conftest.$ac_ext |
| 16519 | cat >>conftest.$ac_ext <<_ACEOF |
| 16520 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16521 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16522 | which can conflict with char gethostbyname_r (); below. |
| 16523 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 16524 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 16525 | including <limits.h> includes <sys/time.h> and causes problems |
| 16526 | checking for functions defined therein. */ |
| 16527 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16528 | # include <limits.h> |
| 16529 | #else |
| 16530 | # include <assert.h> |
| 16531 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16532 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16533 | #ifdef __cplusplus |
| 16534 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16535 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16536 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16537 | /* 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] | 16538 | builtin and then its argument prototype would still apply. */ |
| 16539 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16540 | /* The GNU C library defines this for functions which it implements |
| 16541 | to always fail with ENOSYS. Some functions are actually named |
| 16542 | something starting with __ and the normal name is an alias. */ |
| 16543 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 16544 | choke me |
| 16545 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16546 | char (*f) () = gethostbyname_r; |
| 16547 | #endif |
| 16548 | #ifdef __cplusplus |
| 16549 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16550 | #endif |
| 16551 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16552 | int |
| 16553 | main () |
| 16554 | { |
| 16555 | return f != gethostbyname_r; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16556 | ; |
| 16557 | return 0; |
| 16558 | } |
| 16559 | _ACEOF |
| 16560 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16562 | (eval $ac_link) 2>&5 |
| 16563 | ac_status=$? |
| 16564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16565 | (exit $ac_status); } && |
| 16566 | { ac_try='test -s conftest$ac_exeext' |
| 16567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16568 | (eval $ac_try) 2>&5 |
| 16569 | ac_status=$? |
| 16570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16571 | (exit $ac_status); }; }; then |
| 16572 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16573 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16574 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16576 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16577 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16578 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16579 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16580 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16581 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 16582 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 16583 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16585 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16586 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16587 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16588 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16589 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 16590 | 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] | 16591 | OLD_CFLAGS=$CFLAGS |
| 16592 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16593 | cat >conftest.$ac_ext <<_ACEOF |
| 16594 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16595 | /* confdefs.h. */ |
| 16596 | _ACEOF |
| 16597 | cat confdefs.h >>conftest.$ac_ext |
| 16598 | cat >>conftest.$ac_ext <<_ACEOF |
| 16599 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16600 | |
| 16601 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16602 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16603 | int |
| 16604 | main () |
| 16605 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16606 | |
| 16607 | char *name; |
| 16608 | struct hostent *he, *res; |
| 16609 | char buffer[2048]; |
| 16610 | int buflen = 2048; |
| 16611 | int h_errnop; |
| 16612 | |
| 16613 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16614 | |
| 16615 | ; |
| 16616 | return 0; |
| 16617 | } |
| 16618 | _ACEOF |
| 16619 | rm -f conftest.$ac_objext |
| 16620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16621 | (eval $ac_compile) 2>&5 |
| 16622 | ac_status=$? |
| 16623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16624 | (exit $ac_status); } && |
| 16625 | { ac_try='test -s conftest.$ac_objext' |
| 16626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16627 | (eval $ac_try) 2>&5 |
| 16628 | ac_status=$? |
| 16629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16630 | (exit $ac_status); }; }; then |
| 16631 | |
| 16632 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16633 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16634 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16635 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16636 | |
| 16637 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16638 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16639 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16640 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16641 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16642 | echo "${ECHO_T}yes" >&6 |
| 16643 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16644 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16645 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16646 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16647 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16648 | |
| 16649 | echo "$as_me:$LINENO: result: no" >&5 |
| 16650 | echo "${ECHO_T}no" >&6 |
| 16651 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 16652 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 16653 | cat >conftest.$ac_ext <<_ACEOF |
| 16654 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16655 | /* confdefs.h. */ |
| 16656 | _ACEOF |
| 16657 | cat confdefs.h >>conftest.$ac_ext |
| 16658 | cat >>conftest.$ac_ext <<_ACEOF |
| 16659 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16660 | |
| 16661 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16662 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16663 | int |
| 16664 | main () |
| 16665 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16666 | |
| 16667 | char *name; |
| 16668 | struct hostent *he; |
| 16669 | char buffer[2048]; |
| 16670 | int buflen = 2048; |
| 16671 | int h_errnop; |
| 16672 | |
| 16673 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16674 | |
| 16675 | ; |
| 16676 | return 0; |
| 16677 | } |
| 16678 | _ACEOF |
| 16679 | rm -f conftest.$ac_objext |
| 16680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16681 | (eval $ac_compile) 2>&5 |
| 16682 | ac_status=$? |
| 16683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16684 | (exit $ac_status); } && |
| 16685 | { ac_try='test -s conftest.$ac_objext' |
| 16686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16687 | (eval $ac_try) 2>&5 |
| 16688 | ac_status=$? |
| 16689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16690 | (exit $ac_status); }; }; then |
| 16691 | |
| 16692 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16693 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16694 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16695 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16696 | |
| 16697 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16698 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16699 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16700 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16701 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16702 | echo "${ECHO_T}yes" >&6 |
| 16703 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16704 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16705 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16706 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16707 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16708 | |
| 16709 | echo "$as_me:$LINENO: result: no" >&5 |
| 16710 | echo "${ECHO_T}no" >&6 |
| 16711 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 16712 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 16713 | cat >conftest.$ac_ext <<_ACEOF |
| 16714 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16715 | /* confdefs.h. */ |
| 16716 | _ACEOF |
| 16717 | cat confdefs.h >>conftest.$ac_ext |
| 16718 | cat >>conftest.$ac_ext <<_ACEOF |
| 16719 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16720 | |
| 16721 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16722 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16723 | int |
| 16724 | main () |
| 16725 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16726 | |
| 16727 | char *name; |
| 16728 | struct hostent *he; |
| 16729 | struct hostent_data data; |
| 16730 | |
| 16731 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16732 | |
| 16733 | ; |
| 16734 | return 0; |
| 16735 | } |
| 16736 | _ACEOF |
| 16737 | rm -f conftest.$ac_objext |
| 16738 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16739 | (eval $ac_compile) 2>&5 |
| 16740 | ac_status=$? |
| 16741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16742 | (exit $ac_status); } && |
| 16743 | { ac_try='test -s conftest.$ac_objext' |
| 16744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16745 | (eval $ac_try) 2>&5 |
| 16746 | ac_status=$? |
| 16747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16748 | (exit $ac_status); }; }; then |
| 16749 | |
| 16750 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16751 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16752 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 16753 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16754 | |
| 16755 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16756 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16757 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16758 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16759 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16760 | echo "${ECHO_T}yes" >&6 |
| 16761 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16762 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16763 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16764 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16765 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16766 | |
| 16767 | echo "$as_me:$LINENO: result: no" >&5 |
| 16768 | echo "${ECHO_T}no" >&6 |
| 16769 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16770 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16771 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16772 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16773 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16774 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16775 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16776 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16777 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16778 | CFLAGS=$OLD_CFLAGS |
| 16779 | |
| 16780 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16781 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16782 | |
| 16783 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16784 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16785 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16786 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16787 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16788 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16790 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16791 | cat >conftest.$ac_ext <<_ACEOF |
| 16792 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16793 | /* confdefs.h. */ |
| 16794 | _ACEOF |
| 16795 | cat confdefs.h >>conftest.$ac_ext |
| 16796 | cat >>conftest.$ac_ext <<_ACEOF |
| 16797 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16798 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16799 | which can conflict with char $ac_func (); below. |
| 16800 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 16801 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 16802 | including <limits.h> includes <sys/time.h> and causes problems |
| 16803 | checking for functions defined therein. */ |
| 16804 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16805 | # include <limits.h> |
| 16806 | #else |
| 16807 | # include <assert.h> |
| 16808 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16809 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16810 | #ifdef __cplusplus |
| 16811 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16812 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16813 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16814 | /* 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] | 16815 | builtin and then its argument prototype would still apply. */ |
| 16816 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16817 | /* The GNU C library defines this for functions which it implements |
| 16818 | to always fail with ENOSYS. Some functions are actually named |
| 16819 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16820 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16821 | choke me |
| 16822 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16823 | char (*f) () = $ac_func; |
| 16824 | #endif |
| 16825 | #ifdef __cplusplus |
| 16826 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16827 | #endif |
| 16828 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16829 | int |
| 16830 | main () |
| 16831 | { |
| 16832 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16833 | ; |
| 16834 | return 0; |
| 16835 | } |
| 16836 | _ACEOF |
| 16837 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16839 | (eval $ac_link) 2>&5 |
| 16840 | ac_status=$? |
| 16841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16842 | (exit $ac_status); } && |
| 16843 | { ac_try='test -s conftest$ac_exeext' |
| 16844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16845 | (eval $ac_try) 2>&5 |
| 16846 | ac_status=$? |
| 16847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16848 | (exit $ac_status); }; }; then |
| 16849 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16850 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16851 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16853 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16854 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16855 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16856 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16857 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16858 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16859 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16860 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16861 | cat >>confdefs.h <<_ACEOF |
| 16862 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16863 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16864 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16865 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16866 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16867 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16868 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 16869 | fi |
| 16870 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16871 | |
| 16872 | |
| 16873 | |
| 16874 | |
| 16875 | |
| 16876 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16877 | # checks for system services |
| 16878 | # (none yet) |
| 16879 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16880 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16881 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 16882 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 16883 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 16884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16885 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16886 | cat >conftest.$ac_ext <<_ACEOF |
| 16887 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16888 | /* confdefs.h. */ |
| 16889 | _ACEOF |
| 16890 | cat confdefs.h >>conftest.$ac_ext |
| 16891 | cat >>conftest.$ac_ext <<_ACEOF |
| 16892 | /* end confdefs.h. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16893 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16894 | which can conflict with char __fpu_control (); below. |
| 16895 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 16896 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 16897 | including <limits.h> includes <sys/time.h> and causes problems |
| 16898 | checking for functions defined therein. */ |
| 16899 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16900 | # include <limits.h> |
| 16901 | #else |
| 16902 | # include <assert.h> |
| 16903 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16904 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16905 | #ifdef __cplusplus |
| 16906 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16907 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16908 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16909 | /* 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] | 16910 | builtin and then its argument prototype would still apply. */ |
| 16911 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16912 | /* The GNU C library defines this for functions which it implements |
| 16913 | to always fail with ENOSYS. Some functions are actually named |
| 16914 | something starting with __ and the normal name is an alias. */ |
| 16915 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 16916 | choke me |
| 16917 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16918 | char (*f) () = __fpu_control; |
| 16919 | #endif |
| 16920 | #ifdef __cplusplus |
| 16921 | } |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16922 | #endif |
| 16923 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16924 | int |
| 16925 | main () |
| 16926 | { |
| 16927 | return f != __fpu_control; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16928 | ; |
| 16929 | return 0; |
| 16930 | } |
| 16931 | _ACEOF |
| 16932 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16934 | (eval $ac_link) 2>&5 |
| 16935 | ac_status=$? |
| 16936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16937 | (exit $ac_status); } && |
| 16938 | { ac_try='test -s conftest$ac_exeext' |
| 16939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16940 | (eval $ac_try) 2>&5 |
| 16941 | ac_status=$? |
| 16942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16943 | (exit $ac_status); }; }; then |
| 16944 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16945 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16946 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16947 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16948 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16949 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16950 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16951 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16952 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16953 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 16954 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 16955 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16956 | : |
| 16957 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16958 | |
| 16959 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 16960 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 16961 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 16962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16963 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16964 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16965 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16966 | cat >conftest.$ac_ext <<_ACEOF |
| 16967 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16968 | /* confdefs.h. */ |
| 16969 | _ACEOF |
| 16970 | cat confdefs.h >>conftest.$ac_ext |
| 16971 | cat >>conftest.$ac_ext <<_ACEOF |
| 16972 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16973 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16974 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16975 | #ifdef __cplusplus |
| 16976 | extern "C" |
| 16977 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16978 | /* 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] | 16979 | builtin and then its argument prototype would still apply. */ |
| 16980 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16981 | int |
| 16982 | main () |
| 16983 | { |
| 16984 | __fpu_control (); |
| 16985 | ; |
| 16986 | return 0; |
| 16987 | } |
| 16988 | _ACEOF |
| 16989 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16991 | (eval $ac_link) 2>&5 |
| 16992 | ac_status=$? |
| 16993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16994 | (exit $ac_status); } && |
| 16995 | { ac_try='test -s conftest$ac_exeext' |
| 16996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16997 | (eval $ac_try) 2>&5 |
| 16998 | ac_status=$? |
| 16999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17000 | (exit $ac_status); }; }; then |
| 17001 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17002 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17003 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17004 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17005 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17006 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17007 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17008 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 17009 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17010 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17011 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 17012 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 17013 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 17014 | cat >>confdefs.h <<_ACEOF |
| 17015 | #define HAVE_LIBIEEE 1 |
| 17016 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17017 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17018 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17019 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17020 | fi |
| 17021 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17022 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17023 | fi |
| 17024 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17025 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17026 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17027 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 17028 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 17029 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17030 | # Check whether --with-fpectl or --without-fpectl was given. |
| 17031 | if test "${with_fpectl+set}" = set; then |
| 17032 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17033 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17034 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17035 | then |
| 17036 | |
| 17037 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17038 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17039 | _ACEOF |
| 17040 | |
| 17041 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17042 | echo "${ECHO_T}yes" >&6 |
| 17043 | else echo "$as_me:$LINENO: result: no" >&5 |
| 17044 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17045 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17046 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17047 | echo "$as_me:$LINENO: result: no" >&5 |
| 17048 | echo "${ECHO_T}no" >&6 |
| 17049 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17050 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17051 | # check for --with-libm=... |
| 17052 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 17053 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 17054 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 17055 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 17056 | *) LIBM=-lm |
| 17057 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17058 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 17059 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 17060 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17061 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17062 | if test "${with_libm+set}" = set; then |
| 17063 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17064 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17065 | if test "$withval" = no |
| 17066 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17067 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 17068 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17069 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17070 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17071 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 17072 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 17073 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 17074 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 17075 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17076 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17077 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17078 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 17079 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 17080 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17081 | |
| 17082 | # check for --with-libc=... |
| 17083 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17084 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 17085 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 17086 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17087 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17088 | if test "${with_libc+set}" = set; then |
| 17089 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17090 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17091 | if test "$withval" = no |
| 17092 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17093 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 17094 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17095 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17096 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17097 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 17098 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 17099 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 17100 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 17101 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17102 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17103 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17104 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 17105 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 17106 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17107 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17108 | # check for hypot() in math library |
| 17109 | LIBS_SAVE=$LIBS |
| 17110 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17111 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17112 | for ac_func in hypot |
| 17113 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17114 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17115 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17116 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17117 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 17118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17119 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17120 | cat >conftest.$ac_ext <<_ACEOF |
| 17121 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17122 | /* confdefs.h. */ |
| 17123 | _ACEOF |
| 17124 | cat confdefs.h >>conftest.$ac_ext |
| 17125 | cat >>conftest.$ac_ext <<_ACEOF |
| 17126 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17127 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17128 | which can conflict with char $ac_func (); below. |
| 17129 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 17130 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 17131 | including <limits.h> includes <sys/time.h> and causes problems |
| 17132 | checking for functions defined therein. */ |
| 17133 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17134 | # include <limits.h> |
| 17135 | #else |
| 17136 | # include <assert.h> |
| 17137 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17138 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17139 | #ifdef __cplusplus |
| 17140 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17141 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17142 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17143 | /* 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] | 17144 | builtin and then its argument prototype would still apply. */ |
| 17145 | char $ac_func (); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17146 | /* The GNU C library defines this for functions which it implements |
| 17147 | to always fail with ENOSYS. Some functions are actually named |
| 17148 | something starting with __ and the normal name is an alias. */ |
| 17149 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 17150 | choke me |
| 17151 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17152 | char (*f) () = $ac_func; |
| 17153 | #endif |
| 17154 | #ifdef __cplusplus |
| 17155 | } |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17156 | #endif |
| 17157 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17158 | int |
| 17159 | main () |
| 17160 | { |
| 17161 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17162 | ; |
| 17163 | return 0; |
| 17164 | } |
| 17165 | _ACEOF |
| 17166 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17167 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17168 | (eval $ac_link) 2>&5 |
| 17169 | ac_status=$? |
| 17170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17171 | (exit $ac_status); } && |
| 17172 | { ac_try='test -s conftest$ac_exeext' |
| 17173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17174 | (eval $ac_try) 2>&5 |
| 17175 | ac_status=$? |
| 17176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17177 | (exit $ac_status); }; }; then |
| 17178 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 17179 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17180 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17182 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17183 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17184 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17185 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17186 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17187 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17188 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17189 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17190 | cat >>confdefs.h <<_ACEOF |
| 17191 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17192 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17193 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17194 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17195 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 17196 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 17197 | done |
| 17198 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17199 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 17200 | LIBS=$LIBS_SAVE |
| 17201 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17202 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17203 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 17204 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 17205 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 17206 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 17207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17208 | fi |
| 17209 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 17210 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17211 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17212 | # Is the header compilable? |
| 17213 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 17214 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 17215 | cat >conftest.$ac_ext <<_ACEOF |
| 17216 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17217 | /* confdefs.h. */ |
| 17218 | _ACEOF |
| 17219 | cat confdefs.h >>conftest.$ac_ext |
| 17220 | cat >>conftest.$ac_ext <<_ACEOF |
| 17221 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17222 | $ac_includes_default |
| 17223 | #include <wchar.h> |
| 17224 | _ACEOF |
| 17225 | rm -f conftest.$ac_objext |
| 17226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17227 | (eval $ac_compile) 2>&5 |
| 17228 | ac_status=$? |
| 17229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17230 | (exit $ac_status); } && |
| 17231 | { ac_try='test -s conftest.$ac_objext' |
| 17232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17233 | (eval $ac_try) 2>&5 |
| 17234 | ac_status=$? |
| 17235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17236 | (exit $ac_status); }; }; then |
| 17237 | ac_header_compiler=yes |
| 17238 | else |
| 17239 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17241 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17242 | ac_header_compiler=no |
| 17243 | fi |
| 17244 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17245 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17246 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 17247 | |
| 17248 | # Is the header present? |
| 17249 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 17250 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 17251 | cat >conftest.$ac_ext <<_ACEOF |
| 17252 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17253 | /* confdefs.h. */ |
| 17254 | _ACEOF |
| 17255 | cat confdefs.h >>conftest.$ac_ext |
| 17256 | cat >>conftest.$ac_ext <<_ACEOF |
| 17257 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17258 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17259 | _ACEOF |
| 17260 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 17261 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 17262 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17263 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17264 | rm -f conftest.er1 |
| 17265 | cat conftest.err >&5 |
| 17266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17267 | (exit $ac_status); } >/dev/null; then |
| 17268 | if test -s conftest.err; then |
| 17269 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 17270 | else |
| 17271 | ac_cpp_err= |
| 17272 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17273 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17274 | ac_cpp_err=yes |
| 17275 | fi |
| 17276 | if test -z "$ac_cpp_err"; then |
| 17277 | ac_header_preproc=yes |
| 17278 | else |
| 17279 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17281 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17282 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17283 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17284 | rm -f conftest.err conftest.$ac_ext |
| 17285 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17286 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 17287 | |
| 17288 | # So? What about this header? |
| 17289 | case $ac_header_compiler:$ac_header_preproc in |
| 17290 | yes:no ) |
| 17291 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17292 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17293 | { 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] | 17294 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 17295 | ( |
| 17296 | cat <<\_ASBOX |
| 17297 | ## ------------------------------------ ## |
| 17298 | ## Report this to bug-autoconf@gnu.org. ## |
| 17299 | ## ------------------------------------ ## |
| 17300 | _ASBOX |
| 17301 | ) | |
| 17302 | sed "s/^/$as_me: WARNING: /" >&2 |
| 17303 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17304 | no:yes ) |
| 17305 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 17306 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 17307 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 17308 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 17309 | { 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] | 17310 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 17311 | ( |
| 17312 | cat <<\_ASBOX |
| 17313 | ## ------------------------------------ ## |
| 17314 | ## Report this to bug-autoconf@gnu.org. ## |
| 17315 | ## ------------------------------------ ## |
| 17316 | _ASBOX |
| 17317 | ) | |
| 17318 | sed "s/^/$as_me: WARNING: /" >&2 |
| 17319 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17320 | esac |
| 17321 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 17322 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 17323 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 17324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17325 | else |
| 17326 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17327 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17328 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 17329 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 17330 | |
| 17331 | fi |
| 17332 | if test $ac_cv_header_wchar_h = yes; then |
| 17333 | |
| 17334 | |
| 17335 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17336 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17337 | _ACEOF |
| 17338 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17339 | wchar_h="yes" |
| 17340 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17341 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17342 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17343 | |
| 17344 | fi |
| 17345 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17346 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17347 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17348 | # determine wchar_t size |
| 17349 | if test "$wchar_h" = yes |
| 17350 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17351 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 17352 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 17353 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 17354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17355 | else |
| 17356 | cat >conftest.$ac_ext <<_ACEOF |
| 17357 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17358 | /* confdefs.h. */ |
| 17359 | _ACEOF |
| 17360 | cat confdefs.h >>conftest.$ac_ext |
| 17361 | cat >>conftest.$ac_ext <<_ACEOF |
| 17362 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17363 | #include <wchar.h> |
| 17364 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17365 | int |
| 17366 | main () |
| 17367 | { |
| 17368 | if ((wchar_t *) 0) |
| 17369 | return 0; |
| 17370 | if (sizeof (wchar_t)) |
| 17371 | return 0; |
| 17372 | ; |
| 17373 | return 0; |
| 17374 | } |
| 17375 | _ACEOF |
| 17376 | rm -f conftest.$ac_objext |
| 17377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17378 | (eval $ac_compile) 2>&5 |
| 17379 | ac_status=$? |
| 17380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17381 | (exit $ac_status); } && |
| 17382 | { ac_try='test -s conftest.$ac_objext' |
| 17383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17384 | (eval $ac_try) 2>&5 |
| 17385 | ac_status=$? |
| 17386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17387 | (exit $ac_status); }; }; then |
| 17388 | ac_cv_type_wchar_t=yes |
| 17389 | else |
| 17390 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17392 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17393 | ac_cv_type_wchar_t=no |
| 17394 | fi |
| 17395 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17396 | fi |
| 17397 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 17398 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 17399 | |
| 17400 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 17401 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 17402 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 17403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17404 | else |
| 17405 | if test "$ac_cv_type_wchar_t" = yes; then |
| 17406 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 17407 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 17408 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 17409 | # This bug is HP SR number 8606223364. |
| 17410 | if test "$cross_compiling" = yes; then |
| 17411 | # Depending upon the size, compute the lo and hi bounds. |
| 17412 | cat >conftest.$ac_ext <<_ACEOF |
| 17413 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17414 | /* confdefs.h. */ |
| 17415 | _ACEOF |
| 17416 | cat confdefs.h >>conftest.$ac_ext |
| 17417 | cat >>conftest.$ac_ext <<_ACEOF |
| 17418 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17419 | #include <wchar.h> |
| 17420 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17421 | int |
| 17422 | main () |
| 17423 | { |
| 17424 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 17425 | test_array [0] = 0 |
| 17426 | |
| 17427 | ; |
| 17428 | return 0; |
| 17429 | } |
| 17430 | _ACEOF |
| 17431 | rm -f conftest.$ac_objext |
| 17432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17433 | (eval $ac_compile) 2>&5 |
| 17434 | ac_status=$? |
| 17435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17436 | (exit $ac_status); } && |
| 17437 | { ac_try='test -s conftest.$ac_objext' |
| 17438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17439 | (eval $ac_try) 2>&5 |
| 17440 | ac_status=$? |
| 17441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17442 | (exit $ac_status); }; }; then |
| 17443 | ac_lo=0 ac_mid=0 |
| 17444 | while :; do |
| 17445 | cat >conftest.$ac_ext <<_ACEOF |
| 17446 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17447 | /* confdefs.h. */ |
| 17448 | _ACEOF |
| 17449 | cat confdefs.h >>conftest.$ac_ext |
| 17450 | cat >>conftest.$ac_ext <<_ACEOF |
| 17451 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17452 | #include <wchar.h> |
| 17453 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17454 | int |
| 17455 | main () |
| 17456 | { |
| 17457 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 17458 | test_array [0] = 0 |
| 17459 | |
| 17460 | ; |
| 17461 | return 0; |
| 17462 | } |
| 17463 | _ACEOF |
| 17464 | rm -f conftest.$ac_objext |
| 17465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17466 | (eval $ac_compile) 2>&5 |
| 17467 | ac_status=$? |
| 17468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17469 | (exit $ac_status); } && |
| 17470 | { ac_try='test -s conftest.$ac_objext' |
| 17471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17472 | (eval $ac_try) 2>&5 |
| 17473 | ac_status=$? |
| 17474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17475 | (exit $ac_status); }; }; then |
| 17476 | ac_hi=$ac_mid; break |
| 17477 | else |
| 17478 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17480 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17481 | ac_lo=`expr $ac_mid + 1` |
| 17482 | if test $ac_lo -le $ac_mid; then |
| 17483 | ac_lo= ac_hi= |
| 17484 | break |
| 17485 | fi |
| 17486 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 17487 | fi |
| 17488 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17489 | done |
| 17490 | else |
| 17491 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17493 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17494 | cat >conftest.$ac_ext <<_ACEOF |
| 17495 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17496 | /* confdefs.h. */ |
| 17497 | _ACEOF |
| 17498 | cat confdefs.h >>conftest.$ac_ext |
| 17499 | cat >>conftest.$ac_ext <<_ACEOF |
| 17500 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17501 | #include <wchar.h> |
| 17502 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17503 | int |
| 17504 | main () |
| 17505 | { |
| 17506 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 17507 | test_array [0] = 0 |
| 17508 | |
| 17509 | ; |
| 17510 | return 0; |
| 17511 | } |
| 17512 | _ACEOF |
| 17513 | rm -f conftest.$ac_objext |
| 17514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17515 | (eval $ac_compile) 2>&5 |
| 17516 | ac_status=$? |
| 17517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17518 | (exit $ac_status); } && |
| 17519 | { ac_try='test -s conftest.$ac_objext' |
| 17520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17521 | (eval $ac_try) 2>&5 |
| 17522 | ac_status=$? |
| 17523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17524 | (exit $ac_status); }; }; then |
| 17525 | ac_hi=-1 ac_mid=-1 |
| 17526 | while :; do |
| 17527 | cat >conftest.$ac_ext <<_ACEOF |
| 17528 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17529 | /* confdefs.h. */ |
| 17530 | _ACEOF |
| 17531 | cat confdefs.h >>conftest.$ac_ext |
| 17532 | cat >>conftest.$ac_ext <<_ACEOF |
| 17533 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17534 | #include <wchar.h> |
| 17535 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17536 | int |
| 17537 | main () |
| 17538 | { |
| 17539 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 17540 | test_array [0] = 0 |
| 17541 | |
| 17542 | ; |
| 17543 | return 0; |
| 17544 | } |
| 17545 | _ACEOF |
| 17546 | rm -f conftest.$ac_objext |
| 17547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17548 | (eval $ac_compile) 2>&5 |
| 17549 | ac_status=$? |
| 17550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17551 | (exit $ac_status); } && |
| 17552 | { ac_try='test -s conftest.$ac_objext' |
| 17553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17554 | (eval $ac_try) 2>&5 |
| 17555 | ac_status=$? |
| 17556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17557 | (exit $ac_status); }; }; then |
| 17558 | ac_lo=$ac_mid; break |
| 17559 | else |
| 17560 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17562 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17563 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 17564 | if test $ac_mid -le $ac_hi; then |
| 17565 | ac_lo= ac_hi= |
| 17566 | break |
| 17567 | fi |
| 17568 | ac_mid=`expr 2 '*' $ac_mid` |
| 17569 | fi |
| 17570 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17571 | done |
| 17572 | else |
| 17573 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17575 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17576 | ac_lo= ac_hi= |
| 17577 | fi |
| 17578 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17579 | fi |
| 17580 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17581 | # Binary search between lo and hi bounds. |
| 17582 | while test "x$ac_lo" != "x$ac_hi"; do |
| 17583 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 17584 | cat >conftest.$ac_ext <<_ACEOF |
| 17585 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17586 | /* confdefs.h. */ |
| 17587 | _ACEOF |
| 17588 | cat confdefs.h >>conftest.$ac_ext |
| 17589 | cat >>conftest.$ac_ext <<_ACEOF |
| 17590 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17591 | #include <wchar.h> |
| 17592 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17593 | int |
| 17594 | main () |
| 17595 | { |
| 17596 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 17597 | test_array [0] = 0 |
| 17598 | |
| 17599 | ; |
| 17600 | return 0; |
| 17601 | } |
| 17602 | _ACEOF |
| 17603 | rm -f conftest.$ac_objext |
| 17604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17605 | (eval $ac_compile) 2>&5 |
| 17606 | ac_status=$? |
| 17607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17608 | (exit $ac_status); } && |
| 17609 | { ac_try='test -s conftest.$ac_objext' |
| 17610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17611 | (eval $ac_try) 2>&5 |
| 17612 | ac_status=$? |
| 17613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17614 | (exit $ac_status); }; }; then |
| 17615 | ac_hi=$ac_mid |
| 17616 | else |
| 17617 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17620 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 17621 | fi |
| 17622 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17623 | done |
| 17624 | case $ac_lo in |
| 17625 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17626 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 17627 | See \`config.log' for more details." >&5 |
| 17628 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 17629 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17630 | { (exit 1); exit 1; }; } ;; |
| 17631 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17632 | else |
| 17633 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17634 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 17635 | See \`config.log' for more details." >&5 |
| 17636 | echo "$as_me: error: cannot run test program while cross compiling |
| 17637 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17638 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17639 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17640 | cat >conftest.$ac_ext <<_ACEOF |
| 17641 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17642 | /* confdefs.h. */ |
| 17643 | _ACEOF |
| 17644 | cat confdefs.h >>conftest.$ac_ext |
| 17645 | cat >>conftest.$ac_ext <<_ACEOF |
| 17646 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17647 | #include <wchar.h> |
| 17648 | |
| 17649 | long longval () { return (long) (sizeof (wchar_t)); } |
| 17650 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17651 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17652 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17653 | int |
| 17654 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17655 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17656 | |
| 17657 | FILE *f = fopen ("conftest.val", "w"); |
| 17658 | if (! f) |
| 17659 | exit (1); |
| 17660 | if (((long) (sizeof (wchar_t))) < 0) |
| 17661 | { |
| 17662 | long i = longval (); |
| 17663 | if (i != ((long) (sizeof (wchar_t)))) |
| 17664 | exit (1); |
| 17665 | fprintf (f, "%ld\n", i); |
| 17666 | } |
| 17667 | else |
| 17668 | { |
| 17669 | unsigned long i = ulongval (); |
| 17670 | if (i != ((long) (sizeof (wchar_t)))) |
| 17671 | exit (1); |
| 17672 | fprintf (f, "%lu\n", i); |
| 17673 | } |
| 17674 | exit (ferror (f) || fclose (f) != 0); |
| 17675 | |
| 17676 | ; |
| 17677 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17678 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17679 | _ACEOF |
| 17680 | rm -f conftest$ac_exeext |
| 17681 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17682 | (eval $ac_link) 2>&5 |
| 17683 | ac_status=$? |
| 17684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17685 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17687 | (eval $ac_try) 2>&5 |
| 17688 | ac_status=$? |
| 17689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17690 | (exit $ac_status); }; }; then |
| 17691 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17692 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17693 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17694 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17696 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17697 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17698 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 17699 | See \`config.log' for more details." >&5 |
| 17700 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 17701 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17702 | { (exit 1); exit 1; }; } |
| 17703 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17704 | 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] | 17705 | fi |
| 17706 | fi |
| 17707 | rm -f conftest.val |
| 17708 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17709 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17710 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17711 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17712 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 17713 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 17714 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17715 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17716 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17717 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17718 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17719 | fi |
| 17720 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17721 | echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 17722 | echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6 |
| 17723 | have_ucs4_tcl=no |
| 17724 | cat >conftest.$ac_ext <<_ACEOF |
| 17725 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17726 | /* confdefs.h. */ |
| 17727 | _ACEOF |
| 17728 | cat confdefs.h >>conftest.$ac_ext |
| 17729 | cat >>conftest.$ac_ext <<_ACEOF |
| 17730 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17731 | |
| 17732 | #include <tcl.h> |
| 17733 | #if TCL_UTF_MAX != 6 |
| 17734 | # error "NOT UCS4_TCL" |
| 17735 | #endif |
| 17736 | int |
| 17737 | main () |
| 17738 | { |
| 17739 | |
| 17740 | ; |
| 17741 | return 0; |
| 17742 | } |
| 17743 | _ACEOF |
| 17744 | rm -f conftest.$ac_objext |
| 17745 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17746 | (eval $ac_compile) 2>&5 |
| 17747 | ac_status=$? |
| 17748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17749 | (exit $ac_status); } && |
| 17750 | { ac_try='test -s conftest.$ac_objext' |
| 17751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17752 | (eval $ac_try) 2>&5 |
| 17753 | ac_status=$? |
| 17754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17755 | (exit $ac_status); }; }; then |
| 17756 | |
| 17757 | |
| 17758 | cat >>confdefs.h <<\_ACEOF |
| 17759 | #define HAVE_UCS4_TCL 1 |
| 17760 | _ACEOF |
| 17761 | |
| 17762 | have_ucs4_tcl=yes |
| 17763 | |
| 17764 | else |
| 17765 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17767 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17768 | fi |
| 17769 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17770 | echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 17771 | echo "${ECHO_T}$have_ucs4_tcl" >&6 |
| 17772 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17773 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17774 | if test "$wchar_h" = yes |
| 17775 | then |
| 17776 | # check whether wchar_t is signed or not |
| 17777 | echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 17778 | echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6 |
| 17779 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
| 17780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17781 | else |
| 17782 | |
| 17783 | if test "$cross_compiling" = yes; then |
| 17784 | ac_cv_wchar_t_signed=yes |
| 17785 | else |
| 17786 | cat >conftest.$ac_ext <<_ACEOF |
| 17787 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17788 | /* confdefs.h. */ |
| 17789 | _ACEOF |
| 17790 | cat confdefs.h >>conftest.$ac_ext |
| 17791 | cat >>conftest.$ac_ext <<_ACEOF |
| 17792 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17793 | |
| 17794 | #include <wchar.h> |
| 17795 | int main() |
| 17796 | { |
| 17797 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0); |
| 17798 | } |
| 17799 | |
| 17800 | _ACEOF |
| 17801 | rm -f conftest$ac_exeext |
| 17802 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17803 | (eval $ac_link) 2>&5 |
| 17804 | ac_status=$? |
| 17805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17806 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17808 | (eval $ac_try) 2>&5 |
| 17809 | ac_status=$? |
| 17810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17811 | (exit $ac_status); }; }; then |
| 17812 | ac_cv_wchar_t_signed=yes |
| 17813 | else |
| 17814 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17815 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17817 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17818 | ( exit $ac_status ) |
| 17819 | ac_cv_wchar_t_signed=no |
| 17820 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17821 | 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] | 17822 | fi |
| 17823 | fi |
| 17824 | |
| 17825 | echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 17826 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6 |
| 17827 | fi |
| 17828 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17829 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 17830 | 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] | 17831 | # Check whether --enable-unicode or --disable-unicode was given. |
| 17832 | if test "${enable_unicode+set}" = set; then |
| 17833 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17834 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17835 | else |
| 17836 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17837 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17838 | |
| 17839 | if test $enable_unicode = yes |
| 17840 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 17841 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 17842 | case "$have_ucs4_tcl" in |
| 17843 | yes) enable_unicode="ucs4" |
| 17844 | ;; |
| 17845 | *) enable_unicode="ucs2" |
| 17846 | ;; |
| 17847 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17848 | fi |
| 17849 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 17850 | |
| 17851 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17852 | case "$enable_unicode" in |
| 17853 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17854 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17855 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17856 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17857 | |
| 17858 | ;; |
| 17859 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17860 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17861 | #define Py_UNICODE_SIZE 4 |
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 | |
| 17864 | ;; |
| 17865 | esac |
| 17866 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17867 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17868 | |
| 17869 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 17870 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17871 | if test "$enable_unicode" = "no" |
| 17872 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 17873 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17874 | echo "$as_me:$LINENO: result: not used" >&5 |
| 17875 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17876 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 17877 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17878 | |
| 17879 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17880 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17881 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17882 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 17883 | |
| 17884 | # wchar_t is only usable if it maps to an unsigned type |
| 17885 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
| 17886 | -a "$ac_cv_wchar_t_signed" == "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17887 | then |
| 17888 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17889 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17890 | cat >>confdefs.h <<\_ACEOF |
| 17891 | #define HAVE_USABLE_WCHAR_T 1 |
| 17892 | _ACEOF |
| 17893 | |
| 17894 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17895 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17896 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17897 | |
| 17898 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 17899 | then |
| 17900 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17901 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17902 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17903 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17904 | |
| 17905 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 17906 | then |
| 17907 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17908 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17909 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17910 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17911 | |
| 17912 | else |
| 17913 | PY_UNICODE_TYPE="no type found" |
| 17914 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17915 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 17916 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 17917 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17918 | |
| 17919 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17920 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 17921 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 17922 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 17923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17924 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17925 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 17926 | cat >conftest.$ac_ext <<_ACEOF |
| 17927 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17928 | /* confdefs.h. */ |
| 17929 | _ACEOF |
| 17930 | cat confdefs.h >>conftest.$ac_ext |
| 17931 | cat >>conftest.$ac_ext <<_ACEOF |
| 17932 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17933 | #include <sys/types.h> |
| 17934 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17935 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17936 | int |
| 17937 | main () |
| 17938 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17939 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 17940 | bogus endian macros |
| 17941 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17942 | |
| 17943 | ; |
| 17944 | return 0; |
| 17945 | } |
| 17946 | _ACEOF |
| 17947 | rm -f conftest.$ac_objext |
| 17948 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17949 | (eval $ac_compile) 2>&5 |
| 17950 | ac_status=$? |
| 17951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17952 | (exit $ac_status); } && |
| 17953 | { ac_try='test -s conftest.$ac_objext' |
| 17954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17955 | (eval $ac_try) 2>&5 |
| 17956 | ac_status=$? |
| 17957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17958 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17959 | # 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] | 17960 | cat >conftest.$ac_ext <<_ACEOF |
| 17961 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17962 | /* confdefs.h. */ |
| 17963 | _ACEOF |
| 17964 | cat confdefs.h >>conftest.$ac_ext |
| 17965 | cat >>conftest.$ac_ext <<_ACEOF |
| 17966 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17967 | #include <sys/types.h> |
| 17968 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17969 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17970 | int |
| 17971 | main () |
| 17972 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17973 | #if BYTE_ORDER != BIG_ENDIAN |
| 17974 | not big endian |
| 17975 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17976 | |
| 17977 | ; |
| 17978 | return 0; |
| 17979 | } |
| 17980 | _ACEOF |
| 17981 | rm -f conftest.$ac_objext |
| 17982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17983 | (eval $ac_compile) 2>&5 |
| 17984 | ac_status=$? |
| 17985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17986 | (exit $ac_status); } && |
| 17987 | { ac_try='test -s conftest.$ac_objext' |
| 17988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17989 | (eval $ac_try) 2>&5 |
| 17990 | ac_status=$? |
| 17991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17992 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17993 | ac_cv_c_bigendian=yes |
| 17994 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17995 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17997 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17998 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17999 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18000 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18001 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18002 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18003 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18004 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18005 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18006 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18007 | # 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] | 18008 | ac_cv_c_bigendian=unknown |
| 18009 | cat >conftest.$ac_ext <<_ACEOF |
| 18010 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18011 | /* confdefs.h. */ |
| 18012 | _ACEOF |
| 18013 | cat confdefs.h >>conftest.$ac_ext |
| 18014 | cat >>conftest.$ac_ext <<_ACEOF |
| 18015 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18016 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 18017 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 18018 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 18019 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 18020 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 18021 | 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] | 18022 | int |
| 18023 | main () |
| 18024 | { |
| 18025 | _ascii (); _ebcdic (); |
| 18026 | ; |
| 18027 | return 0; |
| 18028 | } |
| 18029 | _ACEOF |
| 18030 | rm -f conftest.$ac_objext |
| 18031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18032 | (eval $ac_compile) 2>&5 |
| 18033 | ac_status=$? |
| 18034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18035 | (exit $ac_status); } && |
| 18036 | { ac_try='test -s conftest.$ac_objext' |
| 18037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18038 | (eval $ac_try) 2>&5 |
| 18039 | ac_status=$? |
| 18040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18041 | (exit $ac_status); }; }; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18042 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18043 | ac_cv_c_bigendian=yes |
| 18044 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18045 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18046 | if test "$ac_cv_c_bigendian" = unknown; then |
| 18047 | ac_cv_c_bigendian=no |
| 18048 | else |
| 18049 | # finding both strings is unlikely to happen, but who knows? |
| 18050 | ac_cv_c_bigendian=unknown |
| 18051 | fi |
| 18052 | fi |
| 18053 | else |
| 18054 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18056 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18057 | fi |
| 18058 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 18059 | else |
| 18060 | cat >conftest.$ac_ext <<_ACEOF |
| 18061 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18062 | /* confdefs.h. */ |
| 18063 | _ACEOF |
| 18064 | cat confdefs.h >>conftest.$ac_ext |
| 18065 | cat >>conftest.$ac_ext <<_ACEOF |
| 18066 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18067 | int |
| 18068 | main () |
| 18069 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18070 | /* Are we little or big endian? From Harbison&Steele. */ |
| 18071 | union |
| 18072 | { |
| 18073 | long l; |
| 18074 | char c[sizeof (long)]; |
| 18075 | } u; |
| 18076 | u.l = 1; |
| 18077 | exit (u.c[sizeof (long) - 1] == 1); |
| 18078 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18079 | _ACEOF |
| 18080 | rm -f conftest$ac_exeext |
| 18081 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18082 | (eval $ac_link) 2>&5 |
| 18083 | ac_status=$? |
| 18084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18085 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18087 | (eval $ac_try) 2>&5 |
| 18088 | ac_status=$? |
| 18089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18090 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18091 | ac_cv_c_bigendian=no |
| 18092 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18093 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18094 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18096 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18097 | ( exit $ac_status ) |
| 18098 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18099 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18100 | 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] | 18101 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18102 | fi |
| 18103 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 18104 | fi |
| 18105 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 18106 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 18107 | case $ac_cv_c_bigendian in |
| 18108 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18109 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18110 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18111 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18112 | _ACEOF |
| 18113 | ;; |
| 18114 | no) |
| 18115 | ;; |
| 18116 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18117 | { { echo "$as_me:$LINENO: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18118 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18119 | echo "$as_me: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18120 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 18121 | { (exit 1); exit 1; }; } ;; |
| 18122 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18123 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18124 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18125 | # Check whether right shifting a negative integer extends the sign bit |
| 18126 | # 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] | 18127 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 18128 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 18129 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 18130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 18131 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18132 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18133 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 18134 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18135 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18136 | cat >conftest.$ac_ext <<_ACEOF |
| 18137 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18138 | /* confdefs.h. */ |
| 18139 | _ACEOF |
| 18140 | cat confdefs.h >>conftest.$ac_ext |
| 18141 | cat >>conftest.$ac_ext <<_ACEOF |
| 18142 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18143 | |
| 18144 | int main() |
| 18145 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 18146 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18147 | } |
| 18148 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18149 | _ACEOF |
| 18150 | rm -f conftest$ac_exeext |
| 18151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18152 | (eval $ac_link) 2>&5 |
| 18153 | ac_status=$? |
| 18154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18155 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18157 | (eval $ac_try) 2>&5 |
| 18158 | ac_status=$? |
| 18159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18160 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 18161 | ac_cv_rshift_extends_sign=yes |
| 18162 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18163 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18164 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18166 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18167 | ( exit $ac_status ) |
| 18168 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 18169 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18170 | 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] | 18171 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 18172 | fi |
| 18173 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18174 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 18175 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 18176 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18177 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18178 | |
| 18179 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18180 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18181 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18182 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18183 | fi |
| 18184 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18185 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18186 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 18187 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 18188 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 18189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18190 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18191 | |
| 18192 | cat >conftest.$ac_ext <<_ACEOF |
| 18193 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18194 | /* confdefs.h. */ |
| 18195 | _ACEOF |
| 18196 | cat confdefs.h >>conftest.$ac_ext |
| 18197 | cat >>conftest.$ac_ext <<_ACEOF |
| 18198 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18199 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18200 | int |
| 18201 | main () |
| 18202 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18203 | |
| 18204 | FILE *f = fopen("/dev/null", "r"); |
| 18205 | flockfile(f); |
| 18206 | getc_unlocked(f); |
| 18207 | funlockfile(f); |
| 18208 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18209 | ; |
| 18210 | return 0; |
| 18211 | } |
| 18212 | _ACEOF |
| 18213 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18214 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18215 | (eval $ac_link) 2>&5 |
| 18216 | ac_status=$? |
| 18217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18218 | (exit $ac_status); } && |
| 18219 | { ac_try='test -s conftest$ac_exeext' |
| 18220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18221 | (eval $ac_try) 2>&5 |
| 18222 | ac_status=$? |
| 18223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18224 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18225 | ac_cv_have_getc_unlocked=yes |
| 18226 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18227 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18229 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18230 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18231 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18232 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18233 | fi |
| 18234 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18235 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 18236 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18237 | if test "$ac_cv_have_getc_unlocked" = yes |
| 18238 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18239 | |
| 18240 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18241 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18242 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 18243 | |
| 18244 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 18245 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 18246 | # check for readline 2.2 |
| 18247 | cat >conftest.$ac_ext <<_ACEOF |
| 18248 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18249 | /* confdefs.h. */ |
| 18250 | _ACEOF |
| 18251 | cat confdefs.h >>conftest.$ac_ext |
| 18252 | cat >>conftest.$ac_ext <<_ACEOF |
| 18253 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 18254 | #include <readline/readline.h> |
| 18255 | _ACEOF |
| 18256 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 18257 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 18258 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18259 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 18260 | rm -f conftest.er1 |
| 18261 | cat conftest.err >&5 |
| 18262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18263 | (exit $ac_status); } >/dev/null; then |
| 18264 | if test -s conftest.err; then |
| 18265 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 18266 | else |
| 18267 | ac_cpp_err= |
| 18268 | fi |
| 18269 | else |
| 18270 | ac_cpp_err=yes |
| 18271 | fi |
| 18272 | if test -z "$ac_cpp_err"; then |
| 18273 | have_readline=yes |
| 18274 | else |
| 18275 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18277 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 18278 | have_readline=no |
| 18279 | fi |
| 18280 | rm -f conftest.err conftest.$ac_ext |
| 18281 | if test $have_readline = yes |
| 18282 | then |
| 18283 | cat >conftest.$ac_ext <<_ACEOF |
| 18284 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18285 | /* confdefs.h. */ |
| 18286 | _ACEOF |
| 18287 | cat confdefs.h >>conftest.$ac_ext |
| 18288 | cat >>conftest.$ac_ext <<_ACEOF |
| 18289 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 18290 | #include <readline/readline.h> |
| 18291 | |
| 18292 | _ACEOF |
| 18293 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18294 | $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] | 18295 | |
| 18296 | cat >>confdefs.h <<\_ACEOF |
| 18297 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 18298 | _ACEOF |
| 18299 | |
| 18300 | fi |
| 18301 | rm -f conftest* |
| 18302 | |
| 18303 | fi |
| 18304 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18305 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18306 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 18307 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 18308 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 18309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18310 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18311 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18312 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18313 | cat >conftest.$ac_ext <<_ACEOF |
| 18314 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18315 | /* confdefs.h. */ |
| 18316 | _ACEOF |
| 18317 | cat confdefs.h >>conftest.$ac_ext |
| 18318 | cat >>conftest.$ac_ext <<_ACEOF |
| 18319 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18320 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18321 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18322 | #ifdef __cplusplus |
| 18323 | extern "C" |
| 18324 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18325 | /* 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] | 18326 | builtin and then its argument prototype would still apply. */ |
| 18327 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18328 | int |
| 18329 | main () |
| 18330 | { |
| 18331 | rl_pre_input_hook (); |
| 18332 | ; |
| 18333 | return 0; |
| 18334 | } |
| 18335 | _ACEOF |
| 18336 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18337 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18338 | (eval $ac_link) 2>&5 |
| 18339 | ac_status=$? |
| 18340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18341 | (exit $ac_status); } && |
| 18342 | { ac_try='test -s conftest$ac_exeext' |
| 18343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18344 | (eval $ac_try) 2>&5 |
| 18345 | ac_status=$? |
| 18346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18347 | (exit $ac_status); }; }; then |
| 18348 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18349 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18350 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18352 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18353 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18354 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18355 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 18356 | LIBS=$ac_check_lib_save_LIBS |
| 18357 | fi |
| 18358 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 18359 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 18360 | 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] | 18361 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18362 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18363 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18364 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18365 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18366 | fi |
| 18367 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18368 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18369 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18370 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 18371 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 18372 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 18373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18374 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18375 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18376 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18377 | cat >conftest.$ac_ext <<_ACEOF |
| 18378 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18379 | /* confdefs.h. */ |
| 18380 | _ACEOF |
| 18381 | cat confdefs.h >>conftest.$ac_ext |
| 18382 | cat >>conftest.$ac_ext <<_ACEOF |
| 18383 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18384 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18385 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18386 | #ifdef __cplusplus |
| 18387 | extern "C" |
| 18388 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 18389 | /* 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] | 18390 | builtin and then its argument prototype would still apply. */ |
| 18391 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18392 | int |
| 18393 | main () |
| 18394 | { |
| 18395 | rl_completion_matches (); |
| 18396 | ; |
| 18397 | return 0; |
| 18398 | } |
| 18399 | _ACEOF |
| 18400 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18402 | (eval $ac_link) 2>&5 |
| 18403 | ac_status=$? |
| 18404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18405 | (exit $ac_status); } && |
| 18406 | { ac_try='test -s conftest$ac_exeext' |
| 18407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18408 | (eval $ac_try) 2>&5 |
| 18409 | ac_status=$? |
| 18410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18411 | (exit $ac_status); }; }; then |
| 18412 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18413 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18414 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18416 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18417 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18418 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18419 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 18420 | LIBS=$ac_check_lib_save_LIBS |
| 18421 | fi |
| 18422 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 18423 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 18424 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18425 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18426 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18427 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18428 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18429 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 18430 | fi |
| 18431 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18432 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18433 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 18434 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 18435 | if test "${ac_cv_broken_nice+set}" = set; then |
| 18436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18437 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18438 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18439 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 18440 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18441 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18442 | cat >conftest.$ac_ext <<_ACEOF |
| 18443 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18444 | /* confdefs.h. */ |
| 18445 | _ACEOF |
| 18446 | cat confdefs.h >>conftest.$ac_ext |
| 18447 | cat >>conftest.$ac_ext <<_ACEOF |
| 18448 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18449 | |
| 18450 | int main() |
| 18451 | { |
| 18452 | int val1 = nice(1); |
| 18453 | if (val1 != -1 && val1 == nice(2)) |
| 18454 | exit(0); |
| 18455 | exit(1); |
| 18456 | } |
| 18457 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18458 | _ACEOF |
| 18459 | rm -f conftest$ac_exeext |
| 18460 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18461 | (eval $ac_link) 2>&5 |
| 18462 | ac_status=$? |
| 18463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18464 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18466 | (eval $ac_try) 2>&5 |
| 18467 | ac_status=$? |
| 18468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18469 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18470 | ac_cv_broken_nice=yes |
| 18471 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18472 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18473 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18475 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18476 | ( exit $ac_status ) |
| 18477 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18478 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18479 | 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] | 18480 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18481 | fi |
| 18482 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18483 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 18484 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18485 | if test "$ac_cv_broken_nice" = yes |
| 18486 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18487 | |
| 18488 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18489 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18490 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 18491 | |
| 18492 | fi |
| 18493 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18494 | # tzset(3) exists and works like we expect it to |
| 18495 | echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 18496 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6 |
| 18497 | if test "${ac_cv_working_tzset+set}" = set; then |
| 18498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18499 | else |
| 18500 | |
| 18501 | if test "$cross_compiling" = yes; then |
| 18502 | ac_cv_working_tzset=no |
| 18503 | else |
| 18504 | cat >conftest.$ac_ext <<_ACEOF |
| 18505 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18506 | /* confdefs.h. */ |
| 18507 | _ACEOF |
| 18508 | cat confdefs.h >>conftest.$ac_ext |
| 18509 | cat >>conftest.$ac_ext <<_ACEOF |
| 18510 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18511 | |
| 18512 | #include <stdlib.h> |
| 18513 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18514 | #include <string.h> |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18515 | int main() |
| 18516 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18517 | /* Note that we need to ensure that not only does tzset(3) |
| 18518 | do 'something' with localtime, but it works as documented |
| 18519 | in the library reference and as expected by the test suite. |
| 18520 | |
| 18521 | Red Hat 6.2 doesn't understand the southern hemisphere |
| 18522 | after New Year's Day; it thinks swaps on that day. |
| 18523 | */ |
| 18524 | |
| 18525 | time_t groundhogday = 1044144000; /* GMT-based; well, it's a colony */ |
| 18526 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 18527 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 18528 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18529 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18530 | if (localtime(&groundhogday)->tm_hour != 0) |
| 18531 | exit(1); |
| 18532 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 18533 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18534 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18535 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18536 | exit(1); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 18537 | |
| 18538 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 18539 | tzset(); |
| 18540 | if (localtime(&groundhogday)->tm_hour != 11) |
| 18541 | exit(1); |
| 18542 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 18543 | exit(1); |
| 18544 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 18545 | exit(1); |
| 18546 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18547 | exit(0); |
| 18548 | } |
| 18549 | |
| 18550 | _ACEOF |
| 18551 | rm -f conftest$ac_exeext |
| 18552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18553 | (eval $ac_link) 2>&5 |
| 18554 | ac_status=$? |
| 18555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18556 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18558 | (eval $ac_try) 2>&5 |
| 18559 | ac_status=$? |
| 18560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18561 | (exit $ac_status); }; }; then |
| 18562 | ac_cv_working_tzset=yes |
| 18563 | else |
| 18564 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18565 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18567 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 18568 | ( exit $ac_status ) |
| 18569 | ac_cv_working_tzset=no |
| 18570 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18571 | 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] | 18572 | fi |
| 18573 | fi |
| 18574 | |
| 18575 | echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 18576 | echo "${ECHO_T}$ac_cv_working_tzset" >&6 |
| 18577 | if test "$ac_cv_working_tzset" = yes |
| 18578 | then |
| 18579 | |
| 18580 | cat >>confdefs.h <<\_ACEOF |
| 18581 | #define HAVE_WORKING_TZSET 1 |
| 18582 | _ACEOF |
| 18583 | |
| 18584 | fi |
| 18585 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18586 | # Look for subsecond timestamps in struct stat |
| 18587 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 18588 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 18589 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 18590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18591 | else |
| 18592 | cat >conftest.$ac_ext <<_ACEOF |
| 18593 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18594 | /* confdefs.h. */ |
| 18595 | _ACEOF |
| 18596 | cat confdefs.h >>conftest.$ac_ext |
| 18597 | cat >>conftest.$ac_ext <<_ACEOF |
| 18598 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18599 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18600 | int |
| 18601 | main () |
| 18602 | { |
| 18603 | |
| 18604 | struct stat st; |
| 18605 | st.st_mtim.tv_nsec = 1; |
| 18606 | |
| 18607 | ; |
| 18608 | return 0; |
| 18609 | } |
| 18610 | _ACEOF |
| 18611 | rm -f conftest.$ac_objext |
| 18612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18613 | (eval $ac_compile) 2>&5 |
| 18614 | ac_status=$? |
| 18615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18616 | (exit $ac_status); } && |
| 18617 | { ac_try='test -s conftest.$ac_objext' |
| 18618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18619 | (eval $ac_try) 2>&5 |
| 18620 | ac_status=$? |
| 18621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18622 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 18623 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18624 | else |
| 18625 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18626 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18627 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 18628 | ac_cv_stat_tv_nsec=no |
| 18629 | fi |
| 18630 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 18631 | fi |
| 18632 | |
| 18633 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 18634 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 18635 | if test "$ac_cv_stat_tv_nsec" = yes |
| 18636 | then |
| 18637 | |
| 18638 | cat >>confdefs.h <<\_ACEOF |
| 18639 | #define HAVE_STAT_TV_NSEC 1 |
| 18640 | _ACEOF |
| 18641 | |
| 18642 | fi |
| 18643 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18644 | # 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] | 18645 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 18646 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 18647 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 18648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18649 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18650 | cat >conftest.$ac_ext <<_ACEOF |
| 18651 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18652 | /* confdefs.h. */ |
| 18653 | _ACEOF |
| 18654 | cat confdefs.h >>conftest.$ac_ext |
| 18655 | cat >>conftest.$ac_ext <<_ACEOF |
| 18656 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18657 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18658 | int |
| 18659 | main () |
| 18660 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18661 | |
| 18662 | int rtn; |
| 18663 | rtn = mvwdelch(0,0,0); |
| 18664 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18665 | ; |
| 18666 | return 0; |
| 18667 | } |
| 18668 | _ACEOF |
| 18669 | rm -f conftest.$ac_objext |
| 18670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18671 | (eval $ac_compile) 2>&5 |
| 18672 | ac_status=$? |
| 18673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18674 | (exit $ac_status); } && |
| 18675 | { ac_try='test -s conftest.$ac_objext' |
| 18676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18677 | (eval $ac_try) 2>&5 |
| 18678 | ac_status=$? |
| 18679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18680 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18681 | ac_cv_mvwdelch_is_expression=yes |
| 18682 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18683 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18685 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18686 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18687 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18688 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18689 | fi |
| 18690 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18691 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 18692 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18693 | |
| 18694 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 18695 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18696 | |
| 18697 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18698 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18699 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18700 | |
| 18701 | fi |
| 18702 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18703 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 18704 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 18705 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 18706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18707 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18708 | cat >conftest.$ac_ext <<_ACEOF |
| 18709 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18710 | /* confdefs.h. */ |
| 18711 | _ACEOF |
| 18712 | cat confdefs.h >>conftest.$ac_ext |
| 18713 | cat >>conftest.$ac_ext <<_ACEOF |
| 18714 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18715 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18716 | int |
| 18717 | main () |
| 18718 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18719 | |
| 18720 | WINDOW *w; |
| 18721 | w->_flags = 0; |
| 18722 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18723 | ; |
| 18724 | return 0; |
| 18725 | } |
| 18726 | _ACEOF |
| 18727 | rm -f conftest.$ac_objext |
| 18728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18729 | (eval $ac_compile) 2>&5 |
| 18730 | ac_status=$? |
| 18731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18732 | (exit $ac_status); } && |
| 18733 | { ac_try='test -s conftest.$ac_objext' |
| 18734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18735 | (eval $ac_try) 2>&5 |
| 18736 | ac_status=$? |
| 18737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18738 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18739 | ac_cv_window_has_flags=yes |
| 18740 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18741 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18743 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18744 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18745 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18746 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18747 | fi |
| 18748 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18749 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 18750 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18751 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18752 | |
| 18753 | if test "$ac_cv_window_has_flags" = yes |
| 18754 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18755 | |
| 18756 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18757 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18758 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 18759 | |
| 18760 | fi |
| 18761 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 18762 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 18763 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
| 18764 | |
| 18765 | if test -e /dev/ptmx |
| 18766 | then |
| 18767 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18768 | echo "${ECHO_T}yes" >&6 |
| 18769 | |
| 18770 | cat >>confdefs.h <<\_ACEOF |
| 18771 | #define HAVE_DEV_PTMX 1 |
| 18772 | _ACEOF |
| 18773 | |
| 18774 | else |
| 18775 | echo "$as_me:$LINENO: result: no" >&5 |
| 18776 | echo "${ECHO_T}no" >&6 |
| 18777 | fi |
| 18778 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 18779 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 18780 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
| 18781 | |
| 18782 | if test -e /dev/ptc |
| 18783 | then |
| 18784 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18785 | echo "${ECHO_T}yes" >&6 |
| 18786 | |
| 18787 | cat >>confdefs.h <<\_ACEOF |
| 18788 | #define HAVE_DEV_PTC 1 |
| 18789 | _ACEOF |
| 18790 | |
| 18791 | else |
| 18792 | echo "$as_me:$LINENO: result: no" >&5 |
| 18793 | echo "${ECHO_T}no" >&6 |
| 18794 | fi |
| 18795 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18796 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 18797 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 18798 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 18799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18800 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18801 | cat >conftest.$ac_ext <<_ACEOF |
| 18802 | #line $LINENO "configure" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18803 | /* confdefs.h. */ |
| 18804 | _ACEOF |
| 18805 | cat confdefs.h >>conftest.$ac_ext |
| 18806 | cat >>conftest.$ac_ext <<_ACEOF |
| 18807 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 18808 | |
| 18809 | #ifdef HAVE_SYS_TYPES_H |
| 18810 | #include <sys/types.h> |
| 18811 | #endif |
| 18812 | #ifdef HAVE_SYS_SOCKET_H |
| 18813 | #include <sys/socket.h> |
| 18814 | #endif |
| 18815 | |
| 18816 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18817 | int |
| 18818 | main () |
| 18819 | { |
| 18820 | if ((socklen_t *) 0) |
| 18821 | return 0; |
| 18822 | if (sizeof (socklen_t)) |
| 18823 | return 0; |
| 18824 | ; |
| 18825 | return 0; |
| 18826 | } |
| 18827 | _ACEOF |
| 18828 | rm -f conftest.$ac_objext |
| 18829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18830 | (eval $ac_compile) 2>&5 |
| 18831 | ac_status=$? |
| 18832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18833 | (exit $ac_status); } && |
| 18834 | { ac_try='test -s conftest.$ac_objext' |
| 18835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18836 | (eval $ac_try) 2>&5 |
| 18837 | ac_status=$? |
| 18838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18839 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 18840 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18841 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18842 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18843 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18844 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18845 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18846 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18847 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 18848 | fi |
| 18849 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 18850 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 18851 | if test $ac_cv_type_socklen_t = yes; then |
| 18852 | : |
| 18853 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18854 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 18855 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18856 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18857 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 18858 | |
| 18859 | fi |
| 18860 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18861 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18862 | |
| 18863 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 18864 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 18865 | do |
| 18866 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 18867 | done |
| 18868 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18869 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 18870 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18871 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 18872 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 18873 | for dir in $SRCDIRS; do |
| 18874 | if test ! -d $dir; then |
| 18875 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 18876 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 18877 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18878 | echo "$as_me:$LINENO: result: done" >&5 |
| 18879 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 18880 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18881 | # generate output files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18882 | 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] | 18883 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18884 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18885 | # This file is a shell script that caches the results of configure |
| 18886 | # 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] | 18887 | # scripts and configure runs, see configure's option --config-cache. |
| 18888 | # It is not useful on other systems. If it contains results you don't |
| 18889 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18890 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18891 | # config.status only pays attention to the cache file if you give it |
| 18892 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18893 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18894 | # `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] | 18895 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 18896 | # following values. |
| 18897 | |
| 18898 | _ACEOF |
| 18899 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 18900 | # The following way of writing the cache mishandles newlines in values, |
| 18901 | # but we know of no workaround that is simple, portable, and efficient. |
| 18902 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18903 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 18904 | # 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] | 18905 | { |
| 18906 | (set) 2>&1 | |
| 18907 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 18908 | *ac_space=\ *) |
| 18909 | # `set' does not quote correctly, so add quotes (double-quote |
| 18910 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 18911 | sed -n \ |
| 18912 | "s/'/'\\\\''/g; |
| 18913 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 18914 | ;; |
| 18915 | *) |
| 18916 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 18917 | sed -n \ |
| 18918 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 18919 | ;; |
| 18920 | esac; |
| 18921 | } | |
| 18922 | sed ' |
| 18923 | t clear |
| 18924 | : clear |
| 18925 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 18926 | t end |
| 18927 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 18928 | : end' >>confcache |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18929 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18930 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18931 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 18932 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18933 | else |
| 18934 | echo "not updating unwritable cache $cache_file" |
| 18935 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18936 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18937 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 18938 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18939 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 18940 | # Let make expand exec_prefix. |
| 18941 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 18942 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18943 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 18944 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 18945 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 18946 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18947 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18948 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 18949 | s/:*\$(srcdir):*/:/; |
| 18950 | s/:*\${srcdir}:*/:/; |
| 18951 | s/:*@srcdir@:*/:/; |
| 18952 | s/^\([^=]*=[ ]*\):*/\1/; |
| 18953 | s/:*$//; |
| 18954 | s/^[^=]*=[ ]*$//; |
| 18955 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18956 | fi |
| 18957 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18958 | DEFS=-DHAVE_CONFIG_H |
| 18959 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18960 | ac_libobjs= |
| 18961 | ac_ltlibobjs= |
| 18962 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 18963 | # 1. Remove the extension, and $U if already installed. |
| 18964 | ac_i=`echo "$ac_i" | |
| 18965 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 18966 | # 2. Add them. |
| 18967 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 18968 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 18969 | done |
| 18970 | LIBOBJS=$ac_libobjs |
| 18971 | |
| 18972 | LTLIBOBJS=$ac_ltlibobjs |
| 18973 | |
| 18974 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18975 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18976 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18977 | ac_clean_files_save=$ac_clean_files |
| 18978 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 18979 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 18980 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 18981 | cat >$CONFIG_STATUS <<_ACEOF |
| 18982 | #! $SHELL |
| 18983 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18984 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18985 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18986 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18987 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18988 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18989 | ac_cs_recheck=false |
| 18990 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18991 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 18992 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18993 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18994 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18995 | ## --------------------- ## |
| 18996 | ## M4sh Initialization. ## |
| 18997 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18998 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18999 | # Be Bourne compatible |
| 19000 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 19001 | emulate sh |
| 19002 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19003 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 19004 | # is contrary to our usage. Disable this feature. |
| 19005 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19006 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 19007 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19008 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19009 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19010 | # Support unset when possible. |
| 19011 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 19012 | as_unset=unset |
| 19013 | else |
| 19014 | as_unset=false |
| 19015 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19016 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19017 | |
| 19018 | # Work around bugs in pre-3.0 UWIN ksh. |
| 19019 | $as_unset ENV MAIL MAILPATH |
| 19020 | PS1='$ ' |
| 19021 | PS2='> ' |
| 19022 | PS4='+ ' |
| 19023 | |
| 19024 | # NLS nuisances. |
| 19025 | for as_var in \ |
| 19026 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 19027 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 19028 | LC_TELEPHONE LC_TIME |
| 19029 | do |
| 19030 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 19031 | eval $as_var=C; export $as_var |
| 19032 | else |
| 19033 | $as_unset $as_var |
| 19034 | fi |
| 19035 | done |
| 19036 | |
| 19037 | # Required to use basename. |
| 19038 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 19039 | as_expr=expr |
| 19040 | else |
| 19041 | as_expr=false |
| 19042 | fi |
| 19043 | |
| 19044 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 19045 | as_basename=basename |
| 19046 | else |
| 19047 | as_basename=false |
| 19048 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19049 | |
| 19050 | |
| 19051 | # Name of the executable. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19052 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19053 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 19054 | X"$0" : 'X\(//\)$' \| \ |
| 19055 | X"$0" : 'X\(/\)$' \| \ |
| 19056 | . : '\(.\)' 2>/dev/null || |
| 19057 | echo X/"$0" | |
| 19058 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 19059 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 19060 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 19061 | s/.*/./; q'` |
| 19062 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19063 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19064 | # PATH needs CR, and LINENO needs CR and PATH. |
| 19065 | # Avoid depending upon Character Ranges. |
| 19066 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 19067 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 19068 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 19069 | as_cr_digits='0123456789' |
| 19070 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 19071 | |
| 19072 | # The user is always right. |
| 19073 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19074 | echo "#! /bin/sh" >conf$$.sh |
| 19075 | echo "exit 0" >>conf$$.sh |
| 19076 | chmod +x conf$$.sh |
| 19077 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19078 | PATH_SEPARATOR=';' |
| 19079 | else |
| 19080 | PATH_SEPARATOR=: |
| 19081 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19082 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19083 | fi |
| 19084 | |
| 19085 | |
| 19086 | as_lineno_1=$LINENO |
| 19087 | as_lineno_2=$LINENO |
| 19088 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 19089 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 19090 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 19091 | # Find who we are. Look in the path if we contain no path at all |
| 19092 | # relative or not. |
| 19093 | case $0 in |
| 19094 | *[\\/]* ) as_myself=$0 ;; |
| 19095 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19096 | for as_dir in $PATH |
| 19097 | do |
| 19098 | IFS=$as_save_IFS |
| 19099 | test -z "$as_dir" && as_dir=. |
| 19100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 19101 | done |
| 19102 | |
| 19103 | ;; |
| 19104 | esac |
| 19105 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 19106 | # in which case we are not to be found in the path. |
| 19107 | if test "x$as_myself" = x; then |
| 19108 | as_myself=$0 |
| 19109 | fi |
| 19110 | if test ! -f "$as_myself"; then |
| 19111 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 19112 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 19113 | { (exit 1); exit 1; }; } |
| 19114 | fi |
| 19115 | case $CONFIG_SHELL in |
| 19116 | '') |
| 19117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19118 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 19119 | do |
| 19120 | IFS=$as_save_IFS |
| 19121 | test -z "$as_dir" && as_dir=. |
| 19122 | for as_base in sh bash ksh sh5; do |
| 19123 | case $as_dir in |
| 19124 | /*) |
| 19125 | if ("$as_dir/$as_base" -c ' |
| 19126 | as_lineno_1=$LINENO |
| 19127 | as_lineno_2=$LINENO |
| 19128 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 19129 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 19130 | 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] | 19131 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 19132 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19133 | CONFIG_SHELL=$as_dir/$as_base |
| 19134 | export CONFIG_SHELL |
| 19135 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 19136 | fi;; |
| 19137 | esac |
| 19138 | done |
| 19139 | done |
| 19140 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19141 | esac |
| 19142 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19143 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 19144 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 19145 | # line-number line before each line; the second 'sed' does the real |
| 19146 | # work. The second script uses 'N' to pair each line-number line |
| 19147 | # with the numbered line, and appends trailing '-' during |
| 19148 | # substitution so that $LINENO is not a special case at line end. |
| 19149 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 19150 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 19151 | sed '=' <$as_myself | |
| 19152 | sed ' |
| 19153 | N |
| 19154 | s,$,-, |
| 19155 | : loop |
| 19156 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 19157 | t loop |
| 19158 | s,-$,, |
| 19159 | s,^['$as_cr_digits']*\n,, |
| 19160 | ' >$as_me.lineno && |
| 19161 | chmod +x $as_me.lineno || |
| 19162 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 19163 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 19164 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19165 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19166 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 19167 | # (the dirname of $[0] is not the place where we might find the |
| 19168 | # original and so on. Autoconf is especially sensible to this). |
| 19169 | . ./$as_me.lineno |
| 19170 | # Exit status is that of the last command. |
| 19171 | exit |
| 19172 | } |
| 19173 | |
| 19174 | |
| 19175 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 19176 | *c*,-n*) ECHO_N= ECHO_C=' |
| 19177 | ' ECHO_T=' ' ;; |
| 19178 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 19179 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 19180 | esac |
| 19181 | |
| 19182 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 19183 | as_expr=expr |
| 19184 | else |
| 19185 | as_expr=false |
| 19186 | fi |
| 19187 | |
| 19188 | rm -f conf$$ conf$$.exe conf$$.file |
| 19189 | echo >conf$$.file |
| 19190 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 19191 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 19192 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 19193 | if test -f conf$$.exe; then |
| 19194 | # Don't use ln at all; we don't have any links |
| 19195 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19196 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19197 | as_ln_s='ln -s' |
| 19198 | fi |
| 19199 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 19200 | as_ln_s=ln |
| 19201 | else |
| 19202 | as_ln_s='cp -p' |
| 19203 | fi |
| 19204 | rm -f conf$$ conf$$.exe conf$$.file |
| 19205 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19206 | if mkdir -p . 2>/dev/null; then |
| 19207 | as_mkdir_p=: |
| 19208 | else |
| 19209 | as_mkdir_p=false |
| 19210 | fi |
| 19211 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19212 | as_executable_p="test -f" |
| 19213 | |
| 19214 | # Sed expression to map a string onto a valid CPP name. |
| 19215 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 19216 | |
| 19217 | # Sed expression to map a string onto a valid variable name. |
| 19218 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 19219 | |
| 19220 | |
| 19221 | # IFS |
| 19222 | # We need space, tab and new line, in precisely that order. |
| 19223 | as_nl=' |
| 19224 | ' |
| 19225 | IFS=" $as_nl" |
| 19226 | |
| 19227 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19228 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19229 | |
| 19230 | exec 6>&1 |
| 19231 | |
| 19232 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 19233 | # report actual input values of CONFIG_FILES etc. instead of their |
| 19234 | # values after options handling. Logging --version etc. is OK. |
| 19235 | exec 5>>config.log |
| 19236 | { |
| 19237 | echo |
| 19238 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 19239 | ## Running $as_me. ## |
| 19240 | _ASBOX |
| 19241 | } >&5 |
| 19242 | cat >&5 <<_CSEOF |
| 19243 | |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 19244 | This file was extended by python $as_me 2.4, which was |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19245 | generated by GNU Autoconf 2.57. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19246 | |
| 19247 | CONFIG_FILES = $CONFIG_FILES |
| 19248 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 19249 | CONFIG_LINKS = $CONFIG_LINKS |
| 19250 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 19251 | $ $0 $@ |
| 19252 | |
| 19253 | _CSEOF |
| 19254 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 19255 | echo >&5 |
| 19256 | _ACEOF |
| 19257 | |
| 19258 | # Files that config.status was made for. |
| 19259 | if test -n "$ac_config_files"; then |
| 19260 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 19261 | fi |
| 19262 | |
| 19263 | if test -n "$ac_config_headers"; then |
| 19264 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 19265 | fi |
| 19266 | |
| 19267 | if test -n "$ac_config_links"; then |
| 19268 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 19269 | fi |
| 19270 | |
| 19271 | if test -n "$ac_config_commands"; then |
| 19272 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 19273 | fi |
| 19274 | |
| 19275 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19276 | |
| 19277 | ac_cs_usage="\ |
| 19278 | \`$as_me' instantiates files from templates according to the |
| 19279 | current configuration. |
| 19280 | |
| 19281 | Usage: $0 [OPTIONS] [FILE]... |
| 19282 | |
| 19283 | -h, --help print this help, then exit |
| 19284 | -V, --version print version number, then exit |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19285 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19286 | -d, --debug don't remove temporary files |
| 19287 | --recheck update $as_me by reconfiguring in the same conditions |
| 19288 | --file=FILE[:TEMPLATE] |
| 19289 | instantiate the configuration file FILE |
| 19290 | --header=FILE[:TEMPLATE] |
| 19291 | instantiate the configuration header FILE |
| 19292 | |
| 19293 | Configuration files: |
| 19294 | $config_files |
| 19295 | |
| 19296 | Configuration headers: |
| 19297 | $config_headers |
| 19298 | |
| 19299 | Report bugs to <bug-autoconf@gnu.org>." |
| 19300 | _ACEOF |
| 19301 | |
| 19302 | cat >>$CONFIG_STATUS <<_ACEOF |
| 19303 | ac_cs_version="\\ |
Fred Drake | 9bd4462 | 2003-07-30 17:39:48 +0000 | [diff] [blame] | 19304 | python config.status 2.4 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19305 | configured by $0, generated by GNU Autoconf 2.57, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19306 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 19307 | |
| 19308 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 19309 | Free Software Foundation, Inc. |
| 19310 | This config.status script is free software; the Free Software Foundation |
| 19311 | gives unlimited permission to copy, distribute and modify it." |
| 19312 | srcdir=$srcdir |
| 19313 | INSTALL="$INSTALL" |
| 19314 | _ACEOF |
| 19315 | |
| 19316 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19317 | # If no file are specified by the user, then we need to provide default |
| 19318 | # value. By we need to know if files were specified by the user. |
| 19319 | ac_need_defaults=: |
| 19320 | while test $# != 0 |
| 19321 | do |
| 19322 | case $1 in |
| 19323 | --*=*) |
| 19324 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 19325 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19326 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19327 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19328 | -*) |
| 19329 | ac_option=$1 |
| 19330 | ac_optarg=$2 |
| 19331 | ac_shift=shift |
| 19332 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19333 | *) # This is not an option, so the user has probably given explicit |
| 19334 | # arguments. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19335 | ac_option=$1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19336 | ac_need_defaults=false;; |
| 19337 | esac |
| 19338 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19339 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19340 | # Handling of the options. |
| 19341 | _ACEOF |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 19342 | cat >>$CONFIG_STATUS <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19343 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 19344 | ac_cs_recheck=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19345 | --version | --vers* | -V ) |
| 19346 | echo "$ac_cs_version"; exit 0 ;; |
| 19347 | --he | --h) |
| 19348 | # Conflict between --help and --header |
| 19349 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 19350 | Try \`$0 --help' for more information." >&5 |
| 19351 | echo "$as_me: error: ambiguous option: $1 |
| 19352 | Try \`$0 --help' for more information." >&2;} |
| 19353 | { (exit 1); exit 1; }; };; |
| 19354 | --help | --hel | -h ) |
| 19355 | echo "$ac_cs_usage"; exit 0 ;; |
| 19356 | --debug | --d* | -d ) |
| 19357 | debug=: ;; |
| 19358 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19359 | $ac_shift |
| 19360 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19361 | ac_need_defaults=false;; |
| 19362 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19363 | $ac_shift |
| 19364 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19365 | ac_need_defaults=false;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19366 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 19367 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 19368 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19369 | |
| 19370 | # This is an error. |
| 19371 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 19372 | Try \`$0 --help' for more information." >&5 |
| 19373 | echo "$as_me: error: unrecognized option: $1 |
| 19374 | Try \`$0 --help' for more information." >&2;} |
| 19375 | { (exit 1); exit 1; }; } ;; |
| 19376 | |
| 19377 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 19378 | |
| 19379 | esac |
| 19380 | shift |
| 19381 | done |
| 19382 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19383 | ac_configure_extra_args= |
| 19384 | |
| 19385 | if $ac_cs_silent; then |
| 19386 | exec 6>/dev/null |
| 19387 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 19388 | fi |
| 19389 | |
| 19390 | _ACEOF |
| 19391 | cat >>$CONFIG_STATUS <<_ACEOF |
| 19392 | if \$ac_cs_recheck; then |
| 19393 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 19394 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 19395 | fi |
| 19396 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19397 | _ACEOF |
| 19398 | |
| 19399 | |
| 19400 | |
| 19401 | |
| 19402 | |
| 19403 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19404 | for ac_config_target in $ac_config_targets |
| 19405 | do |
| 19406 | case "$ac_config_target" in |
| 19407 | # Handling of arguments. |
| 19408 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 19409 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 19410 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 19411 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 19412 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 19413 | { (exit 1); exit 1; }; };; |
| 19414 | esac |
| 19415 | done |
| 19416 | |
| 19417 | # If the user did not use the arguments to specify the items to instantiate, |
| 19418 | # then the envvar interface is used. Set only those that are not. |
| 19419 | # We use the long form for the default assignment because of an extremely |
| 19420 | # bizarre bug on SunOS 4.1.3. |
| 19421 | if $ac_need_defaults; then |
| 19422 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 19423 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 19424 | fi |
| 19425 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19426 | # Have a temporary directory for convenience. Make it in the build tree |
| 19427 | # simply because there is no reason to put it here, and in addition, |
| 19428 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19429 | # Create a temporary directory, and hook for its removal unless debugging. |
| 19430 | $debug || |
| 19431 | { |
| 19432 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 19433 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 19434 | } |
| 19435 | |
| 19436 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19437 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19438 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19439 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19440 | test -n "$tmp" && test -d "$tmp" |
| 19441 | } || |
| 19442 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19443 | tmp=./confstat$$-$RANDOM |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19444 | (umask 077 && mkdir $tmp) |
| 19445 | } || |
| 19446 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19447 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19448 | { (exit 1); exit 1; } |
| 19449 | } |
| 19450 | |
| 19451 | _ACEOF |
| 19452 | |
| 19453 | cat >>$CONFIG_STATUS <<_ACEOF |
| 19454 | |
| 19455 | # |
| 19456 | # CONFIG_FILES section. |
| 19457 | # |
| 19458 | |
| 19459 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 19460 | # This happens for instance when ./config.status config.h |
| 19461 | if test -n "\$CONFIG_FILES"; then |
| 19462 | # Protect against being on the right side of a sed subst in config.status. |
| 19463 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 19464 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 19465 | s,@SHELL@,$SHELL,;t t |
| 19466 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 19467 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 19468 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 19469 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 19470 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 19471 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 19472 | s,@exec_prefix@,$exec_prefix,;t t |
| 19473 | s,@prefix@,$prefix,;t t |
| 19474 | s,@program_transform_name@,$program_transform_name,;t t |
| 19475 | s,@bindir@,$bindir,;t t |
| 19476 | s,@sbindir@,$sbindir,;t t |
| 19477 | s,@libexecdir@,$libexecdir,;t t |
| 19478 | s,@datadir@,$datadir,;t t |
| 19479 | s,@sysconfdir@,$sysconfdir,;t t |
| 19480 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 19481 | s,@localstatedir@,$localstatedir,;t t |
| 19482 | s,@libdir@,$libdir,;t t |
| 19483 | s,@includedir@,$includedir,;t t |
| 19484 | s,@oldincludedir@,$oldincludedir,;t t |
| 19485 | s,@infodir@,$infodir,;t t |
| 19486 | s,@mandir@,$mandir,;t t |
| 19487 | s,@build_alias@,$build_alias,;t t |
| 19488 | s,@host_alias@,$host_alias,;t t |
| 19489 | s,@target_alias@,$target_alias,;t t |
| 19490 | s,@DEFS@,$DEFS,;t t |
| 19491 | s,@ECHO_C@,$ECHO_C,;t t |
| 19492 | s,@ECHO_N@,$ECHO_N,;t t |
| 19493 | s,@ECHO_T@,$ECHO_T,;t t |
| 19494 | s,@LIBS@,$LIBS,;t t |
| 19495 | s,@VERSION@,$VERSION,;t t |
| 19496 | s,@SOVERSION@,$SOVERSION,;t t |
| 19497 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 19498 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 19499 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 19500 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 19501 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 19502 | s,@MACHDEP@,$MACHDEP,;t t |
| 19503 | s,@SGI_ABI@,$SGI_ABI,;t t |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 19504 | s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 19505 | s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19506 | s,@CXX@,$CXX,;t t |
| 19507 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 19508 | s,@EXEEXT@,$EXEEXT,;t t |
| 19509 | s,@CC@,$CC,;t t |
| 19510 | s,@CFLAGS@,$CFLAGS,;t t |
| 19511 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 19512 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 19513 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 19514 | s,@OBJEXT@,$OBJEXT,;t t |
| 19515 | s,@CPP@,$CPP,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19516 | s,@EGREP@,$EGREP,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19517 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 19518 | s,@LIBRARY@,$LIBRARY,;t t |
| 19519 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 19520 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 19521 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 19522 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 19523 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 19524 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 19525 | s,@LINKCC@,$LINKCC,;t t |
| 19526 | s,@RANLIB@,$RANLIB,;t t |
| 19527 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 19528 | s,@AR@,$AR,;t t |
| 19529 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 19530 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 19531 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 19532 | s,@LN@,$LN,;t t |
| 19533 | s,@OPT@,$OPT,;t t |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 19534 | s,@BASECFLAGS@,$BASECFLAGS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19535 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 19536 | s,@SO@,$SO,;t t |
| 19537 | s,@LDSHARED@,$LDSHARED,;t t |
| 19538 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 19539 | s,@CCSHARED@,$CCSHARED,;t t |
| 19540 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 19541 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 19542 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19543 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 19544 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 19545 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 19546 | s,@LDLAST@,$LDLAST,;t t |
| 19547 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 19548 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 19549 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 19550 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19551 | s,@TRUE@,$TRUE,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19552 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 19553 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 19554 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 19555 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 19556 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 19557 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 19558 | s,@LIBM@,$LIBM,;t t |
| 19559 | s,@LIBC@,$LIBC,;t t |
| 19560 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 19561 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 19562 | s,@SRCDIRS@,$SRCDIRS,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19563 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19564 | CEOF |
| 19565 | |
| 19566 | _ACEOF |
| 19567 | |
| 19568 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19569 | # Split the substitutions into bite-sized pieces for seds with |
| 19570 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 19571 | ac_max_sed_lines=48 |
| 19572 | ac_sed_frag=1 # Number of current file. |
| 19573 | ac_beg=1 # First line for current file. |
| 19574 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 19575 | ac_more_lines=: |
| 19576 | ac_sed_cmds= |
| 19577 | while $ac_more_lines; do |
| 19578 | if test $ac_beg -gt 1; then |
| 19579 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 19580 | else |
| 19581 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 19582 | fi |
| 19583 | if test ! -s $tmp/subs.frag; then |
| 19584 | ac_more_lines=false |
| 19585 | else |
| 19586 | # The purpose of the label and of the branching condition is to |
| 19587 | # speed up the sed processing (if there are no `@' at all, there |
| 19588 | # is no need to browse any of the substitutions). |
| 19589 | # These are the two extra sed commands mentioned above. |
| 19590 | (echo ':t |
| 19591 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 19592 | if test -z "$ac_sed_cmds"; then |
| 19593 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 19594 | else |
| 19595 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 19596 | fi |
| 19597 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 19598 | ac_beg=$ac_end |
| 19599 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 19600 | fi |
| 19601 | done |
| 19602 | if test -z "$ac_sed_cmds"; then |
| 19603 | ac_sed_cmds=cat |
| 19604 | fi |
| 19605 | fi # test -n "$CONFIG_FILES" |
| 19606 | |
| 19607 | _ACEOF |
| 19608 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19609 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 19610 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 19611 | case $ac_file in |
| 19612 | - | *:- | *:-:* ) # input from stdin |
| 19613 | cat >$tmp/stdin |
| 19614 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 19615 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 19616 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 19617 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 19618 | * ) ac_file_in=$ac_file.in ;; |
| 19619 | esac |
| 19620 | |
| 19621 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 19622 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 19623 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19624 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 19625 | X"$ac_file" : 'X\(//\)$' \| \ |
| 19626 | X"$ac_file" : 'X\(/\)' \| \ |
| 19627 | . : '\(.\)' 2>/dev/null || |
| 19628 | echo X"$ac_file" | |
| 19629 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 19630 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 19631 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 19632 | /^X\(\/\).*/{ s//\1/; q; } |
| 19633 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19634 | { if $as_mkdir_p; then |
| 19635 | mkdir -p "$ac_dir" |
| 19636 | else |
| 19637 | as_dir="$ac_dir" |
| 19638 | as_dirs= |
| 19639 | while test ! -d "$as_dir"; do |
| 19640 | as_dirs="$as_dir $as_dirs" |
| 19641 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 19642 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19643 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 19644 | X"$as_dir" : 'X\(//\)$' \| \ |
| 19645 | X"$as_dir" : 'X\(/\)' \| \ |
| 19646 | . : '\(.\)' 2>/dev/null || |
| 19647 | echo X"$as_dir" | |
| 19648 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 19649 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 19650 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 19651 | /^X\(\/\).*/{ s//\1/; q; } |
| 19652 | s/.*/./; q'` |
| 19653 | done |
| 19654 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 19655 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 19656 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 19657 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19658 | |
| 19659 | ac_builddir=. |
| 19660 | |
| 19661 | if test "$ac_dir" != .; then |
| 19662 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 19663 | # A "../" for each directory in $ac_dir_suffix. |
| 19664 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 19665 | else |
| 19666 | ac_dir_suffix= ac_top_builddir= |
| 19667 | fi |
| 19668 | |
| 19669 | case $srcdir in |
| 19670 | .) # No --srcdir option. We are building in place. |
| 19671 | ac_srcdir=. |
| 19672 | if test -z "$ac_top_builddir"; then |
| 19673 | ac_top_srcdir=. |
| 19674 | else |
| 19675 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 19676 | fi ;; |
| 19677 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 19678 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 19679 | ac_top_srcdir=$srcdir ;; |
| 19680 | *) # Relative path. |
| 19681 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 19682 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 19683 | esac |
| 19684 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 19685 | # absolute. |
| 19686 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 19687 | 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] | 19688 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 19689 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 19690 | |
| 19691 | |
| 19692 | case $INSTALL in |
| 19693 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 19694 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 19695 | esac |
| 19696 | |
| 19697 | if test x"$ac_file" != x-; then |
| 19698 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 19699 | echo "$as_me: creating $ac_file" >&6;} |
| 19700 | rm -f "$ac_file" |
| 19701 | fi |
| 19702 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 19703 | # use $as_me), people would be surprised to read: |
| 19704 | # /* config.h. Generated by config.status. */ |
| 19705 | if test x"$ac_file" = x-; then |
| 19706 | configure_input= |
| 19707 | else |
| 19708 | configure_input="$ac_file. " |
| 19709 | fi |
| 19710 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 19711 | sed 's,.*/,,'` by configure." |
| 19712 | |
| 19713 | # First look for the input files in the build tree, otherwise in the |
| 19714 | # src tree. |
| 19715 | ac_file_inputs=`IFS=: |
| 19716 | for f in $ac_file_in; do |
| 19717 | case $f in |
| 19718 | -) echo $tmp/stdin ;; |
| 19719 | [\\/$]*) |
| 19720 | # Absolute (can't be DOS-style, as IFS=:) |
| 19721 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 19722 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 19723 | { (exit 1); exit 1; }; } |
| 19724 | echo $f;; |
| 19725 | *) # Relative |
| 19726 | if test -f "$f"; then |
| 19727 | # Build tree |
| 19728 | echo $f |
| 19729 | elif test -f "$srcdir/$f"; then |
| 19730 | # Source tree |
| 19731 | echo $srcdir/$f |
| 19732 | else |
| 19733 | # /dev/null tree |
| 19734 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 19735 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 19736 | { (exit 1); exit 1; }; } |
| 19737 | fi;; |
| 19738 | esac |
| 19739 | done` || { (exit 1); exit 1; } |
| 19740 | _ACEOF |
| 19741 | cat >>$CONFIG_STATUS <<_ACEOF |
| 19742 | sed "$ac_vpsub |
| 19743 | $extrasub |
| 19744 | _ACEOF |
| 19745 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19746 | :t |
| 19747 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 19748 | s,@configure_input@,$configure_input,;t t |
| 19749 | s,@srcdir@,$ac_srcdir,;t t |
| 19750 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 19751 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 19752 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 19753 | s,@builddir@,$ac_builddir,;t t |
| 19754 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 19755 | s,@top_builddir@,$ac_top_builddir,;t t |
| 19756 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 19757 | s,@INSTALL@,$ac_INSTALL,;t t |
| 19758 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 19759 | rm -f $tmp/stdin |
| 19760 | if test x"$ac_file" != x-; then |
| 19761 | mv $tmp/out $ac_file |
| 19762 | else |
| 19763 | cat $tmp/out |
| 19764 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19765 | fi |
| 19766 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19767 | done |
| 19768 | _ACEOF |
| 19769 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19770 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19771 | # |
| 19772 | # CONFIG_HEADER section. |
| 19773 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19774 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19775 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 19776 | # 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] | 19777 | # |
| 19778 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19779 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 19780 | ac_dB='[ ].*$,\1#\2' |
| 19781 | ac_dC=' ' |
| 19782 | ac_dD=',;t' |
| 19783 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 19784 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 19785 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19786 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19787 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19788 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19789 | 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] | 19790 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19791 | case $ac_file in |
| 19792 | - | *:- | *:-:* ) # input from stdin |
| 19793 | cat >$tmp/stdin |
| 19794 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 19795 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 19796 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 19797 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 19798 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19799 | esac |
| 19800 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19801 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 19802 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19803 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19804 | # First look for the input files in the build tree, otherwise in the |
| 19805 | # src tree. |
| 19806 | ac_file_inputs=`IFS=: |
| 19807 | for f in $ac_file_in; do |
| 19808 | case $f in |
| 19809 | -) echo $tmp/stdin ;; |
| 19810 | [\\/$]*) |
| 19811 | # Absolute (can't be DOS-style, as IFS=:) |
| 19812 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 19813 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 19814 | { (exit 1); exit 1; }; } |
| 19815 | echo $f;; |
| 19816 | *) # Relative |
| 19817 | if test -f "$f"; then |
| 19818 | # Build tree |
| 19819 | echo $f |
| 19820 | elif test -f "$srcdir/$f"; then |
| 19821 | # Source tree |
| 19822 | echo $srcdir/$f |
| 19823 | else |
| 19824 | # /dev/null tree |
| 19825 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 19826 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 19827 | { (exit 1); exit 1; }; } |
| 19828 | fi;; |
| 19829 | esac |
| 19830 | done` || { (exit 1); exit 1; } |
| 19831 | # Remove the trailing spaces. |
| 19832 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19833 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19834 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19835 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19836 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 19837 | # `conftest.undefs', that substitutes the proper values into |
| 19838 | # config.h.in to produce config.h. The first handles `#define' |
| 19839 | # templates, and the second `#undef' templates. |
| 19840 | # And first: Protect against being on the right side of a sed subst in |
| 19841 | # config.status. Protect against being in an unquoted here document |
| 19842 | # in config.status. |
| 19843 | rm -f conftest.defines conftest.undefs |
| 19844 | # Using a here document instead of a string reduces the quoting nightmare. |
| 19845 | # Putting comments in sed scripts is not portable. |
| 19846 | # |
| 19847 | # `end' is used to avoid that the second main sed command (meant for |
| 19848 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 19849 | # See the Autoconf documentation for `clear'. |
| 19850 | cat >confdef2sed.sed <<\_ACEOF |
| 19851 | s/[\\&,]/\\&/g |
| 19852 | s,[\\$`],\\&,g |
| 19853 | t clear |
| 19854 | : clear |
| 19855 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 19856 | t end |
| 19857 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 19858 | : end |
| 19859 | _ACEOF |
| 19860 | # If some macros were called several times there might be several times |
| 19861 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 19862 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 19863 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 19864 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 19865 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19866 | |
| 19867 | # This sed command replaces #undef with comments. This is necessary, for |
| 19868 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 19869 | # 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] | 19870 | cat >>conftest.undefs <<\_ACEOF |
| 19871 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 19872 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19873 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19874 | # Break up conftest.defines because some shells have a limit on the size |
| 19875 | # of here documents, and old seds have small limits too (100 cmds). |
| 19876 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19877 | 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] | 19878 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 19879 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19880 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19881 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19882 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19883 | # Write a limited-size here document to $tmp/defines.sed. |
| 19884 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 19885 | # Speed up: don't consider the non `#define' lines. |
| 19886 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 19887 | # Work around the forget-to-reset-the-flag bug. |
| 19888 | echo 't clr' >>$CONFIG_STATUS |
| 19889 | echo ': clr' >>$CONFIG_STATUS |
| 19890 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19891 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19892 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 19893 | rm -f $tmp/in |
| 19894 | mv $tmp/out $tmp/in |
| 19895 | ' >>$CONFIG_STATUS |
| 19896 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 19897 | rm -f conftest.defines |
| 19898 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19899 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19900 | rm -f conftest.defines |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19901 | echo ' fi # grep' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19902 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19904 | # Break up conftest.undefs because some shells have a limit on the size |
| 19905 | # of here documents, and old seds have small limits too (100 cmds). |
| 19906 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 19907 | rm -f conftest.tail |
| 19908 | while grep . conftest.undefs >/dev/null |
| 19909 | do |
| 19910 | # Write a limited-size here document to $tmp/undefs.sed. |
| 19911 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 19912 | # Speed up: don't consider the non `#undef' |
| 19913 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 19914 | # Work around the forget-to-reset-the-flag bug. |
| 19915 | echo 't clr' >>$CONFIG_STATUS |
| 19916 | echo ': clr' >>$CONFIG_STATUS |
| 19917 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 19918 | echo 'CEOF |
| 19919 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 19920 | rm -f $tmp/in |
| 19921 | mv $tmp/out $tmp/in |
| 19922 | ' >>$CONFIG_STATUS |
| 19923 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 19924 | rm -f conftest.undefs |
| 19925 | mv conftest.tail conftest.undefs |
| 19926 | done |
| 19927 | rm -f conftest.undefs |
| 19928 | |
| 19929 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19930 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 19931 | # use $as_me), people would be surprised to read: |
| 19932 | # /* config.h. Generated by config.status. */ |
| 19933 | if test x"$ac_file" = x-; then |
| 19934 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19935 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19936 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19937 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19938 | cat $tmp/in >>$tmp/config.h |
| 19939 | rm -f $tmp/in |
| 19940 | if test x"$ac_file" != x-; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19941 | 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] | 19942 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 19943 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 19944 | else |
| 19945 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 19946 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19947 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 19948 | X"$ac_file" : 'X\(//\)$' \| \ |
| 19949 | X"$ac_file" : 'X\(/\)' \| \ |
| 19950 | . : '\(.\)' 2>/dev/null || |
| 19951 | echo X"$ac_file" | |
| 19952 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 19953 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 19954 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 19955 | /^X\(\/\).*/{ s//\1/; q; } |
| 19956 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19957 | { if $as_mkdir_p; then |
| 19958 | mkdir -p "$ac_dir" |
| 19959 | else |
| 19960 | as_dir="$ac_dir" |
| 19961 | as_dirs= |
| 19962 | while test ! -d "$as_dir"; do |
| 19963 | as_dirs="$as_dir $as_dirs" |
| 19964 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 19965 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19966 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 19967 | X"$as_dir" : 'X\(//\)$' \| \ |
| 19968 | X"$as_dir" : 'X\(/\)' \| \ |
| 19969 | . : '\(.\)' 2>/dev/null || |
| 19970 | echo X"$as_dir" | |
| 19971 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 19972 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 19973 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 19974 | /^X\(\/\).*/{ s//\1/; q; } |
| 19975 | s/.*/./; q'` |
| 19976 | done |
| 19977 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 19978 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 19979 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 19980 | { (exit 1); exit 1; }; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19981 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19982 | rm -f $ac_file |
| 19983 | mv $tmp/config.h $ac_file |
| 19984 | fi |
| 19985 | else |
| 19986 | cat $tmp/config.h |
| 19987 | rm -f $tmp/config.h |
| 19988 | fi |
| 19989 | done |
| 19990 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19991 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19992 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19993 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19994 | { (exit 0); exit 0; } |
| 19995 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19996 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19997 | ac_clean_files=$ac_clean_files_save |
| 19998 | |
| 19999 | |
| 20000 | # configure is writing to config.log, and then calls config.status. |
| 20001 | # config.status does its own redirection, appending to config.log. |
| 20002 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 20003 | # by configure, so config.status won't be able to write to it; its |
| 20004 | # output is simply discarded. So we exec the FD to /dev/null, |
| 20005 | # effectively closing config.log, so it can be properly (re)opened and |
| 20006 | # appended to by config.status. When coming back to configure, we |
| 20007 | # need to make the FD available again. |
| 20008 | if test "$no_create" != yes; then |
| 20009 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20010 | ac_config_status_args= |
| 20011 | test "$silent" = yes && |
| 20012 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20013 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20014 | $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] | 20015 | exec 5>>config.log |
| 20016 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 20017 | # would make configure fail if this is the last instruction. |
| 20018 | $ac_cs_success || { (exit 1); exit 1; } |
| 20019 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20020 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 20021 | |
| 20022 | echo "creating Setup" |
| 20023 | if test ! -f Modules/Setup |
| 20024 | then |
| 20025 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 20026 | fi |
| 20027 | |
| 20028 | echo "creating Setup.local" |
| 20029 | if test ! -f Modules/Setup.local |
| 20030 | then |
| 20031 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 20032 | fi |
| 20033 | |
| 20034 | echo "creating Makefile" |
| 20035 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 20036 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 20037 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 20038 | mv config.c Modules |