Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 2 | # From configure.in Revision: 1.481 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.59 for python 2.5. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6 | # Copyright (C) 2003 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9 | ## --------------------- ## |
| 10 | ## M4sh Initialization. ## |
| 11 | ## --------------------- ## |
| 12 | |
| 13 | # Be Bourne compatible |
| 14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15 | emulate sh |
| 16 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 18 | # is contrary to our usage. Disable this feature. |
| 19 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 21 | set -o posix |
| 22 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25 | # Support unset when possible. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 45 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 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 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 222 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 223 | as_mkdir_p=false |
| 224 | fi |
| 225 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 226 | as_executable_p="test -f" |
| 227 | |
| 228 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 229 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 230 | |
| 231 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 232 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 233 | |
| 234 | |
| 235 | # IFS |
| 236 | # We need space, tab and new line, in precisely that order. |
| 237 | as_nl=' |
| 238 | ' |
| 239 | IFS=" $as_nl" |
| 240 | |
| 241 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 242 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 243 | |
| 244 | |
| 245 | # Name of the host. |
| 246 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 247 | # so uname gets run too. |
| 248 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 249 | |
| 250 | exec 6>&1 |
| 251 | |
| 252 | # |
| 253 | # Initializations. |
| 254 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 255 | ac_default_prefix=/usr/local |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 256 | ac_config_libobj_dir=. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 257 | cross_compiling=no |
| 258 | subdirs= |
| 259 | MFLAGS= |
| 260 | MAKEFLAGS= |
| 261 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 262 | |
| 263 | # Maximum number of lines to put in a shell here document. |
| 264 | # This variable seems obsolete. It should probably be removed, and |
| 265 | # only ac_max_sed_lines should be used. |
| 266 | : ${ac_max_here_lines=38} |
| 267 | |
| 268 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 269 | PACKAGE_NAME='python' |
| 270 | PACKAGE_TARNAME='python' |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 271 | PACKAGE_VERSION='2.5' |
| 272 | PACKAGE_STRING='python 2.5' |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 273 | PACKAGE_BUGREPORT='' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 274 | |
| 275 | ac_unique_file="Include/object.h" |
| 276 | # Factoring default headers for most tests. |
| 277 | ac_includes_default="\ |
| 278 | #include <stdio.h> |
| 279 | #if HAVE_SYS_TYPES_H |
| 280 | # include <sys/types.h> |
| 281 | #endif |
| 282 | #if HAVE_SYS_STAT_H |
| 283 | # include <sys/stat.h> |
| 284 | #endif |
| 285 | #if STDC_HEADERS |
| 286 | # include <stdlib.h> |
| 287 | # include <stddef.h> |
| 288 | #else |
| 289 | # if HAVE_STDLIB_H |
| 290 | # include <stdlib.h> |
| 291 | # endif |
| 292 | #endif |
| 293 | #if HAVE_STRING_H |
| 294 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 295 | # include <memory.h> |
| 296 | # endif |
| 297 | # include <string.h> |
| 298 | #endif |
| 299 | #if HAVE_STRINGS_H |
| 300 | # include <strings.h> |
| 301 | #endif |
| 302 | #if HAVE_INTTYPES_H |
| 303 | # include <inttypes.h> |
| 304 | #else |
| 305 | # if HAVE_STDINT_H |
| 306 | # include <stdint.h> |
| 307 | # endif |
| 308 | #endif |
| 309 | #if HAVE_UNISTD_H |
| 310 | # include <unistd.h> |
| 311 | #endif" |
| 312 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 313 | 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 CONFIGURE_MACOSX_DEPLOYMENT_TARGET 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' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 314 | ac_subst_files='' |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 315 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 316 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 317 | ac_init_help= |
| 318 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 319 | # The variables have the same names as the options, with |
| 320 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 321 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 322 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 323 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 324 | no_recursion= |
| 325 | prefix=NONE |
| 326 | program_prefix=NONE |
| 327 | program_suffix=NONE |
| 328 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 329 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 330 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 331 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 332 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 333 | x_includes=NONE |
| 334 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 335 | |
| 336 | # Installation directory options. |
| 337 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 338 | # and all the variables that are supposed to be based on exec_prefix |
| 339 | # by default will actually change. |
| 340 | # 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] | 341 | bindir='${exec_prefix}/bin' |
| 342 | sbindir='${exec_prefix}/sbin' |
| 343 | libexecdir='${exec_prefix}/libexec' |
| 344 | datadir='${prefix}/share' |
| 345 | sysconfdir='${prefix}/etc' |
| 346 | sharedstatedir='${prefix}/com' |
| 347 | localstatedir='${prefix}/var' |
| 348 | libdir='${exec_prefix}/lib' |
| 349 | includedir='${prefix}/include' |
| 350 | oldincludedir='/usr/include' |
| 351 | infodir='${prefix}/info' |
| 352 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 353 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 354 | ac_prev= |
| 355 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 356 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 357 | # If the previous option needs an argument, assign it. |
| 358 | if test -n "$ac_prev"; then |
| 359 | eval "$ac_prev=\$ac_option" |
| 360 | ac_prev= |
| 361 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 362 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 363 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 364 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 365 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 366 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 367 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 368 | case $ac_option in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 369 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 370 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 371 | ac_prev=bindir ;; |
| 372 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 373 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 374 | |
| 375 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 376 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 377 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 378 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 379 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 380 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 381 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 382 | ac_prev=cache_file ;; |
| 383 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 384 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 385 | cache_file=$ac_optarg ;; |
| 386 | |
| 387 | --config-cache | -C) |
| 388 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 389 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 390 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 391 | ac_prev=datadir ;; |
| 392 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 393 | | --da=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 394 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 395 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 396 | -disable-* | --disable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 397 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 398 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 399 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 400 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 401 | { (exit 1); exit 1; }; } |
| 402 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 403 | eval "enable_$ac_feature=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 404 | |
| 405 | -enable-* | --enable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 406 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 407 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 408 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 409 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 410 | { (exit 1); exit 1; }; } |
| 411 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 412 | case $ac_option in |
| 413 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 414 | *) ac_optarg=yes ;; |
| 415 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 416 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 417 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 418 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 419 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 420 | | --exec | --exe | --ex) |
| 421 | ac_prev=exec_prefix ;; |
| 422 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 423 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 424 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 425 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 426 | |
| 427 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 428 | # Obsolete; use --with-gas. |
| 429 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 430 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 431 | -help | --help | --hel | --he | -h) |
| 432 | ac_init_help=long ;; |
| 433 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 434 | ac_init_help=recursive ;; |
| 435 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 436 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 437 | |
| 438 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 439 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 440 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 441 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 442 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 443 | -includedir | --includedir | --includedi | --included | --include \ |
| 444 | | --includ | --inclu | --incl | --inc) |
| 445 | ac_prev=includedir ;; |
| 446 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 447 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 448 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 449 | |
| 450 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 451 | ac_prev=infodir ;; |
| 452 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 453 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 454 | |
| 455 | -libdir | --libdir | --libdi | --libd) |
| 456 | ac_prev=libdir ;; |
| 457 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 458 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 459 | |
| 460 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 461 | | --libexe | --libex | --libe) |
| 462 | ac_prev=libexecdir ;; |
| 463 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 464 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 465 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 466 | |
| 467 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 468 | | --localstate | --localstat | --localsta | --localst \ |
| 469 | | --locals | --local | --loca | --loc | --lo) |
| 470 | ac_prev=localstatedir ;; |
| 471 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 472 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 473 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 474 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 475 | |
| 476 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 477 | ac_prev=mandir ;; |
| 478 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 479 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 480 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 481 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 482 | # Obsolete; use --without-fp. |
| 483 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 484 | |
| 485 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 486 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 487 | no_create=yes ;; |
| 488 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 489 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 490 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 491 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 492 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 493 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 494 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 495 | | --oldin | --oldi | --old | --ol | --o) |
| 496 | ac_prev=oldincludedir ;; |
| 497 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 498 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 499 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 500 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 501 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 502 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 503 | ac_prev=prefix ;; |
| 504 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 505 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 506 | |
| 507 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 508 | | --program-pre | --program-pr | --program-p) |
| 509 | ac_prev=program_prefix ;; |
| 510 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 511 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 512 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 513 | |
| 514 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 515 | | --program-suf | --program-su | --program-s) |
| 516 | ac_prev=program_suffix ;; |
| 517 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 518 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 519 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 520 | |
| 521 | -program-transform-name | --program-transform-name \ |
| 522 | | --program-transform-nam | --program-transform-na \ |
| 523 | | --program-transform-n | --program-transform- \ |
| 524 | | --program-transform | --program-transfor \ |
| 525 | | --program-transfo | --program-transf \ |
| 526 | | --program-trans | --program-tran \ |
| 527 | | --progr-tra | --program-tr | --program-t) |
| 528 | ac_prev=program_transform_name ;; |
| 529 | -program-transform-name=* | --program-transform-name=* \ |
| 530 | | --program-transform-nam=* | --program-transform-na=* \ |
| 531 | | --program-transform-n=* | --program-transform-=* \ |
| 532 | | --program-transform=* | --program-transfor=* \ |
| 533 | | --program-transfo=* | --program-transf=* \ |
| 534 | | --program-trans=* | --program-tran=* \ |
| 535 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 536 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 537 | |
| 538 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 539 | | -silent | --silent | --silen | --sile | --sil) |
| 540 | silent=yes ;; |
| 541 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 542 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 543 | ac_prev=sbindir ;; |
| 544 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 545 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 546 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 547 | |
| 548 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 549 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 550 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 551 | | --sha | --sh) |
| 552 | ac_prev=sharedstatedir ;; |
| 553 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 554 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 555 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 556 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 557 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 558 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 559 | -site | --site | --sit) |
| 560 | ac_prev=site ;; |
| 561 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 562 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 563 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 564 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 565 | ac_prev=srcdir ;; |
| 566 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 567 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 568 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 569 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 570 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 571 | ac_prev=sysconfdir ;; |
| 572 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 573 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 574 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 575 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 576 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 577 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 578 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 579 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 580 | |
| 581 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 582 | verbose=yes ;; |
| 583 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 584 | -version | --version | --versio | --versi | --vers | -V) |
| 585 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 586 | |
| 587 | -with-* | --with-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 588 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 589 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 590 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 591 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 592 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 593 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 594 | case $ac_option in |
| 595 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 596 | *) ac_optarg=yes ;; |
| 597 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 598 | eval "with_$ac_package='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 599 | |
| 600 | -without-* | --without-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 601 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 602 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 603 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 604 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 605 | { (exit 1); exit 1; }; } |
| 606 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 607 | eval "with_$ac_package=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 608 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 609 | --x) |
| 610 | # Obsolete; use --with-x. |
| 611 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 612 | |
| 613 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 614 | | --x-incl | --x-inc | --x-in | --x-i) |
| 615 | ac_prev=x_includes ;; |
| 616 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 617 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 618 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 619 | |
| 620 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 621 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 622 | ac_prev=x_libraries ;; |
| 623 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 624 | | --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] | 625 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 626 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 627 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 628 | Try \`$0 --help' for more information." >&2 |
| 629 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 630 | ;; |
| 631 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 632 | *=*) |
| 633 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 634 | # Reject names that are not valid shell variable names. |
| 635 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 636 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 637 | { (exit 1); exit 1; }; } |
| 638 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 639 | eval "$ac_envvar='$ac_optarg'" |
| 640 | export $ac_envvar ;; |
| 641 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 642 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 643 | # FIXME: should be removed in autoconf 3.0. |
| 644 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 645 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 646 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 647 | : ${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] | 648 | ;; |
| 649 | |
| 650 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 651 | done |
| 652 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 653 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 654 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 655 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 656 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 657 | fi |
| 658 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 659 | # Be sure to have absolute paths. |
| 660 | for ac_var in exec_prefix prefix |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 661 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 662 | eval ac_val=$`echo $ac_var` |
| 663 | case $ac_val in |
| 664 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 665 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 666 | { (exit 1); exit 1; }; };; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 667 | esac |
| 668 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 669 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 670 | # Be sure to have absolute paths. |
| 671 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 672 | localstatedir libdir includedir oldincludedir infodir mandir |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 673 | do |
| 674 | eval ac_val=$`echo $ac_var` |
| 675 | case $ac_val in |
| 676 | [\\/$]* | ?:[\\/]* ) ;; |
| 677 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 678 | { (exit 1); exit 1; }; };; |
| 679 | esac |
| 680 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 681 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 682 | # There might be people who depend on the old broken behavior: `$host' |
| 683 | # used to hold the argument of --host etc. |
| 684 | # FIXME: To remove some day. |
| 685 | build=$build_alias |
| 686 | host=$host_alias |
| 687 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 688 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 689 | # FIXME: To remove some day. |
| 690 | if test "x$host_alias" != x; then |
| 691 | if test "x$build_alias" = x; then |
| 692 | cross_compiling=maybe |
| 693 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 694 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 695 | elif test "x$build_alias" != "x$host_alias"; then |
| 696 | cross_compiling=yes |
| 697 | fi |
| 698 | fi |
| 699 | |
| 700 | ac_tool_prefix= |
| 701 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 702 | |
| 703 | test "$silent" = yes && exec 6>/dev/null |
| 704 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 705 | |
| 706 | # Find the source files, if location was not specified. |
| 707 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 708 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 709 | # Try the directory containing this script, then its parent. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 710 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 711 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 712 | X"$0" : 'X\(//\)[^/]' \| \ |
| 713 | X"$0" : 'X\(//\)$' \| \ |
| 714 | X"$0" : 'X\(/\)' \| \ |
| 715 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 716 | echo X"$0" | |
| 717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 718 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 719 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 720 | /^X\(\/\).*/{ s//\1/; q; } |
| 721 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 722 | srcdir=$ac_confdir |
| 723 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 724 | srcdir=.. |
| 725 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 726 | else |
| 727 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 728 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 729 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 730 | if test "$ac_srcdir_defaulted" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 731 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 732 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 733 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 735 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 736 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 737 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 738 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 739 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 740 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 741 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 742 | ac_env_build_alias_set=${build_alias+set} |
| 743 | ac_env_build_alias_value=$build_alias |
| 744 | ac_cv_env_build_alias_set=${build_alias+set} |
| 745 | ac_cv_env_build_alias_value=$build_alias |
| 746 | ac_env_host_alias_set=${host_alias+set} |
| 747 | ac_env_host_alias_value=$host_alias |
| 748 | ac_cv_env_host_alias_set=${host_alias+set} |
| 749 | ac_cv_env_host_alias_value=$host_alias |
| 750 | ac_env_target_alias_set=${target_alias+set} |
| 751 | ac_env_target_alias_value=$target_alias |
| 752 | ac_cv_env_target_alias_set=${target_alias+set} |
| 753 | ac_cv_env_target_alias_value=$target_alias |
| 754 | ac_env_CC_set=${CC+set} |
| 755 | ac_env_CC_value=$CC |
| 756 | ac_cv_env_CC_set=${CC+set} |
| 757 | ac_cv_env_CC_value=$CC |
| 758 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 759 | ac_env_CFLAGS_value=$CFLAGS |
| 760 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 761 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 762 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 763 | ac_env_LDFLAGS_value=$LDFLAGS |
| 764 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 765 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 766 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 767 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 768 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 769 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 770 | ac_env_CPP_set=${CPP+set} |
| 771 | ac_env_CPP_value=$CPP |
| 772 | ac_cv_env_CPP_set=${CPP+set} |
| 773 | ac_cv_env_CPP_value=$CPP |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 774 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 775 | # |
| 776 | # Report the --help message. |
| 777 | # |
| 778 | if test "$ac_init_help" = "long"; then |
| 779 | # Omit some internal or obsolete options to make the list less imposing. |
| 780 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 781 | cat <<_ACEOF |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 782 | \`configure' configures python 2.5 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 783 | |
| 784 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 785 | |
| 786 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 787 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 788 | |
| 789 | Defaults for the options are specified in brackets. |
| 790 | |
| 791 | Configuration: |
| 792 | -h, --help display this help and exit |
| 793 | --help=short display options specific to this package |
| 794 | --help=recursive display the short help of all the included packages |
| 795 | -V, --version display version information and exit |
| 796 | -q, --quiet, --silent do not print \`checking...' messages |
| 797 | --cache-file=FILE cache test results in FILE [disabled] |
| 798 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 799 | -n, --no-create do not create output files |
| 800 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 801 | |
| 802 | _ACEOF |
| 803 | |
| 804 | cat <<_ACEOF |
| 805 | Installation directories: |
| 806 | --prefix=PREFIX install architecture-independent files in PREFIX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 807 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 808 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 809 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 810 | |
| 811 | By default, \`make install' will install all the files in |
| 812 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 813 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 814 | for instance \`--prefix=\$HOME'. |
| 815 | |
| 816 | For better control, use the options below. |
| 817 | |
| 818 | Fine tuning of the installation directories: |
| 819 | --bindir=DIR user executables [EPREFIX/bin] |
| 820 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 821 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 822 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 823 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 824 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 825 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 826 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 827 | --includedir=DIR C header files [PREFIX/include] |
| 828 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 829 | --infodir=DIR info documentation [PREFIX/info] |
| 830 | --mandir=DIR man documentation [PREFIX/man] |
| 831 | _ACEOF |
| 832 | |
| 833 | cat <<\_ACEOF |
| 834 | _ACEOF |
| 835 | fi |
| 836 | |
| 837 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 838 | case $ac_init_help in |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 839 | short | recursive ) echo "Configuration of python 2.5:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 840 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 841 | cat <<\_ACEOF |
| 842 | |
| 843 | Optional Features: |
| 844 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 845 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 846 | --enable-framework[=INSTALLDIR] |
| 847 | Build (MacOSX|Darwin) framework |
| 848 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 849 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 850 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 851 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 852 | --disable-ipv6 Disable ipv6 support |
| 853 | --enable-unicode[=ucs[24]] |
| 854 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 855 | |
| 856 | Optional Packages: |
| 857 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 858 | --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] | 859 | --without-gcc never use gcc |
| 860 | --with-cxx=<compiler> enable C++ support |
| 861 | --with-suffix=.exe set executable suffix |
| 862 | --with-pydebug build with Py_DEBUG defined |
| 863 | --with-libs='lib1 ...' link against additional libs |
| 864 | --with-signal-module disable/enable signal module |
| 865 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 866 | --with(out)-threads[=DIRECTORY] |
| 867 | disable/enable thread support |
| 868 | --with(out)-thread[=DIRECTORY] |
| 869 | deprecated; use --with(out)-threads |
| 870 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 871 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 872 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 873 | --with(out)-pymalloc disable/enable specialized mallocs |
| 874 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 875 | --with-fpectl enable SIGFPE catching |
| 876 | --with-libm=STRING math library |
| 877 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 878 | |
| 879 | Some influential environment variables: |
| 880 | CC C compiler command |
| 881 | CFLAGS C compiler flags |
| 882 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 883 | nonstandard directory <lib dir> |
| 884 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 885 | headers in a nonstandard directory <include dir> |
| 886 | CPP C preprocessor |
| 887 | |
| 888 | Use these variables to override the choices made by `configure' or to help |
| 889 | it to find libraries and programs with nonstandard names/locations. |
| 890 | |
| 891 | _ACEOF |
| 892 | fi |
| 893 | |
| 894 | if test "$ac_init_help" = "recursive"; then |
| 895 | # If there are subdirs, report their specific --help. |
| 896 | ac_popdir=`pwd` |
| 897 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 898 | test -d $ac_dir || continue |
| 899 | ac_builddir=. |
| 900 | |
| 901 | if test "$ac_dir" != .; then |
| 902 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 903 | # A "../" for each directory in $ac_dir_suffix. |
| 904 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 905 | else |
| 906 | ac_dir_suffix= ac_top_builddir= |
| 907 | fi |
| 908 | |
| 909 | case $srcdir in |
| 910 | .) # No --srcdir option. We are building in place. |
| 911 | ac_srcdir=. |
| 912 | if test -z "$ac_top_builddir"; then |
| 913 | ac_top_srcdir=. |
| 914 | else |
| 915 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 916 | fi ;; |
| 917 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 918 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 919 | ac_top_srcdir=$srcdir ;; |
| 920 | *) # Relative path. |
| 921 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 922 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 923 | esac |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 924 | |
| 925 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 926 | # the directories may not exist. |
| 927 | case `pwd` in |
| 928 | .) ac_abs_builddir="$ac_dir";; |
| 929 | *) |
| 930 | case "$ac_dir" in |
| 931 | .) ac_abs_builddir=`pwd`;; |
| 932 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 933 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 934 | esac;; |
| 935 | esac |
| 936 | case $ac_abs_builddir in |
| 937 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 938 | *) |
| 939 | case ${ac_top_builddir}. in |
| 940 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 941 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 942 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 943 | esac;; |
| 944 | esac |
| 945 | case $ac_abs_builddir in |
| 946 | .) ac_abs_srcdir=$ac_srcdir;; |
| 947 | *) |
| 948 | case $ac_srcdir in |
| 949 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 950 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 951 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 952 | esac;; |
| 953 | esac |
| 954 | case $ac_abs_builddir in |
| 955 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 956 | *) |
| 957 | case $ac_top_srcdir in |
| 958 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 959 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 960 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 961 | esac;; |
| 962 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 963 | |
| 964 | cd $ac_dir |
| 965 | # Check for guested configure; otherwise get Cygnus style configure. |
| 966 | if test -f $ac_srcdir/configure.gnu; then |
| 967 | echo |
| 968 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 969 | elif test -f $ac_srcdir/configure; then |
| 970 | echo |
| 971 | $SHELL $ac_srcdir/configure --help=recursive |
| 972 | elif test -f $ac_srcdir/configure.ac || |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 973 | test -f $ac_srcdir/configure.in; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 974 | echo |
| 975 | $ac_configure --help |
| 976 | else |
| 977 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 978 | fi |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 979 | cd $ac_popdir |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 980 | done |
| 981 | fi |
| 982 | |
| 983 | test -n "$ac_init_help" && exit 0 |
| 984 | if $ac_init_version; then |
| 985 | cat <<\_ACEOF |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 986 | python configure 2.5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 987 | generated by GNU Autoconf 2.59 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 988 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 989 | Copyright (C) 2003 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 990 | This configure script is free software; the Free Software Foundation |
| 991 | gives unlimited permission to copy, distribute and modify it. |
| 992 | _ACEOF |
| 993 | exit 0 |
| 994 | fi |
| 995 | exec 5>config.log |
| 996 | cat >&5 <<_ACEOF |
| 997 | This file contains any messages produced by compilers while |
| 998 | running configure, to aid debugging if configure makes a mistake. |
| 999 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 1000 | It was created by python $as_me 2.5, which was |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1001 | generated by GNU Autoconf 2.59. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1002 | |
| 1003 | $ $0 $@ |
| 1004 | |
| 1005 | _ACEOF |
| 1006 | { |
| 1007 | cat <<_ASUNAME |
| 1008 | ## --------- ## |
| 1009 | ## Platform. ## |
| 1010 | ## --------- ## |
| 1011 | |
| 1012 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1013 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1014 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1015 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1016 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1017 | |
| 1018 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1019 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1020 | |
| 1021 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1022 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1023 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1024 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1025 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1026 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1027 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1028 | |
| 1029 | _ASUNAME |
| 1030 | |
| 1031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1032 | for as_dir in $PATH |
| 1033 | do |
| 1034 | IFS=$as_save_IFS |
| 1035 | test -z "$as_dir" && as_dir=. |
| 1036 | echo "PATH: $as_dir" |
| 1037 | done |
| 1038 | |
| 1039 | } >&5 |
| 1040 | |
| 1041 | cat >&5 <<_ACEOF |
| 1042 | |
| 1043 | |
| 1044 | ## ----------- ## |
| 1045 | ## Core tests. ## |
| 1046 | ## ----------- ## |
| 1047 | |
| 1048 | _ACEOF |
| 1049 | |
| 1050 | |
| 1051 | # Keep a trace of the command line. |
| 1052 | # 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] | 1053 | # 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] | 1054 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1055 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1056 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1057 | ac_configure_args0= |
| 1058 | ac_configure_args1= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1059 | ac_sep= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1060 | ac_must_keep_next=false |
| 1061 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1062 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1063 | for ac_arg |
| 1064 | do |
| 1065 | case $ac_arg in |
| 1066 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1067 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1068 | | -silent | --silent | --silen | --sile | --sil) |
| 1069 | continue ;; |
| 1070 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1071 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1072 | esac |
| 1073 | case $ac_pass in |
| 1074 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1075 | 2) |
| 1076 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1077 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1078 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1079 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1080 | case $ac_arg in |
| 1081 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1082 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1083 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1084 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1085 | case "$ac_configure_args0 " in |
| 1086 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1087 | esac |
| 1088 | ;; |
| 1089 | -* ) ac_must_keep_next=true ;; |
| 1090 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1091 | fi |
| 1092 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1093 | # Get rid of the leading space. |
| 1094 | ac_sep=" " |
| 1095 | ;; |
| 1096 | esac |
| 1097 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1098 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1099 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1100 | $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] | 1101 | |
| 1102 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1103 | # config.log. We remove comments because anyway the quotes in there |
| 1104 | # would cause problems or look ugly. |
| 1105 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1106 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1107 | trap 'exit_status=$? |
| 1108 | # Save into config.log some information that might help in debugging. |
| 1109 | { |
| 1110 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1111 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1112 | cat <<\_ASBOX |
| 1113 | ## ---------------- ## |
| 1114 | ## Cache variables. ## |
| 1115 | ## ---------------- ## |
| 1116 | _ASBOX |
| 1117 | echo |
| 1118 | # The following way of writing the cache mishandles newlines in values, |
| 1119 | { |
| 1120 | (set) 2>&1 | |
| 1121 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1122 | *ac_space=\ *) |
| 1123 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1124 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1125 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1126 | ;; |
| 1127 | *) |
| 1128 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1129 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1130 | ;; |
| 1131 | esac; |
| 1132 | } |
| 1133 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1134 | |
| 1135 | cat <<\_ASBOX |
| 1136 | ## ----------------- ## |
| 1137 | ## Output variables. ## |
| 1138 | ## ----------------- ## |
| 1139 | _ASBOX |
| 1140 | echo |
| 1141 | for ac_var in $ac_subst_vars |
| 1142 | do |
| 1143 | eval ac_val=$`echo $ac_var` |
| 1144 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1145 | done | sort |
| 1146 | echo |
| 1147 | |
| 1148 | if test -n "$ac_subst_files"; then |
| 1149 | cat <<\_ASBOX |
| 1150 | ## ------------- ## |
| 1151 | ## Output files. ## |
| 1152 | ## ------------- ## |
| 1153 | _ASBOX |
| 1154 | echo |
| 1155 | for ac_var in $ac_subst_files |
| 1156 | do |
| 1157 | eval ac_val=$`echo $ac_var` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1158 | echo "$ac_var='"'"'$ac_val'"'"'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1159 | done | sort |
| 1160 | echo |
| 1161 | fi |
| 1162 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1163 | if test -s confdefs.h; then |
| 1164 | cat <<\_ASBOX |
| 1165 | ## ----------- ## |
| 1166 | ## confdefs.h. ## |
| 1167 | ## ----------- ## |
| 1168 | _ASBOX |
| 1169 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1170 | sed "/^$/d" confdefs.h | sort |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1171 | echo |
| 1172 | fi |
| 1173 | test "$ac_signal" != 0 && |
| 1174 | echo "$as_me: caught signal $ac_signal" |
| 1175 | echo "$as_me: exit $exit_status" |
| 1176 | } >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1177 | rm -f core *.core && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1178 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1179 | exit $exit_status |
| 1180 | ' 0 |
| 1181 | for ac_signal in 1 2 13 15; do |
| 1182 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1183 | done |
| 1184 | ac_signal=0 |
| 1185 | |
| 1186 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1187 | rm -rf conftest* confdefs.h |
| 1188 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1189 | echo >confdefs.h |
| 1190 | |
| 1191 | # Predefined preprocessor variables. |
| 1192 | |
| 1193 | cat >>confdefs.h <<_ACEOF |
| 1194 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1195 | _ACEOF |
| 1196 | |
| 1197 | |
| 1198 | cat >>confdefs.h <<_ACEOF |
| 1199 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1200 | _ACEOF |
| 1201 | |
| 1202 | |
| 1203 | cat >>confdefs.h <<_ACEOF |
| 1204 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1205 | _ACEOF |
| 1206 | |
| 1207 | |
| 1208 | cat >>confdefs.h <<_ACEOF |
| 1209 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1210 | _ACEOF |
| 1211 | |
| 1212 | |
| 1213 | cat >>confdefs.h <<_ACEOF |
| 1214 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1215 | _ACEOF |
| 1216 | |
| 1217 | |
| 1218 | # 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] | 1219 | # Prefer explicitly selected file to automatically selected ones. |
| 1220 | if test -z "$CONFIG_SITE"; then |
| 1221 | if test "x$prefix" != xNONE; then |
| 1222 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1223 | else |
| 1224 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1225 | fi |
| 1226 | fi |
| 1227 | for ac_site_file in $CONFIG_SITE; do |
| 1228 | if test -r "$ac_site_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1229 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1230 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1231 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1232 | . "$ac_site_file" |
| 1233 | fi |
| 1234 | done |
| 1235 | |
| 1236 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1237 | # Some versions of bash will fail to source /dev/null (special |
| 1238 | # files actually), so we avoid doing that. |
| 1239 | if test -f "$cache_file"; then |
| 1240 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1241 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1242 | case $cache_file in |
| 1243 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1244 | *) . ./$cache_file;; |
| 1245 | esac |
| 1246 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1247 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1248 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1249 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1250 | >$cache_file |
| 1251 | fi |
| 1252 | |
| 1253 | # Check that the precious variables saved in the cache have kept the same |
| 1254 | # value. |
| 1255 | ac_cache_corrupted=false |
| 1256 | for ac_var in `(set) 2>&1 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1257 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1258 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1259 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1260 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1261 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1262 | case $ac_old_set,$ac_new_set in |
| 1263 | set,) |
| 1264 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1265 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1266 | ac_cache_corrupted=: ;; |
| 1267 | ,set) |
| 1268 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1269 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1270 | ac_cache_corrupted=: ;; |
| 1271 | ,);; |
| 1272 | *) |
| 1273 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1274 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1275 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1276 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1277 | echo "$as_me: former value: $ac_old_val" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1278 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1279 | echo "$as_me: current value: $ac_new_val" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1280 | ac_cache_corrupted=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1281 | fi;; |
| 1282 | esac |
| 1283 | # Pass precious variables to config.status. |
| 1284 | if test "$ac_new_set" = set; then |
| 1285 | case $ac_new_val in |
| 1286 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1287 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1288 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1289 | esac |
| 1290 | case " $ac_configure_args " in |
| 1291 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1292 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1293 | esac |
| 1294 | fi |
| 1295 | done |
| 1296 | if $ac_cache_corrupted; then |
| 1297 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1298 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1299 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1300 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1301 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1302 | fi |
| 1303 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1304 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1305 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1306 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1307 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1308 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1309 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1310 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1311 | |
| 1312 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1313 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1314 | |
| 1315 | |
| 1316 | |
| 1317 | |
| 1318 | |
| 1319 | |
| 1320 | |
| 1321 | |
| 1322 | |
| 1323 | |
| 1324 | |
| 1325 | |
| 1326 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1327 | |
| 1328 | |
| 1329 | |
| 1330 | |
| 1331 | |
| 1332 | |
| 1333 | |
| 1334 | |
| 1335 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1336 | |
| 1337 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1338 | |
| 1339 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1340 | |
| 1341 | |
| 1342 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1343 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1344 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1345 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1346 | # with other autoconf-based packages that include Python.h |
| 1347 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1348 | rm confdefs.h |
| 1349 | mv confdefs.h.new confdefs.h |
| 1350 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1351 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 1352 | VERSION=2.5 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1353 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1354 | |
| 1355 | SOVERSION=1.0 |
| 1356 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1357 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1358 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1359 | |
| 1360 | cat >>confdefs.h <<\_ACEOF |
| 1361 | #define _GNU_SOURCE 1 |
| 1362 | _ACEOF |
| 1363 | |
| 1364 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1365 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1366 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1367 | # them. |
| 1368 | |
| 1369 | cat >>confdefs.h <<\_ACEOF |
| 1370 | #define _NETBSD_SOURCE 1 |
| 1371 | _ACEOF |
| 1372 | |
| 1373 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1374 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1375 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1376 | # them. |
| 1377 | |
| 1378 | cat >>confdefs.h <<\_ACEOF |
| 1379 | #define __BSD_VISIBLE 1 |
| 1380 | _ACEOF |
| 1381 | |
| 1382 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1383 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1384 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1385 | |
| 1386 | cat >>confdefs.h <<\_ACEOF |
| 1387 | #define _BSD_TYPES 1 |
| 1388 | _ACEOF |
| 1389 | |
| 1390 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1391 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1392 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1393 | # Arguments passed to configure. |
| 1394 | |
| 1395 | CONFIG_ARGS="$ac_configure_args" |
| 1396 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1397 | # Check whether --enable-framework or --disable-framework was given. |
| 1398 | if test "${enable_framework+set}" = set; then |
| 1399 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1400 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1401 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1402 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1403 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1404 | esac |
| 1405 | case $enableval in |
| 1406 | no) |
| 1407 | PYTHONFRAMEWORK= |
| 1408 | PYTHONFRAMEWORKDIR=no-framework |
| 1409 | PYTHONFRAMEWORKPREFIX= |
| 1410 | PYTHONFRAMEWORKINSTALLDIR= |
| 1411 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1412 | ;; |
| 1413 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1414 | PYTHONFRAMEWORK=Python |
| 1415 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1416 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1417 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1418 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1419 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1420 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1421 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1422 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1423 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1424 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1425 | PYTHONFRAMEWORKPREFIX= |
| 1426 | PYTHONFRAMEWORKINSTALLDIR= |
| 1427 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1428 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1429 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1430 | |
| 1431 | |
| 1432 | |
| 1433 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1434 | |
| 1435 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1436 | ## AC_HELP_STRING(--with-dyld, |
| 1437 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1438 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1439 | # Set name for machine-dependent library files |
| 1440 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1441 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1442 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1443 | if test -z "$MACHDEP" |
| 1444 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1445 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1446 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1447 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1448 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1449 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1450 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1451 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1452 | ac_md_system=`echo $ac_sys_system | |
| 1453 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1454 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1455 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1456 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1457 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1458 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1459 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1460 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1461 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 1462 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1463 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1464 | esac |
| 1465 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1466 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1467 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 1468 | # disable features if it is defined, without any means to access these |
| 1469 | # features as extensions. For these systems, we skip the definition of |
| 1470 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 1471 | # some feature, make sure there is no alternative way to access this |
| 1472 | # feature. Also, when using wildcards, make sure you have verified the |
| 1473 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 1474 | # wildcard, and that the wildcard does not include future systems |
| 1475 | # (which may remove their limitations). |
| 1476 | case $ac_sys_system/$ac_sys_release in |
| 1477 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 1478 | # 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] | 1479 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Martin v. Löwis | 9996828 | 2004-09-15 06:02:54 +0000 | [diff] [blame] | 1480 | OpenBSD/2.* | OpenBSD/3.[0123456]) |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1481 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 1482 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 1483 | # of union __?sigval. Reported by Stuart Bishop. |
| 1484 | SunOS/5.6) |
| 1485 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1486 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 1487 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 1488 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 1489 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1490 | define_xopen_source=no;; |
| 1491 | # 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] | 1492 | # 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] | 1493 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 1494 | define_xopen_source=no;; |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 1495 | # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that |
| 1496 | # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently, |
| 1497 | # this is fixed in 10.3, which identifies itself as Darwin/7.* |
| 1498 | # This should hopefully be fixed in FreeBSD 4.9 |
| 1499 | FreeBSD/4.8* | Darwin/6* ) |
| 1500 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 1501 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 1502 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 1503 | # or has another value. By not (re)defining it, the defaults come in place. |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 1504 | AIX/4) |
| 1505 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 1506 | AIX/5) |
| 1507 | if test `uname -r` -eq 1; then |
| 1508 | define_xopen_source=no |
| 1509 | fi |
| 1510 | ;; |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1511 | esac |
| 1512 | |
| 1513 | if test $define_xopen_source = yes |
| 1514 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1515 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 1516 | # defined precisely as g++ defines it |
| 1517 | case $ac_sys_system/$ac_sys_release in |
| 1518 | SunOS/5.8|SunOS/5.9) |
| 1519 | |
| 1520 | cat >>confdefs.h <<\_ACEOF |
| 1521 | #define _XOPEN_SOURCE 500 |
| 1522 | _ACEOF |
| 1523 | |
| 1524 | ;; |
| 1525 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1526 | |
| 1527 | cat >>confdefs.h <<\_ACEOF |
| 1528 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1529 | _ACEOF |
| 1530 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1531 | ;; |
| 1532 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1533 | |
| 1534 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 1535 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 1536 | # several APIs are not declared. Since this is also needed in some |
| 1537 | # cases for HP-UX, we define it globally. |
| 1538 | |
| 1539 | |
| 1540 | cat >>confdefs.h <<\_ACEOF |
| 1541 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 1542 | _ACEOF |
| 1543 | |
| 1544 | |
| 1545 | cat >>confdefs.h <<\_ACEOF |
| 1546 | #define _POSIX_C_SOURCE 200112L |
| 1547 | _ACEOF |
| 1548 | |
| 1549 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1550 | fi |
| 1551 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1552 | # |
| 1553 | # SGI compilers allow the specification of the both the ABI and the |
| 1554 | # ISA on the command line. Depending on the values of these switches, |
| 1555 | # different and often incompatable code will be generated. |
| 1556 | # |
| 1557 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1558 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1559 | # variable is also adjusted. |
| 1560 | # |
| 1561 | |
| 1562 | if test ! -z "$SGI_ABI" |
| 1563 | then |
| 1564 | CC="cc $SGI_ABI" |
| 1565 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1566 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1567 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1568 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1569 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1570 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1571 | # And add extra plat-mac for darwin |
| 1572 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1573 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1574 | echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 1575 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6 |
| 1576 | if test -z "$EXTRAPLATDIR" |
| 1577 | then |
| 1578 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1579 | darwin) |
| 1580 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 1581 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 1582 | ;; |
| 1583 | *) |
| 1584 | EXTRAPLATDIR="" |
| 1585 | EXTRAMACHDEPPATH="" |
| 1586 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1587 | esac |
| 1588 | fi |
| 1589 | echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 1590 | echo "${ECHO_T}$EXTRAPLATDIR" >&6 |
| 1591 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 1592 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 1593 | # it may influence the way we can build extensions, so distutils |
| 1594 | # needs to check it |
| 1595 | |
| 1596 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
| 1597 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1598 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1599 | |
| 1600 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 1601 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 1602 | # just to get things to compile and link. Users are free to override OPT |
| 1603 | # when running configure or make. The build should not break if they do. |
| 1604 | # BASECFLAGS should generally not be messed with, however. |
| 1605 | |
| 1606 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 1607 | # on that fiddles with OPT and BASECFLAGS? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1608 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1609 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1610 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1611 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1612 | if test "${with_gcc+set}" = set; then |
| 1613 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1614 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1615 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1616 | no) CC=cc |
| 1617 | without_gcc=yes;; |
| 1618 | yes) CC=gcc |
| 1619 | without_gcc=no;; |
| 1620 | *) CC=$withval |
| 1621 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1622 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1623 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1624 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1625 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1626 | AIX*) CC=cc_r |
| 1627 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1628 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1629 | case $BE_HOST_CPU in |
| 1630 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1631 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1632 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1633 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 1634 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1635 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1636 | ;; |
| 1637 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1638 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1639 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1640 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1641 | ;; |
| 1642 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1643 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1644 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1645 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1646 | ;; |
| 1647 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1648 | AR="\$(srcdir)/Modules/ar_beos" |
| 1649 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1650 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1651 | Monterey*) |
| 1652 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1653 | without_gcc=;; |
| 1654 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1655 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1656 | fi; |
| 1657 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1658 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1659 | |
| 1660 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1661 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1662 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1663 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1664 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1665 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1666 | # Check whether --with-cxx or --without-cxx was given. |
| 1667 | if test "${with_cxx+set}" = set; then |
| 1668 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1669 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1670 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1671 | case $withval in |
| 1672 | no) CXX= |
| 1673 | with_cxx=no;; |
| 1674 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1675 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1676 | with_cxx=$withval;; |
| 1677 | esac |
| 1678 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1679 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1680 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1681 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1682 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1683 | fi; |
| 1684 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1685 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1686 | |
| 1687 | if test "$with_cxx" = "yes" |
| 1688 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1689 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1690 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1691 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1692 | fi |
| 1693 | |
| 1694 | |
| 1695 | |
| 1696 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1697 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1698 | then |
| 1699 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1700 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1701 | # 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] | 1702 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1703 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1704 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1705 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1707 | else |
| 1708 | if test -n "$CXX"; then |
| 1709 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1710 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1712 | for as_dir in $PATH |
| 1713 | do |
| 1714 | IFS=$as_save_IFS |
| 1715 | test -z "$as_dir" && as_dir=. |
| 1716 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1717 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1718 | ac_cv_prog_CXX="$ac_prog" |
| 1719 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1720 | break 2 |
| 1721 | fi |
| 1722 | done |
| 1723 | done |
| 1724 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1725 | fi |
| 1726 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1727 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1728 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1729 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1730 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1731 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1732 | echo "$as_me:$LINENO: result: no" >&5 |
| 1733 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1734 | fi |
| 1735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1736 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1737 | done |
| 1738 | test -n "$CXX" || CXX="notfound" |
| 1739 | |
| 1740 | if test "$CXX" = "notfound" |
| 1741 | then |
| 1742 | CXX= |
| 1743 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1744 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1745 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1746 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1747 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1748 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1749 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1750 | /* confdefs.h. */ |
| 1751 | _ACEOF |
| 1752 | cat confdefs.h >>conftest.$ac_ext |
| 1753 | cat >>conftest.$ac_ext <<_ACEOF |
| 1754 | /* end confdefs.h. */ |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1755 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1756 | int |
| 1757 | main () |
| 1758 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1759 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1760 | ; |
| 1761 | return 0; |
| 1762 | } |
| 1763 | _ACEOF |
| 1764 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1765 | 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] | 1766 | # Try to create an executable without -o first, disregard a.out. |
| 1767 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1768 | # of exeext. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1769 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
| 1770 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1771 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1772 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1773 | (eval $ac_link_default) 2>&5 |
| 1774 | ac_status=$? |
| 1775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1776 | (exit $ac_status); }; then |
| 1777 | # Find the output, starting from the most likely. This scheme is |
| 1778 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1779 | # resort. |
| 1780 | |
| 1781 | # Be careful to initialize this variable, since it used to be cached. |
| 1782 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1783 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1784 | # b.out is created by i960 compilers. |
| 1785 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1786 | do |
| 1787 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1788 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1789 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1790 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1791 | conftest.$ac_ext ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1792 | # This is the source file. |
| 1793 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1794 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1795 | # We found the default executable, but exeext='' is most |
| 1796 | # certainly right. |
| 1797 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1798 | *.* ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1799 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1800 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1801 | # but it would be cool to find out if it's true. Does anybody |
| 1802 | # maintain Libtool? --akim. |
| 1803 | export ac_cv_exeext |
| 1804 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1805 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1806 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1807 | esac |
| 1808 | done |
| 1809 | else |
| 1810 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1812 | |
| 1813 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
| 1814 | See \`config.log' for more details." >&5 |
| 1815 | echo "$as_me: error: C++ compiler cannot create executables |
| 1816 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1817 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1818 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1819 | |
| 1820 | ac_exeext=$ac_cv_exeext |
| 1821 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1822 | echo "${ECHO_T}$ac_file" >&6 |
| 1823 | |
| 1824 | # Check the compiler produces executables we can run. If not, either |
| 1825 | # the compiler is broken, or we cross compile. |
| 1826 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1827 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1828 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1829 | # If not cross compiling, check that we can run a simple program. |
| 1830 | if test "$cross_compiling" != yes; then |
| 1831 | if { ac_try='./$ac_file' |
| 1832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1833 | (eval $ac_try) 2>&5 |
| 1834 | ac_status=$? |
| 1835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1836 | (exit $ac_status); }; }; then |
| 1837 | cross_compiling=no |
| 1838 | else |
| 1839 | if test "$cross_compiling" = maybe; then |
| 1840 | cross_compiling=yes |
| 1841 | else |
| 1842 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1843 | If you meant to cross compile, use \`--host'. |
| 1844 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1845 | echo "$as_me: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1846 | If you meant to cross compile, use \`--host'. |
| 1847 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1848 | { (exit 1); exit 1; }; } |
| 1849 | fi |
| 1850 | fi |
| 1851 | fi |
| 1852 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1853 | echo "${ECHO_T}yes" >&6 |
| 1854 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1855 | 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] | 1856 | ac_clean_files=$ac_clean_files_save |
| 1857 | # Check the compiler produces executables we can run. If not, either |
| 1858 | # the compiler is broken, or we cross compile. |
| 1859 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1860 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1861 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1862 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1863 | |
| 1864 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1865 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1867 | (eval $ac_link) 2>&5 |
| 1868 | ac_status=$? |
| 1869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1870 | (exit $ac_status); }; then |
| 1871 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1872 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1873 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1874 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1875 | for ac_file in conftest.exe conftest conftest.*; do |
| 1876 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1877 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1878 | *.$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] | 1879 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1880 | export ac_cv_exeext |
| 1881 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1882 | * ) break;; |
| 1883 | esac |
| 1884 | done |
| 1885 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1886 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1887 | See \`config.log' for more details." >&5 |
| 1888 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1889 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1890 | { (exit 1); exit 1; }; } |
| 1891 | fi |
| 1892 | |
| 1893 | rm -f conftest$ac_cv_exeext |
| 1894 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1895 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1896 | |
| 1897 | rm -f conftest.$ac_ext |
| 1898 | EXEEXT=$ac_cv_exeext |
| 1899 | ac_exeext=$EXEEXT |
| 1900 | |
| 1901 | ac_ext=c |
| 1902 | ac_cpp='$CPP $CPPFLAGS' |
| 1903 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1904 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1905 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1906 | |
| 1907 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1908 | |
| 1909 | fi |
| 1910 | fi |
| 1911 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1912 | # If the user switches compilers, we can't believe the cache |
| 1913 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1914 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1915 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1916 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1917 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1918 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1919 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1920 | fi |
| 1921 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1922 | ac_ext=c |
| 1923 | ac_cpp='$CPP $CPPFLAGS' |
| 1924 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1925 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1926 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1927 | if test -n "$ac_tool_prefix"; then |
| 1928 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1929 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1930 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1931 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1932 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1934 | else |
| 1935 | if test -n "$CC"; then |
| 1936 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1937 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1939 | for as_dir in $PATH |
| 1940 | do |
| 1941 | IFS=$as_save_IFS |
| 1942 | test -z "$as_dir" && as_dir=. |
| 1943 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1944 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1945 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1946 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1947 | break 2 |
| 1948 | fi |
| 1949 | done |
| 1950 | done |
| 1951 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1952 | fi |
| 1953 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1954 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1955 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1956 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1957 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1958 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1959 | echo "$as_me:$LINENO: result: no" >&5 |
| 1960 | echo "${ECHO_T}no" >&6 |
| 1961 | fi |
| 1962 | |
| 1963 | fi |
| 1964 | if test -z "$ac_cv_prog_CC"; then |
| 1965 | ac_ct_CC=$CC |
| 1966 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1967 | set dummy gcc; ac_word=$2 |
| 1968 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1969 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1970 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1972 | else |
| 1973 | if test -n "$ac_ct_CC"; then |
| 1974 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1975 | else |
| 1976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1977 | for as_dir in $PATH |
| 1978 | do |
| 1979 | IFS=$as_save_IFS |
| 1980 | test -z "$as_dir" && as_dir=. |
| 1981 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1982 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1983 | ac_cv_prog_ac_ct_CC="gcc" |
| 1984 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1985 | break 2 |
| 1986 | fi |
| 1987 | done |
| 1988 | done |
| 1989 | |
| 1990 | fi |
| 1991 | fi |
| 1992 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1993 | if test -n "$ac_ct_CC"; then |
| 1994 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1995 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1996 | else |
| 1997 | echo "$as_me:$LINENO: result: no" >&5 |
| 1998 | echo "${ECHO_T}no" >&6 |
| 1999 | fi |
| 2000 | |
| 2001 | CC=$ac_ct_CC |
| 2002 | else |
| 2003 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2004 | fi |
| 2005 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2006 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2007 | if test -n "$ac_tool_prefix"; then |
| 2008 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2009 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2010 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2011 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2012 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2014 | else |
| 2015 | if test -n "$CC"; then |
| 2016 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2017 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2019 | for as_dir in $PATH |
| 2020 | do |
| 2021 | IFS=$as_save_IFS |
| 2022 | test -z "$as_dir" && as_dir=. |
| 2023 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2024 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2025 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2026 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2027 | break 2 |
| 2028 | fi |
| 2029 | done |
| 2030 | done |
| 2031 | |
| 2032 | fi |
| 2033 | fi |
| 2034 | CC=$ac_cv_prog_CC |
| 2035 | if test -n "$CC"; then |
| 2036 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2037 | echo "${ECHO_T}$CC" >&6 |
| 2038 | else |
| 2039 | echo "$as_me:$LINENO: result: no" >&5 |
| 2040 | echo "${ECHO_T}no" >&6 |
| 2041 | fi |
| 2042 | |
| 2043 | fi |
| 2044 | if test -z "$ac_cv_prog_CC"; then |
| 2045 | ac_ct_CC=$CC |
| 2046 | # Extract the first word of "cc", so it can be a program name with args. |
| 2047 | set dummy cc; ac_word=$2 |
| 2048 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2049 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2050 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2052 | else |
| 2053 | if test -n "$ac_ct_CC"; then |
| 2054 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2055 | else |
| 2056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2057 | for as_dir in $PATH |
| 2058 | do |
| 2059 | IFS=$as_save_IFS |
| 2060 | test -z "$as_dir" && as_dir=. |
| 2061 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2062 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2063 | ac_cv_prog_ac_ct_CC="cc" |
| 2064 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2065 | break 2 |
| 2066 | fi |
| 2067 | done |
| 2068 | done |
| 2069 | |
| 2070 | fi |
| 2071 | fi |
| 2072 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2073 | if test -n "$ac_ct_CC"; then |
| 2074 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2075 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2076 | else |
| 2077 | echo "$as_me:$LINENO: result: no" >&5 |
| 2078 | echo "${ECHO_T}no" >&6 |
| 2079 | fi |
| 2080 | |
| 2081 | CC=$ac_ct_CC |
| 2082 | else |
| 2083 | CC="$ac_cv_prog_CC" |
| 2084 | fi |
| 2085 | |
| 2086 | fi |
| 2087 | if test -z "$CC"; then |
| 2088 | # Extract the first word of "cc", so it can be a program name with args. |
| 2089 | set dummy cc; ac_word=$2 |
| 2090 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2091 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2092 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2094 | else |
| 2095 | if test -n "$CC"; then |
| 2096 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2097 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2098 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2100 | for as_dir in $PATH |
| 2101 | do |
| 2102 | IFS=$as_save_IFS |
| 2103 | test -z "$as_dir" && as_dir=. |
| 2104 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2105 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2106 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2107 | ac_prog_rejected=yes |
| 2108 | continue |
| 2109 | fi |
| 2110 | ac_cv_prog_CC="cc" |
| 2111 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2112 | break 2 |
| 2113 | fi |
| 2114 | done |
| 2115 | done |
| 2116 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2117 | if test $ac_prog_rejected = yes; then |
| 2118 | # We found a bogon in the path, so make sure we never use it. |
| 2119 | set dummy $ac_cv_prog_CC |
| 2120 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2121 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2122 | # We chose a different compiler from the bogus one. |
| 2123 | # However, it has the same basename, so the bogon will be chosen |
| 2124 | # first if we set CC to just the basename; use the full file name. |
| 2125 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2126 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2127 | fi |
| 2128 | fi |
| 2129 | fi |
| 2130 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2131 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2132 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2133 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2134 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2135 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2136 | echo "$as_me:$LINENO: result: no" >&5 |
| 2137 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2138 | fi |
| 2139 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2140 | fi |
| 2141 | if test -z "$CC"; then |
| 2142 | if test -n "$ac_tool_prefix"; then |
| 2143 | for ac_prog in cl |
| 2144 | do |
| 2145 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2146 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2147 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2149 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2151 | else |
| 2152 | if test -n "$CC"; then |
| 2153 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2154 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2156 | for as_dir in $PATH |
| 2157 | do |
| 2158 | IFS=$as_save_IFS |
| 2159 | test -z "$as_dir" && as_dir=. |
| 2160 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2161 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2162 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2164 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2165 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2166 | done |
| 2167 | done |
| 2168 | |
| 2169 | fi |
| 2170 | fi |
| 2171 | CC=$ac_cv_prog_CC |
| 2172 | if test -n "$CC"; then |
| 2173 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2174 | echo "${ECHO_T}$CC" >&6 |
| 2175 | else |
| 2176 | echo "$as_me:$LINENO: result: no" >&5 |
| 2177 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2178 | fi |
| 2179 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2180 | test -n "$CC" && break |
| 2181 | done |
| 2182 | fi |
| 2183 | if test -z "$CC"; then |
| 2184 | ac_ct_CC=$CC |
| 2185 | for ac_prog in cl |
| 2186 | do |
| 2187 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2188 | set dummy $ac_prog; ac_word=$2 |
| 2189 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2190 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2191 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2193 | else |
| 2194 | if test -n "$ac_ct_CC"; then |
| 2195 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2196 | else |
| 2197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2198 | for as_dir in $PATH |
| 2199 | do |
| 2200 | IFS=$as_save_IFS |
| 2201 | test -z "$as_dir" && as_dir=. |
| 2202 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2203 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2204 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2205 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2206 | break 2 |
| 2207 | fi |
| 2208 | done |
| 2209 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2210 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2211 | fi |
| 2212 | fi |
| 2213 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2214 | if test -n "$ac_ct_CC"; then |
| 2215 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2216 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2217 | else |
| 2218 | echo "$as_me:$LINENO: result: no" >&5 |
| 2219 | echo "${ECHO_T}no" >&6 |
| 2220 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2221 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2222 | test -n "$ac_ct_CC" && break |
| 2223 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2225 | CC=$ac_ct_CC |
| 2226 | fi |
| 2227 | |
| 2228 | fi |
| 2229 | |
| 2230 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2231 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2232 | See \`config.log' for more details." >&5 |
| 2233 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2234 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2235 | { (exit 1); exit 1; }; } |
| 2236 | |
| 2237 | # Provide some information about the compiler. |
| 2238 | echo "$as_me:$LINENO:" \ |
| 2239 | "checking for C compiler version" >&5 |
| 2240 | ac_compiler=`set X $ac_compile; echo $2` |
| 2241 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2242 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2243 | ac_status=$? |
| 2244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2245 | (exit $ac_status); } |
| 2246 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2247 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2248 | ac_status=$? |
| 2249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2250 | (exit $ac_status); } |
| 2251 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2252 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2253 | ac_status=$? |
| 2254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2255 | (exit $ac_status); } |
| 2256 | |
| 2257 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2258 | /* confdefs.h. */ |
| 2259 | _ACEOF |
| 2260 | cat confdefs.h >>conftest.$ac_ext |
| 2261 | cat >>conftest.$ac_ext <<_ACEOF |
| 2262 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2263 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2264 | int |
| 2265 | main () |
| 2266 | { |
| 2267 | |
| 2268 | ; |
| 2269 | return 0; |
| 2270 | } |
| 2271 | _ACEOF |
| 2272 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2273 | 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] | 2274 | # Try to create an executable without -o first, disregard a.out. |
| 2275 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2276 | # of exeext. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2277 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2278 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2279 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2280 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2281 | (eval $ac_link_default) 2>&5 |
| 2282 | ac_status=$? |
| 2283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2284 | (exit $ac_status); }; then |
| 2285 | # Find the output, starting from the most likely. This scheme is |
| 2286 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2287 | # resort. |
| 2288 | |
| 2289 | # Be careful to initialize this variable, since it used to be cached. |
| 2290 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2291 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2292 | # b.out is created by i960 compilers. |
| 2293 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2294 | do |
| 2295 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2296 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2297 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2298 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2299 | conftest.$ac_ext ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2300 | # This is the source file. |
| 2301 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2302 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2303 | # We found the default executable, but exeext='' is most |
| 2304 | # certainly right. |
| 2305 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2306 | *.* ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2307 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2308 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2309 | # but it would be cool to find out if it's true. Does anybody |
| 2310 | # maintain Libtool? --akim. |
| 2311 | export ac_cv_exeext |
| 2312 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2313 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2314 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2315 | esac |
| 2316 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2317 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2318 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2319 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2320 | |
| 2321 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2322 | See \`config.log' for more details." >&5 |
| 2323 | echo "$as_me: error: C compiler cannot create executables |
| 2324 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2325 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2326 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2327 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2328 | ac_exeext=$ac_cv_exeext |
| 2329 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2330 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2331 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2332 | # Check the compiler produces executables we can run. If not, either |
| 2333 | # the compiler is broken, or we cross compile. |
| 2334 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2335 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2336 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2337 | # If not cross compiling, check that we can run a simple program. |
| 2338 | if test "$cross_compiling" != yes; then |
| 2339 | if { ac_try='./$ac_file' |
| 2340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2341 | (eval $ac_try) 2>&5 |
| 2342 | ac_status=$? |
| 2343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2344 | (exit $ac_status); }; }; then |
| 2345 | cross_compiling=no |
| 2346 | else |
| 2347 | if test "$cross_compiling" = maybe; then |
| 2348 | cross_compiling=yes |
| 2349 | else |
| 2350 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2351 | If you meant to cross compile, use \`--host'. |
| 2352 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2353 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2354 | If you meant to cross compile, use \`--host'. |
| 2355 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2356 | { (exit 1); exit 1; }; } |
| 2357 | fi |
| 2358 | fi |
| 2359 | fi |
| 2360 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2361 | echo "${ECHO_T}yes" >&6 |
| 2362 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2363 | 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] | 2364 | ac_clean_files=$ac_clean_files_save |
| 2365 | # Check the compiler produces executables we can run. If not, either |
| 2366 | # the compiler is broken, or we cross compile. |
| 2367 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2368 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2369 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2370 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2371 | |
| 2372 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2373 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2374 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2375 | (eval $ac_link) 2>&5 |
| 2376 | ac_status=$? |
| 2377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2378 | (exit $ac_status); }; then |
| 2379 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2380 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2381 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2382 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2383 | for ac_file in conftest.exe conftest conftest.*; do |
| 2384 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2385 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2386 | *.$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] | 2387 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2388 | export ac_cv_exeext |
| 2389 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2390 | * ) break;; |
| 2391 | esac |
| 2392 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2393 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2394 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2395 | See \`config.log' for more details." >&5 |
| 2396 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2397 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2398 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2399 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2400 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2401 | rm -f conftest$ac_cv_exeext |
| 2402 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2403 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2404 | |
| 2405 | rm -f conftest.$ac_ext |
| 2406 | EXEEXT=$ac_cv_exeext |
| 2407 | ac_exeext=$EXEEXT |
| 2408 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2409 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2410 | if test "${ac_cv_objext+set}" = set; then |
| 2411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2412 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2413 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2414 | /* confdefs.h. */ |
| 2415 | _ACEOF |
| 2416 | cat confdefs.h >>conftest.$ac_ext |
| 2417 | cat >>conftest.$ac_ext <<_ACEOF |
| 2418 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2419 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2420 | int |
| 2421 | main () |
| 2422 | { |
| 2423 | |
| 2424 | ; |
| 2425 | return 0; |
| 2426 | } |
| 2427 | _ACEOF |
| 2428 | rm -f conftest.o conftest.obj |
| 2429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2430 | (eval $ac_compile) 2>&5 |
| 2431 | ac_status=$? |
| 2432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2433 | (exit $ac_status); }; then |
| 2434 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2435 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2436 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2437 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2438 | break;; |
| 2439 | esac |
| 2440 | done |
| 2441 | else |
| 2442 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2444 | |
| 2445 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2446 | See \`config.log' for more details." >&5 |
| 2447 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2448 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2449 | { (exit 1); exit 1; }; } |
| 2450 | fi |
| 2451 | |
| 2452 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2453 | fi |
| 2454 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2455 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2456 | OBJEXT=$ac_cv_objext |
| 2457 | ac_objext=$OBJEXT |
| 2458 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2459 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2460 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2462 | else |
| 2463 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2464 | /* confdefs.h. */ |
| 2465 | _ACEOF |
| 2466 | cat confdefs.h >>conftest.$ac_ext |
| 2467 | cat >>conftest.$ac_ext <<_ACEOF |
| 2468 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2470 | int |
| 2471 | main () |
| 2472 | { |
| 2473 | #ifndef __GNUC__ |
| 2474 | choke me |
| 2475 | #endif |
| 2476 | |
| 2477 | ; |
| 2478 | return 0; |
| 2479 | } |
| 2480 | _ACEOF |
| 2481 | rm -f conftest.$ac_objext |
| 2482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2483 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2484 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2485 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2486 | rm -f conftest.er1 |
| 2487 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2489 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 2490 | { ac_try='test -z "$ac_c_werror_flag" |
| 2491 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2493 | (eval $ac_try) 2>&5 |
| 2494 | ac_status=$? |
| 2495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2496 | (exit $ac_status); }; } && |
| 2497 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2499 | (eval $ac_try) 2>&5 |
| 2500 | ac_status=$? |
| 2501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2502 | (exit $ac_status); }; }; then |
| 2503 | ac_compiler_gnu=yes |
| 2504 | else |
| 2505 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2507 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2508 | ac_compiler_gnu=no |
| 2509 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2510 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2511 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2512 | |
| 2513 | fi |
| 2514 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2515 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2516 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2517 | ac_test_CFLAGS=${CFLAGS+set} |
| 2518 | ac_save_CFLAGS=$CFLAGS |
| 2519 | CFLAGS="-g" |
| 2520 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2521 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2522 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2524 | else |
| 2525 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2526 | /* confdefs.h. */ |
| 2527 | _ACEOF |
| 2528 | cat confdefs.h >>conftest.$ac_ext |
| 2529 | cat >>conftest.$ac_ext <<_ACEOF |
| 2530 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2531 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2532 | int |
| 2533 | main () |
| 2534 | { |
| 2535 | |
| 2536 | ; |
| 2537 | return 0; |
| 2538 | } |
| 2539 | _ACEOF |
| 2540 | rm -f conftest.$ac_objext |
| 2541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2542 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2543 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2545 | rm -f conftest.er1 |
| 2546 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2548 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 2549 | { ac_try='test -z "$ac_c_werror_flag" |
| 2550 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2552 | (eval $ac_try) 2>&5 |
| 2553 | ac_status=$? |
| 2554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2555 | (exit $ac_status); }; } && |
| 2556 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2558 | (eval $ac_try) 2>&5 |
| 2559 | ac_status=$? |
| 2560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2561 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2562 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2563 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2564 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2566 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2567 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2568 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2570 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2571 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2572 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2573 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2574 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2575 | elif test $ac_cv_prog_cc_g = yes; then |
| 2576 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2577 | CFLAGS="-g -O2" |
| 2578 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2579 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2580 | fi |
| 2581 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2582 | if test "$GCC" = yes; then |
| 2583 | CFLAGS="-O2" |
| 2584 | else |
| 2585 | CFLAGS= |
| 2586 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2587 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2588 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2589 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2590 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2592 | else |
| 2593 | ac_cv_prog_cc_stdc=no |
| 2594 | ac_save_CC=$CC |
| 2595 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2596 | /* confdefs.h. */ |
| 2597 | _ACEOF |
| 2598 | cat confdefs.h >>conftest.$ac_ext |
| 2599 | cat >>conftest.$ac_ext <<_ACEOF |
| 2600 | /* end confdefs.h. */ |
| 2601 | #include <stdarg.h> |
| 2602 | #include <stdio.h> |
| 2603 | #include <sys/types.h> |
| 2604 | #include <sys/stat.h> |
| 2605 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2606 | struct buf { int x; }; |
| 2607 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2608 | static char *e (p, i) |
| 2609 | char **p; |
| 2610 | int i; |
| 2611 | { |
| 2612 | return p[i]; |
| 2613 | } |
| 2614 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2615 | { |
| 2616 | char *s; |
| 2617 | va_list v; |
| 2618 | va_start (v,p); |
| 2619 | s = g (p, va_arg (v,int)); |
| 2620 | va_end (v); |
| 2621 | return s; |
| 2622 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2623 | |
| 2624 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2625 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2626 | These don't provoke an error unfortunately, instead are silently treated |
| 2627 | as 'x'. The following induces an error, until -std1 is added to get |
| 2628 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2629 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2630 | that's true only with -std1. */ |
| 2631 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2632 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2633 | int test (int i, double x); |
| 2634 | struct s1 {int (*f) (int a);}; |
| 2635 | struct s2 {int (*f) (double a);}; |
| 2636 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2637 | int argc; |
| 2638 | char **argv; |
| 2639 | int |
| 2640 | main () |
| 2641 | { |
| 2642 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2643 | ; |
| 2644 | return 0; |
| 2645 | } |
| 2646 | _ACEOF |
| 2647 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2648 | # breaks some systems' header files. |
| 2649 | # AIX -qlanglvl=ansi |
| 2650 | # Ultrix and OSF/1 -std1 |
| 2651 | # HP-UX 10.20 and later -Ae |
| 2652 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2653 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2654 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2655 | do |
| 2656 | CC="$ac_save_CC $ac_arg" |
| 2657 | rm -f conftest.$ac_objext |
| 2658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2659 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2660 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2661 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2662 | rm -f conftest.er1 |
| 2663 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2665 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 2666 | { ac_try='test -z "$ac_c_werror_flag" |
| 2667 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2669 | (eval $ac_try) 2>&5 |
| 2670 | ac_status=$? |
| 2671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2672 | (exit $ac_status); }; } && |
| 2673 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2675 | (eval $ac_try) 2>&5 |
| 2676 | ac_status=$? |
| 2677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2678 | (exit $ac_status); }; }; then |
| 2679 | ac_cv_prog_cc_stdc=$ac_arg |
| 2680 | break |
| 2681 | else |
| 2682 | echo "$as_me: failed program was:" >&5 |
| 2683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2684 | |
| 2685 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2686 | rm -f conftest.err conftest.$ac_objext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2687 | done |
| 2688 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2689 | CC=$ac_save_CC |
| 2690 | |
| 2691 | fi |
| 2692 | |
| 2693 | case "x$ac_cv_prog_cc_stdc" in |
| 2694 | x|xno) |
| 2695 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2696 | echo "${ECHO_T}none needed" >&6 ;; |
| 2697 | *) |
| 2698 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2699 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2700 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2701 | esac |
| 2702 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2703 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2704 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2705 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2706 | # the declaration of exit, since it's the most demanding environment. |
| 2707 | cat >conftest.$ac_ext <<_ACEOF |
| 2708 | #ifndef __cplusplus |
| 2709 | choke me |
| 2710 | #endif |
| 2711 | _ACEOF |
| 2712 | rm -f conftest.$ac_objext |
| 2713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2714 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2715 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2716 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2717 | rm -f conftest.er1 |
| 2718 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2720 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 2721 | { ac_try='test -z "$ac_c_werror_flag" |
| 2722 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2724 | (eval $ac_try) 2>&5 |
| 2725 | ac_status=$? |
| 2726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2727 | (exit $ac_status); }; } && |
| 2728 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2730 | (eval $ac_try) 2>&5 |
| 2731 | ac_status=$? |
| 2732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2733 | (exit $ac_status); }; }; then |
| 2734 | for ac_declaration in \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2735 | '' \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2736 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2737 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2738 | 'extern "C" void exit (int) throw ();' \ |
| 2739 | 'extern "C" void exit (int);' \ |
| 2740 | 'void exit (int);' |
| 2741 | do |
| 2742 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2743 | /* confdefs.h. */ |
| 2744 | _ACEOF |
| 2745 | cat confdefs.h >>conftest.$ac_ext |
| 2746 | cat >>conftest.$ac_ext <<_ACEOF |
| 2747 | /* end confdefs.h. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 2748 | $ac_declaration |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2749 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2750 | int |
| 2751 | main () |
| 2752 | { |
| 2753 | exit (42); |
| 2754 | ; |
| 2755 | return 0; |
| 2756 | } |
| 2757 | _ACEOF |
| 2758 | rm -f conftest.$ac_objext |
| 2759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2760 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2761 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2762 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2763 | rm -f conftest.er1 |
| 2764 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2766 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 2767 | { ac_try='test -z "$ac_c_werror_flag" |
| 2768 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2770 | (eval $ac_try) 2>&5 |
| 2771 | ac_status=$? |
| 2772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2773 | (exit $ac_status); }; } && |
| 2774 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2776 | (eval $ac_try) 2>&5 |
| 2777 | ac_status=$? |
| 2778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2779 | (exit $ac_status); }; }; then |
| 2780 | : |
| 2781 | else |
| 2782 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2784 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2785 | continue |
| 2786 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2787 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2788 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2789 | /* confdefs.h. */ |
| 2790 | _ACEOF |
| 2791 | cat confdefs.h >>conftest.$ac_ext |
| 2792 | cat >>conftest.$ac_ext <<_ACEOF |
| 2793 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2794 | $ac_declaration |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2795 | int |
| 2796 | main () |
| 2797 | { |
| 2798 | exit (42); |
| 2799 | ; |
| 2800 | return 0; |
| 2801 | } |
| 2802 | _ACEOF |
| 2803 | rm -f conftest.$ac_objext |
| 2804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2805 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2806 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2808 | rm -f conftest.er1 |
| 2809 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2811 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 2812 | { ac_try='test -z "$ac_c_werror_flag" |
| 2813 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2815 | (eval $ac_try) 2>&5 |
| 2816 | ac_status=$? |
| 2817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2818 | (exit $ac_status); }; } && |
| 2819 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2821 | (eval $ac_try) 2>&5 |
| 2822 | ac_status=$? |
| 2823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2824 | (exit $ac_status); }; }; then |
| 2825 | break |
| 2826 | else |
| 2827 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2829 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2830 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2832 | done |
| 2833 | rm -f conftest* |
| 2834 | if test -n "$ac_declaration"; then |
| 2835 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2836 | echo $ac_declaration >>confdefs.h |
| 2837 | echo '#endif' >>confdefs.h |
| 2838 | fi |
| 2839 | |
| 2840 | else |
| 2841 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2842 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2843 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2844 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2845 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2846 | ac_ext=c |
| 2847 | ac_cpp='$CPP $CPPFLAGS' |
| 2848 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2849 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2850 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2851 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2852 | |
| 2853 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2854 | |
| 2855 | ac_ext=c |
| 2856 | ac_cpp='$CPP $CPPFLAGS' |
| 2857 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2858 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2859 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2860 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2861 | 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] | 2862 | # On Suns, sometimes $CPP names a directory. |
| 2863 | if test -n "$CPP" && test -d "$CPP"; then |
| 2864 | CPP= |
| 2865 | fi |
| 2866 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2867 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2869 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2870 | # Double quotes because CPP needs to be expanded |
| 2871 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2872 | do |
| 2873 | ac_preproc_ok=false |
| 2874 | for ac_c_preproc_warn_flag in '' yes |
| 2875 | do |
| 2876 | # Use a header file that comes with gcc, so configuring glibc |
| 2877 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2878 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2879 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2880 | # 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] | 2881 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2882 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2883 | /* confdefs.h. */ |
| 2884 | _ACEOF |
| 2885 | cat confdefs.h >>conftest.$ac_ext |
| 2886 | cat >>conftest.$ac_ext <<_ACEOF |
| 2887 | /* end confdefs.h. */ |
| 2888 | #ifdef __STDC__ |
| 2889 | # include <limits.h> |
| 2890 | #else |
| 2891 | # include <assert.h> |
| 2892 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2893 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2894 | _ACEOF |
| 2895 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2896 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2897 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2898 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2899 | rm -f conftest.er1 |
| 2900 | cat conftest.err >&5 |
| 2901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2902 | (exit $ac_status); } >/dev/null; then |
| 2903 | if test -s conftest.err; then |
| 2904 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2905 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2906 | else |
| 2907 | ac_cpp_err= |
| 2908 | fi |
| 2909 | else |
| 2910 | ac_cpp_err=yes |
| 2911 | fi |
| 2912 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2913 | : |
| 2914 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2915 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2917 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2918 | # Broken: fails on valid input. |
| 2919 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2920 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2921 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2922 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2923 | # OK, works on sane cases. Now check whether non-existent headers |
| 2924 | # can be detected and how. |
| 2925 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2926 | /* confdefs.h. */ |
| 2927 | _ACEOF |
| 2928 | cat confdefs.h >>conftest.$ac_ext |
| 2929 | cat >>conftest.$ac_ext <<_ACEOF |
| 2930 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2931 | #include <ac_nonexistent.h> |
| 2932 | _ACEOF |
| 2933 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2934 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2935 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2936 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2937 | rm -f conftest.er1 |
| 2938 | cat conftest.err >&5 |
| 2939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2940 | (exit $ac_status); } >/dev/null; then |
| 2941 | if test -s conftest.err; then |
| 2942 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2943 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2944 | else |
| 2945 | ac_cpp_err= |
| 2946 | fi |
| 2947 | else |
| 2948 | ac_cpp_err=yes |
| 2949 | fi |
| 2950 | if test -z "$ac_cpp_err"; then |
| 2951 | # Broken: success on invalid input. |
| 2952 | continue |
| 2953 | else |
| 2954 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2957 | # Passes both tests. |
| 2958 | ac_preproc_ok=: |
| 2959 | break |
| 2960 | fi |
| 2961 | rm -f conftest.err conftest.$ac_ext |
| 2962 | |
| 2963 | done |
| 2964 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2965 | rm -f conftest.err conftest.$ac_ext |
| 2966 | if $ac_preproc_ok; then |
| 2967 | break |
| 2968 | fi |
| 2969 | |
| 2970 | done |
| 2971 | ac_cv_prog_CPP=$CPP |
| 2972 | |
| 2973 | fi |
| 2974 | CPP=$ac_cv_prog_CPP |
| 2975 | else |
| 2976 | ac_cv_prog_CPP=$CPP |
| 2977 | fi |
| 2978 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2979 | echo "${ECHO_T}$CPP" >&6 |
| 2980 | ac_preproc_ok=false |
| 2981 | for ac_c_preproc_warn_flag in '' yes |
| 2982 | do |
| 2983 | # Use a header file that comes with gcc, so configuring glibc |
| 2984 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2985 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2986 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2987 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2988 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2989 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2990 | /* confdefs.h. */ |
| 2991 | _ACEOF |
| 2992 | cat confdefs.h >>conftest.$ac_ext |
| 2993 | cat >>conftest.$ac_ext <<_ACEOF |
| 2994 | /* end confdefs.h. */ |
| 2995 | #ifdef __STDC__ |
| 2996 | # include <limits.h> |
| 2997 | #else |
| 2998 | # include <assert.h> |
| 2999 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3000 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3001 | _ACEOF |
| 3002 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3003 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3004 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3005 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3006 | rm -f conftest.er1 |
| 3007 | cat conftest.err >&5 |
| 3008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3009 | (exit $ac_status); } >/dev/null; then |
| 3010 | if test -s conftest.err; then |
| 3011 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3012 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3013 | else |
| 3014 | ac_cpp_err= |
| 3015 | fi |
| 3016 | else |
| 3017 | ac_cpp_err=yes |
| 3018 | fi |
| 3019 | if test -z "$ac_cpp_err"; then |
| 3020 | : |
| 3021 | else |
| 3022 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3024 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3025 | # Broken: fails on valid input. |
| 3026 | continue |
| 3027 | fi |
| 3028 | rm -f conftest.err conftest.$ac_ext |
| 3029 | |
| 3030 | # OK, works on sane cases. Now check whether non-existent headers |
| 3031 | # can be detected and how. |
| 3032 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3033 | /* confdefs.h. */ |
| 3034 | _ACEOF |
| 3035 | cat confdefs.h >>conftest.$ac_ext |
| 3036 | cat >>conftest.$ac_ext <<_ACEOF |
| 3037 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3038 | #include <ac_nonexistent.h> |
| 3039 | _ACEOF |
| 3040 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3041 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3042 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3043 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3044 | rm -f conftest.er1 |
| 3045 | cat conftest.err >&5 |
| 3046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3047 | (exit $ac_status); } >/dev/null; then |
| 3048 | if test -s conftest.err; then |
| 3049 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3050 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3051 | else |
| 3052 | ac_cpp_err= |
| 3053 | fi |
| 3054 | else |
| 3055 | ac_cpp_err=yes |
| 3056 | fi |
| 3057 | if test -z "$ac_cpp_err"; then |
| 3058 | # Broken: success on invalid input. |
| 3059 | continue |
| 3060 | else |
| 3061 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3062 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3063 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3064 | # Passes both tests. |
| 3065 | ac_preproc_ok=: |
| 3066 | break |
| 3067 | fi |
| 3068 | rm -f conftest.err conftest.$ac_ext |
| 3069 | |
| 3070 | done |
| 3071 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3072 | rm -f conftest.err conftest.$ac_ext |
| 3073 | if $ac_preproc_ok; then |
| 3074 | : |
| 3075 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3076 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3077 | See \`config.log' for more details." >&5 |
| 3078 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3079 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3080 | { (exit 1); exit 1; }; } |
| 3081 | fi |
| 3082 | |
| 3083 | ac_ext=c |
| 3084 | ac_cpp='$CPP $CPPFLAGS' |
| 3085 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3086 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3087 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3088 | |
| 3089 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3090 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3091 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3092 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3094 | else |
| 3095 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3096 | then ac_cv_prog_egrep='grep -E' |
| 3097 | else ac_cv_prog_egrep='egrep' |
| 3098 | fi |
| 3099 | fi |
| 3100 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3101 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3102 | EGREP=$ac_cv_prog_egrep |
| 3103 | |
| 3104 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3105 | |
| 3106 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3107 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 3108 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3109 | /* confdefs.h. */ |
| 3110 | _ACEOF |
| 3111 | cat confdefs.h >>conftest.$ac_ext |
| 3112 | cat >>conftest.$ac_ext <<_ACEOF |
| 3113 | /* end confdefs.h. */ |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3114 | #ifdef _AIX |
| 3115 | yes |
| 3116 | #endif |
| 3117 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3118 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3119 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3120 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3121 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3122 | echo "${ECHO_T}yes" >&6 |
| 3123 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3124 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3125 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3126 | |
| 3127 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3128 | echo "$as_me:$LINENO: result: no" >&5 |
| 3129 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3130 | fi |
| 3131 | rm -f conftest* |
| 3132 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3133 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3134 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3135 | # Check for unsupported systems |
| 3136 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 3137 | Linux*/1*) |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3138 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3139 | echo See README for details. |
| 3140 | exit 1;; |
| 3141 | esac |
| 3142 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3143 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3144 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3145 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3146 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3147 | # Check whether --with-suffix or --without-suffix was given. |
| 3148 | if test "${with_suffix+set}" = set; then |
| 3149 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3150 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3151 | case $withval in |
| 3152 | no) EXEEXT=;; |
| 3153 | yes) EXEEXT=.exe;; |
| 3154 | *) EXEEXT=$withval;; |
| 3155 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3156 | fi; |
| 3157 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3158 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3159 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3160 | # Test whether we're running on a non-case-sensitive system, in which |
| 3161 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3162 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3163 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3164 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3165 | if test ! -d CaseSensitiveTestDir; then |
| 3166 | mkdir CaseSensitiveTestDir |
| 3167 | fi |
| 3168 | |
| 3169 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3170 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3171 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3172 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3173 | BUILDEXEEXT=.exe |
| 3174 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3175 | echo "$as_me:$LINENO: result: no" >&5 |
| 3176 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3177 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3178 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3179 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3180 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3181 | case $MACHDEP in |
| 3182 | bsdos*) |
| 3183 | case $CC in |
| 3184 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3185 | esac;; |
| 3186 | esac |
| 3187 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3188 | case $ac_sys_system in |
| 3189 | hp*|HP*) |
| 3190 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3191 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3192 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3193 | Monterey*) |
| 3194 | case $CC in |
| 3195 | cc) CC="$CC -Wl,-Bexport";; |
| 3196 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3197 | SunOS*) |
| 3198 | # 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] | 3199 | |
| 3200 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3201 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3202 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3203 | |
| 3204 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3205 | esac |
| 3206 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3207 | |
| 3208 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3209 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3210 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3211 | if test -z "$LIBRARY" |
| 3212 | then |
| 3213 | LIBRARY='libpython$(VERSION).a' |
| 3214 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3215 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3216 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3217 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3218 | # 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] | 3219 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3220 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3221 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3222 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3223 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3224 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3225 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3226 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3227 | # RUNSHARED is used to run shared python without installed libraries |
| 3228 | # |
| 3229 | # INSTSONAME is the name of the shared library that will be use to install |
| 3230 | # on the system - some systems like version suffix, others don't |
| 3231 | |
| 3232 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3233 | |
| 3234 | |
| 3235 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3236 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3237 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3238 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3239 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3240 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3241 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3242 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3243 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3244 | # 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] | 3245 | # If CXX is set, and if it is needed to link a main function that was |
| 3246 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3247 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3248 | # 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] | 3249 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3250 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3251 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3252 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3253 | if test -z "$LINKCC" |
| 3254 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3255 | if test -z "$CXX"; then |
| 3256 | LINKCC="\$(PURIFY) \$(CC)" |
| 3257 | else |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3258 | 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] | 3259 | $CXX -c conftest.$ac_ext 2>&5 |
| 3260 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3261 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3262 | then |
| 3263 | LINKCC="\$(PURIFY) \$(CC)" |
| 3264 | else |
| 3265 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3266 | fi |
| 3267 | rm -fr conftest* |
| 3268 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3269 | case $ac_sys_system in |
| 3270 | AIX*) |
Neal Norwitz | 0b27ff9 | 2003-03-31 15:53:49 +0000 | [diff] [blame] | 3271 | exp_extra="\"\"" |
| 3272 | if test $ac_sys_release -ge 5 -o \ |
| 3273 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3274 | exp_extra="." |
| 3275 | fi |
| 3276 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3277 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3278 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3279 | esac |
| 3280 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3281 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3282 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3283 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3284 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3285 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3286 | # Check whether --enable-shared or --disable-shared was given. |
| 3287 | if test "${enable_shared+set}" = set; then |
| 3288 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3289 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3290 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3291 | |
| 3292 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3293 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3294 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3295 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3296 | enable_shared="yes";; |
| 3297 | *) |
| 3298 | enable_shared="no";; |
| 3299 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3300 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3301 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3302 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3303 | |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3304 | echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 3305 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6 |
| 3306 | # Check whether --enable-profiling or --disable-profiling was given. |
| 3307 | if test "${enable_profiling+set}" = set; then |
| 3308 | enableval="$enable_profiling" |
| 3309 | ac_save_cc="$CC" |
| 3310 | CC="$CC -pg" |
| 3311 | if test "$cross_compiling" = yes; then |
| 3312 | ac_enable_profiling="no" |
| 3313 | else |
| 3314 | cat >conftest.$ac_ext <<_ACEOF |
| 3315 | /* confdefs.h. */ |
| 3316 | _ACEOF |
| 3317 | cat confdefs.h >>conftest.$ac_ext |
| 3318 | cat >>conftest.$ac_ext <<_ACEOF |
| 3319 | /* end confdefs.h. */ |
| 3320 | int main() { return 0; } |
| 3321 | _ACEOF |
| 3322 | rm -f conftest$ac_exeext |
| 3323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3324 | (eval $ac_link) 2>&5 |
| 3325 | ac_status=$? |
| 3326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3327 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3329 | (eval $ac_try) 2>&5 |
| 3330 | ac_status=$? |
| 3331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3332 | (exit $ac_status); }; }; then |
| 3333 | ac_enable_profiling="yes" |
| 3334 | else |
| 3335 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3336 | echo "$as_me: failed program was:" >&5 |
| 3337 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3338 | |
| 3339 | ( exit $ac_status ) |
| 3340 | ac_enable_profiling="no" |
| 3341 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3342 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3343 | fi |
| 3344 | CC="$ac_save_cc" |
| 3345 | fi; |
| 3346 | echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 3347 | echo "${ECHO_T}$ac_enable_profiling" >&6 |
| 3348 | |
| 3349 | case "$ac_enable_profiling" in |
| 3350 | "yes") |
| 3351 | BASECFLAGS="-pg $BASECFLAGS" |
| 3352 | LDFLAGS="-pg $LDFLAGS" |
| 3353 | ;; |
| 3354 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3355 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3356 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3357 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3358 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3359 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3360 | # library that we build, but we do not want to link against it (we |
| 3361 | # will find it with a -framework option). For this reason there is an |
| 3362 | # extra variable BLDLIBRARY against which Python and the extension |
| 3363 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3364 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3365 | if test "$enable_framework" |
| 3366 | then |
| 3367 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 3368 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3369 | BLDLIBRARY='' |
| 3370 | else |
| 3371 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3372 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3373 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3374 | # Other platforms follow |
| 3375 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3376 | |
| 3377 | cat >>confdefs.h <<\_ACEOF |
| 3378 | #define Py_ENABLE_SHARED 1 |
| 3379 | _ACEOF |
| 3380 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3381 | case $ac_sys_system in |
| 3382 | BeOS*) |
| 3383 | LDLIBRARY='libpython$(VERSION).so' |
| 3384 | ;; |
| 3385 | CYGWIN*) |
| 3386 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3387 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3388 | ;; |
| 3389 | SunOS*) |
| 3390 | LDLIBRARY='libpython$(VERSION).so' |
Martin v. Löwis | d141a8c | 2003-06-14 15:20:28 +0000 | [diff] [blame] | 3391 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3392 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 2389c41 | 2003-10-31 15:42:07 +0000 | [diff] [blame] | 3393 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3394 | ;; |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 3395 | Linux*|GNU*|NetBSD*|FreeBSD*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3396 | LDLIBRARY='libpython$(VERSION).so' |
| 3397 | BLDLIBRARY='-L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3398 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 3399 | case $ac_sys_system in |
| 3400 | FreeBSD*) |
| 3401 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 3402 | ;; |
| 3403 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3404 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3405 | ;; |
| 3406 | hp*|HP*) |
| 3407 | LDLIBRARY='libpython$(VERSION).sl' |
| 3408 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3409 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3410 | ;; |
| 3411 | OSF*) |
| 3412 | LDLIBRARY='libpython$(VERSION).so' |
| 3413 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3414 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3415 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3416 | atheos*) |
| 3417 | LDLIBRARY='libpython$(VERSION).so' |
| 3418 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3419 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3420 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3421 | esac |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 3422 | else # shared is disabled |
| 3423 | case $ac_sys_system in |
| 3424 | CYGWIN*) |
| 3425 | BLDLIBRARY='$(LIBRARY)' |
| 3426 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3427 | ;; |
| 3428 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3429 | fi |
| 3430 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3431 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3432 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3433 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3434 | if test -n "$ac_tool_prefix"; then |
| 3435 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3436 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3437 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3438 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3439 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3441 | else |
| 3442 | if test -n "$RANLIB"; then |
| 3443 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3444 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3446 | for as_dir in $PATH |
| 3447 | do |
| 3448 | IFS=$as_save_IFS |
| 3449 | test -z "$as_dir" && as_dir=. |
| 3450 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3451 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3452 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3453 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3454 | break 2 |
| 3455 | fi |
| 3456 | done |
| 3457 | done |
| 3458 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3459 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3460 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3461 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3462 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3463 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3464 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3465 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3466 | echo "$as_me:$LINENO: result: no" >&5 |
| 3467 | echo "${ECHO_T}no" >&6 |
| 3468 | fi |
| 3469 | |
| 3470 | fi |
| 3471 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3472 | ac_ct_RANLIB=$RANLIB |
| 3473 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3474 | set dummy ranlib; ac_word=$2 |
| 3475 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3476 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3477 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3479 | else |
| 3480 | if test -n "$ac_ct_RANLIB"; then |
| 3481 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3482 | else |
| 3483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3484 | for as_dir in $PATH |
| 3485 | do |
| 3486 | IFS=$as_save_IFS |
| 3487 | test -z "$as_dir" && as_dir=. |
| 3488 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3489 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3490 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3491 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3492 | break 2 |
| 3493 | fi |
| 3494 | done |
| 3495 | done |
| 3496 | |
| 3497 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3498 | fi |
| 3499 | fi |
| 3500 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3501 | if test -n "$ac_ct_RANLIB"; then |
| 3502 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3503 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3504 | else |
| 3505 | echo "$as_me:$LINENO: result: no" >&5 |
| 3506 | echo "${ECHO_T}no" >&6 |
| 3507 | fi |
| 3508 | |
| 3509 | RANLIB=$ac_ct_RANLIB |
| 3510 | else |
| 3511 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3512 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3513 | |
| 3514 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3515 | for ac_prog in ar aal |
| 3516 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3517 | # 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] | 3518 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3519 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3520 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3521 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3523 | else |
| 3524 | if test -n "$AR"; then |
| 3525 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3526 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3528 | for as_dir in $PATH |
| 3529 | do |
| 3530 | IFS=$as_save_IFS |
| 3531 | test -z "$as_dir" && as_dir=. |
| 3532 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3533 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3534 | ac_cv_prog_AR="$ac_prog" |
| 3535 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3536 | break 2 |
| 3537 | fi |
| 3538 | done |
| 3539 | done |
| 3540 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3541 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3542 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3543 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3544 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3545 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3546 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3547 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3548 | echo "$as_me:$LINENO: result: no" >&5 |
| 3549 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3550 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3551 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3552 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3553 | done |
| 3554 | test -n "$AR" || AR="ar" |
| 3555 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3556 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3557 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3558 | bsdos*|hp*|HP*) |
| 3559 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3560 | if test -z "$INSTALL" |
| 3561 | then |
| 3562 | INSTALL="${srcdir}/install-sh -c" |
| 3563 | fi |
| 3564 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3565 | ac_aux_dir= |
| 3566 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3567 | if test -f $ac_dir/install-sh; then |
| 3568 | ac_aux_dir=$ac_dir |
| 3569 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3570 | break |
| 3571 | elif test -f $ac_dir/install.sh; then |
| 3572 | ac_aux_dir=$ac_dir |
| 3573 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3574 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3575 | elif test -f $ac_dir/shtool; then |
| 3576 | ac_aux_dir=$ac_dir |
| 3577 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3578 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3579 | fi |
| 3580 | done |
| 3581 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3582 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3583 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3584 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3585 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3586 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3587 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3588 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3589 | |
| 3590 | # Find a good install program. We prefer a C program (faster), |
| 3591 | # so one script is as good as another. But avoid the broken or |
| 3592 | # incompatible versions: |
| 3593 | # SysV /etc/install, /usr/sbin/install |
| 3594 | # SunOS /usr/etc/install |
| 3595 | # IRIX /sbin/install |
| 3596 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3597 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3598 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3599 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3600 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3601 | # OS/2's system install, which has a completely different semantic |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3602 | # ./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] | 3603 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3604 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3605 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3606 | if test "${ac_cv_path_install+set}" = set; then |
| 3607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3608 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3610 | for as_dir in $PATH |
| 3611 | do |
| 3612 | IFS=$as_save_IFS |
| 3613 | test -z "$as_dir" && as_dir=. |
| 3614 | # Account for people who put trailing slashes in PATH elements. |
| 3615 | case $as_dir/ in |
| 3616 | ./ | .// | /cC/* | \ |
| 3617 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3618 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3619 | /usr/ucb/* ) ;; |
| 3620 | *) |
| 3621 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3622 | # Don't use installbsd from OSF since it installs stuff as root |
| 3623 | # by default. |
| 3624 | for ac_prog in ginstall scoinst install; do |
| 3625 | for ac_exec_ext in '' $ac_executable_extensions; do |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3626 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3627 | if test $ac_prog = install && |
| 3628 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3629 | # AIX install. It has an incompatible calling convention. |
| 3630 | : |
| 3631 | elif test $ac_prog = install && |
| 3632 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3633 | # program-specific install script used by HP pwplus--don't use. |
| 3634 | : |
| 3635 | else |
| 3636 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3637 | break 3 |
| 3638 | fi |
| 3639 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3640 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3641 | done |
| 3642 | ;; |
| 3643 | esac |
| 3644 | done |
| 3645 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3646 | |
| 3647 | fi |
| 3648 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3649 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3650 | else |
| 3651 | # As a last resort, use the slow shell script. We don't cache a |
| 3652 | # path for INSTALL within a source directory, because that will |
| 3653 | # break other packages using the cache if that directory is |
| 3654 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3655 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3656 | fi |
| 3657 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3658 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3659 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3660 | |
| 3661 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3662 | # It thinks the first close brace ends the variable substitution. |
| 3663 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3664 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3665 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3666 | |
| 3667 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3668 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3669 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3670 | # Not every filesystem supports hard links |
| 3671 | |
| 3672 | if test -z "$LN" ; then |
| 3673 | case $ac_sys_system in |
| 3674 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3675 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3676 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3677 | *) LN=ln;; |
| 3678 | esac |
| 3679 | fi |
| 3680 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3681 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3682 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3683 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3684 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3685 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3686 | if test "${with_pydebug+set}" = set; then |
| 3687 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3688 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3689 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3690 | then |
| 3691 | |
| 3692 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3693 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3694 | _ACEOF |
| 3695 | |
| 3696 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3697 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3698 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3699 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3700 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3701 | fi |
| 3702 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3703 | echo "$as_me:$LINENO: result: no" >&5 |
| 3704 | echo "${ECHO_T}no" >&6 |
| 3705 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3706 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3707 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 3708 | # merged with this chunk of code? |
| 3709 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3710 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3711 | # ------------------------ |
| 3712 | # (The following bit of code is complicated enough - please keep things |
| 3713 | # indented properly. Just pretend you're editing Python code. ;-) |
| 3714 | |
| 3715 | # There are two parallel sets of case statements below, one that checks to |
| 3716 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 3717 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 3718 | # user set OPT. |
| 3719 | |
| 3720 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 3721 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3722 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3723 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3724 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3725 | case $GCC in |
| 3726 | yes) |
| 3727 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3728 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3729 | if test "$Py_DEBUG" = 'true' ; then |
| 3730 | # Optimization messes up debuggers, so turn it off for |
| 3731 | # debug builds. |
| 3732 | OPT="-g -Wall -Wstrict-prototypes" |
| 3733 | else |
| 3734 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3735 | fi |
| 3736 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3737 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3738 | OPT="-O3 -Wall -Wstrict-prototypes" |
| 3739 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3740 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3741 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3742 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 3743 | ;; |
| 3744 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3745 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3746 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3747 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3748 | OPT="-O" |
| 3749 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3750 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3751 | |
| 3752 | # The current (beta) Monterey compiler dies with optimizations |
| 3753 | # 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] | 3754 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3755 | Monterey*) |
| 3756 | OPT="" |
| 3757 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3758 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3759 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3760 | fi |
| 3761 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3762 | |
| 3763 | # tweak BASECFLAGS based on compiler and platform |
| 3764 | case $GCC in |
| 3765 | yes) |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3766 | # Python violates C99 rules, by casting between incompatible |
| 3767 | # pointer types. GCC may generate bad code as a result of that, |
| 3768 | # so use -fno-strict-aliasing if supported. |
| 3769 | echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 3770 | echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6 |
| 3771 | ac_save_cc="$CC" |
| 3772 | CC="$CC -fno-strict-aliasing" |
| 3773 | if test "$cross_compiling" = yes; then |
| 3774 | ac_cv_no_strict_aliasing_ok=no |
| 3775 | else |
| 3776 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3777 | /* confdefs.h. */ |
| 3778 | _ACEOF |
| 3779 | cat confdefs.h >>conftest.$ac_ext |
| 3780 | cat >>conftest.$ac_ext <<_ACEOF |
| 3781 | /* end confdefs.h. */ |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3782 | int main() { return 0; } |
| 3783 | _ACEOF |
| 3784 | rm -f conftest$ac_exeext |
| 3785 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3786 | (eval $ac_link) 2>&5 |
| 3787 | ac_status=$? |
| 3788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3789 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3791 | (eval $ac_try) 2>&5 |
| 3792 | ac_status=$? |
| 3793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3794 | (exit $ac_status); }; }; then |
| 3795 | ac_cv_no_strict_aliasing_ok=yes |
| 3796 | else |
| 3797 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3798 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3800 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3801 | ( exit $ac_status ) |
| 3802 | ac_cv_no_strict_aliasing_ok=no |
| 3803 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3804 | rm -f 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] | 3805 | fi |
| 3806 | CC="$ac_save_cc" |
| 3807 | echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 3808 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6 |
| 3809 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 3810 | then |
| 3811 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 3812 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3813 | case $ac_sys_system in |
| 3814 | SCO_SV*) |
| 3815 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 3816 | ;; |
| 3817 | # is there any other compiler on Darwin besides gcc? |
| 3818 | Darwin*) |
Jack Jansen | e004041 | 2003-07-23 22:17:28 +0000 | [diff] [blame] | 3819 | BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3820 | ;; |
| 3821 | esac |
| 3822 | ;; |
| 3823 | |
| 3824 | *) |
| 3825 | case $ac_sys_system in |
| 3826 | OpenUNIX*|UnixWare*) |
| 3827 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 3828 | ;; |
Neal Norwitz | b44f165 | 2003-05-26 14:11:55 +0000 | [diff] [blame] | 3829 | OSF*) |
| 3830 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 3831 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3832 | SCO_SV*) |
| 3833 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 3834 | ;; |
| 3835 | esac |
| 3836 | ;; |
| 3837 | esac |
| 3838 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3839 | if test "$Py_DEBUG" = 'true'; then |
| 3840 | : |
| 3841 | else |
| 3842 | OPT="-DNDEBUG $OPT" |
| 3843 | fi |
| 3844 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3845 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3846 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3847 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3848 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3849 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3850 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3851 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3852 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3854 | else |
| 3855 | ac_save_cc="$CC" |
| 3856 | CC="$CC -OPT:Olimit=0" |
| 3857 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3858 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3859 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3860 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3861 | /* confdefs.h. */ |
| 3862 | _ACEOF |
| 3863 | cat confdefs.h >>conftest.$ac_ext |
| 3864 | cat >>conftest.$ac_ext <<_ACEOF |
| 3865 | /* end confdefs.h. */ |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3866 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3867 | _ACEOF |
| 3868 | rm -f conftest$ac_exeext |
| 3869 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3870 | (eval $ac_link) 2>&5 |
| 3871 | ac_status=$? |
| 3872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3873 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3875 | (eval $ac_try) 2>&5 |
| 3876 | ac_status=$? |
| 3877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3878 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3879 | ac_cv_opt_olimit_ok=yes |
| 3880 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3881 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3882 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3884 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3885 | ( exit $ac_status ) |
| 3886 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3887 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3888 | rm -f 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] | 3889 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3890 | CC="$ac_save_cc" |
| 3891 | fi |
| 3892 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3893 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3894 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3895 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3896 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3897 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 3898 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 3899 | # environment? |
| 3900 | Darwin*) |
| 3901 | ;; |
| 3902 | *) |
| 3903 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 3904 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3905 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3906 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3907 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3908 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3909 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3911 | else |
| 3912 | ac_save_cc="$CC" |
| 3913 | CC="$CC -Olimit 1500" |
| 3914 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3915 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3916 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3917 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3918 | /* confdefs.h. */ |
| 3919 | _ACEOF |
| 3920 | cat confdefs.h >>conftest.$ac_ext |
| 3921 | cat >>conftest.$ac_ext <<_ACEOF |
| 3922 | /* end confdefs.h. */ |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3923 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3924 | _ACEOF |
| 3925 | rm -f conftest$ac_exeext |
| 3926 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3927 | (eval $ac_link) 2>&5 |
| 3928 | ac_status=$? |
| 3929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3930 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3932 | (eval $ac_try) 2>&5 |
| 3933 | ac_status=$? |
| 3934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3935 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3936 | ac_cv_olimit_ok=yes |
| 3937 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3938 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3939 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3942 | ( exit $ac_status ) |
| 3943 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 3944 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3945 | rm -f 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] | 3946 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3947 | CC="$ac_save_cc" |
| 3948 | fi |
| 3949 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3950 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 3951 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3952 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3953 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3954 | fi |
| 3955 | fi |
| 3956 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3957 | # On some compilers, pthreads are available without further options |
| 3958 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3959 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3960 | # So we have to see first whether pthreads are available without |
| 3961 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3962 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3963 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3964 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3966 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3967 | if test "$cross_compiling" = yes; then |
| 3968 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3969 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3970 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3971 | /* confdefs.h. */ |
| 3972 | _ACEOF |
| 3973 | cat confdefs.h >>conftest.$ac_ext |
| 3974 | cat >>conftest.$ac_ext <<_ACEOF |
| 3975 | /* end confdefs.h. */ |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3976 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3977 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3978 | |
| 3979 | void* routine(void* p){return NULL;} |
| 3980 | |
| 3981 | int main(){ |
| 3982 | pthread_t p; |
| 3983 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3984 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3985 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3986 | return 0; |
| 3987 | } |
| 3988 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3989 | _ACEOF |
| 3990 | rm -f conftest$ac_exeext |
| 3991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3992 | (eval $ac_link) 2>&5 |
| 3993 | ac_status=$? |
| 3994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3995 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3997 | (eval $ac_try) 2>&5 |
| 3998 | ac_status=$? |
| 3999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4000 | (exit $ac_status); }; }; then |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4001 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4002 | ac_cv_pthread_is_default=yes |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4003 | ac_cv_kthread=no |
| 4004 | ac_cv_pthread=no |
| 4005 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4006 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4007 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4008 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4010 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4011 | ( exit $ac_status ) |
| 4012 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4013 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4014 | rm -f 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] | 4015 | fi |
| 4016 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4017 | fi |
| 4018 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4019 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 4020 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4021 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4022 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4023 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4024 | then |
| 4025 | ac_cv_kpthread=no |
| 4026 | else |
| 4027 | # -Kpthread, if available, provides the right #defines |
| 4028 | # and linker options to make pthread_create available |
| 4029 | # Some compilers won't report that they do not support -Kpthread, |
| 4030 | # so we need to run a program to see whether it really made the |
| 4031 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4032 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 4033 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 4034 | if test "${ac_cv_kpthread+set}" = set; then |
| 4035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4036 | else |
| 4037 | ac_save_cc="$CC" |
| 4038 | CC="$CC -Kpthread" |
| 4039 | if test "$cross_compiling" = yes; then |
| 4040 | ac_cv_kpthread=no |
| 4041 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4042 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4043 | /* confdefs.h. */ |
| 4044 | _ACEOF |
| 4045 | cat confdefs.h >>conftest.$ac_ext |
| 4046 | cat >>conftest.$ac_ext <<_ACEOF |
| 4047 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4048 | |
| 4049 | #include <pthread.h> |
| 4050 | |
| 4051 | void* routine(void* p){return NULL;} |
| 4052 | |
| 4053 | int main(){ |
| 4054 | pthread_t p; |
| 4055 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4056 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4057 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4058 | return 0; |
| 4059 | } |
| 4060 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4061 | _ACEOF |
| 4062 | rm -f conftest$ac_exeext |
| 4063 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4064 | (eval $ac_link) 2>&5 |
| 4065 | ac_status=$? |
| 4066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4067 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4069 | (eval $ac_try) 2>&5 |
| 4070 | ac_status=$? |
| 4071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4072 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4073 | ac_cv_kpthread=yes |
| 4074 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4075 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4076 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4077 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4078 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4079 | ( exit $ac_status ) |
| 4080 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4081 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4082 | rm -f 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] | 4083 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4084 | CC="$ac_save_cc" |
| 4085 | fi |
| 4086 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4087 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 4088 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4089 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4090 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4091 | 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] | 4092 | then |
| 4093 | # -Kthread, if available, provides the right #defines |
| 4094 | # and linker options to make pthread_create available |
| 4095 | # Some compilers won't report that they do not support -Kthread, |
| 4096 | # so we need to run a program to see whether it really made the |
| 4097 | # function available. |
| 4098 | echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 4099 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6 |
| 4100 | if test "${ac_cv_kthread+set}" = set; then |
| 4101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4102 | else |
| 4103 | ac_save_cc="$CC" |
| 4104 | CC="$CC -Kthread" |
| 4105 | if test "$cross_compiling" = yes; then |
| 4106 | ac_cv_kthread=no |
| 4107 | else |
| 4108 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4109 | /* confdefs.h. */ |
| 4110 | _ACEOF |
| 4111 | cat confdefs.h >>conftest.$ac_ext |
| 4112 | cat >>conftest.$ac_ext <<_ACEOF |
| 4113 | /* end confdefs.h. */ |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4114 | |
| 4115 | #include <pthread.h> |
| 4116 | |
| 4117 | void* routine(void* p){return NULL;} |
| 4118 | |
| 4119 | int main(){ |
| 4120 | pthread_t p; |
| 4121 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4122 | return 1; |
| 4123 | (void)pthread_detach(p); |
| 4124 | return 0; |
| 4125 | } |
| 4126 | |
| 4127 | _ACEOF |
| 4128 | rm -f conftest$ac_exeext |
| 4129 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4130 | (eval $ac_link) 2>&5 |
| 4131 | ac_status=$? |
| 4132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4133 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4135 | (eval $ac_try) 2>&5 |
| 4136 | ac_status=$? |
| 4137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4138 | (exit $ac_status); }; }; then |
| 4139 | ac_cv_kthread=yes |
| 4140 | else |
| 4141 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4142 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4144 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4145 | ( exit $ac_status ) |
| 4146 | ac_cv_kthread=no |
| 4147 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4148 | rm -f 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] | 4149 | fi |
| 4150 | CC="$ac_save_cc" |
| 4151 | fi |
| 4152 | |
| 4153 | echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 4154 | echo "${ECHO_T}$ac_cv_kthread" >&6 |
| 4155 | fi |
| 4156 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4157 | 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] | 4158 | then |
| 4159 | # -pthread, if available, provides the right #defines |
| 4160 | # and linker options to make pthread_create available |
| 4161 | # Some compilers won't report that they do not support -pthread, |
| 4162 | # so we need to run a program to see whether it really made the |
| 4163 | # function available. |
| 4164 | echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 4165 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6 |
| 4166 | if test "${ac_cv_thread+set}" = set; then |
| 4167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4168 | else |
| 4169 | ac_save_cc="$CC" |
| 4170 | CC="$CC -pthread" |
| 4171 | if test "$cross_compiling" = yes; then |
| 4172 | ac_cv_pthread=no |
| 4173 | else |
| 4174 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4175 | /* confdefs.h. */ |
| 4176 | _ACEOF |
| 4177 | cat confdefs.h >>conftest.$ac_ext |
| 4178 | cat >>conftest.$ac_ext <<_ACEOF |
| 4179 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4180 | |
| 4181 | #include <pthread.h> |
| 4182 | |
| 4183 | void* routine(void* p){return NULL;} |
| 4184 | |
| 4185 | int main(){ |
| 4186 | pthread_t p; |
| 4187 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4188 | return 1; |
| 4189 | (void)pthread_detach(p); |
| 4190 | return 0; |
| 4191 | } |
| 4192 | |
| 4193 | _ACEOF |
| 4194 | rm -f conftest$ac_exeext |
| 4195 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4196 | (eval $ac_link) 2>&5 |
| 4197 | ac_status=$? |
| 4198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4199 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4201 | (eval $ac_try) 2>&5 |
| 4202 | ac_status=$? |
| 4203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4204 | (exit $ac_status); }; }; then |
| 4205 | ac_cv_pthread=yes |
| 4206 | else |
| 4207 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4208 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4209 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4210 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4211 | ( exit $ac_status ) |
| 4212 | ac_cv_pthread=no |
| 4213 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4214 | rm -f 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] | 4215 | fi |
| 4216 | CC="$ac_save_cc" |
| 4217 | fi |
| 4218 | |
| 4219 | echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 4220 | echo "${ECHO_T}$ac_cv_pthread" >&6 |
| 4221 | fi |
| 4222 | |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4223 | # If we have set a CC compiler flag for thread support then |
| 4224 | # check if it works for CXX, too. |
| 4225 | ac_cv_cxx_thread=no |
| 4226 | if test ! -z "$CXX" |
| 4227 | then |
| 4228 | echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 4229 | echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6 |
| 4230 | ac_save_cxx="$CXX" |
| 4231 | |
| 4232 | if test "$ac_cv_kpthread" = "yes" |
| 4233 | then |
| 4234 | CXX="$CXX -Kpthread" |
| 4235 | ac_cv_cxx_thread=yes |
| 4236 | elif test "$ac_cv_kthread" = "yes" |
| 4237 | then |
| 4238 | CXX="$CXX -Kthread" |
| 4239 | ac_cv_cxx_thread=yes |
| 4240 | elif test "$ac_cv_pthread" = "yes" |
| 4241 | then |
| 4242 | CXX="$CXX -pthread" |
| 4243 | ac_cv_cxx_thread=yes |
| 4244 | fi |
| 4245 | |
| 4246 | if test $ac_cv_cxx_thread = yes |
| 4247 | then |
| 4248 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 4249 | $CXX -c conftest.$ac_ext 2>&5 |
| 4250 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 4251 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 4252 | then |
| 4253 | ac_cv_cxx_thread=yes |
| 4254 | else |
| 4255 | ac_cv_cxx_thread=no |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4256 | fi |
| 4257 | rm -fr conftest* |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4258 | fi |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4259 | echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 4260 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6 |
Brett Cannon | c601e0f | 2004-11-07 01:24:12 +0000 | [diff] [blame] | 4261 | fi |
| 4262 | CXX="$ac_save_cxx" |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4263 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4264 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4265 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4266 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4267 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4268 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4270 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4271 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4272 | /* confdefs.h. */ |
| 4273 | _ACEOF |
| 4274 | cat confdefs.h >>conftest.$ac_ext |
| 4275 | cat >>conftest.$ac_ext <<_ACEOF |
| 4276 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4277 | #include <stdlib.h> |
| 4278 | #include <stdarg.h> |
| 4279 | #include <string.h> |
| 4280 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4281 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4282 | int |
| 4283 | main () |
| 4284 | { |
| 4285 | |
| 4286 | ; |
| 4287 | return 0; |
| 4288 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4289 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4290 | rm -f conftest.$ac_objext |
| 4291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4292 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4293 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4295 | rm -f conftest.er1 |
| 4296 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4298 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 4299 | { ac_try='test -z "$ac_c_werror_flag" |
| 4300 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4302 | (eval $ac_try) 2>&5 |
| 4303 | ac_status=$? |
| 4304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4305 | (exit $ac_status); }; } && |
| 4306 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4308 | (eval $ac_try) 2>&5 |
| 4309 | ac_status=$? |
| 4310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4311 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4312 | ac_cv_header_stdc=yes |
| 4313 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4314 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4316 | |
| 4317 | ac_cv_header_stdc=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4318 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4319 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4320 | |
| 4321 | if test $ac_cv_header_stdc = yes; then |
| 4322 | # 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] | 4323 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4324 | /* confdefs.h. */ |
| 4325 | _ACEOF |
| 4326 | cat confdefs.h >>conftest.$ac_ext |
| 4327 | cat >>conftest.$ac_ext <<_ACEOF |
| 4328 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4329 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4330 | |
| 4331 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4332 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4333 | $EGREP "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4334 | : |
| 4335 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4336 | ac_cv_header_stdc=no |
| 4337 | fi |
| 4338 | rm -f conftest* |
| 4339 | |
| 4340 | fi |
| 4341 | |
| 4342 | if test $ac_cv_header_stdc = yes; then |
| 4343 | # 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] | 4344 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4345 | /* confdefs.h. */ |
| 4346 | _ACEOF |
| 4347 | cat confdefs.h >>conftest.$ac_ext |
| 4348 | cat >>conftest.$ac_ext <<_ACEOF |
| 4349 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4350 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4351 | |
| 4352 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4353 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4354 | $EGREP "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4355 | : |
| 4356 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4357 | ac_cv_header_stdc=no |
| 4358 | fi |
| 4359 | rm -f conftest* |
| 4360 | |
| 4361 | fi |
| 4362 | |
| 4363 | if test $ac_cv_header_stdc = yes; then |
| 4364 | # /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] | 4365 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4366 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4367 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4368 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4369 | /* confdefs.h. */ |
| 4370 | _ACEOF |
| 4371 | cat confdefs.h >>conftest.$ac_ext |
| 4372 | cat >>conftest.$ac_ext <<_ACEOF |
| 4373 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4374 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4375 | #if ((' ' & 0x0FF) == 0x020) |
| 4376 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4377 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4378 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4379 | # define ISLOWER(c) \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4380 | (('a' <= (c) && (c) <= 'i') \ |
| 4381 | || ('j' <= (c) && (c) <= 'r') \ |
| 4382 | || ('s' <= (c) && (c) <= 'z')) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4383 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4384 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4385 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4386 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4387 | int |
| 4388 | main () |
| 4389 | { |
| 4390 | int i; |
| 4391 | for (i = 0; i < 256; i++) |
| 4392 | if (XOR (islower (i), ISLOWER (i)) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4393 | || toupper (i) != TOUPPER (i)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4394 | exit(2); |
| 4395 | exit (0); |
| 4396 | } |
| 4397 | _ACEOF |
| 4398 | rm -f conftest$ac_exeext |
| 4399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4400 | (eval $ac_link) 2>&5 |
| 4401 | ac_status=$? |
| 4402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4403 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4405 | (eval $ac_try) 2>&5 |
| 4406 | ac_status=$? |
| 4407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4408 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4409 | : |
| 4410 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4411 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4412 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4414 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4415 | ( exit $ac_status ) |
| 4416 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4417 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4418 | rm -f 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] | 4419 | fi |
| 4420 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4421 | fi |
| 4422 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4423 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4424 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4425 | |
| 4426 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4427 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4428 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4429 | |
| 4430 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4431 | |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4432 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4433 | |
| 4434 | |
| 4435 | |
| 4436 | |
| 4437 | |
| 4438 | |
| 4439 | |
| 4440 | |
| 4441 | |
| 4442 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4443 | inttypes.h stdint.h unistd.h |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4444 | do |
| 4445 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4446 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4447 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4448 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4450 | else |
| 4451 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4452 | /* confdefs.h. */ |
| 4453 | _ACEOF |
| 4454 | cat confdefs.h >>conftest.$ac_ext |
| 4455 | cat >>conftest.$ac_ext <<_ACEOF |
| 4456 | /* end confdefs.h. */ |
| 4457 | $ac_includes_default |
| 4458 | |
| 4459 | #include <$ac_header> |
| 4460 | _ACEOF |
| 4461 | rm -f conftest.$ac_objext |
| 4462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4463 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4464 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4465 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4466 | rm -f conftest.er1 |
| 4467 | cat conftest.err >&5 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4469 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 4470 | { ac_try='test -z "$ac_c_werror_flag" |
| 4471 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4473 | (eval $ac_try) 2>&5 |
| 4474 | ac_status=$? |
| 4475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4476 | (exit $ac_status); }; } && |
| 4477 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4479 | (eval $ac_try) 2>&5 |
| 4480 | ac_status=$? |
| 4481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4482 | (exit $ac_status); }; }; then |
| 4483 | eval "$as_ac_Header=yes" |
| 4484 | else |
| 4485 | echo "$as_me: failed program was:" >&5 |
| 4486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4487 | |
| 4488 | eval "$as_ac_Header=no" |
| 4489 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4490 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4491 | fi |
| 4492 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4493 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4494 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4495 | cat >>confdefs.h <<_ACEOF |
| 4496 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4497 | _ACEOF |
| 4498 | |
| 4499 | fi |
| 4500 | |
| 4501 | done |
| 4502 | |
| 4503 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4504 | |
| 4505 | |
| 4506 | |
| 4507 | |
| 4508 | |
| 4509 | |
| 4510 | |
| 4511 | |
| 4512 | |
| 4513 | |
| 4514 | |
| 4515 | |
| 4516 | |
| 4517 | |
| 4518 | |
| 4519 | |
| 4520 | |
| 4521 | |
| 4522 | |
| 4523 | |
| 4524 | |
| 4525 | |
| 4526 | |
| 4527 | |
| 4528 | |
| 4529 | |
| 4530 | |
| 4531 | |
| 4532 | |
| 4533 | |
| 4534 | |
| 4535 | |
| 4536 | |
| 4537 | |
| 4538 | |
| 4539 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 4540 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 4541 | |
| 4542 | for ac_header in curses.h dlfcn.h fcntl.h grp.h shadow.h langinfo.h \ |
Skip Montanaro | 7befb99 | 2004-02-10 16:50:21 +0000 | [diff] [blame] | 4543 | libintl.h ncurses.h poll.h pthread.h \ |
| 4544 | stropts.h termios.h thread.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4545 | unistd.h utime.h \ |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 4546 | sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \ |
| 4547 | sys/modem.h \ |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4548 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 4549 | sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
Hye-Shik Chang | 8126860 | 2004-02-02 06:05:24 +0000 | [diff] [blame] | 4550 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
| 4551 | bluetooth/bluetooth.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4552 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4553 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4554 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4555 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4556 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4557 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4559 | fi |
| 4560 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4561 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4562 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4563 | # Is the header compilable? |
| 4564 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4565 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4566 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4567 | /* confdefs.h. */ |
| 4568 | _ACEOF |
| 4569 | cat confdefs.h >>conftest.$ac_ext |
| 4570 | cat >>conftest.$ac_ext <<_ACEOF |
| 4571 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4572 | $ac_includes_default |
| 4573 | #include <$ac_header> |
| 4574 | _ACEOF |
| 4575 | rm -f conftest.$ac_objext |
| 4576 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4577 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4578 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4579 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4580 | rm -f conftest.er1 |
| 4581 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4583 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 4584 | { ac_try='test -z "$ac_c_werror_flag" |
| 4585 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4587 | (eval $ac_try) 2>&5 |
| 4588 | ac_status=$? |
| 4589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4590 | (exit $ac_status); }; } && |
| 4591 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4593 | (eval $ac_try) 2>&5 |
| 4594 | ac_status=$? |
| 4595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4596 | (exit $ac_status); }; }; then |
| 4597 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4598 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4599 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4601 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4602 | ac_header_compiler=no |
| 4603 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4605 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4606 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4607 | |
| 4608 | # Is the header present? |
| 4609 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4610 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4611 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4612 | /* confdefs.h. */ |
| 4613 | _ACEOF |
| 4614 | cat confdefs.h >>conftest.$ac_ext |
| 4615 | cat >>conftest.$ac_ext <<_ACEOF |
| 4616 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4617 | #include <$ac_header> |
| 4618 | _ACEOF |
| 4619 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4620 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4621 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4622 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4623 | rm -f conftest.er1 |
| 4624 | cat conftest.err >&5 |
| 4625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4626 | (exit $ac_status); } >/dev/null; then |
| 4627 | if test -s conftest.err; then |
| 4628 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4629 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4630 | else |
| 4631 | ac_cpp_err= |
| 4632 | fi |
| 4633 | else |
| 4634 | ac_cpp_err=yes |
| 4635 | fi |
| 4636 | if test -z "$ac_cpp_err"; then |
| 4637 | ac_header_preproc=yes |
| 4638 | else |
| 4639 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4641 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4642 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4643 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4644 | rm -f conftest.err conftest.$ac_ext |
| 4645 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4646 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4647 | |
| 4648 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4649 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4650 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4651 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4652 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4653 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 4654 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 4655 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 4656 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4657 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 4658 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4659 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4660 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4661 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4662 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 4663 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 4664 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 4665 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 4666 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4667 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4668 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 4669 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 4670 | ( |
| 4671 | cat <<\_ASBOX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4672 | ## --------------------------------- ## |
| 4673 | ## Report this to the python lists. ## |
| 4674 | ## --------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4675 | _ASBOX |
| 4676 | ) | |
| 4677 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4678 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4679 | esac |
| 4680 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4681 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4682 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4684 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4685 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4686 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4687 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4688 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4689 | |
| 4690 | fi |
| 4691 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4692 | cat >>confdefs.h <<_ACEOF |
| 4693 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4694 | _ACEOF |
| 4695 | |
| 4696 | fi |
| 4697 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4698 | done |
| 4699 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4700 | |
| 4701 | |
| 4702 | |
| 4703 | |
| 4704 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4705 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4706 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4707 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4708 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4709 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4710 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4712 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4713 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4714 | /* confdefs.h. */ |
| 4715 | _ACEOF |
| 4716 | cat confdefs.h >>conftest.$ac_ext |
| 4717 | cat >>conftest.$ac_ext <<_ACEOF |
| 4718 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4719 | #include <sys/types.h> |
| 4720 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4721 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4722 | int |
| 4723 | main () |
| 4724 | { |
| 4725 | if ((DIR *) 0) |
| 4726 | return 0; |
| 4727 | ; |
| 4728 | return 0; |
| 4729 | } |
| 4730 | _ACEOF |
| 4731 | rm -f conftest.$ac_objext |
| 4732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4733 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4734 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4735 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4736 | rm -f conftest.er1 |
| 4737 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4739 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 4740 | { ac_try='test -z "$ac_c_werror_flag" |
| 4741 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4743 | (eval $ac_try) 2>&5 |
| 4744 | ac_status=$? |
| 4745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4746 | (exit $ac_status); }; } && |
| 4747 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4749 | (eval $ac_try) 2>&5 |
| 4750 | ac_status=$? |
| 4751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4752 | (exit $ac_status); }; }; then |
| 4753 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4754 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4755 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4756 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4757 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4758 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4759 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4760 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4761 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4762 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4763 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4764 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4765 | cat >>confdefs.h <<_ACEOF |
| 4766 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4767 | _ACEOF |
| 4768 | |
| 4769 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4770 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4771 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4772 | done |
| 4773 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4774 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4775 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4776 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4777 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4779 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4780 | ac_func_search_save_LIBS=$LIBS |
| 4781 | ac_cv_search_opendir=no |
| 4782 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4783 | /* confdefs.h. */ |
| 4784 | _ACEOF |
| 4785 | cat confdefs.h >>conftest.$ac_ext |
| 4786 | cat >>conftest.$ac_ext <<_ACEOF |
| 4787 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4788 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4789 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4790 | #ifdef __cplusplus |
| 4791 | extern "C" |
| 4792 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4793 | /* 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] | 4794 | builtin and then its argument prototype would still apply. */ |
| 4795 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4796 | int |
| 4797 | main () |
| 4798 | { |
| 4799 | opendir (); |
| 4800 | ; |
| 4801 | return 0; |
| 4802 | } |
| 4803 | _ACEOF |
| 4804 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4805 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4806 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4807 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4809 | rm -f conftest.er1 |
| 4810 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4812 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 4813 | { ac_try='test -z "$ac_c_werror_flag" |
| 4814 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4816 | (eval $ac_try) 2>&5 |
| 4817 | ac_status=$? |
| 4818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4819 | (exit $ac_status); }; } && |
| 4820 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4822 | (eval $ac_try) 2>&5 |
| 4823 | ac_status=$? |
| 4824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4825 | (exit $ac_status); }; }; then |
| 4826 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4827 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4828 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4830 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4831 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4832 | rm -f conftest.err conftest.$ac_objext \ |
| 4833 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4834 | if test "$ac_cv_search_opendir" = no; then |
| 4835 | for ac_lib in dir; do |
| 4836 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4837 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4838 | /* confdefs.h. */ |
| 4839 | _ACEOF |
| 4840 | cat confdefs.h >>conftest.$ac_ext |
| 4841 | cat >>conftest.$ac_ext <<_ACEOF |
| 4842 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4843 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4844 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4845 | #ifdef __cplusplus |
| 4846 | extern "C" |
| 4847 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4848 | /* 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] | 4849 | builtin and then its argument prototype would still apply. */ |
| 4850 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4851 | int |
| 4852 | main () |
| 4853 | { |
| 4854 | opendir (); |
| 4855 | ; |
| 4856 | return 0; |
| 4857 | } |
| 4858 | _ACEOF |
| 4859 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4860 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4861 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4862 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4863 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4864 | rm -f conftest.er1 |
| 4865 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4867 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 4868 | { ac_try='test -z "$ac_c_werror_flag" |
| 4869 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 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); }; } && |
| 4875 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4877 | (eval $ac_try) 2>&5 |
| 4878 | ac_status=$? |
| 4879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4880 | (exit $ac_status); }; }; then |
| 4881 | ac_cv_search_opendir="-l$ac_lib" |
| 4882 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4883 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4884 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4886 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4887 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4888 | rm -f conftest.err conftest.$ac_objext \ |
| 4889 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4890 | done |
| 4891 | fi |
| 4892 | LIBS=$ac_func_search_save_LIBS |
| 4893 | fi |
| 4894 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4895 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4896 | if test "$ac_cv_search_opendir" != no; then |
| 4897 | 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] | 4898 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4899 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4900 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4901 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4902 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4903 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4904 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4906 | else |
| 4907 | ac_func_search_save_LIBS=$LIBS |
| 4908 | ac_cv_search_opendir=no |
| 4909 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4910 | /* confdefs.h. */ |
| 4911 | _ACEOF |
| 4912 | cat confdefs.h >>conftest.$ac_ext |
| 4913 | cat >>conftest.$ac_ext <<_ACEOF |
| 4914 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4915 | |
| 4916 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4917 | #ifdef __cplusplus |
| 4918 | extern "C" |
| 4919 | #endif |
| 4920 | /* We use char because int might match the return type of a gcc2 |
| 4921 | builtin and then its argument prototype would still apply. */ |
| 4922 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4923 | int |
| 4924 | main () |
| 4925 | { |
| 4926 | opendir (); |
| 4927 | ; |
| 4928 | return 0; |
| 4929 | } |
| 4930 | _ACEOF |
| 4931 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4932 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4933 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4934 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4935 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4936 | rm -f conftest.er1 |
| 4937 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4939 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 4940 | { ac_try='test -z "$ac_c_werror_flag" |
| 4941 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4943 | (eval $ac_try) 2>&5 |
| 4944 | ac_status=$? |
| 4945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4946 | (exit $ac_status); }; } && |
| 4947 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4949 | (eval $ac_try) 2>&5 |
| 4950 | ac_status=$? |
| 4951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4952 | (exit $ac_status); }; }; then |
| 4953 | ac_cv_search_opendir="none required" |
| 4954 | else |
| 4955 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4957 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4958 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4959 | rm -f conftest.err conftest.$ac_objext \ |
| 4960 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4961 | if test "$ac_cv_search_opendir" = no; then |
| 4962 | for ac_lib in x; do |
| 4963 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4964 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4965 | /* confdefs.h. */ |
| 4966 | _ACEOF |
| 4967 | cat confdefs.h >>conftest.$ac_ext |
| 4968 | cat >>conftest.$ac_ext <<_ACEOF |
| 4969 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4970 | |
| 4971 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4972 | #ifdef __cplusplus |
| 4973 | extern "C" |
| 4974 | #endif |
| 4975 | /* We use char because int might match the return type of a gcc2 |
| 4976 | builtin and then its argument prototype would still apply. */ |
| 4977 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4978 | int |
| 4979 | main () |
| 4980 | { |
| 4981 | opendir (); |
| 4982 | ; |
| 4983 | return 0; |
| 4984 | } |
| 4985 | _ACEOF |
| 4986 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4987 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4988 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4989 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4991 | rm -f conftest.er1 |
| 4992 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4994 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 4995 | { ac_try='test -z "$ac_c_werror_flag" |
| 4996 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4998 | (eval $ac_try) 2>&5 |
| 4999 | ac_status=$? |
| 5000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5001 | (exit $ac_status); }; } && |
| 5002 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5004 | (eval $ac_try) 2>&5 |
| 5005 | ac_status=$? |
| 5006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5007 | (exit $ac_status); }; }; then |
| 5008 | ac_cv_search_opendir="-l$ac_lib" |
| 5009 | break |
| 5010 | else |
| 5011 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5013 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5014 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5015 | rm -f conftest.err conftest.$ac_objext \ |
| 5016 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5017 | done |
| 5018 | fi |
| 5019 | LIBS=$ac_func_search_save_LIBS |
| 5020 | fi |
| 5021 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5022 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 5023 | if test "$ac_cv_search_opendir" != no; then |
| 5024 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 5025 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5026 | fi |
| 5027 | |
| 5028 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5029 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5030 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 5031 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 5032 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 5033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5034 | else |
| 5035 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5036 | /* confdefs.h. */ |
| 5037 | _ACEOF |
| 5038 | cat confdefs.h >>conftest.$ac_ext |
| 5039 | cat >>conftest.$ac_ext <<_ACEOF |
| 5040 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5041 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5042 | int |
| 5043 | main () |
| 5044 | { |
| 5045 | return makedev(0, 0); |
| 5046 | ; |
| 5047 | return 0; |
| 5048 | } |
| 5049 | _ACEOF |
| 5050 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5051 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5052 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5053 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5055 | rm -f conftest.er1 |
| 5056 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5058 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 5059 | { ac_try='test -z "$ac_c_werror_flag" |
| 5060 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5062 | (eval $ac_try) 2>&5 |
| 5063 | ac_status=$? |
| 5064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5065 | (exit $ac_status); }; } && |
| 5066 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5068 | (eval $ac_try) 2>&5 |
| 5069 | ac_status=$? |
| 5070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5071 | (exit $ac_status); }; }; then |
| 5072 | ac_cv_header_sys_types_h_makedev=yes |
| 5073 | else |
| 5074 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5076 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5077 | ac_cv_header_sys_types_h_makedev=no |
| 5078 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5079 | rm -f conftest.err conftest.$ac_objext \ |
| 5080 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5081 | |
| 5082 | fi |
| 5083 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 5084 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 5085 | |
| 5086 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 5087 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5088 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5089 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5090 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5092 | fi |
| 5093 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5094 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5095 | else |
| 5096 | # Is the header compilable? |
| 5097 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 5098 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 5099 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5100 | /* confdefs.h. */ |
| 5101 | _ACEOF |
| 5102 | cat confdefs.h >>conftest.$ac_ext |
| 5103 | cat >>conftest.$ac_ext <<_ACEOF |
| 5104 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5105 | $ac_includes_default |
| 5106 | #include <sys/mkdev.h> |
| 5107 | _ACEOF |
| 5108 | rm -f conftest.$ac_objext |
| 5109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5110 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5111 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5112 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5113 | rm -f conftest.er1 |
| 5114 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5116 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 5117 | { ac_try='test -z "$ac_c_werror_flag" |
| 5118 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5120 | (eval $ac_try) 2>&5 |
| 5121 | ac_status=$? |
| 5122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5123 | (exit $ac_status); }; } && |
| 5124 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5126 | (eval $ac_try) 2>&5 |
| 5127 | ac_status=$? |
| 5128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5129 | (exit $ac_status); }; }; then |
| 5130 | ac_header_compiler=yes |
| 5131 | else |
| 5132 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5133 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5134 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5135 | ac_header_compiler=no |
| 5136 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5137 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5138 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5139 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5140 | |
| 5141 | # Is the header present? |
| 5142 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 5143 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 5144 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5145 | /* confdefs.h. */ |
| 5146 | _ACEOF |
| 5147 | cat confdefs.h >>conftest.$ac_ext |
| 5148 | cat >>conftest.$ac_ext <<_ACEOF |
| 5149 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5150 | #include <sys/mkdev.h> |
| 5151 | _ACEOF |
| 5152 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5153 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5154 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5155 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5156 | rm -f conftest.er1 |
| 5157 | cat conftest.err >&5 |
| 5158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5159 | (exit $ac_status); } >/dev/null; then |
| 5160 | if test -s conftest.err; then |
| 5161 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5162 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5163 | else |
| 5164 | ac_cpp_err= |
| 5165 | fi |
| 5166 | else |
| 5167 | ac_cpp_err=yes |
| 5168 | fi |
| 5169 | if test -z "$ac_cpp_err"; then |
| 5170 | ac_header_preproc=yes |
| 5171 | else |
| 5172 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5174 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5175 | ac_header_preproc=no |
| 5176 | fi |
| 5177 | rm -f conftest.err conftest.$ac_ext |
| 5178 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5179 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5180 | |
| 5181 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5182 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5183 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5184 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5185 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5186 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 5187 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} |
| 5188 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5189 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5190 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5191 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 5192 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5193 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 5194 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 5195 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 5196 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 5197 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5198 | echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5199 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 5200 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5201 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 5202 | echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5203 | ( |
| 5204 | cat <<\_ASBOX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5205 | ## --------------------------------- ## |
| 5206 | ## Report this to the python lists. ## |
| 5207 | ## --------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5208 | _ASBOX |
| 5209 | ) | |
| 5210 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5211 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5212 | esac |
| 5213 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5214 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5215 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5217 | else |
| 5218 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 5219 | fi |
| 5220 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5221 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5222 | |
| 5223 | fi |
| 5224 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 5225 | |
| 5226 | cat >>confdefs.h <<\_ACEOF |
| 5227 | #define MAJOR_IN_MKDEV 1 |
| 5228 | _ACEOF |
| 5229 | |
| 5230 | fi |
| 5231 | |
| 5232 | |
| 5233 | |
| 5234 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 5235 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5236 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5237 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5238 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5240 | fi |
| 5241 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5242 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5243 | else |
| 5244 | # Is the header compilable? |
| 5245 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 5246 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 5247 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5248 | /* confdefs.h. */ |
| 5249 | _ACEOF |
| 5250 | cat confdefs.h >>conftest.$ac_ext |
| 5251 | cat >>conftest.$ac_ext <<_ACEOF |
| 5252 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5253 | $ac_includes_default |
| 5254 | #include <sys/sysmacros.h> |
| 5255 | _ACEOF |
| 5256 | rm -f conftest.$ac_objext |
| 5257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5258 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5259 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5260 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5261 | rm -f conftest.er1 |
| 5262 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5264 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 5265 | { ac_try='test -z "$ac_c_werror_flag" |
| 5266 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5268 | (eval $ac_try) 2>&5 |
| 5269 | ac_status=$? |
| 5270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5271 | (exit $ac_status); }; } && |
| 5272 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5274 | (eval $ac_try) 2>&5 |
| 5275 | ac_status=$? |
| 5276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5277 | (exit $ac_status); }; }; then |
| 5278 | ac_header_compiler=yes |
| 5279 | else |
| 5280 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5282 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5283 | ac_header_compiler=no |
| 5284 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5285 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5286 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5287 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5288 | |
| 5289 | # Is the header present? |
| 5290 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 5291 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 5292 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5293 | /* confdefs.h. */ |
| 5294 | _ACEOF |
| 5295 | cat confdefs.h >>conftest.$ac_ext |
| 5296 | cat >>conftest.$ac_ext <<_ACEOF |
| 5297 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5298 | #include <sys/sysmacros.h> |
| 5299 | _ACEOF |
| 5300 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5301 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5302 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5303 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5304 | rm -f conftest.er1 |
| 5305 | cat conftest.err >&5 |
| 5306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5307 | (exit $ac_status); } >/dev/null; then |
| 5308 | if test -s conftest.err; then |
| 5309 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5310 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5311 | else |
| 5312 | ac_cpp_err= |
| 5313 | fi |
| 5314 | else |
| 5315 | ac_cpp_err=yes |
| 5316 | fi |
| 5317 | if test -z "$ac_cpp_err"; then |
| 5318 | ac_header_preproc=yes |
| 5319 | else |
| 5320 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5322 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5323 | ac_header_preproc=no |
| 5324 | fi |
| 5325 | rm -f conftest.err conftest.$ac_ext |
| 5326 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5327 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5328 | |
| 5329 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5330 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5331 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5332 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5333 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5334 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 5335 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} |
| 5336 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5337 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5338 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5339 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 5340 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5341 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 5342 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 5343 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 5344 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 5345 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5346 | echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5347 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 5348 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5349 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 5350 | echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5351 | ( |
| 5352 | cat <<\_ASBOX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5353 | ## --------------------------------- ## |
| 5354 | ## Report this to the python lists. ## |
| 5355 | ## --------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5356 | _ASBOX |
| 5357 | ) | |
| 5358 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5359 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5360 | esac |
| 5361 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5362 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5363 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5365 | else |
| 5366 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 5367 | fi |
| 5368 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5369 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5370 | |
| 5371 | fi |
| 5372 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 5373 | |
| 5374 | cat >>confdefs.h <<\_ACEOF |
| 5375 | #define MAJOR_IN_SYSMACROS 1 |
| 5376 | _ACEOF |
| 5377 | |
| 5378 | fi |
| 5379 | |
| 5380 | |
| 5381 | fi |
| 5382 | fi |
| 5383 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5384 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5385 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5386 | |
| 5387 | for ac_header in term.h |
| 5388 | do |
| 5389 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5390 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5391 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5392 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5394 | else |
| 5395 | cat >conftest.$ac_ext <<_ACEOF |
| 5396 | /* confdefs.h. */ |
| 5397 | _ACEOF |
| 5398 | cat confdefs.h >>conftest.$ac_ext |
| 5399 | cat >>conftest.$ac_ext <<_ACEOF |
| 5400 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5401 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 5402 | #ifdef HAVE_CURSES_H |
| 5403 | #include <curses.h> |
| 5404 | #endif |
| 5405 | |
| 5406 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5407 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5408 | _ACEOF |
| 5409 | rm -f conftest.$ac_objext |
| 5410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5411 | (eval $ac_compile) 2>conftest.er1 |
| 5412 | ac_status=$? |
| 5413 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5414 | rm -f conftest.er1 |
| 5415 | cat conftest.err >&5 |
| 5416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5417 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 5418 | { ac_try='test -z "$ac_c_werror_flag" |
| 5419 | || test ! -s conftest.err' |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5421 | (eval $ac_try) 2>&5 |
| 5422 | ac_status=$? |
| 5423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5424 | (exit $ac_status); }; } && |
| 5425 | { ac_try='test -s conftest.$ac_objext' |
| 5426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5427 | (eval $ac_try) 2>&5 |
| 5428 | ac_status=$? |
| 5429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5430 | (exit $ac_status); }; }; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5431 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5432 | else |
| 5433 | echo "$as_me: failed program was:" >&5 |
| 5434 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5435 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5436 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5437 | fi |
| 5438 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5439 | fi |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5440 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5441 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5442 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5443 | cat >>confdefs.h <<_ACEOF |
| 5444 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5445 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5446 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5447 | fi |
| 5448 | |
| 5449 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5450 | |
| 5451 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5452 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5453 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5454 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 5455 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 5456 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5457 | /* confdefs.h. */ |
| 5458 | _ACEOF |
| 5459 | cat confdefs.h >>conftest.$ac_ext |
| 5460 | cat >>conftest.$ac_ext <<_ACEOF |
| 5461 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5462 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5463 | |
| 5464 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5465 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5466 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5467 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5468 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5469 | |
| 5470 | |
| 5471 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5472 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5473 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5474 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 5475 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5476 | fi |
| 5477 | rm -f conftest* |
| 5478 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5479 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 5480 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5481 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5482 | # Check whether using makedev requires defining _OSF_SOURCE |
| 5483 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 5484 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 5485 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5486 | /* confdefs.h. */ |
| 5487 | _ACEOF |
| 5488 | cat confdefs.h >>conftest.$ac_ext |
| 5489 | cat >>conftest.$ac_ext <<_ACEOF |
| 5490 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5491 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5492 | int |
| 5493 | main () |
| 5494 | { |
| 5495 | makedev(0, 0) |
| 5496 | ; |
| 5497 | return 0; |
| 5498 | } |
| 5499 | _ACEOF |
| 5500 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5502 | (eval $ac_link) 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5503 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5505 | rm -f conftest.er1 |
| 5506 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5508 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 5509 | { ac_try='test -z "$ac_c_werror_flag" |
| 5510 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5512 | (eval $ac_try) 2>&5 |
| 5513 | ac_status=$? |
| 5514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5515 | (exit $ac_status); }; } && |
| 5516 | { ac_try='test -s conftest$ac_exeext' |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5518 | (eval $ac_try) 2>&5 |
| 5519 | ac_status=$? |
| 5520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5521 | (exit $ac_status); }; }; then |
| 5522 | ac_cv_has_makedev=yes |
| 5523 | else |
| 5524 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5526 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5527 | ac_cv_has_makedev=no |
| 5528 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5529 | rm -f conftest.err conftest.$ac_objext \ |
| 5530 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5531 | if test "$ac_cv_has_makedev" = "no"; then |
| 5532 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 5533 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5534 | /* confdefs.h. */ |
| 5535 | _ACEOF |
| 5536 | cat confdefs.h >>conftest.$ac_ext |
| 5537 | cat >>conftest.$ac_ext <<_ACEOF |
| 5538 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5539 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5540 | #define _OSF_SOURCE 1 |
| 5541 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5542 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5543 | int |
| 5544 | main () |
| 5545 | { |
| 5546 | makedev(0, 0) |
| 5547 | ; |
| 5548 | return 0; |
| 5549 | } |
| 5550 | _ACEOF |
| 5551 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5553 | (eval $ac_link) 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5554 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5555 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5556 | rm -f conftest.er1 |
| 5557 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5559 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 5560 | { ac_try='test -z "$ac_c_werror_flag" |
| 5561 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5563 | (eval $ac_try) 2>&5 |
| 5564 | ac_status=$? |
| 5565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5566 | (exit $ac_status); }; } && |
| 5567 | { ac_try='test -s conftest$ac_exeext' |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5569 | (eval $ac_try) 2>&5 |
| 5570 | ac_status=$? |
| 5571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5572 | (exit $ac_status); }; }; then |
| 5573 | ac_cv_has_makedev=yes |
| 5574 | else |
| 5575 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5577 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5578 | ac_cv_has_makedev=no |
| 5579 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5580 | rm -f conftest.err conftest.$ac_objext \ |
| 5581 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5582 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5583 | |
| 5584 | cat >>confdefs.h <<\_ACEOF |
| 5585 | #define _OSF_SOURCE 1 |
| 5586 | _ACEOF |
| 5587 | |
| 5588 | fi |
| 5589 | fi |
| 5590 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 5591 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 5592 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5593 | |
| 5594 | cat >>confdefs.h <<\_ACEOF |
| 5595 | #define HAVE_MAKEDEV 1 |
| 5596 | _ACEOF |
| 5597 | |
| 5598 | fi |
| 5599 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5600 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 5601 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 5602 | # defined, but the compiler does not support pragma redefine_extname, |
| 5603 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 5604 | # structures (such as rlimit64) without declaring them. As a |
| 5605 | # work-around, disable LFS on such configurations |
| 5606 | |
| 5607 | use_lfs=yes |
| 5608 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 5609 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 5610 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5611 | /* confdefs.h. */ |
| 5612 | _ACEOF |
| 5613 | cat confdefs.h >>conftest.$ac_ext |
| 5614 | cat >>conftest.$ac_ext <<_ACEOF |
| 5615 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5616 | |
| 5617 | #define _LARGEFILE_SOURCE 1 |
| 5618 | #define _FILE_OFFSET_BITS 64 |
| 5619 | #include <sys/resource.h> |
| 5620 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5621 | int |
| 5622 | main () |
| 5623 | { |
| 5624 | struct rlimit foo; |
| 5625 | ; |
| 5626 | return 0; |
| 5627 | } |
| 5628 | _ACEOF |
| 5629 | rm -f conftest.$ac_objext |
| 5630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5631 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5632 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5634 | rm -f conftest.er1 |
| 5635 | cat conftest.err >&5 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5637 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 5638 | { ac_try='test -z "$ac_c_werror_flag" |
| 5639 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5641 | (eval $ac_try) 2>&5 |
| 5642 | ac_status=$? |
| 5643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5644 | (exit $ac_status); }; } && |
| 5645 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5647 | (eval $ac_try) 2>&5 |
| 5648 | ac_status=$? |
| 5649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5650 | (exit $ac_status); }; }; then |
| 5651 | sol_lfs_bug=no |
| 5652 | else |
| 5653 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5655 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5656 | sol_lfs_bug=yes |
| 5657 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5658 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5659 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 5660 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 5661 | if test "$sol_lfs_bug" = "yes"; then |
| 5662 | use_lfs=no |
| 5663 | fi |
| 5664 | |
| 5665 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5666 | # Two defines needed to enable largefile support on various platforms |
| 5667 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5668 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5669 | cat >>confdefs.h <<\_ACEOF |
| 5670 | #define _LARGEFILE_SOURCE 1 |
| 5671 | _ACEOF |
| 5672 | |
| 5673 | |
| 5674 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5675 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5676 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5677 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5678 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5679 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 5680 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 5681 | cat >> confdefs.h <<\EOF |
| 5682 | #if defined(SCO_DS) |
| 5683 | #undef _OFF_T |
| 5684 | #endif |
| 5685 | EOF |
| 5686 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5687 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5688 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 5689 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 5690 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 5691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5692 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5693 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5694 | /* confdefs.h. */ |
| 5695 | _ACEOF |
| 5696 | cat confdefs.h >>conftest.$ac_ext |
| 5697 | cat >>conftest.$ac_ext <<_ACEOF |
| 5698 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5699 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5700 | int |
| 5701 | main () |
| 5702 | { |
| 5703 | if ((mode_t *) 0) |
| 5704 | return 0; |
| 5705 | if (sizeof (mode_t)) |
| 5706 | return 0; |
| 5707 | ; |
| 5708 | return 0; |
| 5709 | } |
| 5710 | _ACEOF |
| 5711 | rm -f conftest.$ac_objext |
| 5712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5713 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5714 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5715 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5716 | rm -f conftest.er1 |
| 5717 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5719 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 5720 | { ac_try='test -z "$ac_c_werror_flag" |
| 5721 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5723 | (eval $ac_try) 2>&5 |
| 5724 | ac_status=$? |
| 5725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5726 | (exit $ac_status); }; } && |
| 5727 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5729 | (eval $ac_try) 2>&5 |
| 5730 | ac_status=$? |
| 5731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5732 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5733 | ac_cv_type_mode_t=yes |
| 5734 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5735 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5737 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5738 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5739 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5740 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5741 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5742 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 5743 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 5744 | if test $ac_cv_type_mode_t = yes; then |
| 5745 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5746 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5747 | |
| 5748 | cat >>confdefs.h <<_ACEOF |
| 5749 | #define mode_t int |
| 5750 | _ACEOF |
| 5751 | |
| 5752 | fi |
| 5753 | |
| 5754 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5755 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 5756 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5758 | else |
| 5759 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5760 | /* confdefs.h. */ |
| 5761 | _ACEOF |
| 5762 | cat confdefs.h >>conftest.$ac_ext |
| 5763 | cat >>conftest.$ac_ext <<_ACEOF |
| 5764 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5765 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5766 | int |
| 5767 | main () |
| 5768 | { |
| 5769 | if ((off_t *) 0) |
| 5770 | return 0; |
| 5771 | if (sizeof (off_t)) |
| 5772 | return 0; |
| 5773 | ; |
| 5774 | return 0; |
| 5775 | } |
| 5776 | _ACEOF |
| 5777 | rm -f conftest.$ac_objext |
| 5778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5779 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5780 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5782 | rm -f conftest.er1 |
| 5783 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5785 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 5786 | { ac_try='test -z "$ac_c_werror_flag" |
| 5787 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5789 | (eval $ac_try) 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' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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_off_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_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5805 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5806 | rm -f conftest.err 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_off_t" >&5 |
| 5809 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 5810 | if test $ac_cv_type_off_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 off_t long |
| 5816 | _ACEOF |
| 5817 | |
| 5818 | fi |
| 5819 | |
| 5820 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 5821 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 5822 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 5823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5824 | else |
| 5825 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5826 | /* confdefs.h. */ |
| 5827 | _ACEOF |
| 5828 | cat confdefs.h >>conftest.$ac_ext |
| 5829 | cat >>conftest.$ac_ext <<_ACEOF |
| 5830 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5831 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5832 | int |
| 5833 | main () |
| 5834 | { |
| 5835 | if ((pid_t *) 0) |
| 5836 | return 0; |
| 5837 | if (sizeof (pid_t)) |
| 5838 | return 0; |
| 5839 | ; |
| 5840 | return 0; |
| 5841 | } |
| 5842 | _ACEOF |
| 5843 | rm -f conftest.$ac_objext |
| 5844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5845 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5846 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5847 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5848 | rm -f conftest.er1 |
| 5849 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5851 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 5852 | { ac_try='test -z "$ac_c_werror_flag" |
| 5853 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5855 | (eval $ac_try) 2>&5 |
| 5856 | ac_status=$? |
| 5857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5858 | (exit $ac_status); }; } && |
| 5859 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5861 | (eval $ac_try) 2>&5 |
| 5862 | ac_status=$? |
| 5863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5864 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5865 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5866 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5867 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5869 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5870 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5871 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5872 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5873 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5874 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 5875 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 5876 | if test $ac_cv_type_pid_t = yes; then |
| 5877 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5878 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5879 | |
| 5880 | cat >>confdefs.h <<_ACEOF |
| 5881 | #define pid_t int |
| 5882 | _ACEOF |
| 5883 | |
| 5884 | fi |
| 5885 | |
| 5886 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 5887 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 5888 | if test "${ac_cv_type_signal+set}" = set; then |
| 5889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5890 | else |
| 5891 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5892 | /* confdefs.h. */ |
| 5893 | _ACEOF |
| 5894 | cat confdefs.h >>conftest.$ac_ext |
| 5895 | cat >>conftest.$ac_ext <<_ACEOF |
| 5896 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5897 | #include <sys/types.h> |
| 5898 | #include <signal.h> |
| 5899 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5900 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5901 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5902 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5903 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 5904 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5905 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5906 | #endif |
| 5907 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5908 | int |
| 5909 | main () |
| 5910 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5911 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5912 | ; |
| 5913 | return 0; |
| 5914 | } |
| 5915 | _ACEOF |
| 5916 | rm -f conftest.$ac_objext |
| 5917 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5918 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5919 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5920 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5921 | rm -f conftest.er1 |
| 5922 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5924 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 5925 | { ac_try='test -z "$ac_c_werror_flag" |
| 5926 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5928 | (eval $ac_try) 2>&5 |
| 5929 | ac_status=$? |
| 5930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5931 | (exit $ac_status); }; } && |
| 5932 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5934 | (eval $ac_try) 2>&5 |
| 5935 | ac_status=$? |
| 5936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5937 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5938 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5939 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5940 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5942 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5943 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5944 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5945 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5946 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5947 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 5948 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5949 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5950 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5951 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5952 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5953 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5954 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5955 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5956 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 5957 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5959 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5960 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5961 | /* confdefs.h. */ |
| 5962 | _ACEOF |
| 5963 | cat confdefs.h >>conftest.$ac_ext |
| 5964 | cat >>conftest.$ac_ext <<_ACEOF |
| 5965 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5966 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5967 | int |
| 5968 | main () |
| 5969 | { |
| 5970 | if ((size_t *) 0) |
| 5971 | return 0; |
| 5972 | if (sizeof (size_t)) |
| 5973 | return 0; |
| 5974 | ; |
| 5975 | return 0; |
| 5976 | } |
| 5977 | _ACEOF |
| 5978 | rm -f conftest.$ac_objext |
| 5979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5980 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5981 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5983 | rm -f conftest.er1 |
| 5984 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5986 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 5987 | { ac_try='test -z "$ac_c_werror_flag" |
| 5988 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5990 | (eval $ac_try) 2>&5 |
| 5991 | ac_status=$? |
| 5992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5993 | (exit $ac_status); }; } && |
| 5994 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5996 | (eval $ac_try) 2>&5 |
| 5997 | ac_status=$? |
| 5998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5999 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6000 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6001 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6002 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6003 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6004 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6005 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6006 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6007 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6008 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6009 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 6010 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 6011 | if test $ac_cv_type_size_t = yes; then |
| 6012 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6013 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6014 | |
| 6015 | cat >>confdefs.h <<_ACEOF |
| 6016 | #define size_t unsigned |
| 6017 | _ACEOF |
| 6018 | |
| 6019 | fi |
| 6020 | |
| 6021 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 6022 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 6023 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 6024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6025 | else |
| 6026 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6027 | /* confdefs.h. */ |
| 6028 | _ACEOF |
| 6029 | cat confdefs.h >>conftest.$ac_ext |
| 6030 | cat >>conftest.$ac_ext <<_ACEOF |
| 6031 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6032 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6033 | |
| 6034 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6035 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6036 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6037 | ac_cv_type_uid_t=yes |
| 6038 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6039 | ac_cv_type_uid_t=no |
| 6040 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6041 | rm -f conftest* |
| 6042 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6043 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6044 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 6045 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6046 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6047 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6048 | cat >>confdefs.h <<\_ACEOF |
| 6049 | #define uid_t int |
| 6050 | _ACEOF |
| 6051 | |
| 6052 | |
| 6053 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6054 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6055 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6056 | |
| 6057 | fi |
| 6058 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6059 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6060 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 6061 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6062 | echo "$as_me:$LINENO: checking for int" >&5 |
| 6063 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 6064 | if test "${ac_cv_type_int+set}" = set; then |
| 6065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6066 | else |
| 6067 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6068 | /* confdefs.h. */ |
| 6069 | _ACEOF |
| 6070 | cat confdefs.h >>conftest.$ac_ext |
| 6071 | cat >>conftest.$ac_ext <<_ACEOF |
| 6072 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6073 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6074 | int |
| 6075 | main () |
| 6076 | { |
| 6077 | if ((int *) 0) |
| 6078 | return 0; |
| 6079 | if (sizeof (int)) |
| 6080 | return 0; |
| 6081 | ; |
| 6082 | return 0; |
| 6083 | } |
| 6084 | _ACEOF |
| 6085 | rm -f conftest.$ac_objext |
| 6086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6087 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6088 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6089 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6090 | rm -f conftest.er1 |
| 6091 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6093 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 6094 | { ac_try='test -z "$ac_c_werror_flag" |
| 6095 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6097 | (eval $ac_try) 2>&5 |
| 6098 | ac_status=$? |
| 6099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6100 | (exit $ac_status); }; } && |
| 6101 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6103 | (eval $ac_try) 2>&5 |
| 6104 | ac_status=$? |
| 6105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6106 | (exit $ac_status); }; }; then |
| 6107 | ac_cv_type_int=yes |
| 6108 | else |
| 6109 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6111 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6112 | ac_cv_type_int=no |
| 6113 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6114 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6115 | fi |
| 6116 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 6117 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 6118 | |
| 6119 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 6120 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 6121 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 6122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6123 | else |
| 6124 | if test "$ac_cv_type_int" = yes; then |
| 6125 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6126 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6127 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6128 | # This bug is HP SR number 8606223364. |
| 6129 | if test "$cross_compiling" = yes; then |
| 6130 | # Depending upon the size, compute the lo and hi bounds. |
| 6131 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6132 | /* confdefs.h. */ |
| 6133 | _ACEOF |
| 6134 | cat confdefs.h >>conftest.$ac_ext |
| 6135 | cat >>conftest.$ac_ext <<_ACEOF |
| 6136 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6137 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6138 | int |
| 6139 | main () |
| 6140 | { |
| 6141 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 6142 | test_array [0] = 0 |
| 6143 | |
| 6144 | ; |
| 6145 | return 0; |
| 6146 | } |
| 6147 | _ACEOF |
| 6148 | rm -f conftest.$ac_objext |
| 6149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6150 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6151 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6152 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6153 | rm -f conftest.er1 |
| 6154 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6156 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 6157 | { ac_try='test -z "$ac_c_werror_flag" |
| 6158 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6160 | (eval $ac_try) 2>&5 |
| 6161 | ac_status=$? |
| 6162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6163 | (exit $ac_status); }; } && |
| 6164 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6166 | (eval $ac_try) 2>&5 |
| 6167 | ac_status=$? |
| 6168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6169 | (exit $ac_status); }; }; then |
| 6170 | ac_lo=0 ac_mid=0 |
| 6171 | while :; do |
| 6172 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6173 | /* confdefs.h. */ |
| 6174 | _ACEOF |
| 6175 | cat confdefs.h >>conftest.$ac_ext |
| 6176 | cat >>conftest.$ac_ext <<_ACEOF |
| 6177 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6178 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6179 | int |
| 6180 | main () |
| 6181 | { |
| 6182 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6183 | test_array [0] = 0 |
| 6184 | |
| 6185 | ; |
| 6186 | return 0; |
| 6187 | } |
| 6188 | _ACEOF |
| 6189 | rm -f conftest.$ac_objext |
| 6190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6191 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6192 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6193 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6194 | rm -f conftest.er1 |
| 6195 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6197 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 6198 | { ac_try='test -z "$ac_c_werror_flag" |
| 6199 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6201 | (eval $ac_try) 2>&5 |
| 6202 | ac_status=$? |
| 6203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6204 | (exit $ac_status); }; } && |
| 6205 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6207 | (eval $ac_try) 2>&5 |
| 6208 | ac_status=$? |
| 6209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6210 | (exit $ac_status); }; }; then |
| 6211 | ac_hi=$ac_mid; break |
| 6212 | else |
| 6213 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6214 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6215 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6216 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6217 | if test $ac_lo -le $ac_mid; then |
| 6218 | ac_lo= ac_hi= |
| 6219 | break |
| 6220 | fi |
| 6221 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6222 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6223 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6224 | done |
| 6225 | else |
| 6226 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6227 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6228 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6229 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6230 | /* confdefs.h. */ |
| 6231 | _ACEOF |
| 6232 | cat confdefs.h >>conftest.$ac_ext |
| 6233 | cat >>conftest.$ac_ext <<_ACEOF |
| 6234 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6235 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6236 | int |
| 6237 | main () |
| 6238 | { |
| 6239 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 6240 | test_array [0] = 0 |
| 6241 | |
| 6242 | ; |
| 6243 | return 0; |
| 6244 | } |
| 6245 | _ACEOF |
| 6246 | rm -f conftest.$ac_objext |
| 6247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6248 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6249 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6250 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6251 | rm -f conftest.er1 |
| 6252 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6254 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 6255 | { ac_try='test -z "$ac_c_werror_flag" |
| 6256 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6258 | (eval $ac_try) 2>&5 |
| 6259 | ac_status=$? |
| 6260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6261 | (exit $ac_status); }; } && |
| 6262 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6264 | (eval $ac_try) 2>&5 |
| 6265 | ac_status=$? |
| 6266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6267 | (exit $ac_status); }; }; then |
| 6268 | ac_hi=-1 ac_mid=-1 |
| 6269 | while :; do |
| 6270 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6271 | /* confdefs.h. */ |
| 6272 | _ACEOF |
| 6273 | cat confdefs.h >>conftest.$ac_ext |
| 6274 | cat >>conftest.$ac_ext <<_ACEOF |
| 6275 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6276 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6277 | int |
| 6278 | main () |
| 6279 | { |
| 6280 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 6281 | test_array [0] = 0 |
| 6282 | |
| 6283 | ; |
| 6284 | return 0; |
| 6285 | } |
| 6286 | _ACEOF |
| 6287 | rm -f conftest.$ac_objext |
| 6288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6289 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6290 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6292 | rm -f conftest.er1 |
| 6293 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6295 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 6296 | { ac_try='test -z "$ac_c_werror_flag" |
| 6297 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6299 | (eval $ac_try) 2>&5 |
| 6300 | ac_status=$? |
| 6301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6302 | (exit $ac_status); }; } && |
| 6303 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6305 | (eval $ac_try) 2>&5 |
| 6306 | ac_status=$? |
| 6307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6308 | (exit $ac_status); }; }; then |
| 6309 | ac_lo=$ac_mid; break |
| 6310 | else |
| 6311 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6313 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6314 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6315 | if test $ac_mid -le $ac_hi; then |
| 6316 | ac_lo= ac_hi= |
| 6317 | break |
| 6318 | fi |
| 6319 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6320 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6321 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6322 | done |
| 6323 | else |
| 6324 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6326 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6327 | ac_lo= ac_hi= |
| 6328 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6329 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6330 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6331 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6332 | # Binary search between lo and hi bounds. |
| 6333 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6334 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6335 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6336 | /* confdefs.h. */ |
| 6337 | _ACEOF |
| 6338 | cat confdefs.h >>conftest.$ac_ext |
| 6339 | cat >>conftest.$ac_ext <<_ACEOF |
| 6340 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6341 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6342 | int |
| 6343 | main () |
| 6344 | { |
| 6345 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6346 | test_array [0] = 0 |
| 6347 | |
| 6348 | ; |
| 6349 | return 0; |
| 6350 | } |
| 6351 | _ACEOF |
| 6352 | rm -f conftest.$ac_objext |
| 6353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6354 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6355 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6356 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6357 | rm -f conftest.er1 |
| 6358 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6360 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 6361 | { ac_try='test -z "$ac_c_werror_flag" |
| 6362 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6364 | (eval $ac_try) 2>&5 |
| 6365 | ac_status=$? |
| 6366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6367 | (exit $ac_status); }; } && |
| 6368 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6370 | (eval $ac_try) 2>&5 |
| 6371 | ac_status=$? |
| 6372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6373 | (exit $ac_status); }; }; then |
| 6374 | ac_hi=$ac_mid |
| 6375 | else |
| 6376 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6377 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6378 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6379 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6380 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6382 | done |
| 6383 | case $ac_lo in |
| 6384 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6385 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6386 | See \`config.log' for more details." >&5 |
| 6387 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6388 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6389 | { (exit 1); exit 1; }; } ;; |
| 6390 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6391 | else |
| 6392 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 6393 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6394 | See \`config.log' for more details." >&5 |
| 6395 | echo "$as_me: error: cannot run test program while cross compiling |
| 6396 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6397 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6398 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6399 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6400 | /* confdefs.h. */ |
| 6401 | _ACEOF |
| 6402 | cat confdefs.h >>conftest.$ac_ext |
| 6403 | cat >>conftest.$ac_ext <<_ACEOF |
| 6404 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6405 | $ac_includes_default |
| 6406 | long longval () { return (long) (sizeof (int)); } |
| 6407 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6408 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6409 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6410 | int |
| 6411 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6412 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6413 | |
| 6414 | FILE *f = fopen ("conftest.val", "w"); |
| 6415 | if (! f) |
| 6416 | exit (1); |
| 6417 | if (((long) (sizeof (int))) < 0) |
| 6418 | { |
| 6419 | long i = longval (); |
| 6420 | if (i != ((long) (sizeof (int)))) |
| 6421 | exit (1); |
| 6422 | fprintf (f, "%ld\n", i); |
| 6423 | } |
| 6424 | else |
| 6425 | { |
| 6426 | unsigned long i = ulongval (); |
| 6427 | if (i != ((long) (sizeof (int)))) |
| 6428 | exit (1); |
| 6429 | fprintf (f, "%lu\n", i); |
| 6430 | } |
| 6431 | exit (ferror (f) || fclose (f) != 0); |
| 6432 | |
| 6433 | ; |
| 6434 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6435 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6436 | _ACEOF |
| 6437 | rm -f conftest$ac_exeext |
| 6438 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6439 | (eval $ac_link) 2>&5 |
| 6440 | ac_status=$? |
| 6441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6442 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6444 | (eval $ac_try) 2>&5 |
| 6445 | ac_status=$? |
| 6446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6447 | (exit $ac_status); }; }; then |
| 6448 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6449 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6450 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6451 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6452 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6453 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6454 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6455 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6456 | See \`config.log' for more details." >&5 |
| 6457 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6458 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6459 | { (exit 1); exit 1; }; } |
| 6460 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6461 | rm -f 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] | 6462 | fi |
| 6463 | fi |
| 6464 | rm -f conftest.val |
| 6465 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6466 | ac_cv_sizeof_int=0 |
| 6467 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6468 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6469 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 6470 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 6471 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6472 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6473 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6474 | |
| 6475 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6476 | echo "$as_me:$LINENO: checking for long" >&5 |
| 6477 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 6478 | if test "${ac_cv_type_long+set}" = set; then |
| 6479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6480 | else |
| 6481 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6482 | /* confdefs.h. */ |
| 6483 | _ACEOF |
| 6484 | cat confdefs.h >>conftest.$ac_ext |
| 6485 | cat >>conftest.$ac_ext <<_ACEOF |
| 6486 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6487 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6488 | int |
| 6489 | main () |
| 6490 | { |
| 6491 | if ((long *) 0) |
| 6492 | return 0; |
| 6493 | if (sizeof (long)) |
| 6494 | return 0; |
| 6495 | ; |
| 6496 | return 0; |
| 6497 | } |
| 6498 | _ACEOF |
| 6499 | rm -f conftest.$ac_objext |
| 6500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6501 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6502 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6503 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6504 | rm -f conftest.er1 |
| 6505 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6507 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 6508 | { ac_try='test -z "$ac_c_werror_flag" |
| 6509 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6511 | (eval $ac_try) 2>&5 |
| 6512 | ac_status=$? |
| 6513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6514 | (exit $ac_status); }; } && |
| 6515 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6517 | (eval $ac_try) 2>&5 |
| 6518 | ac_status=$? |
| 6519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6520 | (exit $ac_status); }; }; then |
| 6521 | ac_cv_type_long=yes |
| 6522 | else |
| 6523 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6524 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6525 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6526 | ac_cv_type_long=no |
| 6527 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6529 | fi |
| 6530 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 6531 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 6532 | |
| 6533 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 6534 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 6535 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 6536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6537 | else |
| 6538 | if test "$ac_cv_type_long" = yes; then |
| 6539 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6540 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6541 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6542 | # This bug is HP SR number 8606223364. |
| 6543 | if test "$cross_compiling" = yes; then |
| 6544 | # Depending upon the size, compute the lo and hi bounds. |
| 6545 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6546 | /* confdefs.h. */ |
| 6547 | _ACEOF |
| 6548 | cat confdefs.h >>conftest.$ac_ext |
| 6549 | cat >>conftest.$ac_ext <<_ACEOF |
| 6550 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6551 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6552 | int |
| 6553 | main () |
| 6554 | { |
| 6555 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 6556 | test_array [0] = 0 |
| 6557 | |
| 6558 | ; |
| 6559 | return 0; |
| 6560 | } |
| 6561 | _ACEOF |
| 6562 | rm -f conftest.$ac_objext |
| 6563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6564 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6565 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6566 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6567 | rm -f conftest.er1 |
| 6568 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6570 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 6571 | { ac_try='test -z "$ac_c_werror_flag" |
| 6572 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6574 | (eval $ac_try) 2>&5 |
| 6575 | ac_status=$? |
| 6576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6577 | (exit $ac_status); }; } && |
| 6578 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6580 | (eval $ac_try) 2>&5 |
| 6581 | ac_status=$? |
| 6582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6583 | (exit $ac_status); }; }; then |
| 6584 | ac_lo=0 ac_mid=0 |
| 6585 | while :; do |
| 6586 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6587 | /* confdefs.h. */ |
| 6588 | _ACEOF |
| 6589 | cat confdefs.h >>conftest.$ac_ext |
| 6590 | cat >>conftest.$ac_ext <<_ACEOF |
| 6591 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6592 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6593 | int |
| 6594 | main () |
| 6595 | { |
| 6596 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6597 | test_array [0] = 0 |
| 6598 | |
| 6599 | ; |
| 6600 | return 0; |
| 6601 | } |
| 6602 | _ACEOF |
| 6603 | rm -f conftest.$ac_objext |
| 6604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6605 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6606 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6607 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6608 | rm -f conftest.er1 |
| 6609 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6611 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 6612 | { ac_try='test -z "$ac_c_werror_flag" |
| 6613 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6615 | (eval $ac_try) 2>&5 |
| 6616 | ac_status=$? |
| 6617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6618 | (exit $ac_status); }; } && |
| 6619 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6621 | (eval $ac_try) 2>&5 |
| 6622 | ac_status=$? |
| 6623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6624 | (exit $ac_status); }; }; then |
| 6625 | ac_hi=$ac_mid; break |
| 6626 | else |
| 6627 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6629 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6630 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6631 | if test $ac_lo -le $ac_mid; then |
| 6632 | ac_lo= ac_hi= |
| 6633 | break |
| 6634 | fi |
| 6635 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6636 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6637 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6638 | done |
| 6639 | else |
| 6640 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6642 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6643 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6644 | /* confdefs.h. */ |
| 6645 | _ACEOF |
| 6646 | cat confdefs.h >>conftest.$ac_ext |
| 6647 | cat >>conftest.$ac_ext <<_ACEOF |
| 6648 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6649 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6650 | int |
| 6651 | main () |
| 6652 | { |
| 6653 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 6654 | test_array [0] = 0 |
| 6655 | |
| 6656 | ; |
| 6657 | return 0; |
| 6658 | } |
| 6659 | _ACEOF |
| 6660 | rm -f conftest.$ac_objext |
| 6661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6662 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6663 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6664 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6665 | rm -f conftest.er1 |
| 6666 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6668 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 6669 | { ac_try='test -z "$ac_c_werror_flag" |
| 6670 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6672 | (eval $ac_try) 2>&5 |
| 6673 | ac_status=$? |
| 6674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6675 | (exit $ac_status); }; } && |
| 6676 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6678 | (eval $ac_try) 2>&5 |
| 6679 | ac_status=$? |
| 6680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6681 | (exit $ac_status); }; }; then |
| 6682 | ac_hi=-1 ac_mid=-1 |
| 6683 | while :; do |
| 6684 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6685 | /* confdefs.h. */ |
| 6686 | _ACEOF |
| 6687 | cat confdefs.h >>conftest.$ac_ext |
| 6688 | cat >>conftest.$ac_ext <<_ACEOF |
| 6689 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6690 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6691 | int |
| 6692 | main () |
| 6693 | { |
| 6694 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 6695 | test_array [0] = 0 |
| 6696 | |
| 6697 | ; |
| 6698 | return 0; |
| 6699 | } |
| 6700 | _ACEOF |
| 6701 | rm -f conftest.$ac_objext |
| 6702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6703 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6704 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6705 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6706 | rm -f conftest.er1 |
| 6707 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6709 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 6710 | { ac_try='test -z "$ac_c_werror_flag" |
| 6711 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6713 | (eval $ac_try) 2>&5 |
| 6714 | ac_status=$? |
| 6715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6716 | (exit $ac_status); }; } && |
| 6717 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6719 | (eval $ac_try) 2>&5 |
| 6720 | ac_status=$? |
| 6721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6722 | (exit $ac_status); }; }; then |
| 6723 | ac_lo=$ac_mid; break |
| 6724 | else |
| 6725 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6726 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6727 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6728 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6729 | if test $ac_mid -le $ac_hi; then |
| 6730 | ac_lo= ac_hi= |
| 6731 | break |
| 6732 | fi |
| 6733 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6734 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6735 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6736 | done |
| 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_lo= ac_hi= |
| 6742 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6743 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6744 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6745 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6746 | # Binary search between lo and hi bounds. |
| 6747 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6748 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6749 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6750 | /* confdefs.h. */ |
| 6751 | _ACEOF |
| 6752 | cat confdefs.h >>conftest.$ac_ext |
| 6753 | cat >>conftest.$ac_ext <<_ACEOF |
| 6754 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6755 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6756 | int |
| 6757 | main () |
| 6758 | { |
| 6759 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6760 | test_array [0] = 0 |
| 6761 | |
| 6762 | ; |
| 6763 | return 0; |
| 6764 | } |
| 6765 | _ACEOF |
| 6766 | rm -f conftest.$ac_objext |
| 6767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6768 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6769 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6770 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6771 | rm -f conftest.er1 |
| 6772 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6774 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 6775 | { ac_try='test -z "$ac_c_werror_flag" |
| 6776 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6778 | (eval $ac_try) 2>&5 |
| 6779 | ac_status=$? |
| 6780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6781 | (exit $ac_status); }; } && |
| 6782 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6784 | (eval $ac_try) 2>&5 |
| 6785 | ac_status=$? |
| 6786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6787 | (exit $ac_status); }; }; then |
| 6788 | ac_hi=$ac_mid |
| 6789 | else |
| 6790 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6792 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6793 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6794 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6795 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6796 | done |
| 6797 | case $ac_lo in |
| 6798 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6799 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 6800 | See \`config.log' for more details." >&5 |
| 6801 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 6802 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6803 | { (exit 1); exit 1; }; } ;; |
| 6804 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6805 | else |
| 6806 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 6807 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6808 | See \`config.log' for more details." >&5 |
| 6809 | echo "$as_me: error: cannot run test program while cross compiling |
| 6810 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6811 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6812 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6813 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6814 | /* confdefs.h. */ |
| 6815 | _ACEOF |
| 6816 | cat confdefs.h >>conftest.$ac_ext |
| 6817 | cat >>conftest.$ac_ext <<_ACEOF |
| 6818 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6819 | $ac_includes_default |
| 6820 | long longval () { return (long) (sizeof (long)); } |
| 6821 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6822 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6823 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6824 | int |
| 6825 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6826 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6827 | |
| 6828 | FILE *f = fopen ("conftest.val", "w"); |
| 6829 | if (! f) |
| 6830 | exit (1); |
| 6831 | if (((long) (sizeof (long))) < 0) |
| 6832 | { |
| 6833 | long i = longval (); |
| 6834 | if (i != ((long) (sizeof (long)))) |
| 6835 | exit (1); |
| 6836 | fprintf (f, "%ld\n", i); |
| 6837 | } |
| 6838 | else |
| 6839 | { |
| 6840 | unsigned long i = ulongval (); |
| 6841 | if (i != ((long) (sizeof (long)))) |
| 6842 | exit (1); |
| 6843 | fprintf (f, "%lu\n", i); |
| 6844 | } |
| 6845 | exit (ferror (f) || fclose (f) != 0); |
| 6846 | |
| 6847 | ; |
| 6848 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6849 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6850 | _ACEOF |
| 6851 | rm -f conftest$ac_exeext |
| 6852 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6853 | (eval $ac_link) 2>&5 |
| 6854 | ac_status=$? |
| 6855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6856 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6858 | (eval $ac_try) 2>&5 |
| 6859 | ac_status=$? |
| 6860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6861 | (exit $ac_status); }; }; then |
| 6862 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6863 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6864 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6865 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6867 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6868 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6869 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 6870 | See \`config.log' for more details." >&5 |
| 6871 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 6872 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6873 | { (exit 1); exit 1; }; } |
| 6874 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6875 | rm -f 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] | 6876 | fi |
| 6877 | fi |
| 6878 | rm -f conftest.val |
| 6879 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6880 | ac_cv_sizeof_long=0 |
| 6881 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6882 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6883 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 6884 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 6885 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6886 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6887 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6888 | |
| 6889 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6890 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 6891 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 6892 | if test "${ac_cv_type_void_p+set}" = set; then |
| 6893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6894 | else |
| 6895 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6896 | /* confdefs.h. */ |
| 6897 | _ACEOF |
| 6898 | cat confdefs.h >>conftest.$ac_ext |
| 6899 | cat >>conftest.$ac_ext <<_ACEOF |
| 6900 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6901 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6902 | int |
| 6903 | main () |
| 6904 | { |
| 6905 | if ((void * *) 0) |
| 6906 | return 0; |
| 6907 | if (sizeof (void *)) |
| 6908 | return 0; |
| 6909 | ; |
| 6910 | return 0; |
| 6911 | } |
| 6912 | _ACEOF |
| 6913 | rm -f conftest.$ac_objext |
| 6914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6915 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6916 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6918 | rm -f conftest.er1 |
| 6919 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6921 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 6922 | { ac_try='test -z "$ac_c_werror_flag" |
| 6923 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6925 | (eval $ac_try) 2>&5 |
| 6926 | ac_status=$? |
| 6927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6928 | (exit $ac_status); }; } && |
| 6929 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6931 | (eval $ac_try) 2>&5 |
| 6932 | ac_status=$? |
| 6933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6934 | (exit $ac_status); }; }; then |
| 6935 | ac_cv_type_void_p=yes |
| 6936 | else |
| 6937 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6939 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6940 | ac_cv_type_void_p=no |
| 6941 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6942 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6943 | fi |
| 6944 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 6945 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 6946 | |
| 6947 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 6948 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 6949 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 6950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6951 | else |
| 6952 | if test "$ac_cv_type_void_p" = yes; then |
| 6953 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6954 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6955 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6956 | # This bug is HP SR number 8606223364. |
| 6957 | if test "$cross_compiling" = yes; then |
| 6958 | # Depending upon the size, compute the lo and hi bounds. |
| 6959 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6960 | /* confdefs.h. */ |
| 6961 | _ACEOF |
| 6962 | cat confdefs.h >>conftest.$ac_ext |
| 6963 | cat >>conftest.$ac_ext <<_ACEOF |
| 6964 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6965 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6966 | int |
| 6967 | main () |
| 6968 | { |
| 6969 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 6970 | test_array [0] = 0 |
| 6971 | |
| 6972 | ; |
| 6973 | return 0; |
| 6974 | } |
| 6975 | _ACEOF |
| 6976 | rm -f conftest.$ac_objext |
| 6977 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6978 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6979 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6980 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6981 | rm -f conftest.er1 |
| 6982 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6984 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 6985 | { ac_try='test -z "$ac_c_werror_flag" |
| 6986 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6988 | (eval $ac_try) 2>&5 |
| 6989 | ac_status=$? |
| 6990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6991 | (exit $ac_status); }; } && |
| 6992 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6994 | (eval $ac_try) 2>&5 |
| 6995 | ac_status=$? |
| 6996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6997 | (exit $ac_status); }; }; then |
| 6998 | ac_lo=0 ac_mid=0 |
| 6999 | while :; do |
| 7000 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7001 | /* confdefs.h. */ |
| 7002 | _ACEOF |
| 7003 | cat confdefs.h >>conftest.$ac_ext |
| 7004 | cat >>conftest.$ac_ext <<_ACEOF |
| 7005 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7006 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7007 | int |
| 7008 | main () |
| 7009 | { |
| 7010 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 7011 | test_array [0] = 0 |
| 7012 | |
| 7013 | ; |
| 7014 | return 0; |
| 7015 | } |
| 7016 | _ACEOF |
| 7017 | rm -f conftest.$ac_objext |
| 7018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7019 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7020 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7021 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7022 | rm -f conftest.er1 |
| 7023 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7025 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 7026 | { ac_try='test -z "$ac_c_werror_flag" |
| 7027 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 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); }; } && |
| 7033 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7035 | (eval $ac_try) 2>&5 |
| 7036 | ac_status=$? |
| 7037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7038 | (exit $ac_status); }; }; then |
| 7039 | ac_hi=$ac_mid; break |
| 7040 | else |
| 7041 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7043 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7044 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7045 | if test $ac_lo -le $ac_mid; then |
| 7046 | ac_lo= ac_hi= |
| 7047 | break |
| 7048 | fi |
| 7049 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7050 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7051 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7052 | done |
| 7053 | else |
| 7054 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7056 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7057 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7058 | /* confdefs.h. */ |
| 7059 | _ACEOF |
| 7060 | cat confdefs.h >>conftest.$ac_ext |
| 7061 | cat >>conftest.$ac_ext <<_ACEOF |
| 7062 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7063 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7064 | int |
| 7065 | main () |
| 7066 | { |
| 7067 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 7068 | test_array [0] = 0 |
| 7069 | |
| 7070 | ; |
| 7071 | return 0; |
| 7072 | } |
| 7073 | _ACEOF |
| 7074 | rm -f conftest.$ac_objext |
| 7075 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7076 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7077 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7079 | rm -f conftest.er1 |
| 7080 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7082 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 7083 | { ac_try='test -z "$ac_c_werror_flag" |
| 7084 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7086 | (eval $ac_try) 2>&5 |
| 7087 | ac_status=$? |
| 7088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7089 | (exit $ac_status); }; } && |
| 7090 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7092 | (eval $ac_try) 2>&5 |
| 7093 | ac_status=$? |
| 7094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7095 | (exit $ac_status); }; }; then |
| 7096 | ac_hi=-1 ac_mid=-1 |
| 7097 | while :; do |
| 7098 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7099 | /* confdefs.h. */ |
| 7100 | _ACEOF |
| 7101 | cat confdefs.h >>conftest.$ac_ext |
| 7102 | cat >>conftest.$ac_ext <<_ACEOF |
| 7103 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7104 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7105 | int |
| 7106 | main () |
| 7107 | { |
| 7108 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 7109 | test_array [0] = 0 |
| 7110 | |
| 7111 | ; |
| 7112 | return 0; |
| 7113 | } |
| 7114 | _ACEOF |
| 7115 | rm -f conftest.$ac_objext |
| 7116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7117 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7118 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7120 | rm -f conftest.er1 |
| 7121 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7123 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 7124 | { ac_try='test -z "$ac_c_werror_flag" |
| 7125 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7127 | (eval $ac_try) 2>&5 |
| 7128 | ac_status=$? |
| 7129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7130 | (exit $ac_status); }; } && |
| 7131 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7133 | (eval $ac_try) 2>&5 |
| 7134 | ac_status=$? |
| 7135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7136 | (exit $ac_status); }; }; then |
| 7137 | ac_lo=$ac_mid; break |
| 7138 | else |
| 7139 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7141 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7142 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7143 | if test $ac_mid -le $ac_hi; then |
| 7144 | ac_lo= ac_hi= |
| 7145 | break |
| 7146 | fi |
| 7147 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7148 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7149 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7150 | done |
| 7151 | else |
| 7152 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7153 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7154 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7155 | ac_lo= ac_hi= |
| 7156 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7158 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7160 | # Binary search between lo and hi bounds. |
| 7161 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7162 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7163 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7164 | /* confdefs.h. */ |
| 7165 | _ACEOF |
| 7166 | cat confdefs.h >>conftest.$ac_ext |
| 7167 | cat >>conftest.$ac_ext <<_ACEOF |
| 7168 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7169 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7170 | int |
| 7171 | main () |
| 7172 | { |
| 7173 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 7174 | test_array [0] = 0 |
| 7175 | |
| 7176 | ; |
| 7177 | return 0; |
| 7178 | } |
| 7179 | _ACEOF |
| 7180 | rm -f conftest.$ac_objext |
| 7181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7182 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7183 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7184 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7185 | rm -f conftest.er1 |
| 7186 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7188 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 7189 | { ac_try='test -z "$ac_c_werror_flag" |
| 7190 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7192 | (eval $ac_try) 2>&5 |
| 7193 | ac_status=$? |
| 7194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7195 | (exit $ac_status); }; } && |
| 7196 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7198 | (eval $ac_try) 2>&5 |
| 7199 | ac_status=$? |
| 7200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7201 | (exit $ac_status); }; }; then |
| 7202 | ac_hi=$ac_mid |
| 7203 | else |
| 7204 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7205 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7206 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7207 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7208 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7209 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7210 | done |
| 7211 | case $ac_lo in |
| 7212 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7213 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 7214 | See \`config.log' for more details." >&5 |
| 7215 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 7216 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7217 | { (exit 1); exit 1; }; } ;; |
| 7218 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7219 | else |
| 7220 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 7221 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7222 | See \`config.log' for more details." >&5 |
| 7223 | echo "$as_me: error: cannot run test program while cross compiling |
| 7224 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7225 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7226 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7227 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7228 | /* confdefs.h. */ |
| 7229 | _ACEOF |
| 7230 | cat confdefs.h >>conftest.$ac_ext |
| 7231 | cat >>conftest.$ac_ext <<_ACEOF |
| 7232 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7233 | $ac_includes_default |
| 7234 | long longval () { return (long) (sizeof (void *)); } |
| 7235 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7236 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7237 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7238 | int |
| 7239 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7240 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7241 | |
| 7242 | FILE *f = fopen ("conftest.val", "w"); |
| 7243 | if (! f) |
| 7244 | exit (1); |
| 7245 | if (((long) (sizeof (void *))) < 0) |
| 7246 | { |
| 7247 | long i = longval (); |
| 7248 | if (i != ((long) (sizeof (void *)))) |
| 7249 | exit (1); |
| 7250 | fprintf (f, "%ld\n", i); |
| 7251 | } |
| 7252 | else |
| 7253 | { |
| 7254 | unsigned long i = ulongval (); |
| 7255 | if (i != ((long) (sizeof (void *)))) |
| 7256 | exit (1); |
| 7257 | fprintf (f, "%lu\n", i); |
| 7258 | } |
| 7259 | exit (ferror (f) || fclose (f) != 0); |
| 7260 | |
| 7261 | ; |
| 7262 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7263 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7264 | _ACEOF |
| 7265 | rm -f conftest$ac_exeext |
| 7266 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7267 | (eval $ac_link) 2>&5 |
| 7268 | ac_status=$? |
| 7269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7270 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7272 | (eval $ac_try) 2>&5 |
| 7273 | ac_status=$? |
| 7274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7275 | (exit $ac_status); }; }; then |
| 7276 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7277 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7278 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7279 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7281 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7282 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7283 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 7284 | See \`config.log' for more details." >&5 |
| 7285 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 7286 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7287 | { (exit 1); exit 1; }; } |
| 7288 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7289 | rm -f 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] | 7290 | fi |
| 7291 | fi |
| 7292 | rm -f conftest.val |
| 7293 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7294 | ac_cv_sizeof_void_p=0 |
| 7295 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7296 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7297 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 7298 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 7299 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7300 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7301 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7302 | |
| 7303 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7304 | echo "$as_me:$LINENO: checking for short" >&5 |
| 7305 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 7306 | if test "${ac_cv_type_short+set}" = set; then |
| 7307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7308 | else |
| 7309 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7310 | /* confdefs.h. */ |
| 7311 | _ACEOF |
| 7312 | cat confdefs.h >>conftest.$ac_ext |
| 7313 | cat >>conftest.$ac_ext <<_ACEOF |
| 7314 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7315 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7316 | int |
| 7317 | main () |
| 7318 | { |
| 7319 | if ((short *) 0) |
| 7320 | return 0; |
| 7321 | if (sizeof (short)) |
| 7322 | return 0; |
| 7323 | ; |
| 7324 | return 0; |
| 7325 | } |
| 7326 | _ACEOF |
| 7327 | rm -f conftest.$ac_objext |
| 7328 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7329 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7330 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7331 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7332 | rm -f conftest.er1 |
| 7333 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7335 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 7336 | { ac_try='test -z "$ac_c_werror_flag" |
| 7337 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7339 | (eval $ac_try) 2>&5 |
| 7340 | ac_status=$? |
| 7341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7342 | (exit $ac_status); }; } && |
| 7343 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7345 | (eval $ac_try) 2>&5 |
| 7346 | ac_status=$? |
| 7347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7348 | (exit $ac_status); }; }; then |
| 7349 | ac_cv_type_short=yes |
| 7350 | else |
| 7351 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7353 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7354 | ac_cv_type_short=no |
| 7355 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7356 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7357 | fi |
| 7358 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 7359 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 7360 | |
| 7361 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 7362 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 7363 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 7364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7365 | else |
| 7366 | if test "$ac_cv_type_short" = yes; then |
| 7367 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7368 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7369 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7370 | # This bug is HP SR number 8606223364. |
| 7371 | if test "$cross_compiling" = yes; then |
| 7372 | # Depending upon the size, compute the lo and hi bounds. |
| 7373 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7374 | /* confdefs.h. */ |
| 7375 | _ACEOF |
| 7376 | cat confdefs.h >>conftest.$ac_ext |
| 7377 | cat >>conftest.$ac_ext <<_ACEOF |
| 7378 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7379 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7380 | int |
| 7381 | main () |
| 7382 | { |
| 7383 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 7384 | test_array [0] = 0 |
| 7385 | |
| 7386 | ; |
| 7387 | return 0; |
| 7388 | } |
| 7389 | _ACEOF |
| 7390 | rm -f conftest.$ac_objext |
| 7391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7392 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7393 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7394 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7395 | rm -f conftest.er1 |
| 7396 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7398 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 7399 | { ac_try='test -z "$ac_c_werror_flag" |
| 7400 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7402 | (eval $ac_try) 2>&5 |
| 7403 | ac_status=$? |
| 7404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7405 | (exit $ac_status); }; } && |
| 7406 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7408 | (eval $ac_try) 2>&5 |
| 7409 | ac_status=$? |
| 7410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7411 | (exit $ac_status); }; }; then |
| 7412 | ac_lo=0 ac_mid=0 |
| 7413 | while :; do |
| 7414 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7415 | /* confdefs.h. */ |
| 7416 | _ACEOF |
| 7417 | cat confdefs.h >>conftest.$ac_ext |
| 7418 | cat >>conftest.$ac_ext <<_ACEOF |
| 7419 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7420 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7421 | int |
| 7422 | main () |
| 7423 | { |
| 7424 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7425 | test_array [0] = 0 |
| 7426 | |
| 7427 | ; |
| 7428 | return 0; |
| 7429 | } |
| 7430 | _ACEOF |
| 7431 | rm -f conftest.$ac_objext |
| 7432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7433 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7434 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7435 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7436 | rm -f conftest.er1 |
| 7437 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7439 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 7440 | { ac_try='test -z "$ac_c_werror_flag" |
| 7441 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7443 | (eval $ac_try) 2>&5 |
| 7444 | ac_status=$? |
| 7445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7446 | (exit $ac_status); }; } && |
| 7447 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7449 | (eval $ac_try) 2>&5 |
| 7450 | ac_status=$? |
| 7451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7452 | (exit $ac_status); }; }; then |
| 7453 | ac_hi=$ac_mid; break |
| 7454 | else |
| 7455 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7456 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7457 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7458 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7459 | if test $ac_lo -le $ac_mid; then |
| 7460 | ac_lo= ac_hi= |
| 7461 | break |
| 7462 | fi |
| 7463 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7464 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7465 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7466 | done |
| 7467 | else |
| 7468 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7470 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7471 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7472 | /* confdefs.h. */ |
| 7473 | _ACEOF |
| 7474 | cat confdefs.h >>conftest.$ac_ext |
| 7475 | cat >>conftest.$ac_ext <<_ACEOF |
| 7476 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7477 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7478 | int |
| 7479 | main () |
| 7480 | { |
| 7481 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 7482 | test_array [0] = 0 |
| 7483 | |
| 7484 | ; |
| 7485 | return 0; |
| 7486 | } |
| 7487 | _ACEOF |
| 7488 | rm -f conftest.$ac_objext |
| 7489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7490 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7491 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7492 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7493 | rm -f conftest.er1 |
| 7494 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7496 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 7497 | { ac_try='test -z "$ac_c_werror_flag" |
| 7498 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7500 | (eval $ac_try) 2>&5 |
| 7501 | ac_status=$? |
| 7502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7503 | (exit $ac_status); }; } && |
| 7504 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7506 | (eval $ac_try) 2>&5 |
| 7507 | ac_status=$? |
| 7508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7509 | (exit $ac_status); }; }; then |
| 7510 | ac_hi=-1 ac_mid=-1 |
| 7511 | while :; do |
| 7512 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7513 | /* confdefs.h. */ |
| 7514 | _ACEOF |
| 7515 | cat confdefs.h >>conftest.$ac_ext |
| 7516 | cat >>conftest.$ac_ext <<_ACEOF |
| 7517 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7518 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7519 | int |
| 7520 | main () |
| 7521 | { |
| 7522 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 7523 | test_array [0] = 0 |
| 7524 | |
| 7525 | ; |
| 7526 | return 0; |
| 7527 | } |
| 7528 | _ACEOF |
| 7529 | rm -f conftest.$ac_objext |
| 7530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7531 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7532 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7533 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7534 | rm -f conftest.er1 |
| 7535 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7537 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 7538 | { ac_try='test -z "$ac_c_werror_flag" |
| 7539 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7541 | (eval $ac_try) 2>&5 |
| 7542 | ac_status=$? |
| 7543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7544 | (exit $ac_status); }; } && |
| 7545 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7547 | (eval $ac_try) 2>&5 |
| 7548 | ac_status=$? |
| 7549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7550 | (exit $ac_status); }; }; then |
| 7551 | ac_lo=$ac_mid; break |
| 7552 | else |
| 7553 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7555 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7556 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7557 | if test $ac_mid -le $ac_hi; then |
| 7558 | ac_lo= ac_hi= |
| 7559 | break |
| 7560 | fi |
| 7561 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7562 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7564 | done |
| 7565 | else |
| 7566 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7568 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7569 | ac_lo= ac_hi= |
| 7570 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7571 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7572 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7573 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7574 | # Binary search between lo and hi bounds. |
| 7575 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7576 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7577 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7578 | /* confdefs.h. */ |
| 7579 | _ACEOF |
| 7580 | cat confdefs.h >>conftest.$ac_ext |
| 7581 | cat >>conftest.$ac_ext <<_ACEOF |
| 7582 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7583 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7584 | int |
| 7585 | main () |
| 7586 | { |
| 7587 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7588 | test_array [0] = 0 |
| 7589 | |
| 7590 | ; |
| 7591 | return 0; |
| 7592 | } |
| 7593 | _ACEOF |
| 7594 | rm -f conftest.$ac_objext |
| 7595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7596 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7597 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7598 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7599 | rm -f conftest.er1 |
| 7600 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7602 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 7603 | { ac_try='test -z "$ac_c_werror_flag" |
| 7604 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7606 | (eval $ac_try) 2>&5 |
| 7607 | ac_status=$? |
| 7608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7609 | (exit $ac_status); }; } && |
| 7610 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7612 | (eval $ac_try) 2>&5 |
| 7613 | ac_status=$? |
| 7614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7615 | (exit $ac_status); }; }; then |
| 7616 | ac_hi=$ac_mid |
| 7617 | else |
| 7618 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7620 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7621 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7622 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7624 | done |
| 7625 | case $ac_lo in |
| 7626 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7627 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7628 | See \`config.log' for more details." >&5 |
| 7629 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7630 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7631 | { (exit 1); exit 1; }; } ;; |
| 7632 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7633 | else |
| 7634 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 7635 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7636 | See \`config.log' for more details." >&5 |
| 7637 | echo "$as_me: error: cannot run test program while cross compiling |
| 7638 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7639 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7640 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7641 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7642 | /* confdefs.h. */ |
| 7643 | _ACEOF |
| 7644 | cat confdefs.h >>conftest.$ac_ext |
| 7645 | cat >>conftest.$ac_ext <<_ACEOF |
| 7646 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7647 | $ac_includes_default |
| 7648 | long longval () { return (long) (sizeof (short)); } |
| 7649 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7650 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7651 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7652 | int |
| 7653 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7654 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7655 | |
| 7656 | FILE *f = fopen ("conftest.val", "w"); |
| 7657 | if (! f) |
| 7658 | exit (1); |
| 7659 | if (((long) (sizeof (short))) < 0) |
| 7660 | { |
| 7661 | long i = longval (); |
| 7662 | if (i != ((long) (sizeof (short)))) |
| 7663 | exit (1); |
| 7664 | fprintf (f, "%ld\n", i); |
| 7665 | } |
| 7666 | else |
| 7667 | { |
| 7668 | unsigned long i = ulongval (); |
| 7669 | if (i != ((long) (sizeof (short)))) |
| 7670 | exit (1); |
| 7671 | fprintf (f, "%lu\n", i); |
| 7672 | } |
| 7673 | exit (ferror (f) || fclose (f) != 0); |
| 7674 | |
| 7675 | ; |
| 7676 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7677 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7678 | _ACEOF |
| 7679 | rm -f conftest$ac_exeext |
| 7680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7681 | (eval $ac_link) 2>&5 |
| 7682 | ac_status=$? |
| 7683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7684 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7686 | (eval $ac_try) 2>&5 |
| 7687 | ac_status=$? |
| 7688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7689 | (exit $ac_status); }; }; then |
| 7690 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7691 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7692 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7693 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7695 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7696 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7697 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7698 | See \`config.log' for more details." >&5 |
| 7699 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7700 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7701 | { (exit 1); exit 1; }; } |
| 7702 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7703 | rm -f 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] | 7704 | fi |
| 7705 | fi |
| 7706 | rm -f conftest.val |
| 7707 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7708 | ac_cv_sizeof_short=0 |
| 7709 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7710 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7711 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 7712 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 7713 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7714 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7715 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7716 | |
| 7717 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7718 | echo "$as_me:$LINENO: checking for float" >&5 |
| 7719 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 7720 | if test "${ac_cv_type_float+set}" = set; then |
| 7721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7722 | else |
| 7723 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7724 | /* confdefs.h. */ |
| 7725 | _ACEOF |
| 7726 | cat confdefs.h >>conftest.$ac_ext |
| 7727 | cat >>conftest.$ac_ext <<_ACEOF |
| 7728 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7729 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7730 | int |
| 7731 | main () |
| 7732 | { |
| 7733 | if ((float *) 0) |
| 7734 | return 0; |
| 7735 | if (sizeof (float)) |
| 7736 | return 0; |
| 7737 | ; |
| 7738 | return 0; |
| 7739 | } |
| 7740 | _ACEOF |
| 7741 | rm -f conftest.$ac_objext |
| 7742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7743 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7744 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7746 | rm -f conftest.er1 |
| 7747 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7749 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 7750 | { ac_try='test -z "$ac_c_werror_flag" |
| 7751 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7753 | (eval $ac_try) 2>&5 |
| 7754 | ac_status=$? |
| 7755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7756 | (exit $ac_status); }; } && |
| 7757 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7759 | (eval $ac_try) 2>&5 |
| 7760 | ac_status=$? |
| 7761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7762 | (exit $ac_status); }; }; then |
| 7763 | ac_cv_type_float=yes |
| 7764 | else |
| 7765 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7767 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7768 | ac_cv_type_float=no |
| 7769 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7771 | fi |
| 7772 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 7773 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 7774 | |
| 7775 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 7776 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 7777 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 7778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7779 | else |
| 7780 | if test "$ac_cv_type_float" = yes; then |
| 7781 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7782 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7783 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7784 | # This bug is HP SR number 8606223364. |
| 7785 | if test "$cross_compiling" = yes; then |
| 7786 | # Depending upon the size, compute the lo and hi bounds. |
| 7787 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7788 | /* confdefs.h. */ |
| 7789 | _ACEOF |
| 7790 | cat confdefs.h >>conftest.$ac_ext |
| 7791 | cat >>conftest.$ac_ext <<_ACEOF |
| 7792 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7793 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7794 | int |
| 7795 | main () |
| 7796 | { |
| 7797 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 7798 | test_array [0] = 0 |
| 7799 | |
| 7800 | ; |
| 7801 | return 0; |
| 7802 | } |
| 7803 | _ACEOF |
| 7804 | rm -f conftest.$ac_objext |
| 7805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7806 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7807 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7809 | rm -f conftest.er1 |
| 7810 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7812 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 7813 | { ac_try='test -z "$ac_c_werror_flag" |
| 7814 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7816 | (eval $ac_try) 2>&5 |
| 7817 | ac_status=$? |
| 7818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7819 | (exit $ac_status); }; } && |
| 7820 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7822 | (eval $ac_try) 2>&5 |
| 7823 | ac_status=$? |
| 7824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7825 | (exit $ac_status); }; }; then |
| 7826 | ac_lo=0 ac_mid=0 |
| 7827 | while :; do |
| 7828 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7829 | /* confdefs.h. */ |
| 7830 | _ACEOF |
| 7831 | cat confdefs.h >>conftest.$ac_ext |
| 7832 | cat >>conftest.$ac_ext <<_ACEOF |
| 7833 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7834 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7835 | int |
| 7836 | main () |
| 7837 | { |
| 7838 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7839 | test_array [0] = 0 |
| 7840 | |
| 7841 | ; |
| 7842 | return 0; |
| 7843 | } |
| 7844 | _ACEOF |
| 7845 | rm -f conftest.$ac_objext |
| 7846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7847 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7848 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7849 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7850 | rm -f conftest.er1 |
| 7851 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7853 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 7854 | { ac_try='test -z "$ac_c_werror_flag" |
| 7855 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7857 | (eval $ac_try) 2>&5 |
| 7858 | ac_status=$? |
| 7859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7860 | (exit $ac_status); }; } && |
| 7861 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7863 | (eval $ac_try) 2>&5 |
| 7864 | ac_status=$? |
| 7865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7866 | (exit $ac_status); }; }; then |
| 7867 | ac_hi=$ac_mid; break |
| 7868 | else |
| 7869 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7871 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7872 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7873 | if test $ac_lo -le $ac_mid; then |
| 7874 | ac_lo= ac_hi= |
| 7875 | break |
| 7876 | fi |
| 7877 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7878 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7879 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7880 | done |
| 7881 | else |
| 7882 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7884 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7885 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7886 | /* confdefs.h. */ |
| 7887 | _ACEOF |
| 7888 | cat confdefs.h >>conftest.$ac_ext |
| 7889 | cat >>conftest.$ac_ext <<_ACEOF |
| 7890 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7891 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7892 | int |
| 7893 | main () |
| 7894 | { |
| 7895 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 7896 | test_array [0] = 0 |
| 7897 | |
| 7898 | ; |
| 7899 | return 0; |
| 7900 | } |
| 7901 | _ACEOF |
| 7902 | rm -f conftest.$ac_objext |
| 7903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7904 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7905 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7906 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7907 | rm -f conftest.er1 |
| 7908 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7910 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 7911 | { ac_try='test -z "$ac_c_werror_flag" |
| 7912 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7914 | (eval $ac_try) 2>&5 |
| 7915 | ac_status=$? |
| 7916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7917 | (exit $ac_status); }; } && |
| 7918 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7920 | (eval $ac_try) 2>&5 |
| 7921 | ac_status=$? |
| 7922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7923 | (exit $ac_status); }; }; then |
| 7924 | ac_hi=-1 ac_mid=-1 |
| 7925 | while :; do |
| 7926 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7927 | /* confdefs.h. */ |
| 7928 | _ACEOF |
| 7929 | cat confdefs.h >>conftest.$ac_ext |
| 7930 | cat >>conftest.$ac_ext <<_ACEOF |
| 7931 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7932 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7933 | int |
| 7934 | main () |
| 7935 | { |
| 7936 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 7937 | test_array [0] = 0 |
| 7938 | |
| 7939 | ; |
| 7940 | return 0; |
| 7941 | } |
| 7942 | _ACEOF |
| 7943 | rm -f conftest.$ac_objext |
| 7944 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7945 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7946 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7947 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7948 | rm -f conftest.er1 |
| 7949 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7951 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 7952 | { ac_try='test -z "$ac_c_werror_flag" |
| 7953 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7955 | (eval $ac_try) 2>&5 |
| 7956 | ac_status=$? |
| 7957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7958 | (exit $ac_status); }; } && |
| 7959 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7961 | (eval $ac_try) 2>&5 |
| 7962 | ac_status=$? |
| 7963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7964 | (exit $ac_status); }; }; then |
| 7965 | ac_lo=$ac_mid; break |
| 7966 | else |
| 7967 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7969 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7970 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7971 | if test $ac_mid -le $ac_hi; then |
| 7972 | ac_lo= ac_hi= |
| 7973 | break |
| 7974 | fi |
| 7975 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7976 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7977 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7978 | done |
| 7979 | else |
| 7980 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7982 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7983 | ac_lo= ac_hi= |
| 7984 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7985 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7986 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7987 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7988 | # Binary search between lo and hi bounds. |
| 7989 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7990 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7991 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7992 | /* confdefs.h. */ |
| 7993 | _ACEOF |
| 7994 | cat confdefs.h >>conftest.$ac_ext |
| 7995 | cat >>conftest.$ac_ext <<_ACEOF |
| 7996 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7997 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7998 | int |
| 7999 | main () |
| 8000 | { |
| 8001 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 8002 | test_array [0] = 0 |
| 8003 | |
| 8004 | ; |
| 8005 | return 0; |
| 8006 | } |
| 8007 | _ACEOF |
| 8008 | rm -f conftest.$ac_objext |
| 8009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8010 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8011 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8012 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8013 | rm -f conftest.er1 |
| 8014 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8016 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 8017 | { ac_try='test -z "$ac_c_werror_flag" |
| 8018 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8020 | (eval $ac_try) 2>&5 |
| 8021 | ac_status=$? |
| 8022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8023 | (exit $ac_status); }; } && |
| 8024 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8026 | (eval $ac_try) 2>&5 |
| 8027 | ac_status=$? |
| 8028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8029 | (exit $ac_status); }; }; then |
| 8030 | ac_hi=$ac_mid |
| 8031 | else |
| 8032 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8034 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8035 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8036 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8037 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8038 | done |
| 8039 | case $ac_lo in |
| 8040 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8041 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8042 | See \`config.log' for more details." >&5 |
| 8043 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8044 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8045 | { (exit 1); exit 1; }; } ;; |
| 8046 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8047 | else |
| 8048 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 8049 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8050 | See \`config.log' for more details." >&5 |
| 8051 | echo "$as_me: error: cannot run test program while cross compiling |
| 8052 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8053 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8054 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8055 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8056 | /* confdefs.h. */ |
| 8057 | _ACEOF |
| 8058 | cat confdefs.h >>conftest.$ac_ext |
| 8059 | cat >>conftest.$ac_ext <<_ACEOF |
| 8060 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8061 | $ac_includes_default |
| 8062 | long longval () { return (long) (sizeof (float)); } |
| 8063 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8064 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8065 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8066 | int |
| 8067 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8068 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8069 | |
| 8070 | FILE *f = fopen ("conftest.val", "w"); |
| 8071 | if (! f) |
| 8072 | exit (1); |
| 8073 | if (((long) (sizeof (float))) < 0) |
| 8074 | { |
| 8075 | long i = longval (); |
| 8076 | if (i != ((long) (sizeof (float)))) |
| 8077 | exit (1); |
| 8078 | fprintf (f, "%ld\n", i); |
| 8079 | } |
| 8080 | else |
| 8081 | { |
| 8082 | unsigned long i = ulongval (); |
| 8083 | if (i != ((long) (sizeof (float)))) |
| 8084 | exit (1); |
| 8085 | fprintf (f, "%lu\n", i); |
| 8086 | } |
| 8087 | exit (ferror (f) || fclose (f) != 0); |
| 8088 | |
| 8089 | ; |
| 8090 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8091 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8092 | _ACEOF |
| 8093 | rm -f conftest$ac_exeext |
| 8094 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8095 | (eval $ac_link) 2>&5 |
| 8096 | ac_status=$? |
| 8097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8098 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8100 | (eval $ac_try) 2>&5 |
| 8101 | ac_status=$? |
| 8102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8103 | (exit $ac_status); }; }; then |
| 8104 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8105 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8106 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8107 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8109 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8110 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8111 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8112 | See \`config.log' for more details." >&5 |
| 8113 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8114 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8115 | { (exit 1); exit 1; }; } |
| 8116 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8117 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8118 | fi |
| 8119 | fi |
| 8120 | rm -f conftest.val |
| 8121 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8122 | ac_cv_sizeof_float=0 |
| 8123 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8124 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8125 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 8126 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 8127 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8128 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8129 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8130 | |
| 8131 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8132 | echo "$as_me:$LINENO: checking for double" >&5 |
| 8133 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 8134 | if test "${ac_cv_type_double+set}" = set; then |
| 8135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8136 | else |
| 8137 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8138 | /* confdefs.h. */ |
| 8139 | _ACEOF |
| 8140 | cat confdefs.h >>conftest.$ac_ext |
| 8141 | cat >>conftest.$ac_ext <<_ACEOF |
| 8142 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8143 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8144 | int |
| 8145 | main () |
| 8146 | { |
| 8147 | if ((double *) 0) |
| 8148 | return 0; |
| 8149 | if (sizeof (double)) |
| 8150 | return 0; |
| 8151 | ; |
| 8152 | return 0; |
| 8153 | } |
| 8154 | _ACEOF |
| 8155 | rm -f conftest.$ac_objext |
| 8156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8157 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8158 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8159 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8160 | rm -f conftest.er1 |
| 8161 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8163 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 8164 | { ac_try='test -z "$ac_c_werror_flag" |
| 8165 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8167 | (eval $ac_try) 2>&5 |
| 8168 | ac_status=$? |
| 8169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8170 | (exit $ac_status); }; } && |
| 8171 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8173 | (eval $ac_try) 2>&5 |
| 8174 | ac_status=$? |
| 8175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8176 | (exit $ac_status); }; }; then |
| 8177 | ac_cv_type_double=yes |
| 8178 | else |
| 8179 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8181 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8182 | ac_cv_type_double=no |
| 8183 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8185 | fi |
| 8186 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 8187 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 8188 | |
| 8189 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 8190 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 8191 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 8192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8193 | else |
| 8194 | if test "$ac_cv_type_double" = yes; then |
| 8195 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8196 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8197 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8198 | # This bug is HP SR number 8606223364. |
| 8199 | if test "$cross_compiling" = yes; then |
| 8200 | # Depending upon the size, compute the lo and hi bounds. |
| 8201 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8202 | /* confdefs.h. */ |
| 8203 | _ACEOF |
| 8204 | cat confdefs.h >>conftest.$ac_ext |
| 8205 | cat >>conftest.$ac_ext <<_ACEOF |
| 8206 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8207 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8208 | int |
| 8209 | main () |
| 8210 | { |
| 8211 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 8212 | test_array [0] = 0 |
| 8213 | |
| 8214 | ; |
| 8215 | return 0; |
| 8216 | } |
| 8217 | _ACEOF |
| 8218 | rm -f conftest.$ac_objext |
| 8219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8220 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8221 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8223 | rm -f conftest.er1 |
| 8224 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8226 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 8227 | { ac_try='test -z "$ac_c_werror_flag" |
| 8228 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 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); }; } && |
| 8234 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8236 | (eval $ac_try) 2>&5 |
| 8237 | ac_status=$? |
| 8238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8239 | (exit $ac_status); }; }; then |
| 8240 | ac_lo=0 ac_mid=0 |
| 8241 | while :; do |
| 8242 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8243 | /* confdefs.h. */ |
| 8244 | _ACEOF |
| 8245 | cat confdefs.h >>conftest.$ac_ext |
| 8246 | cat >>conftest.$ac_ext <<_ACEOF |
| 8247 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8248 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8249 | int |
| 8250 | main () |
| 8251 | { |
| 8252 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8253 | test_array [0] = 0 |
| 8254 | |
| 8255 | ; |
| 8256 | return 0; |
| 8257 | } |
| 8258 | _ACEOF |
| 8259 | rm -f conftest.$ac_objext |
| 8260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8261 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8262 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8264 | rm -f conftest.er1 |
| 8265 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8267 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 8268 | { ac_try='test -z "$ac_c_werror_flag" |
| 8269 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8271 | (eval $ac_try) 2>&5 |
| 8272 | ac_status=$? |
| 8273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8274 | (exit $ac_status); }; } && |
| 8275 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8277 | (eval $ac_try) 2>&5 |
| 8278 | ac_status=$? |
| 8279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8280 | (exit $ac_status); }; }; then |
| 8281 | ac_hi=$ac_mid; break |
| 8282 | else |
| 8283 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8285 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8286 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8287 | if test $ac_lo -le $ac_mid; then |
| 8288 | ac_lo= ac_hi= |
| 8289 | break |
| 8290 | fi |
| 8291 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8292 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8293 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8294 | done |
| 8295 | else |
| 8296 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8297 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8298 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8299 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8300 | /* confdefs.h. */ |
| 8301 | _ACEOF |
| 8302 | cat confdefs.h >>conftest.$ac_ext |
| 8303 | cat >>conftest.$ac_ext <<_ACEOF |
| 8304 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8305 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8306 | int |
| 8307 | main () |
| 8308 | { |
| 8309 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 8310 | test_array [0] = 0 |
| 8311 | |
| 8312 | ; |
| 8313 | return 0; |
| 8314 | } |
| 8315 | _ACEOF |
| 8316 | rm -f conftest.$ac_objext |
| 8317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8318 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8319 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8320 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8321 | rm -f conftest.er1 |
| 8322 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8324 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 8325 | { ac_try='test -z "$ac_c_werror_flag" |
| 8326 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8328 | (eval $ac_try) 2>&5 |
| 8329 | ac_status=$? |
| 8330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8331 | (exit $ac_status); }; } && |
| 8332 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8334 | (eval $ac_try) 2>&5 |
| 8335 | ac_status=$? |
| 8336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8337 | (exit $ac_status); }; }; then |
| 8338 | ac_hi=-1 ac_mid=-1 |
| 8339 | while :; do |
| 8340 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8341 | /* confdefs.h. */ |
| 8342 | _ACEOF |
| 8343 | cat confdefs.h >>conftest.$ac_ext |
| 8344 | cat >>conftest.$ac_ext <<_ACEOF |
| 8345 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8346 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8347 | int |
| 8348 | main () |
| 8349 | { |
| 8350 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 8351 | test_array [0] = 0 |
| 8352 | |
| 8353 | ; |
| 8354 | return 0; |
| 8355 | } |
| 8356 | _ACEOF |
| 8357 | rm -f conftest.$ac_objext |
| 8358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8359 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8360 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8362 | rm -f conftest.er1 |
| 8363 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8365 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 8366 | { ac_try='test -z "$ac_c_werror_flag" |
| 8367 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8369 | (eval $ac_try) 2>&5 |
| 8370 | ac_status=$? |
| 8371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8372 | (exit $ac_status); }; } && |
| 8373 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8375 | (eval $ac_try) 2>&5 |
| 8376 | ac_status=$? |
| 8377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8378 | (exit $ac_status); }; }; then |
| 8379 | ac_lo=$ac_mid; break |
| 8380 | else |
| 8381 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8382 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8383 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8384 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8385 | if test $ac_mid -le $ac_hi; then |
| 8386 | ac_lo= ac_hi= |
| 8387 | break |
| 8388 | fi |
| 8389 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8390 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8391 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8392 | done |
| 8393 | else |
| 8394 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8395 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8396 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8397 | ac_lo= ac_hi= |
| 8398 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8399 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8400 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8401 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8402 | # Binary search between lo and hi bounds. |
| 8403 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8404 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8405 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8406 | /* confdefs.h. */ |
| 8407 | _ACEOF |
| 8408 | cat confdefs.h >>conftest.$ac_ext |
| 8409 | cat >>conftest.$ac_ext <<_ACEOF |
| 8410 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8411 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8412 | int |
| 8413 | main () |
| 8414 | { |
| 8415 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8416 | test_array [0] = 0 |
| 8417 | |
| 8418 | ; |
| 8419 | return 0; |
| 8420 | } |
| 8421 | _ACEOF |
| 8422 | rm -f conftest.$ac_objext |
| 8423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8424 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8425 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8427 | rm -f conftest.er1 |
| 8428 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8430 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 8431 | { ac_try='test -z "$ac_c_werror_flag" |
| 8432 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8434 | (eval $ac_try) 2>&5 |
| 8435 | ac_status=$? |
| 8436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8437 | (exit $ac_status); }; } && |
| 8438 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8440 | (eval $ac_try) 2>&5 |
| 8441 | ac_status=$? |
| 8442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8443 | (exit $ac_status); }; }; then |
| 8444 | ac_hi=$ac_mid |
| 8445 | else |
| 8446 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8448 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8449 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8450 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8451 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8452 | done |
| 8453 | case $ac_lo in |
| 8454 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8455 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8456 | See \`config.log' for more details." >&5 |
| 8457 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8458 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8459 | { (exit 1); exit 1; }; } ;; |
| 8460 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8461 | else |
| 8462 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 8463 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8464 | See \`config.log' for more details." >&5 |
| 8465 | echo "$as_me: error: cannot run test program while cross compiling |
| 8466 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8467 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8468 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8469 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8470 | /* confdefs.h. */ |
| 8471 | _ACEOF |
| 8472 | cat confdefs.h >>conftest.$ac_ext |
| 8473 | cat >>conftest.$ac_ext <<_ACEOF |
| 8474 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8475 | $ac_includes_default |
| 8476 | long longval () { return (long) (sizeof (double)); } |
| 8477 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8478 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8479 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8480 | int |
| 8481 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8482 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8483 | |
| 8484 | FILE *f = fopen ("conftest.val", "w"); |
| 8485 | if (! f) |
| 8486 | exit (1); |
| 8487 | if (((long) (sizeof (double))) < 0) |
| 8488 | { |
| 8489 | long i = longval (); |
| 8490 | if (i != ((long) (sizeof (double)))) |
| 8491 | exit (1); |
| 8492 | fprintf (f, "%ld\n", i); |
| 8493 | } |
| 8494 | else |
| 8495 | { |
| 8496 | unsigned long i = ulongval (); |
| 8497 | if (i != ((long) (sizeof (double)))) |
| 8498 | exit (1); |
| 8499 | fprintf (f, "%lu\n", i); |
| 8500 | } |
| 8501 | exit (ferror (f) || fclose (f) != 0); |
| 8502 | |
| 8503 | ; |
| 8504 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8505 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8506 | _ACEOF |
| 8507 | rm -f conftest$ac_exeext |
| 8508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8509 | (eval $ac_link) 2>&5 |
| 8510 | ac_status=$? |
| 8511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8512 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8514 | (eval $ac_try) 2>&5 |
| 8515 | ac_status=$? |
| 8516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8517 | (exit $ac_status); }; }; then |
| 8518 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8519 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8520 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8521 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8523 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8524 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8525 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8526 | See \`config.log' for more details." >&5 |
| 8527 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8528 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8529 | { (exit 1); exit 1; }; } |
| 8530 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8531 | rm -f 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] | 8532 | fi |
| 8533 | fi |
| 8534 | rm -f conftest.val |
| 8535 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8536 | ac_cv_sizeof_double=0 |
| 8537 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8538 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8539 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 8540 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 8541 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8542 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8543 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8544 | |
| 8545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8546 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 8547 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 8548 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 8549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8550 | else |
| 8551 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8552 | /* confdefs.h. */ |
| 8553 | _ACEOF |
| 8554 | cat confdefs.h >>conftest.$ac_ext |
| 8555 | cat >>conftest.$ac_ext <<_ACEOF |
| 8556 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8557 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8558 | int |
| 8559 | main () |
| 8560 | { |
| 8561 | if ((fpos_t *) 0) |
| 8562 | return 0; |
| 8563 | if (sizeof (fpos_t)) |
| 8564 | return 0; |
| 8565 | ; |
| 8566 | return 0; |
| 8567 | } |
| 8568 | _ACEOF |
| 8569 | rm -f conftest.$ac_objext |
| 8570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8571 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8572 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8574 | rm -f conftest.er1 |
| 8575 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8577 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 8578 | { ac_try='test -z "$ac_c_werror_flag" |
| 8579 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8581 | (eval $ac_try) 2>&5 |
| 8582 | ac_status=$? |
| 8583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8584 | (exit $ac_status); }; } && |
| 8585 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8587 | (eval $ac_try) 2>&5 |
| 8588 | ac_status=$? |
| 8589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8590 | (exit $ac_status); }; }; then |
| 8591 | ac_cv_type_fpos_t=yes |
| 8592 | else |
| 8593 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8595 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8596 | ac_cv_type_fpos_t=no |
| 8597 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8598 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8599 | fi |
| 8600 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 8601 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 8602 | |
| 8603 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 8604 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 8605 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 8606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8607 | else |
| 8608 | if test "$ac_cv_type_fpos_t" = yes; then |
| 8609 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8610 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8611 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8612 | # This bug is HP SR number 8606223364. |
| 8613 | if test "$cross_compiling" = yes; then |
| 8614 | # Depending upon the size, compute the lo and hi bounds. |
| 8615 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8616 | /* confdefs.h. */ |
| 8617 | _ACEOF |
| 8618 | cat confdefs.h >>conftest.$ac_ext |
| 8619 | cat >>conftest.$ac_ext <<_ACEOF |
| 8620 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8621 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8622 | int |
| 8623 | main () |
| 8624 | { |
| 8625 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 8626 | test_array [0] = 0 |
| 8627 | |
| 8628 | ; |
| 8629 | return 0; |
| 8630 | } |
| 8631 | _ACEOF |
| 8632 | rm -f conftest.$ac_objext |
| 8633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8634 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8635 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8636 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8637 | rm -f conftest.er1 |
| 8638 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8640 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 8641 | { ac_try='test -z "$ac_c_werror_flag" |
| 8642 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8644 | (eval $ac_try) 2>&5 |
| 8645 | ac_status=$? |
| 8646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8647 | (exit $ac_status); }; } && |
| 8648 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8650 | (eval $ac_try) 2>&5 |
| 8651 | ac_status=$? |
| 8652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8653 | (exit $ac_status); }; }; then |
| 8654 | ac_lo=0 ac_mid=0 |
| 8655 | while :; do |
| 8656 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8657 | /* confdefs.h. */ |
| 8658 | _ACEOF |
| 8659 | cat confdefs.h >>conftest.$ac_ext |
| 8660 | cat >>conftest.$ac_ext <<_ACEOF |
| 8661 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8662 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8663 | int |
| 8664 | main () |
| 8665 | { |
| 8666 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8667 | test_array [0] = 0 |
| 8668 | |
| 8669 | ; |
| 8670 | return 0; |
| 8671 | } |
| 8672 | _ACEOF |
| 8673 | rm -f conftest.$ac_objext |
| 8674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8675 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8676 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8678 | rm -f conftest.er1 |
| 8679 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8681 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 8682 | { ac_try='test -z "$ac_c_werror_flag" |
| 8683 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8685 | (eval $ac_try) 2>&5 |
| 8686 | ac_status=$? |
| 8687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8688 | (exit $ac_status); }; } && |
| 8689 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8691 | (eval $ac_try) 2>&5 |
| 8692 | ac_status=$? |
| 8693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8694 | (exit $ac_status); }; }; then |
| 8695 | ac_hi=$ac_mid; break |
| 8696 | else |
| 8697 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8699 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8700 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8701 | if test $ac_lo -le $ac_mid; then |
| 8702 | ac_lo= ac_hi= |
| 8703 | break |
| 8704 | fi |
| 8705 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8706 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8707 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8708 | done |
| 8709 | else |
| 8710 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8712 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8713 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8714 | /* confdefs.h. */ |
| 8715 | _ACEOF |
| 8716 | cat confdefs.h >>conftest.$ac_ext |
| 8717 | cat >>conftest.$ac_ext <<_ACEOF |
| 8718 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8719 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8720 | int |
| 8721 | main () |
| 8722 | { |
| 8723 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 8724 | test_array [0] = 0 |
| 8725 | |
| 8726 | ; |
| 8727 | return 0; |
| 8728 | } |
| 8729 | _ACEOF |
| 8730 | rm -f conftest.$ac_objext |
| 8731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8732 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8733 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8735 | rm -f conftest.er1 |
| 8736 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8738 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 8739 | { ac_try='test -z "$ac_c_werror_flag" |
| 8740 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8742 | (eval $ac_try) 2>&5 |
| 8743 | ac_status=$? |
| 8744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8745 | (exit $ac_status); }; } && |
| 8746 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8748 | (eval $ac_try) 2>&5 |
| 8749 | ac_status=$? |
| 8750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8751 | (exit $ac_status); }; }; then |
| 8752 | ac_hi=-1 ac_mid=-1 |
| 8753 | while :; do |
| 8754 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8755 | /* confdefs.h. */ |
| 8756 | _ACEOF |
| 8757 | cat confdefs.h >>conftest.$ac_ext |
| 8758 | cat >>conftest.$ac_ext <<_ACEOF |
| 8759 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8760 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8761 | int |
| 8762 | main () |
| 8763 | { |
| 8764 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 8765 | test_array [0] = 0 |
| 8766 | |
| 8767 | ; |
| 8768 | return 0; |
| 8769 | } |
| 8770 | _ACEOF |
| 8771 | rm -f conftest.$ac_objext |
| 8772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8773 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8774 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8776 | rm -f conftest.er1 |
| 8777 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8779 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 8780 | { ac_try='test -z "$ac_c_werror_flag" |
| 8781 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8783 | (eval $ac_try) 2>&5 |
| 8784 | ac_status=$? |
| 8785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8786 | (exit $ac_status); }; } && |
| 8787 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8789 | (eval $ac_try) 2>&5 |
| 8790 | ac_status=$? |
| 8791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8792 | (exit $ac_status); }; }; then |
| 8793 | ac_lo=$ac_mid; break |
| 8794 | else |
| 8795 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8797 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8798 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8799 | if test $ac_mid -le $ac_hi; then |
| 8800 | ac_lo= ac_hi= |
| 8801 | break |
| 8802 | fi |
| 8803 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8804 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8805 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8806 | done |
| 8807 | else |
| 8808 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8810 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8811 | ac_lo= ac_hi= |
| 8812 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8814 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8815 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8816 | # Binary search between lo and hi bounds. |
| 8817 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8818 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8819 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8820 | /* confdefs.h. */ |
| 8821 | _ACEOF |
| 8822 | cat confdefs.h >>conftest.$ac_ext |
| 8823 | cat >>conftest.$ac_ext <<_ACEOF |
| 8824 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8825 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8826 | int |
| 8827 | main () |
| 8828 | { |
| 8829 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8830 | test_array [0] = 0 |
| 8831 | |
| 8832 | ; |
| 8833 | return 0; |
| 8834 | } |
| 8835 | _ACEOF |
| 8836 | rm -f conftest.$ac_objext |
| 8837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8838 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8839 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8841 | rm -f conftest.er1 |
| 8842 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8844 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 8845 | { ac_try='test -z "$ac_c_werror_flag" |
| 8846 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8848 | (eval $ac_try) 2>&5 |
| 8849 | ac_status=$? |
| 8850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8851 | (exit $ac_status); }; } && |
| 8852 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8854 | (eval $ac_try) 2>&5 |
| 8855 | ac_status=$? |
| 8856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8857 | (exit $ac_status); }; }; then |
| 8858 | ac_hi=$ac_mid |
| 8859 | else |
| 8860 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8862 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8863 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8864 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8865 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8866 | done |
| 8867 | case $ac_lo in |
| 8868 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8869 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 8870 | See \`config.log' for more details." >&5 |
| 8871 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 8872 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8873 | { (exit 1); exit 1; }; } ;; |
| 8874 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8875 | else |
| 8876 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 8877 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8878 | See \`config.log' for more details." >&5 |
| 8879 | echo "$as_me: error: cannot run test program while cross compiling |
| 8880 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8881 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8882 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8883 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8884 | /* confdefs.h. */ |
| 8885 | _ACEOF |
| 8886 | cat confdefs.h >>conftest.$ac_ext |
| 8887 | cat >>conftest.$ac_ext <<_ACEOF |
| 8888 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8889 | $ac_includes_default |
| 8890 | long longval () { return (long) (sizeof (fpos_t)); } |
| 8891 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8892 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8893 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8894 | int |
| 8895 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8896 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8897 | |
| 8898 | FILE *f = fopen ("conftest.val", "w"); |
| 8899 | if (! f) |
| 8900 | exit (1); |
| 8901 | if (((long) (sizeof (fpos_t))) < 0) |
| 8902 | { |
| 8903 | long i = longval (); |
| 8904 | if (i != ((long) (sizeof (fpos_t)))) |
| 8905 | exit (1); |
| 8906 | fprintf (f, "%ld\n", i); |
| 8907 | } |
| 8908 | else |
| 8909 | { |
| 8910 | unsigned long i = ulongval (); |
| 8911 | if (i != ((long) (sizeof (fpos_t)))) |
| 8912 | exit (1); |
| 8913 | fprintf (f, "%lu\n", i); |
| 8914 | } |
| 8915 | exit (ferror (f) || fclose (f) != 0); |
| 8916 | |
| 8917 | ; |
| 8918 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8919 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8920 | _ACEOF |
| 8921 | rm -f conftest$ac_exeext |
| 8922 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8923 | (eval $ac_link) 2>&5 |
| 8924 | ac_status=$? |
| 8925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8926 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8928 | (eval $ac_try) 2>&5 |
| 8929 | ac_status=$? |
| 8930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8931 | (exit $ac_status); }; }; then |
| 8932 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8933 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8934 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8935 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8937 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8938 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8939 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 8940 | See \`config.log' for more details." >&5 |
| 8941 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 8942 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8943 | { (exit 1); exit 1; }; } |
| 8944 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8945 | rm -f 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] | 8946 | fi |
| 8947 | fi |
| 8948 | rm -f conftest.val |
| 8949 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8950 | ac_cv_sizeof_fpos_t=0 |
| 8951 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8952 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8953 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 8954 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 8955 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8956 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8957 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8958 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8959 | |
| 8960 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8961 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 8962 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8963 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8964 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8965 | /* confdefs.h. */ |
| 8966 | _ACEOF |
| 8967 | cat confdefs.h >>conftest.$ac_ext |
| 8968 | cat >>conftest.$ac_ext <<_ACEOF |
| 8969 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8970 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8971 | int |
| 8972 | main () |
| 8973 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8974 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8975 | ; |
| 8976 | return 0; |
| 8977 | } |
| 8978 | _ACEOF |
| 8979 | rm -f conftest.$ac_objext |
| 8980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8981 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8982 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8983 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8984 | rm -f conftest.er1 |
| 8985 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8987 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 8988 | { ac_try='test -z "$ac_c_werror_flag" |
| 8989 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8991 | (eval $ac_try) 2>&5 |
| 8992 | ac_status=$? |
| 8993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8994 | (exit $ac_status); }; } && |
| 8995 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8997 | (eval $ac_try) 2>&5 |
| 8998 | ac_status=$? |
| 8999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9000 | (exit $ac_status); }; }; then |
| 9001 | |
| 9002 | |
| 9003 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9004 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9005 | _ACEOF |
| 9006 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 9007 | have_long_long=yes |
| 9008 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9009 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9010 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9012 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9013 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9015 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 9016 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 9017 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9018 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 9019 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 9020 | if test "${ac_cv_type_long_long+set}" = set; then |
| 9021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9022 | else |
| 9023 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9024 | /* confdefs.h. */ |
| 9025 | _ACEOF |
| 9026 | cat confdefs.h >>conftest.$ac_ext |
| 9027 | cat >>conftest.$ac_ext <<_ACEOF |
| 9028 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9029 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9030 | int |
| 9031 | main () |
| 9032 | { |
| 9033 | if ((long long *) 0) |
| 9034 | return 0; |
| 9035 | if (sizeof (long long)) |
| 9036 | return 0; |
| 9037 | ; |
| 9038 | return 0; |
| 9039 | } |
| 9040 | _ACEOF |
| 9041 | rm -f conftest.$ac_objext |
| 9042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9043 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9044 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9046 | rm -f conftest.er1 |
| 9047 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9049 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 9050 | { ac_try='test -z "$ac_c_werror_flag" |
| 9051 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9053 | (eval $ac_try) 2>&5 |
| 9054 | ac_status=$? |
| 9055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9056 | (exit $ac_status); }; } && |
| 9057 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9059 | (eval $ac_try) 2>&5 |
| 9060 | ac_status=$? |
| 9061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9062 | (exit $ac_status); }; }; then |
| 9063 | ac_cv_type_long_long=yes |
| 9064 | else |
| 9065 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9067 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9068 | ac_cv_type_long_long=no |
| 9069 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9070 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9071 | fi |
| 9072 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 9073 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 9074 | |
| 9075 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 9076 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 9077 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 9078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9079 | else |
| 9080 | if test "$ac_cv_type_long_long" = yes; then |
| 9081 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 9082 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9083 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9084 | # This bug is HP SR number 8606223364. |
| 9085 | if test "$cross_compiling" = yes; then |
| 9086 | # Depending upon the size, compute the lo and hi bounds. |
| 9087 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9088 | /* confdefs.h. */ |
| 9089 | _ACEOF |
| 9090 | cat confdefs.h >>conftest.$ac_ext |
| 9091 | cat >>conftest.$ac_ext <<_ACEOF |
| 9092 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9093 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9094 | int |
| 9095 | main () |
| 9096 | { |
| 9097 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 9098 | test_array [0] = 0 |
| 9099 | |
| 9100 | ; |
| 9101 | return 0; |
| 9102 | } |
| 9103 | _ACEOF |
| 9104 | rm -f conftest.$ac_objext |
| 9105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9106 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9107 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9109 | rm -f conftest.er1 |
| 9110 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9112 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 9113 | { ac_try='test -z "$ac_c_werror_flag" |
| 9114 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9116 | (eval $ac_try) 2>&5 |
| 9117 | ac_status=$? |
| 9118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9119 | (exit $ac_status); }; } && |
| 9120 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9122 | (eval $ac_try) 2>&5 |
| 9123 | ac_status=$? |
| 9124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9125 | (exit $ac_status); }; }; then |
| 9126 | ac_lo=0 ac_mid=0 |
| 9127 | while :; do |
| 9128 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9129 | /* confdefs.h. */ |
| 9130 | _ACEOF |
| 9131 | cat confdefs.h >>conftest.$ac_ext |
| 9132 | cat >>conftest.$ac_ext <<_ACEOF |
| 9133 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9134 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9135 | int |
| 9136 | main () |
| 9137 | { |
| 9138 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9139 | test_array [0] = 0 |
| 9140 | |
| 9141 | ; |
| 9142 | return 0; |
| 9143 | } |
| 9144 | _ACEOF |
| 9145 | rm -f conftest.$ac_objext |
| 9146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9147 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9148 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9150 | rm -f conftest.er1 |
| 9151 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9153 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 9154 | { ac_try='test -z "$ac_c_werror_flag" |
| 9155 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9157 | (eval $ac_try) 2>&5 |
| 9158 | ac_status=$? |
| 9159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9160 | (exit $ac_status); }; } && |
| 9161 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9163 | (eval $ac_try) 2>&5 |
| 9164 | ac_status=$? |
| 9165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9166 | (exit $ac_status); }; }; then |
| 9167 | ac_hi=$ac_mid; break |
| 9168 | else |
| 9169 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9171 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9172 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9173 | if test $ac_lo -le $ac_mid; then |
| 9174 | ac_lo= ac_hi= |
| 9175 | break |
| 9176 | fi |
| 9177 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9178 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9179 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9180 | done |
| 9181 | else |
| 9182 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9184 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9185 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9186 | /* confdefs.h. */ |
| 9187 | _ACEOF |
| 9188 | cat confdefs.h >>conftest.$ac_ext |
| 9189 | cat >>conftest.$ac_ext <<_ACEOF |
| 9190 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9191 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9192 | int |
| 9193 | main () |
| 9194 | { |
| 9195 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 9196 | test_array [0] = 0 |
| 9197 | |
| 9198 | ; |
| 9199 | return 0; |
| 9200 | } |
| 9201 | _ACEOF |
| 9202 | rm -f conftest.$ac_objext |
| 9203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9204 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9205 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9206 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9207 | rm -f conftest.er1 |
| 9208 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9210 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 9211 | { ac_try='test -z "$ac_c_werror_flag" |
| 9212 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9214 | (eval $ac_try) 2>&5 |
| 9215 | ac_status=$? |
| 9216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9217 | (exit $ac_status); }; } && |
| 9218 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9220 | (eval $ac_try) 2>&5 |
| 9221 | ac_status=$? |
| 9222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9223 | (exit $ac_status); }; }; then |
| 9224 | ac_hi=-1 ac_mid=-1 |
| 9225 | while :; do |
| 9226 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9227 | /* confdefs.h. */ |
| 9228 | _ACEOF |
| 9229 | cat confdefs.h >>conftest.$ac_ext |
| 9230 | cat >>conftest.$ac_ext <<_ACEOF |
| 9231 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9232 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9233 | int |
| 9234 | main () |
| 9235 | { |
| 9236 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 9237 | test_array [0] = 0 |
| 9238 | |
| 9239 | ; |
| 9240 | return 0; |
| 9241 | } |
| 9242 | _ACEOF |
| 9243 | rm -f conftest.$ac_objext |
| 9244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9245 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9246 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9247 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9248 | rm -f conftest.er1 |
| 9249 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9251 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 9252 | { ac_try='test -z "$ac_c_werror_flag" |
| 9253 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9255 | (eval $ac_try) 2>&5 |
| 9256 | ac_status=$? |
| 9257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9258 | (exit $ac_status); }; } && |
| 9259 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9261 | (eval $ac_try) 2>&5 |
| 9262 | ac_status=$? |
| 9263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9264 | (exit $ac_status); }; }; then |
| 9265 | ac_lo=$ac_mid; break |
| 9266 | else |
| 9267 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9269 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9270 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9271 | if test $ac_mid -le $ac_hi; then |
| 9272 | ac_lo= ac_hi= |
| 9273 | break |
| 9274 | fi |
| 9275 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9276 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9277 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9278 | done |
| 9279 | else |
| 9280 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9282 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9283 | ac_lo= ac_hi= |
| 9284 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9285 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9286 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9288 | # Binary search between lo and hi bounds. |
| 9289 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9290 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9291 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9292 | /* confdefs.h. */ |
| 9293 | _ACEOF |
| 9294 | cat confdefs.h >>conftest.$ac_ext |
| 9295 | cat >>conftest.$ac_ext <<_ACEOF |
| 9296 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9297 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9298 | int |
| 9299 | main () |
| 9300 | { |
| 9301 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9302 | test_array [0] = 0 |
| 9303 | |
| 9304 | ; |
| 9305 | return 0; |
| 9306 | } |
| 9307 | _ACEOF |
| 9308 | rm -f conftest.$ac_objext |
| 9309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9310 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9311 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9312 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9313 | rm -f conftest.er1 |
| 9314 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9316 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 9317 | { ac_try='test -z "$ac_c_werror_flag" |
| 9318 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9320 | (eval $ac_try) 2>&5 |
| 9321 | ac_status=$? |
| 9322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9323 | (exit $ac_status); }; } && |
| 9324 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9326 | (eval $ac_try) 2>&5 |
| 9327 | ac_status=$? |
| 9328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9329 | (exit $ac_status); }; }; then |
| 9330 | ac_hi=$ac_mid |
| 9331 | else |
| 9332 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9334 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9335 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9336 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9337 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9338 | done |
| 9339 | case $ac_lo in |
| 9340 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9341 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 9342 | See \`config.log' for more details." >&5 |
| 9343 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 9344 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9345 | { (exit 1); exit 1; }; } ;; |
| 9346 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9347 | else |
| 9348 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 9349 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9350 | See \`config.log' for more details." >&5 |
| 9351 | echo "$as_me: error: cannot run test program while cross compiling |
| 9352 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9353 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9354 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9355 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9356 | /* confdefs.h. */ |
| 9357 | _ACEOF |
| 9358 | cat confdefs.h >>conftest.$ac_ext |
| 9359 | cat >>conftest.$ac_ext <<_ACEOF |
| 9360 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9361 | $ac_includes_default |
| 9362 | long longval () { return (long) (sizeof (long long)); } |
| 9363 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9364 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9365 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9366 | int |
| 9367 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9368 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9369 | |
| 9370 | FILE *f = fopen ("conftest.val", "w"); |
| 9371 | if (! f) |
| 9372 | exit (1); |
| 9373 | if (((long) (sizeof (long long))) < 0) |
| 9374 | { |
| 9375 | long i = longval (); |
| 9376 | if (i != ((long) (sizeof (long long)))) |
| 9377 | exit (1); |
| 9378 | fprintf (f, "%ld\n", i); |
| 9379 | } |
| 9380 | else |
| 9381 | { |
| 9382 | unsigned long i = ulongval (); |
| 9383 | if (i != ((long) (sizeof (long long)))) |
| 9384 | exit (1); |
| 9385 | fprintf (f, "%lu\n", i); |
| 9386 | } |
| 9387 | exit (ferror (f) || fclose (f) != 0); |
| 9388 | |
| 9389 | ; |
| 9390 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9391 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9392 | _ACEOF |
| 9393 | rm -f conftest$ac_exeext |
| 9394 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9395 | (eval $ac_link) 2>&5 |
| 9396 | ac_status=$? |
| 9397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9398 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9400 | (eval $ac_try) 2>&5 |
| 9401 | ac_status=$? |
| 9402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9403 | (exit $ac_status); }; }; then |
| 9404 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9405 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9406 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9407 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9408 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9409 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9410 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9411 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 9412 | See \`config.log' for more details." >&5 |
| 9413 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 9414 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9415 | { (exit 1); exit 1; }; } |
| 9416 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9417 | rm -f 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] | 9418 | fi |
| 9419 | fi |
| 9420 | rm -f conftest.val |
| 9421 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9422 | ac_cv_sizeof_long_long=0 |
| 9423 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9424 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9425 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 9426 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 9427 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9428 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9429 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9430 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9431 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9432 | fi |
| 9433 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9434 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 9435 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9436 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9437 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9438 | /* confdefs.h. */ |
| 9439 | _ACEOF |
| 9440 | cat confdefs.h >>conftest.$ac_ext |
| 9441 | cat >>conftest.$ac_ext <<_ACEOF |
| 9442 | /* end confdefs.h. */ |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9443 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9444 | int |
| 9445 | main () |
| 9446 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9447 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9448 | ; |
| 9449 | return 0; |
| 9450 | } |
| 9451 | _ACEOF |
| 9452 | rm -f conftest.$ac_objext |
| 9453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9454 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9455 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9456 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9457 | rm -f conftest.er1 |
| 9458 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9460 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 9461 | { ac_try='test -z "$ac_c_werror_flag" |
| 9462 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9464 | (eval $ac_try) 2>&5 |
| 9465 | ac_status=$? |
| 9466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9467 | (exit $ac_status); }; } && |
| 9468 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9470 | (eval $ac_try) 2>&5 |
| 9471 | ac_status=$? |
| 9472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9473 | (exit $ac_status); }; }; then |
| 9474 | |
| 9475 | |
| 9476 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9477 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9478 | _ACEOF |
| 9479 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 9480 | have_uintptr_t=yes |
| 9481 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9482 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9483 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9485 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9486 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9488 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 9489 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9490 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9491 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 9492 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 9493 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 9494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9495 | else |
| 9496 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9497 | /* confdefs.h. */ |
| 9498 | _ACEOF |
| 9499 | cat confdefs.h >>conftest.$ac_ext |
| 9500 | cat >>conftest.$ac_ext <<_ACEOF |
| 9501 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9502 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9503 | int |
| 9504 | main () |
| 9505 | { |
| 9506 | if ((uintptr_t *) 0) |
| 9507 | return 0; |
| 9508 | if (sizeof (uintptr_t)) |
| 9509 | return 0; |
| 9510 | ; |
| 9511 | return 0; |
| 9512 | } |
| 9513 | _ACEOF |
| 9514 | rm -f conftest.$ac_objext |
| 9515 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9516 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9517 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9518 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9519 | rm -f conftest.er1 |
| 9520 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9522 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 9523 | { ac_try='test -z "$ac_c_werror_flag" |
| 9524 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9526 | (eval $ac_try) 2>&5 |
| 9527 | ac_status=$? |
| 9528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9529 | (exit $ac_status); }; } && |
| 9530 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9532 | (eval $ac_try) 2>&5 |
| 9533 | ac_status=$? |
| 9534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9535 | (exit $ac_status); }; }; then |
| 9536 | ac_cv_type_uintptr_t=yes |
| 9537 | else |
| 9538 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9539 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9540 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9541 | ac_cv_type_uintptr_t=no |
| 9542 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9543 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9544 | fi |
| 9545 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 9546 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 9547 | |
| 9548 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 9549 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 9550 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 9551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9552 | else |
| 9553 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 9554 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 9555 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9556 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9557 | # This bug is HP SR number 8606223364. |
| 9558 | if test "$cross_compiling" = yes; then |
| 9559 | # Depending upon the size, compute the lo and hi bounds. |
| 9560 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9561 | /* confdefs.h. */ |
| 9562 | _ACEOF |
| 9563 | cat confdefs.h >>conftest.$ac_ext |
| 9564 | cat >>conftest.$ac_ext <<_ACEOF |
| 9565 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9566 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9567 | int |
| 9568 | main () |
| 9569 | { |
| 9570 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 9571 | test_array [0] = 0 |
| 9572 | |
| 9573 | ; |
| 9574 | return 0; |
| 9575 | } |
| 9576 | _ACEOF |
| 9577 | rm -f conftest.$ac_objext |
| 9578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9579 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9580 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9582 | rm -f conftest.er1 |
| 9583 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9585 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 9586 | { ac_try='test -z "$ac_c_werror_flag" |
| 9587 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9589 | (eval $ac_try) 2>&5 |
| 9590 | ac_status=$? |
| 9591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9592 | (exit $ac_status); }; } && |
| 9593 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9595 | (eval $ac_try) 2>&5 |
| 9596 | ac_status=$? |
| 9597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9598 | (exit $ac_status); }; }; then |
| 9599 | ac_lo=0 ac_mid=0 |
| 9600 | while :; do |
| 9601 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9602 | /* confdefs.h. */ |
| 9603 | _ACEOF |
| 9604 | cat confdefs.h >>conftest.$ac_ext |
| 9605 | cat >>conftest.$ac_ext <<_ACEOF |
| 9606 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9607 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9608 | int |
| 9609 | main () |
| 9610 | { |
| 9611 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 9612 | test_array [0] = 0 |
| 9613 | |
| 9614 | ; |
| 9615 | return 0; |
| 9616 | } |
| 9617 | _ACEOF |
| 9618 | rm -f conftest.$ac_objext |
| 9619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9620 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9621 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9622 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9623 | rm -f conftest.er1 |
| 9624 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9626 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 9627 | { ac_try='test -z "$ac_c_werror_flag" |
| 9628 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9630 | (eval $ac_try) 2>&5 |
| 9631 | ac_status=$? |
| 9632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9633 | (exit $ac_status); }; } && |
| 9634 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9636 | (eval $ac_try) 2>&5 |
| 9637 | ac_status=$? |
| 9638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9639 | (exit $ac_status); }; }; then |
| 9640 | ac_hi=$ac_mid; break |
| 9641 | else |
| 9642 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9643 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9644 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9645 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9646 | if test $ac_lo -le $ac_mid; then |
| 9647 | ac_lo= ac_hi= |
| 9648 | break |
| 9649 | fi |
| 9650 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9651 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9652 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9653 | done |
| 9654 | else |
| 9655 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9657 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9658 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9659 | /* confdefs.h. */ |
| 9660 | _ACEOF |
| 9661 | cat confdefs.h >>conftest.$ac_ext |
| 9662 | cat >>conftest.$ac_ext <<_ACEOF |
| 9663 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9664 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9665 | int |
| 9666 | main () |
| 9667 | { |
| 9668 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 9669 | test_array [0] = 0 |
| 9670 | |
| 9671 | ; |
| 9672 | return 0; |
| 9673 | } |
| 9674 | _ACEOF |
| 9675 | rm -f conftest.$ac_objext |
| 9676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9677 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9678 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9679 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9680 | rm -f conftest.er1 |
| 9681 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9683 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 9684 | { ac_try='test -z "$ac_c_werror_flag" |
| 9685 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9687 | (eval $ac_try) 2>&5 |
| 9688 | ac_status=$? |
| 9689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9690 | (exit $ac_status); }; } && |
| 9691 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9693 | (eval $ac_try) 2>&5 |
| 9694 | ac_status=$? |
| 9695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9696 | (exit $ac_status); }; }; then |
| 9697 | ac_hi=-1 ac_mid=-1 |
| 9698 | while :; do |
| 9699 | cat >conftest.$ac_ext <<_ACEOF |
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. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9705 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9706 | int |
| 9707 | main () |
| 9708 | { |
| 9709 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 9710 | test_array [0] = 0 |
| 9711 | |
| 9712 | ; |
| 9713 | return 0; |
| 9714 | } |
| 9715 | _ACEOF |
| 9716 | rm -f conftest.$ac_objext |
| 9717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9718 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9719 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9720 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9721 | rm -f conftest.er1 |
| 9722 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9724 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 9725 | { ac_try='test -z "$ac_c_werror_flag" |
| 9726 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9728 | (eval $ac_try) 2>&5 |
| 9729 | ac_status=$? |
| 9730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9731 | (exit $ac_status); }; } && |
| 9732 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9734 | (eval $ac_try) 2>&5 |
| 9735 | ac_status=$? |
| 9736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9737 | (exit $ac_status); }; }; then |
| 9738 | ac_lo=$ac_mid; break |
| 9739 | else |
| 9740 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9741 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9742 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9743 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9744 | if test $ac_mid -le $ac_hi; then |
| 9745 | ac_lo= ac_hi= |
| 9746 | break |
| 9747 | fi |
| 9748 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9749 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9750 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9751 | done |
| 9752 | else |
| 9753 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9755 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9756 | ac_lo= ac_hi= |
| 9757 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9759 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9760 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9761 | # Binary search between lo and hi bounds. |
| 9762 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9763 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9764 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9765 | /* confdefs.h. */ |
| 9766 | _ACEOF |
| 9767 | cat confdefs.h >>conftest.$ac_ext |
| 9768 | cat >>conftest.$ac_ext <<_ACEOF |
| 9769 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9770 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9771 | int |
| 9772 | main () |
| 9773 | { |
| 9774 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 9775 | test_array [0] = 0 |
| 9776 | |
| 9777 | ; |
| 9778 | return 0; |
| 9779 | } |
| 9780 | _ACEOF |
| 9781 | rm -f conftest.$ac_objext |
| 9782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9783 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9784 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9785 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9786 | rm -f conftest.er1 |
| 9787 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9789 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 9790 | { ac_try='test -z "$ac_c_werror_flag" |
| 9791 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9793 | (eval $ac_try) 2>&5 |
| 9794 | ac_status=$? |
| 9795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9796 | (exit $ac_status); }; } && |
| 9797 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9799 | (eval $ac_try) 2>&5 |
| 9800 | ac_status=$? |
| 9801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9802 | (exit $ac_status); }; }; then |
| 9803 | ac_hi=$ac_mid |
| 9804 | else |
| 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 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9809 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9810 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9811 | done |
| 9812 | case $ac_lo in |
| 9813 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9814 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 9815 | See \`config.log' for more details." >&5 |
| 9816 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 9817 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9818 | { (exit 1); exit 1; }; } ;; |
| 9819 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9820 | else |
| 9821 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 9822 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9823 | See \`config.log' for more details." >&5 |
| 9824 | echo "$as_me: error: cannot run test program while cross compiling |
| 9825 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9826 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9827 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9828 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9829 | /* confdefs.h. */ |
| 9830 | _ACEOF |
| 9831 | cat confdefs.h >>conftest.$ac_ext |
| 9832 | cat >>conftest.$ac_ext <<_ACEOF |
| 9833 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9834 | $ac_includes_default |
| 9835 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 9836 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9837 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9838 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9839 | int |
| 9840 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9841 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9842 | |
| 9843 | FILE *f = fopen ("conftest.val", "w"); |
| 9844 | if (! f) |
| 9845 | exit (1); |
| 9846 | if (((long) (sizeof (uintptr_t))) < 0) |
| 9847 | { |
| 9848 | long i = longval (); |
| 9849 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9850 | exit (1); |
| 9851 | fprintf (f, "%ld\n", i); |
| 9852 | } |
| 9853 | else |
| 9854 | { |
| 9855 | unsigned long i = ulongval (); |
| 9856 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9857 | exit (1); |
| 9858 | fprintf (f, "%lu\n", i); |
| 9859 | } |
| 9860 | exit (ferror (f) || fclose (f) != 0); |
| 9861 | |
| 9862 | ; |
| 9863 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9864 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9865 | _ACEOF |
| 9866 | rm -f conftest$ac_exeext |
| 9867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9868 | (eval $ac_link) 2>&5 |
| 9869 | ac_status=$? |
| 9870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9871 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9873 | (eval $ac_try) 2>&5 |
| 9874 | ac_status=$? |
| 9875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9876 | (exit $ac_status); }; }; then |
| 9877 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9878 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9879 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9880 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9882 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9883 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9884 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 9885 | See \`config.log' for more details." >&5 |
| 9886 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 9887 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9888 | { (exit 1); exit 1; }; } |
| 9889 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9890 | rm -f 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] | 9891 | fi |
| 9892 | fi |
| 9893 | rm -f conftest.val |
| 9894 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9895 | ac_cv_sizeof_uintptr_t=0 |
| 9896 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9897 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9898 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 9899 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 9900 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9901 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9902 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9903 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9904 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9905 | fi |
| 9906 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9907 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9908 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 9909 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 9910 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 9911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9912 | else |
| 9913 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9914 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9915 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9916 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9917 | /* confdefs.h. */ |
| 9918 | _ACEOF |
| 9919 | cat confdefs.h >>conftest.$ac_ext |
| 9920 | cat >>conftest.$ac_ext <<_ACEOF |
| 9921 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9922 | #include <stdio.h> |
| 9923 | #include <sys/types.h> |
| 9924 | main() |
| 9925 | { |
| 9926 | FILE *f=fopen("conftestval", "w"); |
| 9927 | if (!f) exit(1); |
| 9928 | fprintf(f, "%d\n", sizeof(off_t)); |
| 9929 | exit(0); |
| 9930 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9931 | _ACEOF |
| 9932 | rm -f conftest$ac_exeext |
| 9933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9934 | (eval $ac_link) 2>&5 |
| 9935 | ac_status=$? |
| 9936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9937 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9939 | (eval $ac_try) 2>&5 |
| 9940 | ac_status=$? |
| 9941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9942 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9943 | ac_cv_sizeof_off_t=`cat conftestval` |
| 9944 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9945 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9946 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9947 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9948 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9949 | ( exit $ac_status ) |
| 9950 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9951 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9952 | rm -f 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] | 9953 | fi |
| 9954 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9955 | fi |
| 9956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9957 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 9958 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 9959 | |
| 9960 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9961 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9962 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9963 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9964 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9965 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 9966 | 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] | 9967 | if test "$have_long_long" = yes -a \ |
| 9968 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 9969 | "$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] | 9970 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9971 | cat >>confdefs.h <<\_ACEOF |
| 9972 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 9973 | _ACEOF |
| 9974 | |
| 9975 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9976 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9977 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9978 | echo "$as_me:$LINENO: result: no" >&5 |
| 9979 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9980 | fi |
| 9981 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9982 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9983 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 9984 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 9985 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 9986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9987 | else |
| 9988 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9989 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9990 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9991 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9992 | /* confdefs.h. */ |
| 9993 | _ACEOF |
| 9994 | cat confdefs.h >>conftest.$ac_ext |
| 9995 | cat >>conftest.$ac_ext <<_ACEOF |
| 9996 | /* end confdefs.h. */ |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9997 | #include <stdio.h> |
| 9998 | #include <time.h> |
| 9999 | main() |
| 10000 | { |
| 10001 | FILE *f=fopen("conftestval", "w"); |
| 10002 | if (!f) exit(1); |
| 10003 | fprintf(f, "%d\n", sizeof(time_t)); |
| 10004 | exit(0); |
| 10005 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10006 | _ACEOF |
| 10007 | rm -f conftest$ac_exeext |
| 10008 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10009 | (eval $ac_link) 2>&5 |
| 10010 | ac_status=$? |
| 10011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10012 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10014 | (eval $ac_try) 2>&5 |
| 10015 | ac_status=$? |
| 10016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10017 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10018 | ac_cv_sizeof_time_t=`cat conftestval` |
| 10019 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10020 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10021 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10023 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10024 | ( exit $ac_status ) |
| 10025 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10026 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10027 | rm -f 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] | 10028 | fi |
| 10029 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10030 | fi |
| 10031 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10032 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 10033 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 10034 | |
| 10035 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10036 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10037 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10038 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10039 | |
| 10040 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10041 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10042 | ac_save_cc="$CC" |
| 10043 | if test "$ac_cv_kpthread" = "yes" |
| 10044 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10045 | elif test "$ac_cv_kthread" = "yes" |
| 10046 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10047 | elif test "$ac_cv_pthread" = "yes" |
| 10048 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10049 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10050 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 10051 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10052 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10053 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10054 | /* confdefs.h. */ |
| 10055 | _ACEOF |
| 10056 | cat confdefs.h >>conftest.$ac_ext |
| 10057 | cat >>conftest.$ac_ext <<_ACEOF |
| 10058 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10059 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10060 | int |
| 10061 | main () |
| 10062 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 10063 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10064 | ; |
| 10065 | return 0; |
| 10066 | } |
| 10067 | _ACEOF |
| 10068 | rm -f conftest.$ac_objext |
| 10069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10070 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10071 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10072 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10073 | rm -f conftest.er1 |
| 10074 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10076 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 10077 | { ac_try='test -z "$ac_c_werror_flag" |
| 10078 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10080 | (eval $ac_try) 2>&5 |
| 10081 | ac_status=$? |
| 10082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10083 | (exit $ac_status); }; } && |
| 10084 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10086 | (eval $ac_try) 2>&5 |
| 10087 | ac_status=$? |
| 10088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10089 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10090 | have_pthread_t=yes |
| 10091 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10092 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10093 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10094 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10095 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10096 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10097 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 10098 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10099 | if test "$have_pthread_t" = yes ; then |
| 10100 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10101 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 10102 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 10103 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 10104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10105 | else |
| 10106 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10107 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10108 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10109 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10110 | /* confdefs.h. */ |
| 10111 | _ACEOF |
| 10112 | cat confdefs.h >>conftest.$ac_ext |
| 10113 | cat >>conftest.$ac_ext <<_ACEOF |
| 10114 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10115 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10116 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10117 | main() |
| 10118 | { |
| 10119 | FILE *f=fopen("conftestval", "w"); |
| 10120 | if (!f) exit(1); |
| 10121 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 10122 | exit(0); |
| 10123 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10124 | _ACEOF |
| 10125 | rm -f conftest$ac_exeext |
| 10126 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10127 | (eval $ac_link) 2>&5 |
| 10128 | ac_status=$? |
| 10129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10130 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10132 | (eval $ac_try) 2>&5 |
| 10133 | ac_status=$? |
| 10134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10135 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10136 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 10137 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10138 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10139 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10141 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10142 | ( exit $ac_status ) |
| 10143 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10144 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10145 | rm -f 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] | 10146 | fi |
| 10147 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10148 | fi |
| 10149 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10150 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 10151 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 10152 | |
| 10153 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10154 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10155 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10156 | |
| 10157 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10158 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10159 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10160 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 10161 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10162 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 10163 | if test "${enable_toolbox_glue+set}" = set; then |
| 10164 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10165 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10166 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10167 | |
| 10168 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10169 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10170 | case $ac_sys_system/$ac_sys_release in |
| 10171 | Darwin/*) |
| 10172 | enable_toolbox_glue="yes";; |
| 10173 | *) |
| 10174 | enable_toolbox_glue="no";; |
| 10175 | esac |
| 10176 | fi |
| 10177 | case "$enable_toolbox_glue" in |
| 10178 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10179 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10180 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10181 | |
| 10182 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10183 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10184 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10185 | |
| 10186 | ;; |
| 10187 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10188 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 10189 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10190 | ;; |
| 10191 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10192 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 10193 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10194 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10195 | |
| 10196 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10197 | Darwin/1.3*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 10198 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 10199 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10200 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 10201 | Darwin/*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 10202 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10203 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 10204 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10205 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10206 | esac |
| 10207 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10208 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 10209 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10210 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10211 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10212 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10213 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10214 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10215 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10216 | cat >>confdefs.h <<\_ACEOF |
| 10217 | #define WITH_NEXT_FRAMEWORK 1 |
| 10218 | _ACEOF |
| 10219 | |
| 10220 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10221 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10222 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10223 | echo "$as_me:$LINENO: result: no" >&5 |
| 10224 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10225 | fi |
| 10226 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10227 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 10228 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10229 | case $ac_sys_system/$ac_sys_release in |
| 10230 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10231 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10232 | cat >>confdefs.h <<\_ACEOF |
| 10233 | #define WITH_DYLD 1 |
| 10234 | _ACEOF |
| 10235 | |
| 10236 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 10237 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10238 | ;; |
| 10239 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10240 | echo "$as_me:$LINENO: result: no" >&5 |
| 10241 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10242 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10243 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10244 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10245 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10246 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10247 | |
| 10248 | |
| 10249 | |
| 10250 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10251 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10252 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10253 | echo "$as_me:$LINENO: checking SO" >&5 |
| 10254 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10255 | if test -z "$SO" |
| 10256 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10257 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 10258 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10259 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 10260 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10261 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 10262 | else |
| 10263 | # this might also be a termcap variable, see #610332 |
| 10264 | echo |
| 10265 | echo '=====================================================================' |
| 10266 | echo '+ +' |
| 10267 | echo '+ WARNING: You have set SO in your environment. +' |
| 10268 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 10269 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 10270 | echo '+ +' |
| 10271 | echo '=====================================================================' |
| 10272 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10273 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10274 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 10275 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10276 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 10277 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10278 | # (Shared libraries in this instance are shared modules to be loaded into |
| 10279 | # 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] | 10280 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 10281 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10282 | if test -z "$LDSHARED" |
| 10283 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10284 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10285 | AIX*) |
| 10286 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 10287 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10288 | ;; |
| 10289 | BeOS*) |
| 10290 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 10291 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10292 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10293 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 10294 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10295 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10296 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 10297 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 10298 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10299 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10300 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10301 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10302 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10303 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10304 | if test "$enable_framework" ; then |
| 10305 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10306 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10307 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10308 | else |
| 10309 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10310 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10311 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10312 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10313 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10314 | if test "$enable_framework" ; then |
| 10315 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10316 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10317 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10318 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 10319 | # No framework, use the Python app as bundle-loader |
| 10320 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 10321 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10322 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10323 | Darwin/*) |
| 10324 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 10325 | # This allows an extension to be used in any Python |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 10326 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
Jack Jansen | c110f86 | 2005-01-07 10:49:32 +0000 | [diff] [blame] | 10327 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 10328 | if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10329 | then |
| 10330 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 10331 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10332 | else |
| 10333 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10334 | if test "$enable_framework" ; then |
| 10335 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10336 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10337 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10338 | else |
| 10339 | # No framework, use the Python app as bundle-loader |
| 10340 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 10341 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 10342 | fi |
| 10343 | fi |
| 10344 | ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 10345 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 10346 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 10347 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 10348 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 10349 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 10350 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 10351 | else |
| 10352 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 10353 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 10354 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10355 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10356 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 10357 | then LDSHARED='$(CC) -shared' |
| 10358 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10359 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 10360 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10361 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10362 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10363 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10364 | *) LDSHARED="ld";; |
| 10365 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10366 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10367 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 10368 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10369 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10370 | # 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] | 10371 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10372 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 10373 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10374 | if test -z "$CCSHARED" |
| 10375 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10376 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 10377 | SunOS*) if test "$GCC" = yes; |
| 10378 | then CCSHARED="-fPIC"; |
| 10379 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10380 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 10381 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10382 | else CCSHARED="+z"; |
| 10383 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10384 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 10385 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 10386 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10387 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10388 | if test "$GCC" = "yes" |
| 10389 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10390 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10391 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10392 | SCO_SV*) |
| 10393 | if test "$GCC" = "yes" |
| 10394 | then CCSHARED="-fPIC" |
| 10395 | else CCSHARED="-Kpic -belf" |
| 10396 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10397 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10398 | IRIX*/6*) case $CC in |
| 10399 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 10400 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10401 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10402 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10403 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10404 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10405 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 10406 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10407 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10408 | # 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] | 10409 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 10410 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10411 | if test -z "$LINKFORSHARED" |
| 10412 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10413 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10414 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 10415 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10416 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 10417 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 10418 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10419 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10420 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10421 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10422 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 10423 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10424 | # not used by the core itself but which needs to be in the core so |
| 10425 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 10426 | # -prebind is no longer used, because it actually seems to give a |
| 10427 | # slowdown in stead of a speedup, maybe due to the large number of |
| 10428 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10429 | |
| 10430 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10431 | if test "$enable_framework" |
| 10432 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10433 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10434 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10435 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10436 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10437 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 10438 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10439 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 10440 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 10441 | then |
| 10442 | LINKFORSHARED="-Wl,--export-dynamic" |
| 10443 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10444 | SunOS/5*) case $CC in |
| 10445 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 10446 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 10447 | then |
| 10448 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10449 | fi;; |
| 10450 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 10451 | CYGWIN*) |
| 10452 | if test $enable_shared = "no" |
| 10453 | then |
| 10454 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 10455 | fi;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10456 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10457 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10458 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 10459 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10460 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10461 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10462 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 10463 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10464 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 10465 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 10466 | case $ac_sys_system in |
| 10467 | CYGWIN*) |
| 10468 | # Cygwin needs CCSHARED when building extension DLLs |
| 10469 | # but not when building the interpreter DLL. |
| 10470 | CFLAGSFORSHARED='';; |
| 10471 | *) |
| 10472 | CFLAGSFORSHARED='$(CCSHARED)' |
| 10473 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10474 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10475 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 10476 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10477 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10478 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 10479 | # library (with --enable-shared). |
| 10480 | # 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] | 10481 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 10482 | # if it is not required, since it creates a dependency of the shared library |
| 10483 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 10484 | # don't need to link LIBS explicitly. The default should be only changed |
| 10485 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10486 | |
| 10487 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 10488 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 10489 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10490 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 10491 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10492 | esac |
| 10493 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 10494 | echo "${ECHO_T}$SHLIBS" >&6 |
| 10495 | |
| 10496 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10497 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10498 | |
| 10499 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10500 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 10501 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10503 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10504 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10505 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10506 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10507 | /* confdefs.h. */ |
| 10508 | _ACEOF |
| 10509 | cat confdefs.h >>conftest.$ac_ext |
| 10510 | cat >>conftest.$ac_ext <<_ACEOF |
| 10511 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10512 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10513 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10514 | #ifdef __cplusplus |
| 10515 | extern "C" |
| 10516 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10517 | /* 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] | 10518 | builtin and then its argument prototype would still apply. */ |
| 10519 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10520 | int |
| 10521 | main () |
| 10522 | { |
| 10523 | dlopen (); |
| 10524 | ; |
| 10525 | return 0; |
| 10526 | } |
| 10527 | _ACEOF |
| 10528 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10529 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10530 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10531 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10532 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10533 | rm -f conftest.er1 |
| 10534 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10536 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 10537 | { ac_try='test -z "$ac_c_werror_flag" |
| 10538 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 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); }; } && |
| 10544 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10546 | (eval $ac_try) 2>&5 |
| 10547 | ac_status=$? |
| 10548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10549 | (exit $ac_status); }; }; then |
| 10550 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10551 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10552 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10553 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10554 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10555 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10556 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10557 | rm -f conftest.err conftest.$ac_objext \ |
| 10558 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10559 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10560 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10561 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10562 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 10563 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10564 | cat >>confdefs.h <<_ACEOF |
| 10565 | #define HAVE_LIBDL 1 |
| 10566 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10567 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10568 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10569 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10570 | fi |
| 10571 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10572 | |
| 10573 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10574 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 10575 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10577 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10578 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10579 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10580 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10581 | /* confdefs.h. */ |
| 10582 | _ACEOF |
| 10583 | cat confdefs.h >>conftest.$ac_ext |
| 10584 | cat >>conftest.$ac_ext <<_ACEOF |
| 10585 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10586 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10587 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10588 | #ifdef __cplusplus |
| 10589 | extern "C" |
| 10590 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10591 | /* 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] | 10592 | builtin and then its argument prototype would still apply. */ |
| 10593 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10594 | int |
| 10595 | main () |
| 10596 | { |
| 10597 | shl_load (); |
| 10598 | ; |
| 10599 | return 0; |
| 10600 | } |
| 10601 | _ACEOF |
| 10602 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10603 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10604 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10605 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10607 | rm -f conftest.er1 |
| 10608 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10610 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 10611 | { ac_try='test -z "$ac_c_werror_flag" |
| 10612 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10614 | (eval $ac_try) 2>&5 |
| 10615 | ac_status=$? |
| 10616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10617 | (exit $ac_status); }; } && |
| 10618 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10620 | (eval $ac_try) 2>&5 |
| 10621 | ac_status=$? |
| 10622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10623 | (exit $ac_status); }; }; then |
| 10624 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10625 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10626 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10628 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10629 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10630 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10631 | rm -f conftest.err conftest.$ac_objext \ |
| 10632 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10633 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10634 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10635 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10636 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 10637 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 10638 | cat >>confdefs.h <<_ACEOF |
| 10639 | #define HAVE_LIBDLD 1 |
| 10640 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10641 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10642 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10643 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10644 | fi |
| 10645 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10646 | |
| 10647 | # only check for sem_ini if thread support is requested |
| 10648 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
| 10649 | 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] | 10650 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 10651 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10653 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10654 | ac_func_search_save_LIBS=$LIBS |
| 10655 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10656 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10657 | /* confdefs.h. */ |
| 10658 | _ACEOF |
| 10659 | cat confdefs.h >>conftest.$ac_ext |
| 10660 | cat >>conftest.$ac_ext <<_ACEOF |
| 10661 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10662 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10663 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10664 | #ifdef __cplusplus |
| 10665 | extern "C" |
| 10666 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10667 | /* 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] | 10668 | builtin and then its argument prototype would still apply. */ |
| 10669 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10670 | int |
| 10671 | main () |
| 10672 | { |
| 10673 | sem_init (); |
| 10674 | ; |
| 10675 | return 0; |
| 10676 | } |
| 10677 | _ACEOF |
| 10678 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10680 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10681 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10683 | rm -f conftest.er1 |
| 10684 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10686 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 10687 | { ac_try='test -z "$ac_c_werror_flag" |
| 10688 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10690 | (eval $ac_try) 2>&5 |
| 10691 | ac_status=$? |
| 10692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10693 | (exit $ac_status); }; } && |
| 10694 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10696 | (eval $ac_try) 2>&5 |
| 10697 | ac_status=$? |
| 10698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10699 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10700 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10701 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10702 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10704 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10705 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10706 | rm -f conftest.err conftest.$ac_objext \ |
| 10707 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10708 | if test "$ac_cv_search_sem_init" = no; then |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 10709 | for ac_lib in pthread rt posix4; do |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10710 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10711 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10712 | /* confdefs.h. */ |
| 10713 | _ACEOF |
| 10714 | cat confdefs.h >>conftest.$ac_ext |
| 10715 | cat >>conftest.$ac_ext <<_ACEOF |
| 10716 | /* end confdefs.h. */ |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10717 | |
| 10718 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10719 | #ifdef __cplusplus |
| 10720 | extern "C" |
| 10721 | #endif |
| 10722 | /* We use char because int might match the return type of a gcc2 |
| 10723 | builtin and then its argument prototype would still apply. */ |
| 10724 | char sem_init (); |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10725 | int |
| 10726 | main () |
| 10727 | { |
| 10728 | sem_init (); |
| 10729 | ; |
| 10730 | return 0; |
| 10731 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10732 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10733 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10734 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10735 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10736 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10737 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10738 | rm -f conftest.er1 |
| 10739 | cat conftest.err >&5 |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10741 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 10742 | { ac_try='test -z "$ac_c_werror_flag" |
| 10743 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10745 | (eval $ac_try) 2>&5 |
| 10746 | ac_status=$? |
| 10747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10748 | (exit $ac_status); }; } && |
| 10749 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10751 | (eval $ac_try) 2>&5 |
| 10752 | ac_status=$? |
| 10753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10754 | (exit $ac_status); }; }; then |
| 10755 | ac_cv_search_sem_init="-l$ac_lib" |
| 10756 | break |
| 10757 | else |
| 10758 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10759 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10760 | |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10761 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10762 | rm -f conftest.err conftest.$ac_objext \ |
| 10763 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10764 | done |
| 10765 | fi |
| 10766 | LIBS=$ac_func_search_save_LIBS |
| 10767 | fi |
| 10768 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 10769 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 10770 | if test "$ac_cv_search_sem_init" != no; then |
| 10771 | 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] | 10772 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10773 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 10774 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10775 | # posix4 on Solaris 2.6 |
| 10776 | # pthread (first!) on Linux |
| 10777 | fi |
| 10778 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10779 | # check if we need libintl for locale functions |
| 10780 | echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 10781 | echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6 |
| 10782 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
| 10783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10784 | else |
| 10785 | ac_check_lib_save_LIBS=$LIBS |
| 10786 | LIBS="-lintl $LIBS" |
| 10787 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10788 | /* confdefs.h. */ |
| 10789 | _ACEOF |
| 10790 | cat confdefs.h >>conftest.$ac_ext |
| 10791 | cat >>conftest.$ac_ext <<_ACEOF |
| 10792 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10793 | |
| 10794 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10795 | #ifdef __cplusplus |
| 10796 | extern "C" |
| 10797 | #endif |
| 10798 | /* We use char because int might match the return type of a gcc2 |
| 10799 | builtin and then its argument prototype would still apply. */ |
| 10800 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10801 | int |
| 10802 | main () |
| 10803 | { |
| 10804 | textdomain (); |
| 10805 | ; |
| 10806 | return 0; |
| 10807 | } |
| 10808 | _ACEOF |
| 10809 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10811 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10812 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10813 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10814 | rm -f conftest.er1 |
| 10815 | cat conftest.err >&5 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10817 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 10818 | { ac_try='test -z "$ac_c_werror_flag" |
| 10819 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10821 | (eval $ac_try) 2>&5 |
| 10822 | ac_status=$? |
| 10823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10824 | (exit $ac_status); }; } && |
| 10825 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10827 | (eval $ac_try) 2>&5 |
| 10828 | ac_status=$? |
| 10829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10830 | (exit $ac_status); }; }; then |
| 10831 | ac_cv_lib_intl_textdomain=yes |
| 10832 | else |
| 10833 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10835 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10836 | ac_cv_lib_intl_textdomain=no |
| 10837 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10838 | rm -f conftest.err conftest.$ac_objext \ |
| 10839 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10840 | LIBS=$ac_check_lib_save_LIBS |
| 10841 | fi |
| 10842 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 10843 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6 |
| 10844 | if test $ac_cv_lib_intl_textdomain = yes; then |
| 10845 | |
| 10846 | cat >>confdefs.h <<\_ACEOF |
| 10847 | #define WITH_LIBINTL 1 |
| 10848 | _ACEOF |
| 10849 | |
| 10850 | fi |
| 10851 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10852 | |
| 10853 | # checks for system dependent C++ extensions support |
| 10854 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10855 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 10856 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 10857 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10858 | /* confdefs.h. */ |
| 10859 | _ACEOF |
| 10860 | cat confdefs.h >>conftest.$ac_ext |
| 10861 | cat >>conftest.$ac_ext <<_ACEOF |
| 10862 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10863 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10864 | int |
| 10865 | main () |
| 10866 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10867 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10868 | ; |
| 10869 | return 0; |
| 10870 | } |
| 10871 | _ACEOF |
| 10872 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10873 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10874 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10875 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10876 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10877 | rm -f conftest.er1 |
| 10878 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10880 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 10881 | { ac_try='test -z "$ac_c_werror_flag" |
| 10882 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10884 | (eval $ac_try) 2>&5 |
| 10885 | ac_status=$? |
| 10886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10887 | (exit $ac_status); }; } && |
| 10888 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10890 | (eval $ac_try) 2>&5 |
| 10891 | ac_status=$? |
| 10892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10893 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10894 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10895 | cat >>confdefs.h <<\_ACEOF |
| 10896 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 10897 | _ACEOF |
| 10898 | |
| 10899 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10900 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10901 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10902 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10904 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10905 | echo "$as_me:$LINENO: result: no" >&5 |
| 10906 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10907 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10908 | rm -f conftest.err conftest.$ac_objext \ |
| 10909 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10910 | *) ;; |
| 10911 | esac |
| 10912 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 10913 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10914 | # BeOS' sockets are stashed in libnet. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10915 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 10916 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 10917 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 10918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10919 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10920 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10921 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10922 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10923 | /* confdefs.h. */ |
| 10924 | _ACEOF |
| 10925 | cat confdefs.h >>conftest.$ac_ext |
| 10926 | cat >>conftest.$ac_ext <<_ACEOF |
| 10927 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10928 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10929 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10930 | #ifdef __cplusplus |
| 10931 | extern "C" |
| 10932 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10933 | /* 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] | 10934 | builtin and then its argument prototype would still apply. */ |
| 10935 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10936 | int |
| 10937 | main () |
| 10938 | { |
| 10939 | t_open (); |
| 10940 | ; |
| 10941 | return 0; |
| 10942 | } |
| 10943 | _ACEOF |
| 10944 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10946 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10947 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10949 | rm -f conftest.er1 |
| 10950 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10952 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 10953 | { ac_try='test -z "$ac_c_werror_flag" |
| 10954 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10956 | (eval $ac_try) 2>&5 |
| 10957 | ac_status=$? |
| 10958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10959 | (exit $ac_status); }; } && |
| 10960 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10962 | (eval $ac_try) 2>&5 |
| 10963 | ac_status=$? |
| 10964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10965 | (exit $ac_status); }; }; then |
| 10966 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10967 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10968 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10970 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10971 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10972 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10973 | rm -f conftest.err conftest.$ac_objext \ |
| 10974 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10975 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10976 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10977 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 10978 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 10979 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10980 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10981 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 10982 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10983 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 10984 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 10985 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 10986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10987 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10988 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10989 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10990 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10991 | /* confdefs.h. */ |
| 10992 | _ACEOF |
| 10993 | cat confdefs.h >>conftest.$ac_ext |
| 10994 | cat >>conftest.$ac_ext <<_ACEOF |
| 10995 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10996 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10997 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10998 | #ifdef __cplusplus |
| 10999 | extern "C" |
| 11000 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11001 | /* 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] | 11002 | builtin and then its argument prototype would still apply. */ |
| 11003 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11004 | int |
| 11005 | main () |
| 11006 | { |
| 11007 | socket (); |
| 11008 | ; |
| 11009 | return 0; |
| 11010 | } |
| 11011 | _ACEOF |
| 11012 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11014 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11015 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11017 | rm -f conftest.er1 |
| 11018 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11020 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 11021 | { ac_try='test -z "$ac_c_werror_flag" |
| 11022 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11024 | (eval $ac_try) 2>&5 |
| 11025 | ac_status=$? |
| 11026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11027 | (exit $ac_status); }; } && |
| 11028 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11030 | (eval $ac_try) 2>&5 |
| 11031 | ac_status=$? |
| 11032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11033 | (exit $ac_status); }; }; then |
| 11034 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11035 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11036 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11038 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11039 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11040 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11041 | rm -f conftest.err conftest.$ac_objext \ |
| 11042 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11043 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11044 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11045 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 11046 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 11047 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11048 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11049 | fi |
| 11050 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 11051 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 11052 | case "$ac_sys_system" in |
| 11053 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11054 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 11055 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 11056 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 11057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11058 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11059 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11060 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11061 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11062 | /* confdefs.h. */ |
| 11063 | _ACEOF |
| 11064 | cat confdefs.h >>conftest.$ac_ext |
| 11065 | cat >>conftest.$ac_ext <<_ACEOF |
| 11066 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11067 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11068 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11069 | #ifdef __cplusplus |
| 11070 | extern "C" |
| 11071 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11072 | /* 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] | 11073 | builtin and then its argument prototype would still apply. */ |
| 11074 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11075 | int |
| 11076 | main () |
| 11077 | { |
| 11078 | socket (); |
| 11079 | ; |
| 11080 | return 0; |
| 11081 | } |
| 11082 | _ACEOF |
| 11083 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11084 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11085 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11086 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11087 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11088 | rm -f conftest.er1 |
| 11089 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11091 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 11092 | { ac_try='test -z "$ac_c_werror_flag" |
| 11093 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11095 | (eval $ac_try) 2>&5 |
| 11096 | ac_status=$? |
| 11097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11098 | (exit $ac_status); }; } && |
| 11099 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11101 | (eval $ac_try) 2>&5 |
| 11102 | ac_status=$? |
| 11103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11104 | (exit $ac_status); }; }; then |
| 11105 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11106 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11107 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11109 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11110 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11111 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11112 | rm -f conftest.err conftest.$ac_objext \ |
| 11113 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11114 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11115 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11116 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 11117 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 11118 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11119 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11120 | fi |
| 11121 | # BeOS |
| 11122 | ;; |
| 11123 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 11124 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11125 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 11126 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 11127 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 11128 | # Check whether --with-libs or --without-libs was given. |
| 11129 | if test "${with_libs+set}" = set; then |
| 11130 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11131 | |
| 11132 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11133 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 11134 | LIBS="$withval $LIBS" |
| 11135 | |
| 11136 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11137 | echo "$as_me:$LINENO: result: no" >&5 |
| 11138 | echo "${ECHO_T}no" >&6 |
| 11139 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11140 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11141 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11142 | |
| 11143 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11144 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 11145 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 11146 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11147 | # Check whether --with-signal-module or --without-signal-module was given. |
| 11148 | if test "${with_signal_module+set}" = set; then |
| 11149 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11151 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11152 | |
| 11153 | if test -z "$with_signal_module" |
| 11154 | then with_signal_module="yes" |
| 11155 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11156 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 11157 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11158 | |
| 11159 | if test "${with_signal_module}" = "yes"; then |
| 11160 | USE_SIGNAL_MODULE="" |
| 11161 | SIGNAL_OBJS="" |
| 11162 | else |
| 11163 | USE_SIGNAL_MODULE="#" |
| 11164 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 11165 | fi |
| 11166 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 11167 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 11168 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11169 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 11170 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11171 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 11172 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 11173 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11174 | |
| 11175 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 11176 | if test "${with_dec_threads+set}" = set; then |
| 11177 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11178 | |
| 11179 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11180 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11181 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 11182 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11183 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 11184 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11185 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11186 | echo "$as_me:$LINENO: result: no" >&5 |
| 11187 | echo "${ECHO_T}no" >&6 |
| 11188 | fi; |
| 11189 | |
| 11190 | # Templates for things AC_DEFINEd more than once. |
| 11191 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11192 | |
| 11193 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11194 | |
| 11195 | |
| 11196 | |
| 11197 | |
| 11198 | |
| 11199 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 11200 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 11201 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11202 | # Check whether --with-threads or --without-threads was given. |
| 11203 | if test "${with_threads+set}" = set; then |
| 11204 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11205 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11206 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11207 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11208 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11209 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11210 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11211 | if test "${with_thread+set}" = set; then |
| 11212 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11213 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11214 | fi; |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11215 | |
| 11216 | if test -z "$with_threads" |
| 11217 | then with_threads="yes" |
| 11218 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11219 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 11220 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11221 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11222 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11223 | if test "$with_threads" = "no" |
| 11224 | then |
| 11225 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11226 | elif test "$ac_cv_pthread_is_default" = yes |
| 11227 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11228 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11229 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11230 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11231 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11232 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11233 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11234 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11235 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11236 | |
| 11237 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11238 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11239 | elif test "$ac_cv_kpthread" = "yes" |
| 11240 | then |
| 11241 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11242 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11243 | CXX="$CXX -Kpthread" |
| 11244 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11245 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 11246 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11247 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 11248 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11249 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11250 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 11251 | elif test "$ac_cv_kthread" = "yes" |
| 11252 | then |
| 11253 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11254 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11255 | CXX="$CXX -Kthread" |
| 11256 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 11257 | cat >>confdefs.h <<\_ACEOF |
| 11258 | #define WITH_THREAD 1 |
| 11259 | _ACEOF |
| 11260 | |
| 11261 | posix_threads=yes |
| 11262 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11263 | elif test "$ac_cv_pthread" = "yes" |
| 11264 | then |
| 11265 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11266 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11267 | CXX="$CXX -pthread" |
| 11268 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11269 | cat >>confdefs.h <<\_ACEOF |
| 11270 | #define WITH_THREAD 1 |
| 11271 | _ACEOF |
| 11272 | |
| 11273 | posix_threads=yes |
| 11274 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11275 | else |
| 11276 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 11277 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 11278 | fi |
| 11279 | if test ! -z "$withval" -a -d "$withval" |
| 11280 | then LDFLAGS="$LDFLAGS -L$withval" |
| 11281 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11282 | |
| 11283 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 11284 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 11285 | # (e.g. gnu pth with pthread emulation) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11286 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 11287 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 11288 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11289 | /* confdefs.h. */ |
| 11290 | _ACEOF |
| 11291 | cat confdefs.h >>conftest.$ac_ext |
| 11292 | cat >>conftest.$ac_ext <<_ACEOF |
| 11293 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11294 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11295 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11296 | #ifdef _POSIX_THREADS |
| 11297 | yes |
| 11298 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11299 | |
| 11300 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11301 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11302 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11303 | unistd_defines_pthreads=yes |
| 11304 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11305 | unistd_defines_pthreads=no |
| 11306 | fi |
| 11307 | rm -f conftest* |
| 11308 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11309 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 11310 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11311 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11312 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 11313 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11314 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 11315 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11316 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11317 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 11318 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 11319 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11321 | fi |
| 11322 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 11323 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11324 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11325 | # Is the header compilable? |
| 11326 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 11327 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 11328 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11329 | /* confdefs.h. */ |
| 11330 | _ACEOF |
| 11331 | cat confdefs.h >>conftest.$ac_ext |
| 11332 | cat >>conftest.$ac_ext <<_ACEOF |
| 11333 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11334 | $ac_includes_default |
| 11335 | #include <cthreads.h> |
| 11336 | _ACEOF |
| 11337 | rm -f conftest.$ac_objext |
| 11338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11339 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11340 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11342 | rm -f conftest.er1 |
| 11343 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11345 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 11346 | { ac_try='test -z "$ac_c_werror_flag" |
| 11347 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11349 | (eval $ac_try) 2>&5 |
| 11350 | ac_status=$? |
| 11351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11352 | (exit $ac_status); }; } && |
| 11353 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11355 | (eval $ac_try) 2>&5 |
| 11356 | ac_status=$? |
| 11357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11358 | (exit $ac_status); }; }; then |
| 11359 | ac_header_compiler=yes |
| 11360 | else |
| 11361 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11363 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11364 | ac_header_compiler=no |
| 11365 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11366 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11367 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11368 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11369 | |
| 11370 | # Is the header present? |
| 11371 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 11372 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 11373 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11374 | /* confdefs.h. */ |
| 11375 | _ACEOF |
| 11376 | cat confdefs.h >>conftest.$ac_ext |
| 11377 | cat >>conftest.$ac_ext <<_ACEOF |
| 11378 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11379 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11380 | _ACEOF |
| 11381 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11382 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11383 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11384 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11385 | rm -f conftest.er1 |
| 11386 | cat conftest.err >&5 |
| 11387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11388 | (exit $ac_status); } >/dev/null; then |
| 11389 | if test -s conftest.err; then |
| 11390 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11391 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11392 | else |
| 11393 | ac_cpp_err= |
| 11394 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11395 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11396 | ac_cpp_err=yes |
| 11397 | fi |
| 11398 | if test -z "$ac_cpp_err"; then |
| 11399 | ac_header_preproc=yes |
| 11400 | else |
| 11401 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11402 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11403 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11404 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11405 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11406 | rm -f conftest.err conftest.$ac_ext |
| 11407 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11408 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11409 | |
| 11410 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11411 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11412 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11413 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11414 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11415 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 11416 | echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;} |
| 11417 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11418 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11419 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11420 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 11421 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11422 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 11423 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 11424 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 11425 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 11426 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11427 | echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11428 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 11429 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11430 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 11431 | echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11432 | ( |
| 11433 | cat <<\_ASBOX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11434 | ## --------------------------------- ## |
| 11435 | ## Report this to the python lists. ## |
| 11436 | ## --------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11437 | _ASBOX |
| 11438 | ) | |
| 11439 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11440 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11441 | esac |
| 11442 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 11443 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 11444 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11446 | else |
| 11447 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11448 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11449 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 11450 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 11451 | |
| 11452 | fi |
| 11453 | if test $ac_cv_header_cthreads_h = yes; then |
| 11454 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11455 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11456 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11457 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11458 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11459 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11460 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11461 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11462 | |
| 11463 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11464 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11465 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11466 | |
| 11467 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11468 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11469 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11470 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11471 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11472 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 11473 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 11474 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11476 | fi |
| 11477 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 11478 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11479 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11480 | # Is the header compilable? |
| 11481 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 11482 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 11483 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11484 | /* confdefs.h. */ |
| 11485 | _ACEOF |
| 11486 | cat confdefs.h >>conftest.$ac_ext |
| 11487 | cat >>conftest.$ac_ext <<_ACEOF |
| 11488 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11489 | $ac_includes_default |
| 11490 | #include <mach/cthreads.h> |
| 11491 | _ACEOF |
| 11492 | rm -f conftest.$ac_objext |
| 11493 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11494 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11495 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11496 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11497 | rm -f conftest.er1 |
| 11498 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11500 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 11501 | { ac_try='test -z "$ac_c_werror_flag" |
| 11502 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11504 | (eval $ac_try) 2>&5 |
| 11505 | ac_status=$? |
| 11506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11507 | (exit $ac_status); }; } && |
| 11508 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11510 | (eval $ac_try) 2>&5 |
| 11511 | ac_status=$? |
| 11512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11513 | (exit $ac_status); }; }; then |
| 11514 | ac_header_compiler=yes |
| 11515 | else |
| 11516 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11518 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11519 | ac_header_compiler=no |
| 11520 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11521 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11522 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11523 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11524 | |
| 11525 | # Is the header present? |
| 11526 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 11527 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 11528 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11529 | /* confdefs.h. */ |
| 11530 | _ACEOF |
| 11531 | cat confdefs.h >>conftest.$ac_ext |
| 11532 | cat >>conftest.$ac_ext <<_ACEOF |
| 11533 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11534 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11535 | _ACEOF |
| 11536 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11537 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11538 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11539 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11540 | rm -f conftest.er1 |
| 11541 | cat conftest.err >&5 |
| 11542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11543 | (exit $ac_status); } >/dev/null; then |
| 11544 | if test -s conftest.err; then |
| 11545 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11546 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11547 | else |
| 11548 | ac_cpp_err= |
| 11549 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11550 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11551 | ac_cpp_err=yes |
| 11552 | fi |
| 11553 | if test -z "$ac_cpp_err"; then |
| 11554 | ac_header_preproc=yes |
| 11555 | else |
| 11556 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11558 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11559 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11560 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11561 | rm -f conftest.err conftest.$ac_ext |
| 11562 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11563 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11564 | |
| 11565 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11566 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11567 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11568 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11569 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11570 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 11571 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;} |
| 11572 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11573 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11574 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11575 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 11576 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11577 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 11578 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 11579 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 11580 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 11581 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11582 | echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11583 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 11584 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11585 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 11586 | echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11587 | ( |
| 11588 | cat <<\_ASBOX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11589 | ## --------------------------------- ## |
| 11590 | ## Report this to the python lists. ## |
| 11591 | ## --------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11592 | _ASBOX |
| 11593 | ) | |
| 11594 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11595 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11596 | esac |
| 11597 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 11598 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 11599 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11601 | else |
| 11602 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11603 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11604 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 11605 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 11606 | |
| 11607 | fi |
| 11608 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 11609 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11610 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11611 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11612 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11613 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11614 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11615 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11616 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11617 | |
| 11618 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11619 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11620 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11621 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11622 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11623 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11624 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11625 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 11626 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 11627 | |
| 11628 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11629 | if test "${with_pth+set}" = set; then |
| 11630 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11631 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11632 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11633 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11634 | #define WITH_THREAD 1 |
| 11635 | _ACEOF |
| 11636 | |
| 11637 | |
| 11638 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11639 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11640 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11641 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11642 | LIBS="-lpth $LIBS" |
| 11643 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11644 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11645 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11646 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11647 | |
| 11648 | # Just looking for pthread_create in libpthread is not enough: |
| 11649 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 11650 | # So we really have to include pthread.h, and then link. |
| 11651 | _libs=$LIBS |
| 11652 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11653 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 11654 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 11655 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11656 | /* confdefs.h. */ |
| 11657 | _ACEOF |
| 11658 | cat confdefs.h >>conftest.$ac_ext |
| 11659 | cat >>conftest.$ac_ext <<_ACEOF |
| 11660 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11661 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11662 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11663 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11664 | int |
| 11665 | main () |
| 11666 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11667 | |
| 11668 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11669 | ; |
| 11670 | return 0; |
| 11671 | } |
| 11672 | _ACEOF |
| 11673 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11675 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11676 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11678 | rm -f conftest.er1 |
| 11679 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11681 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 11682 | { ac_try='test -z "$ac_c_werror_flag" |
| 11683 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11685 | (eval $ac_try) 2>&5 |
| 11686 | ac_status=$? |
| 11687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11688 | (exit $ac_status); }; } && |
| 11689 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11691 | (eval $ac_try) 2>&5 |
| 11692 | ac_status=$? |
| 11693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11694 | (exit $ac_status); }; }; then |
| 11695 | |
| 11696 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11697 | echo "${ECHO_T}yes" >&6 |
| 11698 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11699 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11700 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11701 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11702 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11703 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11704 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11705 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11706 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11707 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11708 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11709 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11710 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 11711 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 11712 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 11713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11714 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11715 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11716 | /* confdefs.h. */ |
| 11717 | _ACEOF |
| 11718 | cat confdefs.h >>conftest.$ac_ext |
| 11719 | cat >>conftest.$ac_ext <<_ACEOF |
| 11720 | /* end confdefs.h. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11721 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11722 | which can conflict with char pthread_detach (); below. |
| 11723 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 11724 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 11725 | including <limits.h> includes <sys/time.h> and causes problems |
| 11726 | checking for functions defined therein. */ |
| 11727 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11728 | # include <limits.h> |
| 11729 | #else |
| 11730 | # include <assert.h> |
| 11731 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11732 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11733 | #ifdef __cplusplus |
| 11734 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11735 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11736 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11737 | /* 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] | 11738 | builtin and then its argument prototype would still apply. */ |
| 11739 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11740 | /* The GNU C library defines this for functions which it implements |
| 11741 | to always fail with ENOSYS. Some functions are actually named |
| 11742 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 11743 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11744 | choke me |
| 11745 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11746 | char (*f) () = pthread_detach; |
| 11747 | #endif |
| 11748 | #ifdef __cplusplus |
| 11749 | } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11750 | #endif |
| 11751 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11752 | int |
| 11753 | main () |
| 11754 | { |
| 11755 | return f != pthread_detach; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11756 | ; |
| 11757 | return 0; |
| 11758 | } |
| 11759 | _ACEOF |
| 11760 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11762 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11763 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11765 | rm -f conftest.er1 |
| 11766 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11768 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 11769 | { ac_try='test -z "$ac_c_werror_flag" |
| 11770 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11772 | (eval $ac_try) 2>&5 |
| 11773 | ac_status=$? |
| 11774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11775 | (exit $ac_status); }; } && |
| 11776 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11778 | (eval $ac_try) 2>&5 |
| 11779 | ac_status=$? |
| 11780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11781 | (exit $ac_status); }; }; then |
| 11782 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11783 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11784 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11786 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11787 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11788 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11789 | rm -f conftest.err conftest.$ac_objext \ |
| 11790 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11791 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11792 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 11793 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 11794 | if test $ac_cv_func_pthread_detach = yes; then |
| 11795 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11796 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11797 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11798 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11799 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11800 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11801 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11802 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11803 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11804 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 11805 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 11806 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11808 | fi |
| 11809 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 11810 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 11811 | else |
| 11812 | # Is the header compilable? |
| 11813 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 11814 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 11815 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11816 | /* confdefs.h. */ |
| 11817 | _ACEOF |
| 11818 | cat confdefs.h >>conftest.$ac_ext |
| 11819 | cat >>conftest.$ac_ext <<_ACEOF |
| 11820 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11821 | $ac_includes_default |
| 11822 | #include <atheos/threads.h> |
| 11823 | _ACEOF |
| 11824 | rm -f conftest.$ac_objext |
| 11825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11826 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11827 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11828 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11829 | rm -f conftest.er1 |
| 11830 | cat conftest.err >&5 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11832 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 11833 | { ac_try='test -z "$ac_c_werror_flag" |
| 11834 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11836 | (eval $ac_try) 2>&5 |
| 11837 | ac_status=$? |
| 11838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11839 | (exit $ac_status); }; } && |
| 11840 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11842 | (eval $ac_try) 2>&5 |
| 11843 | ac_status=$? |
| 11844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11845 | (exit $ac_status); }; }; then |
| 11846 | ac_header_compiler=yes |
| 11847 | else |
| 11848 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11849 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11850 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11851 | ac_header_compiler=no |
| 11852 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11853 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11854 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11855 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11856 | |
| 11857 | # Is the header present? |
| 11858 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 11859 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 11860 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11861 | /* confdefs.h. */ |
| 11862 | _ACEOF |
| 11863 | cat confdefs.h >>conftest.$ac_ext |
| 11864 | cat >>conftest.$ac_ext <<_ACEOF |
| 11865 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11866 | #include <atheos/threads.h> |
| 11867 | _ACEOF |
| 11868 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11869 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11870 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11871 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11872 | rm -f conftest.er1 |
| 11873 | cat conftest.err >&5 |
| 11874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11875 | (exit $ac_status); } >/dev/null; then |
| 11876 | if test -s conftest.err; then |
| 11877 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11878 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11879 | else |
| 11880 | ac_cpp_err= |
| 11881 | fi |
| 11882 | else |
| 11883 | ac_cpp_err=yes |
| 11884 | fi |
| 11885 | if test -z "$ac_cpp_err"; then |
| 11886 | ac_header_preproc=yes |
| 11887 | else |
| 11888 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11890 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11891 | ac_header_preproc=no |
| 11892 | fi |
| 11893 | rm -f conftest.err conftest.$ac_ext |
| 11894 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11895 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11896 | |
| 11897 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11898 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11899 | yes:no: ) |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11900 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11901 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11902 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 11903 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;} |
| 11904 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11905 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11906 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11907 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 11908 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11909 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 11910 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 11911 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 11912 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 11913 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11914 | echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11915 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 11916 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11917 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 11918 | echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11919 | ( |
| 11920 | cat <<\_ASBOX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11921 | ## --------------------------------- ## |
| 11922 | ## Report this to the python lists. ## |
| 11923 | ## --------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11924 | _ASBOX |
| 11925 | ) | |
| 11926 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11927 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11928 | esac |
| 11929 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 11930 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 11931 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11933 | else |
| 11934 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 11935 | fi |
| 11936 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 11937 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 11938 | |
| 11939 | fi |
| 11940 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 11941 | cat >>confdefs.h <<\_ACEOF |
| 11942 | #define WITH_THREAD 1 |
| 11943 | _ACEOF |
| 11944 | |
| 11945 | |
| 11946 | cat >>confdefs.h <<\_ACEOF |
| 11947 | #define ATHEOS_THREADS 1 |
| 11948 | _ACEOF |
| 11949 | |
| 11950 | THREADOBJ="Python/thread.o" |
| 11951 | else |
| 11952 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11953 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11954 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 11955 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 11956 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11958 | fi |
| 11959 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 11960 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11961 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11962 | # Is the header compilable? |
| 11963 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 11964 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 11965 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11966 | /* confdefs.h. */ |
| 11967 | _ACEOF |
| 11968 | cat confdefs.h >>conftest.$ac_ext |
| 11969 | cat >>conftest.$ac_ext <<_ACEOF |
| 11970 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11971 | $ac_includes_default |
| 11972 | #include <kernel/OS.h> |
| 11973 | _ACEOF |
| 11974 | rm -f conftest.$ac_objext |
| 11975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11976 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11977 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11978 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11979 | rm -f conftest.er1 |
| 11980 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11982 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 11983 | { ac_try='test -z "$ac_c_werror_flag" |
| 11984 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11986 | (eval $ac_try) 2>&5 |
| 11987 | ac_status=$? |
| 11988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11989 | (exit $ac_status); }; } && |
| 11990 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11992 | (eval $ac_try) 2>&5 |
| 11993 | ac_status=$? |
| 11994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11995 | (exit $ac_status); }; }; then |
| 11996 | ac_header_compiler=yes |
| 11997 | else |
| 11998 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12000 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12001 | ac_header_compiler=no |
| 12002 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12003 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12004 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12005 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12006 | |
| 12007 | # Is the header present? |
| 12008 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 12009 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 12010 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12011 | /* confdefs.h. */ |
| 12012 | _ACEOF |
| 12013 | cat confdefs.h >>conftest.$ac_ext |
| 12014 | cat >>conftest.$ac_ext <<_ACEOF |
| 12015 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12016 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12017 | _ACEOF |
| 12018 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12019 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12020 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12021 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12022 | rm -f conftest.er1 |
| 12023 | cat conftest.err >&5 |
| 12024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12025 | (exit $ac_status); } >/dev/null; then |
| 12026 | if test -s conftest.err; then |
| 12027 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12028 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12029 | else |
| 12030 | ac_cpp_err= |
| 12031 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12032 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12033 | ac_cpp_err=yes |
| 12034 | fi |
| 12035 | if test -z "$ac_cpp_err"; then |
| 12036 | ac_header_preproc=yes |
| 12037 | else |
| 12038 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12040 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12041 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12042 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12043 | rm -f conftest.err conftest.$ac_ext |
| 12044 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12045 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12046 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12047 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12048 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12049 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12050 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12051 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12052 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| 12053 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;} |
| 12054 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12055 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12056 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12057 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 12058 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12059 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 12060 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 12061 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| 12062 | echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| 12063 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12064 | echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12065 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 12066 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12067 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| 12068 | echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12069 | ( |
| 12070 | cat <<\_ASBOX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12071 | ## --------------------------------- ## |
| 12072 | ## Report this to the python lists. ## |
| 12073 | ## --------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12074 | _ASBOX |
| 12075 | ) | |
| 12076 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12077 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12078 | esac |
| 12079 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 12080 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 12081 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 12082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12083 | else |
| 12084 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 12085 | fi |
| 12086 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 12087 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 12088 | |
| 12089 | fi |
| 12090 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 12091 | cat >>confdefs.h <<\_ACEOF |
| 12092 | #define WITH_THREAD 1 |
| 12093 | _ACEOF |
| 12094 | |
| 12095 | |
| 12096 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12097 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12098 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12099 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12100 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12101 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12102 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12103 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 12104 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 12105 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 12106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12107 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12108 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12109 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12110 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12111 | /* confdefs.h. */ |
| 12112 | _ACEOF |
| 12113 | cat confdefs.h >>conftest.$ac_ext |
| 12114 | cat >>conftest.$ac_ext <<_ACEOF |
| 12115 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12116 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12117 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12118 | #ifdef __cplusplus |
| 12119 | extern "C" |
| 12120 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12121 | /* 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] | 12122 | builtin and then its argument prototype would still apply. */ |
| 12123 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12124 | int |
| 12125 | main () |
| 12126 | { |
| 12127 | pthread_create (); |
| 12128 | ; |
| 12129 | return 0; |
| 12130 | } |
| 12131 | _ACEOF |
| 12132 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12133 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12134 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12135 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12137 | rm -f conftest.er1 |
| 12138 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12140 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 12141 | { ac_try='test -z "$ac_c_werror_flag" |
| 12142 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12144 | (eval $ac_try) 2>&5 |
| 12145 | ac_status=$? |
| 12146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12147 | (exit $ac_status); }; } && |
| 12148 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12150 | (eval $ac_try) 2>&5 |
| 12151 | ac_status=$? |
| 12152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12153 | (exit $ac_status); }; }; then |
| 12154 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12155 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12156 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12158 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12159 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12160 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12161 | rm -f conftest.err conftest.$ac_objext \ |
| 12162 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12163 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12164 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12165 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 12166 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 12167 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 12168 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12169 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12170 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12171 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12172 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12173 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12174 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12175 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12176 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12177 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 12178 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 12179 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 12180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12181 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12182 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12183 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12184 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12185 | /* confdefs.h. */ |
| 12186 | _ACEOF |
| 12187 | cat confdefs.h >>conftest.$ac_ext |
| 12188 | cat >>conftest.$ac_ext <<_ACEOF |
| 12189 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12190 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12191 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12192 | #ifdef __cplusplus |
| 12193 | extern "C" |
| 12194 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12195 | /* 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] | 12196 | builtin and then its argument prototype would still apply. */ |
| 12197 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12198 | int |
| 12199 | main () |
| 12200 | { |
| 12201 | pthread_create (); |
| 12202 | ; |
| 12203 | return 0; |
| 12204 | } |
| 12205 | _ACEOF |
| 12206 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12207 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12208 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12209 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12211 | rm -f conftest.er1 |
| 12212 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12214 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 12215 | { ac_try='test -z "$ac_c_werror_flag" |
| 12216 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12218 | (eval $ac_try) 2>&5 |
| 12219 | ac_status=$? |
| 12220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12221 | (exit $ac_status); }; } && |
| 12222 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12224 | (eval $ac_try) 2>&5 |
| 12225 | ac_status=$? |
| 12226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12227 | (exit $ac_status); }; }; then |
| 12228 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12229 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12230 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12232 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12233 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12234 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12235 | rm -f conftest.err conftest.$ac_objext \ |
| 12236 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12237 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12238 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12239 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 12240 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 12241 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 12242 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12243 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12244 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12245 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12246 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12247 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12248 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12249 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12250 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12251 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 12252 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 12253 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 12254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12255 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12256 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12257 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12258 | cat >conftest.$ac_ext <<_ACEOF |
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 | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12264 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12265 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12266 | #ifdef __cplusplus |
| 12267 | extern "C" |
| 12268 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12269 | /* 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] | 12270 | builtin and then its argument prototype would still apply. */ |
| 12271 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12272 | int |
| 12273 | main () |
| 12274 | { |
| 12275 | __pthread_create_system (); |
| 12276 | ; |
| 12277 | return 0; |
| 12278 | } |
| 12279 | _ACEOF |
| 12280 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12281 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12282 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12283 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12284 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12285 | rm -f conftest.er1 |
| 12286 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12288 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 12289 | { ac_try='test -z "$ac_c_werror_flag" |
| 12290 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12292 | (eval $ac_try) 2>&5 |
| 12293 | ac_status=$? |
| 12294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12295 | (exit $ac_status); }; } && |
| 12296 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12298 | (eval $ac_try) 2>&5 |
| 12299 | ac_status=$? |
| 12300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12301 | (exit $ac_status); }; }; then |
| 12302 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12303 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12304 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12306 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12307 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12308 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12309 | rm -f conftest.err conftest.$ac_objext \ |
| 12310 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12311 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12312 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12313 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 12314 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 12315 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 12316 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12317 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12318 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12319 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12320 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12321 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12322 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12323 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12324 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12325 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 12326 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 12327 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 12328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12329 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12330 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12331 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12332 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12333 | /* confdefs.h. */ |
| 12334 | _ACEOF |
| 12335 | cat confdefs.h >>conftest.$ac_ext |
| 12336 | cat >>conftest.$ac_ext <<_ACEOF |
| 12337 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12338 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12339 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12340 | #ifdef __cplusplus |
| 12341 | extern "C" |
| 12342 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12343 | /* 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] | 12344 | builtin and then its argument prototype would still apply. */ |
| 12345 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12346 | int |
| 12347 | main () |
| 12348 | { |
| 12349 | pthread_create (); |
| 12350 | ; |
| 12351 | return 0; |
| 12352 | } |
| 12353 | _ACEOF |
| 12354 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12355 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12356 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12357 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12358 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12359 | rm -f conftest.er1 |
| 12360 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12362 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 12363 | { ac_try='test -z "$ac_c_werror_flag" |
| 12364 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12366 | (eval $ac_try) 2>&5 |
| 12367 | ac_status=$? |
| 12368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12369 | (exit $ac_status); }; } && |
| 12370 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12372 | (eval $ac_try) 2>&5 |
| 12373 | ac_status=$? |
| 12374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12375 | (exit $ac_status); }; }; then |
| 12376 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12377 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12378 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12379 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12380 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12381 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12382 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12383 | rm -f conftest.err conftest.$ac_objext \ |
| 12384 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12385 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12386 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12387 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 12388 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 12389 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 12390 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12391 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12392 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12393 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12394 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12395 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12396 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12397 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 12398 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12399 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 12400 | fi |
| 12401 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12402 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12403 | fi |
| 12404 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 12405 | fi |
| 12406 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12407 | fi |
| 12408 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12409 | fi |
| 12410 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12411 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12412 | fi |
| 12413 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12414 | |
| 12415 | fi |
| 12416 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12417 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12418 | rm -f conftest.err conftest.$ac_objext \ |
| 12419 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12420 | fi; |
| 12421 | fi |
| 12422 | |
| 12423 | |
| 12424 | fi |
| 12425 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12426 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12427 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12428 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 12429 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 12430 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 12431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12432 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12433 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12434 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12435 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12436 | /* confdefs.h. */ |
| 12437 | _ACEOF |
| 12438 | cat confdefs.h >>conftest.$ac_ext |
| 12439 | cat >>conftest.$ac_ext <<_ACEOF |
| 12440 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12441 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12442 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12443 | #ifdef __cplusplus |
| 12444 | extern "C" |
| 12445 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12446 | /* 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] | 12447 | builtin and then its argument prototype would still apply. */ |
| 12448 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12449 | int |
| 12450 | main () |
| 12451 | { |
| 12452 | usconfig (); |
| 12453 | ; |
| 12454 | return 0; |
| 12455 | } |
| 12456 | _ACEOF |
| 12457 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12458 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12459 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12460 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12462 | rm -f conftest.er1 |
| 12463 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12465 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 12466 | { ac_try='test -z "$ac_c_werror_flag" |
| 12467 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12469 | (eval $ac_try) 2>&5 |
| 12470 | ac_status=$? |
| 12471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12472 | (exit $ac_status); }; } && |
| 12473 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12475 | (eval $ac_try) 2>&5 |
| 12476 | ac_status=$? |
| 12477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12478 | (exit $ac_status); }; }; then |
| 12479 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12480 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12481 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12483 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12484 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12485 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12486 | rm -f conftest.err conftest.$ac_objext \ |
| 12487 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12488 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12489 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12490 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 12491 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 12492 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 12493 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12494 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12495 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12496 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12497 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12498 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12499 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12500 | fi |
| 12501 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12502 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 12503 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12504 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 12505 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 12506 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 12507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12508 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12509 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12510 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12511 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12512 | /* confdefs.h. */ |
| 12513 | _ACEOF |
| 12514 | cat confdefs.h >>conftest.$ac_ext |
| 12515 | cat >>conftest.$ac_ext <<_ACEOF |
| 12516 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12517 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12518 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12519 | #ifdef __cplusplus |
| 12520 | extern "C" |
| 12521 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12522 | /* 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] | 12523 | builtin and then its argument prototype would still apply. */ |
| 12524 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12525 | int |
| 12526 | main () |
| 12527 | { |
| 12528 | thr_create (); |
| 12529 | ; |
| 12530 | return 0; |
| 12531 | } |
| 12532 | _ACEOF |
| 12533 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12534 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12535 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12536 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12537 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12538 | rm -f conftest.er1 |
| 12539 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12541 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 12542 | { ac_try='test -z "$ac_c_werror_flag" |
| 12543 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12545 | (eval $ac_try) 2>&5 |
| 12546 | ac_status=$? |
| 12547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12548 | (exit $ac_status); }; } && |
| 12549 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12551 | (eval $ac_try) 2>&5 |
| 12552 | ac_status=$? |
| 12553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12554 | (exit $ac_status); }; }; then |
| 12555 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12556 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12557 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12558 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12559 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12560 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12561 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12562 | rm -f conftest.err conftest.$ac_objext \ |
| 12563 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12564 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12565 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12566 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 12567 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 12568 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 12569 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12570 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12571 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12572 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12573 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12574 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12575 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12576 | fi |
| 12577 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12578 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12579 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12580 | if test "$USE_THREAD_MODULE" != "#" |
| 12581 | then |
| 12582 | # If the above checks didn't disable threads, (at least) OSF1 |
| 12583 | # needs this '-threads' argument during linking. |
| 12584 | case $ac_sys_system in |
| 12585 | OSF1) LDLAST=-threads;; |
| 12586 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 12587 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12588 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12589 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12590 | if test "$posix_threads" = "yes"; then |
| 12591 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12592 | |
| 12593 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12594 | #define _POSIX_THREADS 1 |
| 12595 | _ACEOF |
| 12596 | |
| 12597 | fi |
| 12598 | |
| 12599 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 12600 | case $ac_sys_system/$ac_sys_release in |
| 12601 | SunOS/5.6) |
| 12602 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12603 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 12604 | _ACEOF |
| 12605 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12606 | ;; |
| 12607 | SunOS/5.8) |
| 12608 | cat >>confdefs.h <<\_ACEOF |
| 12609 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 12610 | _ACEOF |
| 12611 | |
| 12612 | ;; |
| 12613 | esac |
| 12614 | |
| 12615 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 12616 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 12617 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 12618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12619 | else |
| 12620 | if test "$cross_compiling" = yes; then |
| 12621 | ac_cv_pthread_system_supported=no |
| 12622 | else |
| 12623 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12624 | /* confdefs.h. */ |
| 12625 | _ACEOF |
| 12626 | cat confdefs.h >>conftest.$ac_ext |
| 12627 | cat >>conftest.$ac_ext <<_ACEOF |
| 12628 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12629 | #include <pthread.h> |
| 12630 | void *foo(void *parm) { |
| 12631 | return NULL; |
| 12632 | } |
| 12633 | main() { |
| 12634 | pthread_attr_t attr; |
| 12635 | pthread_t id; |
| 12636 | if (pthread_attr_init(&attr)) exit(-1); |
| 12637 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 12638 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 12639 | exit(0); |
| 12640 | } |
| 12641 | _ACEOF |
| 12642 | rm -f conftest$ac_exeext |
| 12643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12644 | (eval $ac_link) 2>&5 |
| 12645 | ac_status=$? |
| 12646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12647 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12649 | (eval $ac_try) 2>&5 |
| 12650 | ac_status=$? |
| 12651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12652 | (exit $ac_status); }; }; then |
| 12653 | ac_cv_pthread_system_supported=yes |
| 12654 | else |
| 12655 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12656 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12658 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12659 | ( exit $ac_status ) |
| 12660 | ac_cv_pthread_system_supported=no |
| 12661 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12662 | rm -f 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] | 12663 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12664 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12665 | fi |
| 12666 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12667 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 12668 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
| 12669 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 12670 | |
| 12671 | cat >>confdefs.h <<\_ACEOF |
| 12672 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 12673 | _ACEOF |
| 12674 | |
| 12675 | fi |
| 12676 | |
| 12677 | for ac_func in pthread_sigmask |
| 12678 | do |
| 12679 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12680 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12681 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12682 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12684 | else |
| 12685 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12686 | /* confdefs.h. */ |
| 12687 | _ACEOF |
| 12688 | cat confdefs.h >>conftest.$ac_ext |
| 12689 | cat >>conftest.$ac_ext <<_ACEOF |
| 12690 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12691 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12692 | which can conflict with char $ac_func (); below. |
| 12693 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 12694 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 12695 | including <limits.h> includes <sys/time.h> and causes problems |
| 12696 | checking for functions defined therein. */ |
| 12697 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12698 | # include <limits.h> |
| 12699 | #else |
| 12700 | # include <assert.h> |
| 12701 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12702 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12703 | #ifdef __cplusplus |
| 12704 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12705 | { |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12706 | #endif |
| 12707 | /* We use char because int might match the return type of a gcc2 |
| 12708 | builtin and then its argument prototype would still apply. */ |
| 12709 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12710 | /* The GNU C library defines this for functions which it implements |
| 12711 | to always fail with ENOSYS. Some functions are actually named |
| 12712 | something starting with __ and the normal name is an alias. */ |
| 12713 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12714 | choke me |
| 12715 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12716 | char (*f) () = $ac_func; |
| 12717 | #endif |
| 12718 | #ifdef __cplusplus |
| 12719 | } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12720 | #endif |
| 12721 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12722 | int |
| 12723 | main () |
| 12724 | { |
| 12725 | return f != $ac_func; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12726 | ; |
| 12727 | return 0; |
| 12728 | } |
| 12729 | _ACEOF |
| 12730 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12731 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12732 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12733 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12735 | rm -f conftest.er1 |
| 12736 | cat conftest.err >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12738 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 12739 | { ac_try='test -z "$ac_c_werror_flag" |
| 12740 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12742 | (eval $ac_try) 2>&5 |
| 12743 | ac_status=$? |
| 12744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12745 | (exit $ac_status); }; } && |
| 12746 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12748 | (eval $ac_try) 2>&5 |
| 12749 | ac_status=$? |
| 12750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12751 | (exit $ac_status); }; }; then |
| 12752 | eval "$as_ac_var=yes" |
| 12753 | else |
| 12754 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12756 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12757 | eval "$as_ac_var=no" |
| 12758 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12759 | rm -f conftest.err conftest.$ac_objext \ |
| 12760 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12761 | fi |
| 12762 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12763 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12764 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12765 | cat >>confdefs.h <<_ACEOF |
| 12766 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12767 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12768 | case $ac_sys_system in |
| 12769 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12770 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12771 | cat >>confdefs.h <<\_ACEOF |
| 12772 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 12773 | _ACEOF |
| 12774 | |
| 12775 | ;; |
| 12776 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12777 | fi |
| 12778 | done |
| 12779 | |
| 12780 | fi |
| 12781 | |
| 12782 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12783 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12784 | |
| 12785 | |
| 12786 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 12787 | 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] | 12788 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 12789 | if test "${enable_ipv6+set}" = set; then |
| 12790 | enableval="$enable_ipv6" |
| 12791 | case "$enableval" in |
| 12792 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12793 | echo "$as_me:$LINENO: result: no" >&5 |
| 12794 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12795 | ipv6=no |
| 12796 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12797 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 12798 | echo "${ECHO_T}yes" >&6 |
| 12799 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12800 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12801 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12802 | |
| 12803 | ipv6=yes |
| 12804 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12805 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12806 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12807 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12808 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12809 | echo "$as_me:$LINENO: result: no" >&5 |
| 12810 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12811 | ipv6=no |
| 12812 | |
| 12813 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12814 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12815 | /* confdefs.h. */ |
| 12816 | _ACEOF |
| 12817 | cat confdefs.h >>conftest.$ac_ext |
| 12818 | cat >>conftest.$ac_ext <<_ACEOF |
| 12819 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12820 | /* AF_INET6 available check */ |
| 12821 | #include <sys/types.h> |
| 12822 | #include <sys/socket.h> |
| 12823 | main() |
| 12824 | { |
| 12825 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 12826 | exit(1); |
| 12827 | else |
| 12828 | exit(0); |
| 12829 | } |
| 12830 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12831 | _ACEOF |
| 12832 | rm -f conftest$ac_exeext |
| 12833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12834 | (eval $ac_link) 2>&5 |
| 12835 | ac_status=$? |
| 12836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12837 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12839 | (eval $ac_try) 2>&5 |
| 12840 | ac_status=$? |
| 12841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12842 | (exit $ac_status); }; }; then |
| 12843 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12844 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12845 | ipv6=yes |
| 12846 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12847 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12848 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12849 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12850 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12851 | ( exit $ac_status ) |
| 12852 | echo "$as_me:$LINENO: result: no" >&5 |
| 12853 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12854 | ipv6=no |
| 12855 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12856 | rm -f 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] | 12857 | fi |
| 12858 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12859 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12860 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 12861 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 12862 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12863 | /* confdefs.h. */ |
| 12864 | _ACEOF |
| 12865 | cat confdefs.h >>conftest.$ac_ext |
| 12866 | cat >>conftest.$ac_ext <<_ACEOF |
| 12867 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12868 | #include <sys/types.h> |
| 12869 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12870 | int |
| 12871 | main () |
| 12872 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12873 | struct sockaddr_in6 x; |
| 12874 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12875 | ; |
| 12876 | return 0; |
| 12877 | } |
| 12878 | _ACEOF |
| 12879 | rm -f conftest.$ac_objext |
| 12880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12881 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12882 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12883 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12884 | rm -f conftest.er1 |
| 12885 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12887 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 12888 | { ac_try='test -z "$ac_c_werror_flag" |
| 12889 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12891 | (eval $ac_try) 2>&5 |
| 12892 | ac_status=$? |
| 12893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12894 | (exit $ac_status); }; } && |
| 12895 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12897 | (eval $ac_try) 2>&5 |
| 12898 | ac_status=$? |
| 12899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12900 | (exit $ac_status); }; }; then |
| 12901 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12902 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12903 | ipv6=yes |
| 12904 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12905 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12907 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12908 | echo "$as_me:$LINENO: result: no" >&5 |
| 12909 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12910 | ipv6=no |
| 12911 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12912 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12913 | fi |
| 12914 | |
| 12915 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12916 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12917 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12918 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12919 | |
| 12920 | fi |
| 12921 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12922 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12923 | |
| 12924 | ipv6type=unknown |
| 12925 | ipv6lib=none |
| 12926 | ipv6trylibc=no |
| 12927 | |
| 12928 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12929 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 12930 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 12931 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 12932 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12933 | case $i in |
| 12934 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12935 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12936 | /* confdefs.h. */ |
| 12937 | _ACEOF |
| 12938 | cat confdefs.h >>conftest.$ac_ext |
| 12939 | cat >>conftest.$ac_ext <<_ACEOF |
| 12940 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12941 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12942 | #include <netinet/in.h> |
| 12943 | #ifdef IPV6_INRIA_VERSION |
| 12944 | yes |
| 12945 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12946 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12947 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12948 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12949 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12950 | fi |
| 12951 | rm -f conftest* |
| 12952 | |
| 12953 | ;; |
| 12954 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12955 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12956 | /* confdefs.h. */ |
| 12957 | _ACEOF |
| 12958 | cat confdefs.h >>conftest.$ac_ext |
| 12959 | cat >>conftest.$ac_ext <<_ACEOF |
| 12960 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12961 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12962 | #include <netinet/in.h> |
| 12963 | #ifdef __KAME__ |
| 12964 | yes |
| 12965 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12966 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12967 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12968 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12969 | ipv6type=$i; |
| 12970 | ipv6lib=inet6 |
| 12971 | ipv6libdir=/usr/local/v6/lib |
| 12972 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12973 | fi |
| 12974 | rm -f conftest* |
| 12975 | |
| 12976 | ;; |
| 12977 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12978 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12979 | /* confdefs.h. */ |
| 12980 | _ACEOF |
| 12981 | cat confdefs.h >>conftest.$ac_ext |
| 12982 | cat >>conftest.$ac_ext <<_ACEOF |
| 12983 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12984 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12985 | #include <features.h> |
| 12986 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 12987 | yes |
| 12988 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12989 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12990 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12991 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12992 | ipv6type=$i; |
| 12993 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12994 | fi |
| 12995 | rm -f conftest* |
| 12996 | |
| 12997 | ;; |
| 12998 | linux-inet6) |
| 12999 | if test -d /usr/inet6; then |
| 13000 | ipv6type=$i |
| 13001 | ipv6lib=inet6 |
| 13002 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13003 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13004 | fi |
| 13005 | ;; |
| 13006 | solaris) |
| 13007 | if test -f /etc/netconfig; then |
| 13008 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 13009 | ipv6type=$i |
| 13010 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13011 | fi |
| 13012 | fi |
| 13013 | ;; |
| 13014 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13015 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13016 | /* confdefs.h. */ |
| 13017 | _ACEOF |
| 13018 | cat confdefs.h >>conftest.$ac_ext |
| 13019 | cat >>conftest.$ac_ext <<_ACEOF |
| 13020 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13021 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13022 | #include <sys/param.h> |
| 13023 | #ifdef _TOSHIBA_INET6 |
| 13024 | yes |
| 13025 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13026 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13027 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13028 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13029 | ipv6type=$i; |
| 13030 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 13031 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13032 | fi |
| 13033 | rm -f conftest* |
| 13034 | |
| 13035 | ;; |
| 13036 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13037 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13038 | /* confdefs.h. */ |
| 13039 | _ACEOF |
| 13040 | cat confdefs.h >>conftest.$ac_ext |
| 13041 | cat >>conftest.$ac_ext <<_ACEOF |
| 13042 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13043 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13044 | #include </usr/local/v6/include/sys/v6config.h> |
| 13045 | #ifdef __V6D__ |
| 13046 | yes |
| 13047 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13048 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13049 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13050 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13051 | ipv6type=$i; |
| 13052 | ipv6lib=v6; |
| 13053 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13054 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13055 | fi |
| 13056 | rm -f conftest* |
| 13057 | |
| 13058 | ;; |
| 13059 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13060 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13061 | /* confdefs.h. */ |
| 13062 | _ACEOF |
| 13063 | cat confdefs.h >>conftest.$ac_ext |
| 13064 | cat >>conftest.$ac_ext <<_ACEOF |
| 13065 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13066 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13067 | #include <sys/param.h> |
| 13068 | #ifdef _ZETA_MINAMI_INET6 |
| 13069 | yes |
| 13070 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13071 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13072 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13073 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13074 | ipv6type=$i; |
| 13075 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 13076 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13077 | fi |
| 13078 | rm -f conftest* |
| 13079 | |
| 13080 | ;; |
| 13081 | esac |
| 13082 | if test "$ipv6type" != "unknown"; then |
| 13083 | break |
| 13084 | fi |
| 13085 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13086 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 13087 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13088 | fi |
| 13089 | |
| 13090 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 13091 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 13092 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 13093 | echo "using lib$ipv6lib" |
| 13094 | else |
| 13095 | if test $ipv6trylibc = "yes"; then |
| 13096 | echo "using libc" |
| 13097 | else |
| 13098 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 13099 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 13100 | echo 'ipv6 kit and compile beforehand.' |
| 13101 | exit 1 |
| 13102 | fi |
| 13103 | fi |
| 13104 | fi |
| 13105 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 13106 | # Check for --with-doc-strings |
| 13107 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 13108 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 13109 | |
| 13110 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 13111 | if test "${with_doc_strings+set}" = set; then |
| 13112 | withval="$with_doc_strings" |
| 13113 | |
| 13114 | fi; |
| 13115 | |
| 13116 | if test -z "$with_doc_strings" |
| 13117 | then with_doc_strings="yes" |
| 13118 | fi |
| 13119 | if test "$with_doc_strings" != "no" |
| 13120 | then |
| 13121 | |
| 13122 | cat >>confdefs.h <<\_ACEOF |
| 13123 | #define WITH_DOC_STRINGS 1 |
| 13124 | _ACEOF |
| 13125 | |
| 13126 | fi |
| 13127 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 13128 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 13129 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13130 | # Check for Python-specific malloc support |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 13131 | echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 13132 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6 |
| 13133 | |
| 13134 | # Check whether --with-tsc or --without-tsc was given. |
| 13135 | if test "${with_tsc+set}" = set; then |
| 13136 | withval="$with_tsc" |
| 13137 | |
| 13138 | if test "$withval" != no |
| 13139 | then |
| 13140 | |
| 13141 | cat >>confdefs.h <<\_ACEOF |
| 13142 | #define WITH_TSC 1 |
| 13143 | _ACEOF |
| 13144 | |
| 13145 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13146 | echo "${ECHO_T}yes" >&6 |
| 13147 | else echo "$as_me:$LINENO: result: no" >&5 |
| 13148 | echo "${ECHO_T}no" >&6 |
| 13149 | fi |
| 13150 | else |
| 13151 | echo "$as_me:$LINENO: result: no" >&5 |
| 13152 | echo "${ECHO_T}no" >&6 |
| 13153 | fi; |
| 13154 | |
| 13155 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13156 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 13157 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 13158 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13159 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 13160 | if test "${with_pymalloc+set}" = set; then |
| 13161 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13162 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13163 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13164 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13165 | if test -z "$with_pymalloc" |
| 13166 | then with_pymalloc="yes" |
| 13167 | fi |
| 13168 | if test "$with_pymalloc" != "no" |
| 13169 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13170 | |
| 13171 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13172 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13173 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13174 | |
| 13175 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13176 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 13177 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13178 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13179 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13180 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 13181 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 13182 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13183 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 13184 | if test "${with_wctype_functions+set}" = set; then |
| 13185 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13186 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13187 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13188 | then |
| 13189 | |
| 13190 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13191 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13192 | _ACEOF |
| 13193 | |
| 13194 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13195 | echo "${ECHO_T}yes" >&6 |
| 13196 | else echo "$as_me:$LINENO: result: no" >&5 |
| 13197 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13198 | fi |
| 13199 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13200 | echo "$as_me:$LINENO: result: no" >&5 |
| 13201 | echo "${ECHO_T}no" >&6 |
| 13202 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13203 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13204 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13205 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 13206 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13207 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13208 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 13209 | # 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] | 13210 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13211 | for ac_func in dlopen |
| 13212 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13213 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13214 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13215 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13216 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13218 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13219 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13220 | /* confdefs.h. */ |
| 13221 | _ACEOF |
| 13222 | cat confdefs.h >>conftest.$ac_ext |
| 13223 | cat >>conftest.$ac_ext <<_ACEOF |
| 13224 | /* end confdefs.h. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13225 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13226 | which can conflict with char $ac_func (); below. |
| 13227 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13228 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13229 | including <limits.h> includes <sys/time.h> and causes problems |
| 13230 | checking for functions defined therein. */ |
| 13231 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13232 | # include <limits.h> |
| 13233 | #else |
| 13234 | # include <assert.h> |
| 13235 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13236 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13237 | #ifdef __cplusplus |
| 13238 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13239 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13240 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13241 | /* 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] | 13242 | builtin and then its argument prototype would still apply. */ |
| 13243 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13244 | /* The GNU C library defines this for functions which it implements |
| 13245 | to always fail with ENOSYS. Some functions are actually named |
| 13246 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13247 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13248 | choke me |
| 13249 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13250 | char (*f) () = $ac_func; |
| 13251 | #endif |
| 13252 | #ifdef __cplusplus |
| 13253 | } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13254 | #endif |
| 13255 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13256 | int |
| 13257 | main () |
| 13258 | { |
| 13259 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13260 | ; |
| 13261 | return 0; |
| 13262 | } |
| 13263 | _ACEOF |
| 13264 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13266 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13267 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13269 | rm -f conftest.er1 |
| 13270 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13272 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 13273 | { ac_try='test -z "$ac_c_werror_flag" |
| 13274 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13276 | (eval $ac_try) 2>&5 |
| 13277 | ac_status=$? |
| 13278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13279 | (exit $ac_status); }; } && |
| 13280 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13287 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13288 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13290 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13291 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13292 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13293 | rm -f conftest.err conftest.$ac_objext \ |
| 13294 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13295 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13296 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13297 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13298 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13299 | cat >>confdefs.h <<_ACEOF |
| 13300 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13301 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13302 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13303 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13304 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13305 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13306 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13307 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 13308 | # loading of modules. |
| 13309 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13310 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 13311 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13312 | if test -z "$DYNLOADFILE" |
| 13313 | then |
| 13314 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 13315 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 13316 | if test "$ac_cv_func_dlopen" = yes |
| 13317 | then DYNLOADFILE="dynload_shlib.o" |
| 13318 | else DYNLOADFILE="dynload_aix.o" |
| 13319 | fi |
| 13320 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13321 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 13322 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13323 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13324 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13325 | *) |
| 13326 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 13327 | # out any dynamic loading |
| 13328 | if test "$ac_cv_func_dlopen" = yes |
| 13329 | then DYNLOADFILE="dynload_shlib.o" |
| 13330 | else DYNLOADFILE="dynload_stub.o" |
| 13331 | fi |
| 13332 | ;; |
| 13333 | esac |
| 13334 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13335 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 13336 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13337 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 13338 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13339 | |
| 13340 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13341 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13342 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13343 | |
| 13344 | fi |
| 13345 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13346 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 13347 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13348 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13349 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 13350 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13351 | if test -z "$MACHDEP_OBJS" |
| 13352 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13353 | MACHDEP_OBJS=$extra_machdep_objs |
| 13354 | else |
| 13355 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13356 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13357 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 13358 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13359 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13360 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13361 | |
| 13362 | |
| 13363 | |
| 13364 | |
| 13365 | |
| 13366 | |
| 13367 | |
| 13368 | |
| 13369 | |
| 13370 | |
| 13371 | |
| 13372 | |
| 13373 | |
| 13374 | |
| 13375 | |
| 13376 | |
| 13377 | |
| 13378 | |
| 13379 | |
| 13380 | |
| 13381 | |
| 13382 | |
| 13383 | |
| 13384 | |
| 13385 | |
| 13386 | |
| 13387 | |
| 13388 | |
| 13389 | |
| 13390 | |
| 13391 | |
| 13392 | |
| 13393 | |
| 13394 | |
| 13395 | |
| 13396 | |
| 13397 | |
| 13398 | |
| 13399 | |
| 13400 | |
| 13401 | |
| 13402 | |
| 13403 | |
| 13404 | |
| 13405 | |
| 13406 | |
| 13407 | |
| 13408 | |
| 13409 | |
| 13410 | |
| 13411 | |
| 13412 | |
| 13413 | |
| 13414 | |
| 13415 | |
| 13416 | |
| 13417 | |
| 13418 | |
| 13419 | |
| 13420 | |
| 13421 | |
| 13422 | |
| 13423 | |
| 13424 | |
| 13425 | |
| 13426 | |
| 13427 | |
| 13428 | |
| 13429 | |
| 13430 | |
| 13431 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13432 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 13433 | |
| 13434 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13435 | for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \ |
| 13436 | execv fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 13437 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 13438 | getpriority getpwent getspnam getspent getsid getwd \ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13439 | kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 13440 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 13441 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13442 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 13443 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 13444 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 13445 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 13446 | truncate uname unsetenv utimes waitpid wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13447 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13448 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13449 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13450 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13451 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13453 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13454 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13455 | /* confdefs.h. */ |
| 13456 | _ACEOF |
| 13457 | cat confdefs.h >>conftest.$ac_ext |
| 13458 | cat >>conftest.$ac_ext <<_ACEOF |
| 13459 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13460 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13461 | which can conflict with char $ac_func (); below. |
| 13462 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13463 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13464 | including <limits.h> includes <sys/time.h> and causes problems |
| 13465 | checking for functions defined therein. */ |
| 13466 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13467 | # include <limits.h> |
| 13468 | #else |
| 13469 | # include <assert.h> |
| 13470 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13471 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13472 | #ifdef __cplusplus |
| 13473 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13474 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13475 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13476 | /* 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] | 13477 | builtin and then its argument prototype would still apply. */ |
| 13478 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13479 | /* The GNU C library defines this for functions which it implements |
| 13480 | to always fail with ENOSYS. Some functions are actually named |
| 13481 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13482 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13483 | choke me |
| 13484 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13485 | char (*f) () = $ac_func; |
| 13486 | #endif |
| 13487 | #ifdef __cplusplus |
| 13488 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13489 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13490 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13491 | int |
| 13492 | main () |
| 13493 | { |
| 13494 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13495 | ; |
| 13496 | return 0; |
| 13497 | } |
| 13498 | _ACEOF |
| 13499 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13500 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13501 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13502 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13503 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13504 | rm -f conftest.er1 |
| 13505 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13507 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 13508 | { ac_try='test -z "$ac_c_werror_flag" |
| 13509 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13511 | (eval $ac_try) 2>&5 |
| 13512 | ac_status=$? |
| 13513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13514 | (exit $ac_status); }; } && |
| 13515 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13517 | (eval $ac_try) 2>&5 |
| 13518 | ac_status=$? |
| 13519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13520 | (exit $ac_status); }; }; then |
| 13521 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13522 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13523 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13524 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13525 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13526 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13527 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13528 | rm -f conftest.err conftest.$ac_objext \ |
| 13529 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13530 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13531 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13532 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13533 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13534 | cat >>confdefs.h <<_ACEOF |
| 13535 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13536 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13537 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13538 | fi |
| 13539 | done |
| 13540 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13541 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13542 | # For some functions, having a definition is not sufficient, since |
| 13543 | # we want to take their address. |
| 13544 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 13545 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 13546 | cat >conftest.$ac_ext <<_ACEOF |
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 | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13552 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13553 | int |
| 13554 | main () |
| 13555 | { |
| 13556 | void *x=chroot |
| 13557 | ; |
| 13558 | return 0; |
| 13559 | } |
| 13560 | _ACEOF |
| 13561 | rm -f conftest.$ac_objext |
| 13562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13563 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13564 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13566 | rm -f conftest.er1 |
| 13567 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13569 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 13570 | { ac_try='test -z "$ac_c_werror_flag" |
| 13571 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13573 | (eval $ac_try) 2>&5 |
| 13574 | ac_status=$? |
| 13575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13576 | (exit $ac_status); }; } && |
| 13577 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13579 | (eval $ac_try) 2>&5 |
| 13580 | ac_status=$? |
| 13581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13582 | (exit $ac_status); }; }; then |
| 13583 | |
| 13584 | cat >>confdefs.h <<\_ACEOF |
| 13585 | #define HAVE_CHROOT 1 |
| 13586 | _ACEOF |
| 13587 | |
| 13588 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13589 | echo "${ECHO_T}yes" >&6 |
| 13590 | else |
| 13591 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13592 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13593 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13594 | echo "$as_me:$LINENO: result: no" >&5 |
| 13595 | echo "${ECHO_T}no" >&6 |
| 13596 | |
| 13597 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13598 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13599 | echo "$as_me:$LINENO: checking for link" >&5 |
| 13600 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 13601 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13602 | /* confdefs.h. */ |
| 13603 | _ACEOF |
| 13604 | cat confdefs.h >>conftest.$ac_ext |
| 13605 | cat >>conftest.$ac_ext <<_ACEOF |
| 13606 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13607 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13608 | int |
| 13609 | main () |
| 13610 | { |
| 13611 | void *x=link |
| 13612 | ; |
| 13613 | return 0; |
| 13614 | } |
| 13615 | _ACEOF |
| 13616 | rm -f conftest.$ac_objext |
| 13617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13618 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13619 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13620 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13621 | rm -f conftest.er1 |
| 13622 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13624 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 13625 | { ac_try='test -z "$ac_c_werror_flag" |
| 13626 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13628 | (eval $ac_try) 2>&5 |
| 13629 | ac_status=$? |
| 13630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13631 | (exit $ac_status); }; } && |
| 13632 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13634 | (eval $ac_try) 2>&5 |
| 13635 | ac_status=$? |
| 13636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13637 | (exit $ac_status); }; }; then |
| 13638 | |
| 13639 | cat >>confdefs.h <<\_ACEOF |
| 13640 | #define HAVE_LINK 1 |
| 13641 | _ACEOF |
| 13642 | |
| 13643 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13644 | echo "${ECHO_T}yes" >&6 |
| 13645 | else |
| 13646 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13648 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13649 | echo "$as_me:$LINENO: result: no" >&5 |
| 13650 | echo "${ECHO_T}no" >&6 |
| 13651 | |
| 13652 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13653 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13654 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 13655 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 13656 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13657 | /* confdefs.h. */ |
| 13658 | _ACEOF |
| 13659 | cat confdefs.h >>conftest.$ac_ext |
| 13660 | cat >>conftest.$ac_ext <<_ACEOF |
| 13661 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13662 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13663 | int |
| 13664 | main () |
| 13665 | { |
| 13666 | void *x=symlink |
| 13667 | ; |
| 13668 | return 0; |
| 13669 | } |
| 13670 | _ACEOF |
| 13671 | rm -f conftest.$ac_objext |
| 13672 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13673 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13674 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13675 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13676 | rm -f conftest.er1 |
| 13677 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13679 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 13680 | { ac_try='test -z "$ac_c_werror_flag" |
| 13681 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13683 | (eval $ac_try) 2>&5 |
| 13684 | ac_status=$? |
| 13685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13686 | (exit $ac_status); }; } && |
| 13687 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13689 | (eval $ac_try) 2>&5 |
| 13690 | ac_status=$? |
| 13691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13692 | (exit $ac_status); }; }; then |
| 13693 | |
| 13694 | cat >>confdefs.h <<\_ACEOF |
| 13695 | #define HAVE_SYMLINK 1 |
| 13696 | _ACEOF |
| 13697 | |
| 13698 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13699 | echo "${ECHO_T}yes" >&6 |
| 13700 | else |
| 13701 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13702 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13703 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13704 | echo "$as_me:$LINENO: result: no" >&5 |
| 13705 | echo "${ECHO_T}no" >&6 |
| 13706 | |
| 13707 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13708 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13709 | echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 13710 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6 |
| 13711 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13712 | /* confdefs.h. */ |
| 13713 | _ACEOF |
| 13714 | cat confdefs.h >>conftest.$ac_ext |
| 13715 | cat >>conftest.$ac_ext <<_ACEOF |
| 13716 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13717 | #include <unistd.h> |
| 13718 | int |
| 13719 | main () |
| 13720 | { |
| 13721 | void *x=fchdir |
| 13722 | ; |
| 13723 | return 0; |
| 13724 | } |
| 13725 | _ACEOF |
| 13726 | rm -f conftest.$ac_objext |
| 13727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13728 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13729 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13730 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13731 | rm -f conftest.er1 |
| 13732 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13734 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 13735 | { ac_try='test -z "$ac_c_werror_flag" |
| 13736 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13738 | (eval $ac_try) 2>&5 |
| 13739 | ac_status=$? |
| 13740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13741 | (exit $ac_status); }; } && |
| 13742 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13744 | (eval $ac_try) 2>&5 |
| 13745 | ac_status=$? |
| 13746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13747 | (exit $ac_status); }; }; then |
| 13748 | |
| 13749 | cat >>confdefs.h <<\_ACEOF |
| 13750 | #define HAVE_FCHDIR 1 |
| 13751 | _ACEOF |
| 13752 | |
| 13753 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13754 | echo "${ECHO_T}yes" >&6 |
| 13755 | else |
| 13756 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13758 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13759 | echo "$as_me:$LINENO: result: no" >&5 |
| 13760 | echo "${ECHO_T}no" >&6 |
| 13761 | |
| 13762 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13763 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13764 | echo "$as_me:$LINENO: checking for fsync" >&5 |
| 13765 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6 |
| 13766 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13767 | /* confdefs.h. */ |
| 13768 | _ACEOF |
| 13769 | cat confdefs.h >>conftest.$ac_ext |
| 13770 | cat >>conftest.$ac_ext <<_ACEOF |
| 13771 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13772 | #include <unistd.h> |
| 13773 | int |
| 13774 | main () |
| 13775 | { |
| 13776 | void *x=fsync |
| 13777 | ; |
| 13778 | return 0; |
| 13779 | } |
| 13780 | _ACEOF |
| 13781 | rm -f conftest.$ac_objext |
| 13782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13783 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13784 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13785 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13786 | rm -f conftest.er1 |
| 13787 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13789 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 13790 | { ac_try='test -z "$ac_c_werror_flag" |
| 13791 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13793 | (eval $ac_try) 2>&5 |
| 13794 | ac_status=$? |
| 13795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13796 | (exit $ac_status); }; } && |
| 13797 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13799 | (eval $ac_try) 2>&5 |
| 13800 | ac_status=$? |
| 13801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13802 | (exit $ac_status); }; }; then |
| 13803 | |
| 13804 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13805 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13806 | _ACEOF |
| 13807 | |
| 13808 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13809 | echo "${ECHO_T}yes" >&6 |
| 13810 | else |
| 13811 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13813 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13814 | echo "$as_me:$LINENO: result: no" >&5 |
| 13815 | echo "${ECHO_T}no" >&6 |
| 13816 | |
| 13817 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13819 | echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 13820 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6 |
| 13821 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13822 | /* confdefs.h. */ |
| 13823 | _ACEOF |
| 13824 | cat confdefs.h >>conftest.$ac_ext |
| 13825 | cat >>conftest.$ac_ext <<_ACEOF |
| 13826 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13827 | #include <unistd.h> |
| 13828 | int |
| 13829 | main () |
| 13830 | { |
| 13831 | void *x=fdatasync |
| 13832 | ; |
| 13833 | return 0; |
| 13834 | } |
| 13835 | _ACEOF |
| 13836 | rm -f conftest.$ac_objext |
| 13837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13838 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13839 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13841 | rm -f conftest.er1 |
| 13842 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13844 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 13845 | { ac_try='test -z "$ac_c_werror_flag" |
| 13846 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13848 | (eval $ac_try) 2>&5 |
| 13849 | ac_status=$? |
| 13850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13851 | (exit $ac_status); }; } && |
| 13852 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13854 | (eval $ac_try) 2>&5 |
| 13855 | ac_status=$? |
| 13856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13857 | (exit $ac_status); }; }; then |
| 13858 | |
| 13859 | cat >>confdefs.h <<\_ACEOF |
| 13860 | #define HAVE_FDATASYNC 1 |
| 13861 | _ACEOF |
| 13862 | |
| 13863 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13864 | echo "${ECHO_T}yes" >&6 |
| 13865 | else |
| 13866 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13868 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13869 | echo "$as_me:$LINENO: result: no" >&5 |
| 13870 | echo "${ECHO_T}no" >&6 |
| 13871 | |
| 13872 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13874 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13875 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 13876 | # functions ctermid_r, setgroups in the library, but no prototype |
| 13877 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 13878 | # address to avoid compiler warnings and potential miscompilations |
| 13879 | # because of the missing prototypes. |
| 13880 | |
| 13881 | echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 13882 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6 |
| 13883 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13884 | /* confdefs.h. */ |
| 13885 | _ACEOF |
| 13886 | cat confdefs.h >>conftest.$ac_ext |
| 13887 | cat >>conftest.$ac_ext <<_ACEOF |
| 13888 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13889 | |
| 13890 | #include "confdefs.h" |
| 13891 | #include <stdio.h> |
| 13892 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13893 | int |
| 13894 | main () |
| 13895 | { |
| 13896 | void* p = ctermid_r |
| 13897 | ; |
| 13898 | return 0; |
| 13899 | } |
| 13900 | _ACEOF |
| 13901 | rm -f conftest.$ac_objext |
| 13902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13903 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13904 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13905 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13906 | rm -f conftest.er1 |
| 13907 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13909 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 13910 | { ac_try='test -z "$ac_c_werror_flag" |
| 13911 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13913 | (eval $ac_try) 2>&5 |
| 13914 | ac_status=$? |
| 13915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13916 | (exit $ac_status); }; } && |
| 13917 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13919 | (eval $ac_try) 2>&5 |
| 13920 | ac_status=$? |
| 13921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13922 | (exit $ac_status); }; }; then |
| 13923 | |
| 13924 | cat >>confdefs.h <<\_ACEOF |
| 13925 | #define HAVE_CTERMID_R 1 |
| 13926 | _ACEOF |
| 13927 | |
| 13928 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13929 | echo "${ECHO_T}yes" >&6 |
| 13930 | else |
| 13931 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13933 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13934 | echo "$as_me:$LINENO: result: no" >&5 |
| 13935 | echo "${ECHO_T}no" >&6 |
| 13936 | |
| 13937 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13938 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13939 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13940 | echo "$as_me:$LINENO: checking for flock" >&5 |
| 13941 | echo $ECHO_N "checking for flock... $ECHO_C" >&6 |
| 13942 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13943 | /* confdefs.h. */ |
| 13944 | _ACEOF |
| 13945 | cat confdefs.h >>conftest.$ac_ext |
| 13946 | cat >>conftest.$ac_ext <<_ACEOF |
| 13947 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13948 | |
| 13949 | #include "confdefs.h" |
| 13950 | #include <sys/file.h> |
| 13951 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13952 | int |
| 13953 | main () |
| 13954 | { |
| 13955 | void* p = flock |
| 13956 | ; |
| 13957 | return 0; |
| 13958 | } |
| 13959 | _ACEOF |
| 13960 | rm -f conftest.$ac_objext |
| 13961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13962 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13963 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13964 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13965 | rm -f conftest.er1 |
| 13966 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13968 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 13969 | { ac_try='test -z "$ac_c_werror_flag" |
| 13970 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13972 | (eval $ac_try) 2>&5 |
| 13973 | ac_status=$? |
| 13974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13975 | (exit $ac_status); }; } && |
| 13976 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13978 | (eval $ac_try) 2>&5 |
| 13979 | ac_status=$? |
| 13980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13981 | (exit $ac_status); }; }; then |
| 13982 | |
| 13983 | cat >>confdefs.h <<\_ACEOF |
| 13984 | #define HAVE_FLOCK 1 |
| 13985 | _ACEOF |
| 13986 | |
| 13987 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13988 | echo "${ECHO_T}yes" >&6 |
| 13989 | else |
| 13990 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13991 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13992 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13993 | echo "$as_me:$LINENO: result: no" >&5 |
| 13994 | echo "${ECHO_T}no" >&6 |
| 13995 | |
| 13996 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13997 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13998 | |
| 13999 | echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 14000 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 |
| 14001 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14002 | /* confdefs.h. */ |
| 14003 | _ACEOF |
| 14004 | cat confdefs.h >>conftest.$ac_ext |
| 14005 | cat >>conftest.$ac_ext <<_ACEOF |
| 14006 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14007 | |
| 14008 | #include "confdefs.h" |
| 14009 | #include <unistd.h> |
| 14010 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14011 | int |
| 14012 | main () |
| 14013 | { |
| 14014 | void* p = getpagesize |
| 14015 | ; |
| 14016 | return 0; |
| 14017 | } |
| 14018 | _ACEOF |
| 14019 | rm -f conftest.$ac_objext |
| 14020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14021 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14022 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14023 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14024 | rm -f conftest.er1 |
| 14025 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14027 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 14028 | { ac_try='test -z "$ac_c_werror_flag" |
| 14029 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14031 | (eval $ac_try) 2>&5 |
| 14032 | ac_status=$? |
| 14033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14034 | (exit $ac_status); }; } && |
| 14035 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14037 | (eval $ac_try) 2>&5 |
| 14038 | ac_status=$? |
| 14039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14040 | (exit $ac_status); }; }; then |
| 14041 | |
| 14042 | cat >>confdefs.h <<\_ACEOF |
| 14043 | #define HAVE_GETPAGESIZE 1 |
| 14044 | _ACEOF |
| 14045 | |
| 14046 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14047 | echo "${ECHO_T}yes" >&6 |
| 14048 | else |
| 14049 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14051 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14052 | echo "$as_me:$LINENO: result: no" >&5 |
| 14053 | echo "${ECHO_T}no" >&6 |
| 14054 | |
| 14055 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14056 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14057 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14058 | for ac_prog in true |
| 14059 | do |
| 14060 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 14061 | set dummy $ac_prog; ac_word=$2 |
| 14062 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14063 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14064 | if test "${ac_cv_prog_TRUE+set}" = set; then |
| 14065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14066 | else |
| 14067 | if test -n "$TRUE"; then |
| 14068 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 14069 | else |
| 14070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14071 | for as_dir in $PATH |
| 14072 | do |
| 14073 | IFS=$as_save_IFS |
| 14074 | test -z "$as_dir" && as_dir=. |
| 14075 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14076 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14077 | ac_cv_prog_TRUE="$ac_prog" |
| 14078 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14079 | break 2 |
| 14080 | fi |
| 14081 | done |
| 14082 | done |
| 14083 | |
| 14084 | fi |
| 14085 | fi |
| 14086 | TRUE=$ac_cv_prog_TRUE |
| 14087 | if test -n "$TRUE"; then |
| 14088 | echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 14089 | echo "${ECHO_T}$TRUE" >&6 |
| 14090 | else |
| 14091 | echo "$as_me:$LINENO: result: no" >&5 |
| 14092 | echo "${ECHO_T}no" >&6 |
| 14093 | fi |
| 14094 | |
| 14095 | test -n "$TRUE" && break |
| 14096 | done |
| 14097 | test -n "$TRUE" || TRUE="/bin/true" |
| 14098 | |
| 14099 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14100 | echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 14101 | echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6 |
| 14102 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
| 14103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14104 | else |
| 14105 | ac_check_lib_save_LIBS=$LIBS |
| 14106 | LIBS="-lc $LIBS" |
| 14107 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14108 | /* confdefs.h. */ |
| 14109 | _ACEOF |
| 14110 | cat confdefs.h >>conftest.$ac_ext |
| 14111 | cat >>conftest.$ac_ext <<_ACEOF |
| 14112 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14113 | |
| 14114 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14115 | #ifdef __cplusplus |
| 14116 | extern "C" |
| 14117 | #endif |
| 14118 | /* We use char because int might match the return type of a gcc2 |
| 14119 | builtin and then its argument prototype would still apply. */ |
| 14120 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14121 | int |
| 14122 | main () |
| 14123 | { |
| 14124 | inet_aton (); |
| 14125 | ; |
| 14126 | return 0; |
| 14127 | } |
| 14128 | _ACEOF |
| 14129 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14131 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14132 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14133 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14134 | rm -f conftest.er1 |
| 14135 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14137 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 14138 | { ac_try='test -z "$ac_c_werror_flag" |
| 14139 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14141 | (eval $ac_try) 2>&5 |
| 14142 | ac_status=$? |
| 14143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14144 | (exit $ac_status); }; } && |
| 14145 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14147 | (eval $ac_try) 2>&5 |
| 14148 | ac_status=$? |
| 14149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14150 | (exit $ac_status); }; }; then |
| 14151 | ac_cv_lib_c_inet_aton=yes |
| 14152 | else |
| 14153 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14155 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14156 | ac_cv_lib_c_inet_aton=no |
| 14157 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14158 | rm -f conftest.err conftest.$ac_objext \ |
| 14159 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14160 | LIBS=$ac_check_lib_save_LIBS |
| 14161 | fi |
| 14162 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 14163 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6 |
| 14164 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14165 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14166 | else |
| 14167 | |
| 14168 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 14169 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 14170 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 14171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14172 | else |
| 14173 | ac_check_lib_save_LIBS=$LIBS |
| 14174 | LIBS="-lresolv $LIBS" |
| 14175 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14176 | /* confdefs.h. */ |
| 14177 | _ACEOF |
| 14178 | cat confdefs.h >>conftest.$ac_ext |
| 14179 | cat >>conftest.$ac_ext <<_ACEOF |
| 14180 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14181 | |
| 14182 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14183 | #ifdef __cplusplus |
| 14184 | extern "C" |
| 14185 | #endif |
| 14186 | /* We use char because int might match the return type of a gcc2 |
| 14187 | builtin and then its argument prototype would still apply. */ |
| 14188 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14189 | int |
| 14190 | main () |
| 14191 | { |
| 14192 | inet_aton (); |
| 14193 | ; |
| 14194 | return 0; |
| 14195 | } |
| 14196 | _ACEOF |
| 14197 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14198 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14199 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14200 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14201 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14202 | rm -f conftest.er1 |
| 14203 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14205 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 14206 | { ac_try='test -z "$ac_c_werror_flag" |
| 14207 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14209 | (eval $ac_try) 2>&5 |
| 14210 | ac_status=$? |
| 14211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14212 | (exit $ac_status); }; } && |
| 14213 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14215 | (eval $ac_try) 2>&5 |
| 14216 | ac_status=$? |
| 14217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14218 | (exit $ac_status); }; }; then |
| 14219 | ac_cv_lib_resolv_inet_aton=yes |
| 14220 | else |
| 14221 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14223 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14224 | ac_cv_lib_resolv_inet_aton=no |
| 14225 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14226 | rm -f conftest.err conftest.$ac_objext \ |
| 14227 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14228 | LIBS=$ac_check_lib_save_LIBS |
| 14229 | fi |
| 14230 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 14231 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 14232 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
| 14233 | cat >>confdefs.h <<_ACEOF |
| 14234 | #define HAVE_LIBRESOLV 1 |
| 14235 | _ACEOF |
| 14236 | |
| 14237 | LIBS="-lresolv $LIBS" |
| 14238 | |
| 14239 | fi |
| 14240 | |
| 14241 | |
| 14242 | fi |
| 14243 | |
| 14244 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14245 | echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 14246 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 |
| 14247 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14248 | /* confdefs.h. */ |
| 14249 | _ACEOF |
| 14250 | cat confdefs.h >>conftest.$ac_ext |
| 14251 | cat >>conftest.$ac_ext <<_ACEOF |
| 14252 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14253 | |
| 14254 | #include "confdefs.h" |
| 14255 | #include <netdb.h> |
| 14256 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14257 | int |
| 14258 | main () |
| 14259 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14260 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14261 | ; |
| 14262 | return 0; |
| 14263 | } |
| 14264 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14265 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14266 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14267 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14268 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14270 | rm -f conftest.er1 |
| 14271 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14273 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 14274 | { ac_try='test -z "$ac_c_werror_flag" |
| 14275 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14277 | (eval $ac_try) 2>&5 |
| 14278 | ac_status=$? |
| 14279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14280 | (exit $ac_status); }; } && |
| 14281 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14283 | (eval $ac_try) 2>&5 |
| 14284 | ac_status=$? |
| 14285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14286 | (exit $ac_status); }; }; then |
| 14287 | |
| 14288 | cat >>confdefs.h <<\_ACEOF |
| 14289 | #define HAVE_HSTRERROR 1 |
| 14290 | _ACEOF |
| 14291 | |
| 14292 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14293 | echo "${ECHO_T}yes" >&6 |
| 14294 | else |
| 14295 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14297 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14298 | echo "$as_me:$LINENO: result: no" >&5 |
| 14299 | echo "${ECHO_T}no" >&6 |
| 14300 | |
| 14301 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14302 | rm -f conftest.err conftest.$ac_objext \ |
| 14303 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14304 | |
| 14305 | echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 14306 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 |
| 14307 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14308 | /* confdefs.h. */ |
| 14309 | _ACEOF |
| 14310 | cat confdefs.h >>conftest.$ac_ext |
| 14311 | cat >>conftest.$ac_ext <<_ACEOF |
| 14312 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14313 | |
| 14314 | #include "confdefs.h" |
| 14315 | #include <sys/socket.h> |
| 14316 | #include <netinet/in.h> |
| 14317 | #include <arpa/inet.h> |
| 14318 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14319 | int |
| 14320 | main () |
| 14321 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14322 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14323 | ; |
| 14324 | return 0; |
| 14325 | } |
| 14326 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14327 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14329 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14330 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14331 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14332 | rm -f conftest.er1 |
| 14333 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14335 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 14336 | { ac_try='test -z "$ac_c_werror_flag" |
| 14337 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14339 | (eval $ac_try) 2>&5 |
| 14340 | ac_status=$? |
| 14341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14342 | (exit $ac_status); }; } && |
| 14343 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14345 | (eval $ac_try) 2>&5 |
| 14346 | ac_status=$? |
| 14347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14348 | (exit $ac_status); }; }; then |
| 14349 | |
| 14350 | cat >>confdefs.h <<\_ACEOF |
| 14351 | #define HAVE_INET_ATON 1 |
| 14352 | _ACEOF |
| 14353 | |
| 14354 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14355 | echo "${ECHO_T}yes" >&6 |
| 14356 | else |
| 14357 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14359 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14360 | echo "$as_me:$LINENO: result: no" >&5 |
| 14361 | echo "${ECHO_T}no" >&6 |
| 14362 | |
| 14363 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14364 | rm -f conftest.err conftest.$ac_objext \ |
| 14365 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14366 | |
| 14367 | echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 14368 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 |
| 14369 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14370 | /* confdefs.h. */ |
| 14371 | _ACEOF |
| 14372 | cat confdefs.h >>conftest.$ac_ext |
| 14373 | cat >>conftest.$ac_ext <<_ACEOF |
| 14374 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14375 | |
| 14376 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 14377 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14378 | #include <sys/socket.h> |
| 14379 | #include <netinet/in.h> |
| 14380 | #include <arpa/inet.h> |
| 14381 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14382 | int |
| 14383 | main () |
| 14384 | { |
| 14385 | void* p = inet_pton |
| 14386 | ; |
| 14387 | return 0; |
| 14388 | } |
| 14389 | _ACEOF |
| 14390 | rm -f conftest.$ac_objext |
| 14391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14392 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14393 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14394 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14395 | rm -f conftest.er1 |
| 14396 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14398 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 14399 | { ac_try='test -z "$ac_c_werror_flag" |
| 14400 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14402 | (eval $ac_try) 2>&5 |
| 14403 | ac_status=$? |
| 14404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14405 | (exit $ac_status); }; } && |
| 14406 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14408 | (eval $ac_try) 2>&5 |
| 14409 | ac_status=$? |
| 14410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14411 | (exit $ac_status); }; }; then |
| 14412 | |
| 14413 | cat >>confdefs.h <<\_ACEOF |
| 14414 | #define HAVE_INET_PTON 1 |
| 14415 | _ACEOF |
| 14416 | |
| 14417 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14418 | echo "${ECHO_T}yes" >&6 |
| 14419 | else |
| 14420 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14422 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14423 | echo "$as_me:$LINENO: result: no" >&5 |
| 14424 | echo "${ECHO_T}no" >&6 |
| 14425 | |
| 14426 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14427 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14428 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 14429 | # 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] | 14430 | echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 14431 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 |
| 14432 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14433 | /* confdefs.h. */ |
| 14434 | _ACEOF |
| 14435 | cat confdefs.h >>conftest.$ac_ext |
| 14436 | cat >>conftest.$ac_ext <<_ACEOF |
| 14437 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14438 | |
| 14439 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 14440 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 14441 | #ifdef HAVE_GRP_H |
| 14442 | #include <grp.h> |
| 14443 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14444 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14445 | int |
| 14446 | main () |
| 14447 | { |
| 14448 | void* p = setgroups |
| 14449 | ; |
| 14450 | return 0; |
| 14451 | } |
| 14452 | _ACEOF |
| 14453 | rm -f conftest.$ac_objext |
| 14454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14455 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14456 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14457 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14458 | rm -f conftest.er1 |
| 14459 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14461 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 14462 | { ac_try='test -z "$ac_c_werror_flag" |
| 14463 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14465 | (eval $ac_try) 2>&5 |
| 14466 | ac_status=$? |
| 14467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14468 | (exit $ac_status); }; } && |
| 14469 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14471 | (eval $ac_try) 2>&5 |
| 14472 | ac_status=$? |
| 14473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14474 | (exit $ac_status); }; }; then |
| 14475 | |
| 14476 | cat >>confdefs.h <<\_ACEOF |
| 14477 | #define HAVE_SETGROUPS 1 |
| 14478 | _ACEOF |
| 14479 | |
| 14480 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14481 | echo "${ECHO_T}yes" >&6 |
| 14482 | else |
| 14483 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14485 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14486 | echo "$as_me:$LINENO: result: no" >&5 |
| 14487 | echo "${ECHO_T}no" >&6 |
| 14488 | |
| 14489 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14490 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14491 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14492 | # check for openpty and forkpty |
| 14493 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14494 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14495 | for ac_func in openpty |
| 14496 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14497 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14498 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14499 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14500 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14502 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14503 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14504 | /* confdefs.h. */ |
| 14505 | _ACEOF |
| 14506 | cat confdefs.h >>conftest.$ac_ext |
| 14507 | cat >>conftest.$ac_ext <<_ACEOF |
| 14508 | /* end confdefs.h. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14509 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14510 | which can conflict with char $ac_func (); below. |
| 14511 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14512 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14513 | including <limits.h> includes <sys/time.h> and causes problems |
| 14514 | checking for functions defined therein. */ |
| 14515 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14516 | # include <limits.h> |
| 14517 | #else |
| 14518 | # include <assert.h> |
| 14519 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14520 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14521 | #ifdef __cplusplus |
| 14522 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14523 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14524 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14525 | /* 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] | 14526 | builtin and then its argument prototype would still apply. */ |
| 14527 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14528 | /* The GNU C library defines this for functions which it implements |
| 14529 | to always fail with ENOSYS. Some functions are actually named |
| 14530 | something starting with __ and the normal name is an alias. */ |
| 14531 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14532 | choke me |
| 14533 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14534 | char (*f) () = $ac_func; |
| 14535 | #endif |
| 14536 | #ifdef __cplusplus |
| 14537 | } |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14538 | #endif |
| 14539 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14540 | int |
| 14541 | main () |
| 14542 | { |
| 14543 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14544 | ; |
| 14545 | return 0; |
| 14546 | } |
| 14547 | _ACEOF |
| 14548 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14549 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14550 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14551 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14552 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14553 | rm -f conftest.er1 |
| 14554 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14556 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 14557 | { ac_try='test -z "$ac_c_werror_flag" |
| 14558 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14560 | (eval $ac_try) 2>&5 |
| 14561 | ac_status=$? |
| 14562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14563 | (exit $ac_status); }; } && |
| 14564 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14566 | (eval $ac_try) 2>&5 |
| 14567 | ac_status=$? |
| 14568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14569 | (exit $ac_status); }; }; then |
| 14570 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14571 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14572 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14575 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14576 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14577 | rm -f conftest.err conftest.$ac_objext \ |
| 14578 | 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 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14586 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14587 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14588 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 14589 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 14590 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 14591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14592 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14593 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14594 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14595 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14596 | /* confdefs.h. */ |
| 14597 | _ACEOF |
| 14598 | cat confdefs.h >>conftest.$ac_ext |
| 14599 | cat >>conftest.$ac_ext <<_ACEOF |
| 14600 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14601 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14602 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14603 | #ifdef __cplusplus |
| 14604 | extern "C" |
| 14605 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14606 | /* 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] | 14607 | builtin and then its argument prototype would still apply. */ |
| 14608 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14609 | int |
| 14610 | main () |
| 14611 | { |
| 14612 | openpty (); |
| 14613 | ; |
| 14614 | return 0; |
| 14615 | } |
| 14616 | _ACEOF |
| 14617 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14619 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14620 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14622 | rm -f conftest.er1 |
| 14623 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14625 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 14626 | { ac_try='test -z "$ac_c_werror_flag" |
| 14627 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14629 | (eval $ac_try) 2>&5 |
| 14630 | ac_status=$? |
| 14631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14632 | (exit $ac_status); }; } && |
| 14633 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14635 | (eval $ac_try) 2>&5 |
| 14636 | ac_status=$? |
| 14637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14638 | (exit $ac_status); }; }; then |
| 14639 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14640 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14641 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14642 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14643 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14644 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14645 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14646 | rm -f conftest.err conftest.$ac_objext \ |
| 14647 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14648 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14649 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14650 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 14651 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 14652 | if test $ac_cv_lib_util_openpty = yes; then |
| 14653 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14654 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14655 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14656 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14657 | fi |
| 14658 | |
| 14659 | fi |
| 14660 | done |
| 14661 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14662 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14663 | for ac_func in forkpty |
| 14664 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14665 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14666 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14667 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14668 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14670 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14671 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14672 | /* confdefs.h. */ |
| 14673 | _ACEOF |
| 14674 | cat confdefs.h >>conftest.$ac_ext |
| 14675 | cat >>conftest.$ac_ext <<_ACEOF |
| 14676 | /* end confdefs.h. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14677 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14678 | which can conflict with char $ac_func (); below. |
| 14679 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14680 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14681 | including <limits.h> includes <sys/time.h> and causes problems |
| 14682 | checking for functions defined therein. */ |
| 14683 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14684 | # include <limits.h> |
| 14685 | #else |
| 14686 | # include <assert.h> |
| 14687 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14688 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14689 | #ifdef __cplusplus |
| 14690 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14691 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14692 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14693 | /* 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] | 14694 | builtin and then its argument prototype would still apply. */ |
| 14695 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14696 | /* The GNU C library defines this for functions which it implements |
| 14697 | to always fail with ENOSYS. Some functions are actually named |
| 14698 | something starting with __ and the normal name is an alias. */ |
| 14699 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14700 | choke me |
| 14701 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14702 | char (*f) () = $ac_func; |
| 14703 | #endif |
| 14704 | #ifdef __cplusplus |
| 14705 | } |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14706 | #endif |
| 14707 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14708 | int |
| 14709 | main () |
| 14710 | { |
| 14711 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14712 | ; |
| 14713 | return 0; |
| 14714 | } |
| 14715 | _ACEOF |
| 14716 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14717 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14718 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14719 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14720 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14721 | rm -f conftest.er1 |
| 14722 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14724 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 14725 | { ac_try='test -z "$ac_c_werror_flag" |
| 14726 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14728 | (eval $ac_try) 2>&5 |
| 14729 | ac_status=$? |
| 14730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14731 | (exit $ac_status); }; } && |
| 14732 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14734 | (eval $ac_try) 2>&5 |
| 14735 | ac_status=$? |
| 14736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14737 | (exit $ac_status); }; }; then |
| 14738 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14739 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14740 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14741 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14742 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14743 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14744 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14745 | rm -f conftest.err conftest.$ac_objext \ |
| 14746 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14747 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14748 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14749 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14750 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14751 | cat >>confdefs.h <<_ACEOF |
| 14752 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14753 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14754 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14755 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14756 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 14757 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 14758 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 14759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14760 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14761 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14762 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14763 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14764 | /* confdefs.h. */ |
| 14765 | _ACEOF |
| 14766 | cat confdefs.h >>conftest.$ac_ext |
| 14767 | cat >>conftest.$ac_ext <<_ACEOF |
| 14768 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14769 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14770 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14771 | #ifdef __cplusplus |
| 14772 | extern "C" |
| 14773 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14774 | /* 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] | 14775 | builtin and then its argument prototype would still apply. */ |
| 14776 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14777 | int |
| 14778 | main () |
| 14779 | { |
| 14780 | forkpty (); |
| 14781 | ; |
| 14782 | return 0; |
| 14783 | } |
| 14784 | _ACEOF |
| 14785 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14786 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14787 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14788 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14789 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14790 | rm -f conftest.er1 |
| 14791 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14793 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 14794 | { ac_try='test -z "$ac_c_werror_flag" |
| 14795 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14797 | (eval $ac_try) 2>&5 |
| 14798 | ac_status=$? |
| 14799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14800 | (exit $ac_status); }; } && |
| 14801 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14803 | (eval $ac_try) 2>&5 |
| 14804 | ac_status=$? |
| 14805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14806 | (exit $ac_status); }; }; then |
| 14807 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14808 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14809 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14811 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14812 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14813 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14814 | rm -f conftest.err conftest.$ac_objext \ |
| 14815 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14816 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14817 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14818 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 14819 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 14820 | if test $ac_cv_lib_util_forkpty = yes; then |
| 14821 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14822 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14823 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14824 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14825 | fi |
| 14826 | |
| 14827 | fi |
| 14828 | done |
| 14829 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14830 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14831 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14832 | |
| 14833 | |
| 14834 | |
| 14835 | |
| 14836 | |
| 14837 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14838 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 14839 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14840 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14841 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14842 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14843 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14845 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14846 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14847 | /* confdefs.h. */ |
| 14848 | _ACEOF |
| 14849 | cat confdefs.h >>conftest.$ac_ext |
| 14850 | cat >>conftest.$ac_ext <<_ACEOF |
| 14851 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14852 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14853 | which can conflict with char $ac_func (); below. |
| 14854 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14855 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14856 | including <limits.h> includes <sys/time.h> and causes problems |
| 14857 | checking for functions defined therein. */ |
| 14858 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14859 | # include <limits.h> |
| 14860 | #else |
| 14861 | # include <assert.h> |
| 14862 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14863 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14864 | #ifdef __cplusplus |
| 14865 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14866 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14867 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14868 | /* 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] | 14869 | builtin and then its argument prototype would still apply. */ |
| 14870 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14871 | /* The GNU C library defines this for functions which it implements |
| 14872 | to always fail with ENOSYS. Some functions are actually named |
| 14873 | something starting with __ and the normal name is an alias. */ |
| 14874 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14875 | choke me |
| 14876 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14877 | char (*f) () = $ac_func; |
| 14878 | #endif |
| 14879 | #ifdef __cplusplus |
| 14880 | } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14881 | #endif |
| 14882 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14883 | int |
| 14884 | main () |
| 14885 | { |
| 14886 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14887 | ; |
| 14888 | return 0; |
| 14889 | } |
| 14890 | _ACEOF |
| 14891 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14892 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14893 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14894 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14895 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14896 | rm -f conftest.er1 |
| 14897 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14899 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 14900 | { ac_try='test -z "$ac_c_werror_flag" |
| 14901 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14903 | (eval $ac_try) 2>&5 |
| 14904 | ac_status=$? |
| 14905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14906 | (exit $ac_status); }; } && |
| 14907 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14909 | (eval $ac_try) 2>&5 |
| 14910 | ac_status=$? |
| 14911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14912 | (exit $ac_status); }; }; then |
| 14913 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14914 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14915 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14917 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14918 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14919 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14920 | rm -f conftest.err conftest.$ac_objext \ |
| 14921 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14922 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14923 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14924 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14925 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14926 | cat >>confdefs.h <<_ACEOF |
| 14927 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14928 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14929 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14930 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14931 | done |
| 14932 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14933 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14934 | |
| 14935 | |
| 14936 | |
| 14937 | |
| 14938 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14939 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14940 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14941 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14942 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14943 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14944 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14946 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14947 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14948 | /* confdefs.h. */ |
| 14949 | _ACEOF |
| 14950 | cat confdefs.h >>conftest.$ac_ext |
| 14951 | cat >>conftest.$ac_ext <<_ACEOF |
| 14952 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14953 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14954 | which can conflict with char $ac_func (); below. |
| 14955 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14956 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14957 | including <limits.h> includes <sys/time.h> and causes problems |
| 14958 | checking for functions defined therein. */ |
| 14959 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14960 | # include <limits.h> |
| 14961 | #else |
| 14962 | # include <assert.h> |
| 14963 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14964 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14965 | #ifdef __cplusplus |
| 14966 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14967 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14968 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14969 | /* 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] | 14970 | builtin and then its argument prototype would still apply. */ |
| 14971 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14972 | /* The GNU C library defines this for functions which it implements |
| 14973 | to always fail with ENOSYS. Some functions are actually named |
| 14974 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14975 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14976 | choke me |
| 14977 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14978 | char (*f) () = $ac_func; |
| 14979 | #endif |
| 14980 | #ifdef __cplusplus |
| 14981 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14982 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14983 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14984 | int |
| 14985 | main () |
| 14986 | { |
| 14987 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14988 | ; |
| 14989 | return 0; |
| 14990 | } |
| 14991 | _ACEOF |
| 14992 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14993 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14994 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14995 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14997 | rm -f conftest.er1 |
| 14998 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15000 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 15001 | { ac_try='test -z "$ac_c_werror_flag" |
| 15002 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15004 | (eval $ac_try) 2>&5 |
| 15005 | ac_status=$? |
| 15006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15007 | (exit $ac_status); }; } && |
| 15008 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15010 | (eval $ac_try) 2>&5 |
| 15011 | ac_status=$? |
| 15012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15013 | (exit $ac_status); }; }; then |
| 15014 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15015 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15016 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15018 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15019 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15020 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15021 | rm -f conftest.err conftest.$ac_objext \ |
| 15022 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15023 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15024 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15025 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15026 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15027 | cat >>confdefs.h <<_ACEOF |
| 15028 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15029 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15030 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15031 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15032 | case $LIBOBJS in |
| 15033 | "$ac_func.$ac_objext" | \ |
| 15034 | *" $ac_func.$ac_objext" | \ |
| 15035 | "$ac_func.$ac_objext "* | \ |
| 15036 | *" $ac_func.$ac_objext "* ) ;; |
| 15037 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
| 15038 | esac |
| 15039 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15040 | fi |
| 15041 | done |
| 15042 | |
| 15043 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15044 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15045 | for ac_func in getpgrp |
| 15046 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15047 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15048 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15049 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15050 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15052 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15053 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15054 | /* confdefs.h. */ |
| 15055 | _ACEOF |
| 15056 | cat confdefs.h >>conftest.$ac_ext |
| 15057 | cat >>conftest.$ac_ext <<_ACEOF |
| 15058 | /* end confdefs.h. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15059 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15060 | which can conflict with char $ac_func (); below. |
| 15061 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15062 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15063 | including <limits.h> includes <sys/time.h> and causes problems |
| 15064 | checking for functions defined therein. */ |
| 15065 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15066 | # include <limits.h> |
| 15067 | #else |
| 15068 | # include <assert.h> |
| 15069 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15070 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15071 | #ifdef __cplusplus |
| 15072 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15073 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15074 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15075 | /* 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] | 15076 | builtin and then its argument prototype would still apply. */ |
| 15077 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15078 | /* The GNU C library defines this for functions which it implements |
| 15079 | to always fail with ENOSYS. Some functions are actually named |
| 15080 | something starting with __ and the normal name is an alias. */ |
| 15081 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15082 | choke me |
| 15083 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15084 | char (*f) () = $ac_func; |
| 15085 | #endif |
| 15086 | #ifdef __cplusplus |
| 15087 | } |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15088 | #endif |
| 15089 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15090 | int |
| 15091 | main () |
| 15092 | { |
| 15093 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15094 | ; |
| 15095 | return 0; |
| 15096 | } |
| 15097 | _ACEOF |
| 15098 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15100 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15101 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15103 | rm -f conftest.er1 |
| 15104 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15106 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 15107 | { ac_try='test -z "$ac_c_werror_flag" |
| 15108 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15110 | (eval $ac_try) 2>&5 |
| 15111 | ac_status=$? |
| 15112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15113 | (exit $ac_status); }; } && |
| 15114 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15116 | (eval $ac_try) 2>&5 |
| 15117 | ac_status=$? |
| 15118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15119 | (exit $ac_status); }; }; then |
| 15120 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15121 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15122 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15123 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15124 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15125 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15126 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15127 | rm -f conftest.err conftest.$ac_objext \ |
| 15128 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15129 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15130 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15131 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15132 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15133 | cat >>confdefs.h <<_ACEOF |
| 15134 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15135 | _ACEOF |
| 15136 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15137 | /* confdefs.h. */ |
| 15138 | _ACEOF |
| 15139 | cat confdefs.h >>conftest.$ac_ext |
| 15140 | cat >>conftest.$ac_ext <<_ACEOF |
| 15141 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15142 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15143 | int |
| 15144 | main () |
| 15145 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15146 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15147 | ; |
| 15148 | return 0; |
| 15149 | } |
| 15150 | _ACEOF |
| 15151 | rm -f conftest.$ac_objext |
| 15152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15153 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15154 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15156 | rm -f conftest.er1 |
| 15157 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15159 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 15160 | { ac_try='test -z "$ac_c_werror_flag" |
| 15161 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15163 | (eval $ac_try) 2>&5 |
| 15164 | ac_status=$? |
| 15165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15166 | (exit $ac_status); }; } && |
| 15167 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15169 | (eval $ac_try) 2>&5 |
| 15170 | ac_status=$? |
| 15171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15172 | (exit $ac_status); }; }; then |
| 15173 | |
| 15174 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15175 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15176 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15177 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15178 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15179 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15180 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15182 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15183 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15185 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15186 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15187 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15188 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15189 | |
| 15190 | for ac_func in setpgrp |
| 15191 | do |
| 15192 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15193 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15194 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15195 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15197 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15198 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15199 | /* confdefs.h. */ |
| 15200 | _ACEOF |
| 15201 | cat confdefs.h >>conftest.$ac_ext |
| 15202 | cat >>conftest.$ac_ext <<_ACEOF |
| 15203 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15204 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15205 | which can conflict with char $ac_func (); below. |
| 15206 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15207 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15208 | including <limits.h> includes <sys/time.h> and causes problems |
| 15209 | checking for functions defined therein. */ |
| 15210 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15211 | # include <limits.h> |
| 15212 | #else |
| 15213 | # include <assert.h> |
| 15214 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15215 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15216 | #ifdef __cplusplus |
| 15217 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15218 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15219 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15220 | /* We use char because int might match the return type of a gcc2 |
| 15221 | builtin and then its argument prototype would still apply. */ |
| 15222 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15223 | /* The GNU C library defines this for functions which it implements |
| 15224 | to always fail with ENOSYS. Some functions are actually named |
| 15225 | something starting with __ and the normal name is an alias. */ |
| 15226 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15227 | choke me |
| 15228 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15229 | char (*f) () = $ac_func; |
| 15230 | #endif |
| 15231 | #ifdef __cplusplus |
| 15232 | } |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15233 | #endif |
| 15234 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15235 | int |
| 15236 | main () |
| 15237 | { |
| 15238 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15239 | ; |
| 15240 | return 0; |
| 15241 | } |
| 15242 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15243 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15245 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15246 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15247 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15248 | rm -f conftest.er1 |
| 15249 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15251 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 15252 | { ac_try='test -z "$ac_c_werror_flag" |
| 15253 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15255 | (eval $ac_try) 2>&5 |
| 15256 | ac_status=$? |
| 15257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15258 | (exit $ac_status); }; } && |
| 15259 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15261 | (eval $ac_try) 2>&5 |
| 15262 | ac_status=$? |
| 15263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15264 | (exit $ac_status); }; }; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15265 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15266 | else |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15267 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15269 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15270 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15271 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15272 | rm -f conftest.err conftest.$ac_objext \ |
| 15273 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15274 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15275 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15276 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15277 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15278 | cat >>confdefs.h <<_ACEOF |
| 15279 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15280 | _ACEOF |
| 15281 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15282 | /* confdefs.h. */ |
| 15283 | _ACEOF |
| 15284 | cat confdefs.h >>conftest.$ac_ext |
| 15285 | cat >>conftest.$ac_ext <<_ACEOF |
| 15286 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15287 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15288 | int |
| 15289 | main () |
| 15290 | { |
| 15291 | setpgrp(0,0); |
| 15292 | ; |
| 15293 | return 0; |
| 15294 | } |
| 15295 | _ACEOF |
| 15296 | rm -f conftest.$ac_objext |
| 15297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15298 | (eval $ac_compile) 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15299 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15300 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15301 | rm -f conftest.er1 |
| 15302 | cat conftest.err >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15304 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 15305 | { ac_try='test -z "$ac_c_werror_flag" |
| 15306 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15308 | (eval $ac_try) 2>&5 |
| 15309 | ac_status=$? |
| 15310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15311 | (exit $ac_status); }; } && |
| 15312 | { ac_try='test -s conftest.$ac_objext' |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15314 | (eval $ac_try) 2>&5 |
| 15315 | ac_status=$? |
| 15316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15317 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15318 | |
| 15319 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15320 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15321 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 15322 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15323 | |
| 15324 | else |
| 15325 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15326 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15327 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 15328 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15329 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15330 | |
| 15331 | fi |
| 15332 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 15333 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15334 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15335 | for ac_func in gettimeofday |
| 15336 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15337 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15338 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15339 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15340 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15342 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15343 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15344 | /* confdefs.h. */ |
| 15345 | _ACEOF |
| 15346 | cat confdefs.h >>conftest.$ac_ext |
| 15347 | cat >>conftest.$ac_ext <<_ACEOF |
| 15348 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15349 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15350 | which can conflict with char $ac_func (); below. |
| 15351 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15352 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15353 | including <limits.h> includes <sys/time.h> and causes problems |
| 15354 | checking for functions defined therein. */ |
| 15355 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15356 | # include <limits.h> |
| 15357 | #else |
| 15358 | # include <assert.h> |
| 15359 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15360 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15361 | #ifdef __cplusplus |
| 15362 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15363 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15364 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15365 | /* 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] | 15366 | builtin and then its argument prototype would still apply. */ |
| 15367 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15368 | /* The GNU C library defines this for functions which it implements |
| 15369 | to always fail with ENOSYS. Some functions are actually named |
| 15370 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15371 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15372 | choke me |
| 15373 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15374 | char (*f) () = $ac_func; |
| 15375 | #endif |
| 15376 | #ifdef __cplusplus |
| 15377 | } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15378 | #endif |
| 15379 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15380 | int |
| 15381 | main () |
| 15382 | { |
| 15383 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15384 | ; |
| 15385 | return 0; |
| 15386 | } |
| 15387 | _ACEOF |
| 15388 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15389 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15390 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15391 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15392 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15393 | rm -f conftest.er1 |
| 15394 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15396 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 15397 | { ac_try='test -z "$ac_c_werror_flag" |
| 15398 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15400 | (eval $ac_try) 2>&5 |
| 15401 | ac_status=$? |
| 15402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15403 | (exit $ac_status); }; } && |
| 15404 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15406 | (eval $ac_try) 2>&5 |
| 15407 | ac_status=$? |
| 15408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15409 | (exit $ac_status); }; }; then |
| 15410 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15411 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15412 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15414 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15415 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15416 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15417 | rm -f conftest.err conftest.$ac_objext \ |
| 15418 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15419 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15420 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15421 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15422 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15423 | cat >>confdefs.h <<_ACEOF |
| 15424 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15425 | _ACEOF |
| 15426 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15427 | /* confdefs.h. */ |
| 15428 | _ACEOF |
| 15429 | cat confdefs.h >>conftest.$ac_ext |
| 15430 | cat >>conftest.$ac_ext <<_ACEOF |
| 15431 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15432 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15433 | int |
| 15434 | main () |
| 15435 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15436 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15437 | ; |
| 15438 | return 0; |
| 15439 | } |
| 15440 | _ACEOF |
| 15441 | rm -f conftest.$ac_objext |
| 15442 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15443 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15444 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15446 | rm -f conftest.er1 |
| 15447 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15449 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 15450 | { ac_try='test -z "$ac_c_werror_flag" |
| 15451 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15453 | (eval $ac_try) 2>&5 |
| 15454 | ac_status=$? |
| 15455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15456 | (exit $ac_status); }; } && |
| 15457 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15459 | (eval $ac_try) 2>&5 |
| 15460 | ac_status=$? |
| 15461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15462 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15463 | : |
| 15464 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15465 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15467 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15468 | |
| 15469 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15470 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15471 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15472 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15473 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15474 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15475 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15476 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15477 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15478 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15479 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15480 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15481 | echo "$as_me:$LINENO: checking for major" >&5 |
| 15482 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 15483 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15484 | /* confdefs.h. */ |
| 15485 | _ACEOF |
| 15486 | cat confdefs.h >>conftest.$ac_ext |
| 15487 | cat >>conftest.$ac_ext <<_ACEOF |
| 15488 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15489 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15490 | #if defined(MAJOR_IN_MKDEV) |
| 15491 | #include <sys/mkdev.h> |
| 15492 | #elif defined(MAJOR_IN_SYSMACROS) |
| 15493 | #include <sys/sysmacros.h> |
| 15494 | #else |
| 15495 | #include <sys/types.h> |
| 15496 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15497 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15498 | int |
| 15499 | main () |
| 15500 | { |
| 15501 | |
| 15502 | makedev(major(0),minor(0)); |
| 15503 | |
| 15504 | ; |
| 15505 | return 0; |
| 15506 | } |
| 15507 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 15508 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15509 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15510 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15511 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15512 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15513 | rm -f conftest.er1 |
| 15514 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15516 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 15517 | { ac_try='test -z "$ac_c_werror_flag" |
| 15518 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15520 | (eval $ac_try) 2>&5 |
| 15521 | ac_status=$? |
| 15522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15523 | (exit $ac_status); }; } && |
| 15524 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15526 | (eval $ac_try) 2>&5 |
| 15527 | ac_status=$? |
| 15528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15529 | (exit $ac_status); }; }; then |
| 15530 | |
| 15531 | |
| 15532 | cat >>confdefs.h <<\_ACEOF |
| 15533 | #define HAVE_DEVICE_MACROS 1 |
| 15534 | _ACEOF |
| 15535 | |
| 15536 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15537 | echo "${ECHO_T}yes" >&6 |
| 15538 | |
| 15539 | else |
| 15540 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15542 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15543 | |
| 15544 | echo "$as_me:$LINENO: result: no" >&5 |
| 15545 | echo "${ECHO_T}no" >&6 |
| 15546 | |
| 15547 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15548 | rm -f conftest.err conftest.$ac_objext \ |
| 15549 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15550 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15551 | # 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] | 15552 | # for [no]getaddrinfo in netdb.h. |
| 15553 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 15554 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 15555 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15556 | /* confdefs.h. */ |
| 15557 | _ACEOF |
| 15558 | cat confdefs.h >>conftest.$ac_ext |
| 15559 | cat >>conftest.$ac_ext <<_ACEOF |
| 15560 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15561 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 15562 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15563 | #include <sys/socket.h> |
| 15564 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 15565 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15566 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15567 | int |
| 15568 | main () |
| 15569 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15570 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15571 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15572 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15573 | ; |
| 15574 | return 0; |
| 15575 | } |
| 15576 | _ACEOF |
| 15577 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15579 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15580 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15582 | rm -f conftest.er1 |
| 15583 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15585 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 15586 | { ac_try='test -z "$ac_c_werror_flag" |
| 15587 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15589 | (eval $ac_try) 2>&5 |
| 15590 | ac_status=$? |
| 15591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15592 | (exit $ac_status); }; } && |
| 15593 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15595 | (eval $ac_try) 2>&5 |
| 15596 | ac_status=$? |
| 15597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15598 | (exit $ac_status); }; }; then |
| 15599 | |
| 15600 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15601 | echo "${ECHO_T}yes" >&6 |
| 15602 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 15603 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15604 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15605 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 15606 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15607 | buggygetaddrinfo=yes |
| 15608 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15609 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15610 | /* confdefs.h. */ |
| 15611 | _ACEOF |
| 15612 | cat confdefs.h >>conftest.$ac_ext |
| 15613 | cat >>conftest.$ac_ext <<_ACEOF |
| 15614 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15615 | |
| 15616 | #include <sys/types.h> |
| 15617 | #include <netdb.h> |
| 15618 | #include <string.h> |
| 15619 | #include <sys/socket.h> |
| 15620 | #include <netinet/in.h> |
| 15621 | |
| 15622 | main() |
| 15623 | { |
| 15624 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 15625 | struct addrinfo hints, *ai, *aitop; |
| 15626 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 15627 | |
| 15628 | for (passive = 0; passive <= 1; passive++) { |
| 15629 | memset(&hints, 0, sizeof(hints)); |
| 15630 | hints.ai_family = AF_UNSPEC; |
| 15631 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 15632 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 15633 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15634 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 15635 | (void)gai_strerror(gaierr); |
| 15636 | goto bad; |
| 15637 | } |
| 15638 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 15639 | if (ai->ai_addr == NULL || |
| 15640 | ai->ai_addrlen == 0 || |
| 15641 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 15642 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 15643 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 15644 | goto bad; |
| 15645 | } |
| 15646 | switch (ai->ai_family) { |
| 15647 | case AF_INET: |
| 15648 | if (strcmp(strport, "54321") != 0) { |
| 15649 | goto bad; |
| 15650 | } |
| 15651 | if (passive) { |
| 15652 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 15653 | goto bad; |
| 15654 | } |
| 15655 | } else { |
| 15656 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 15657 | goto bad; |
| 15658 | } |
| 15659 | } |
| 15660 | inet4++; |
| 15661 | break; |
| 15662 | case AF_INET6: |
| 15663 | if (strcmp(strport, "54321") != 0) { |
| 15664 | goto bad; |
| 15665 | } |
| 15666 | if (passive) { |
| 15667 | if (strcmp(straddr, "::") != 0) { |
| 15668 | goto bad; |
| 15669 | } |
| 15670 | } else { |
| 15671 | if (strcmp(straddr, "::1") != 0) { |
| 15672 | goto bad; |
| 15673 | } |
| 15674 | } |
| 15675 | inet6++; |
| 15676 | break; |
| 15677 | case AF_UNSPEC: |
| 15678 | goto bad; |
| 15679 | break; |
| 15680 | default: |
| 15681 | /* another family support? */ |
| 15682 | break; |
| 15683 | } |
| 15684 | } |
| 15685 | } |
| 15686 | |
| 15687 | if (!(inet4 == 0 || inet4 == 2)) |
| 15688 | goto bad; |
| 15689 | if (!(inet6 == 0 || inet6 == 2)) |
| 15690 | goto bad; |
| 15691 | |
| 15692 | if (aitop) |
| 15693 | freeaddrinfo(aitop); |
| 15694 | exit(0); |
| 15695 | |
| 15696 | bad: |
| 15697 | if (aitop) |
| 15698 | freeaddrinfo(aitop); |
| 15699 | exit(1); |
| 15700 | } |
| 15701 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15702 | _ACEOF |
| 15703 | rm -f conftest$ac_exeext |
| 15704 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15705 | (eval $ac_link) 2>&5 |
| 15706 | ac_status=$? |
| 15707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15708 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15710 | (eval $ac_try) 2>&5 |
| 15711 | ac_status=$? |
| 15712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15713 | (exit $ac_status); }; }; then |
| 15714 | echo "$as_me:$LINENO: result: good" >&5 |
| 15715 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15716 | buggygetaddrinfo=no |
| 15717 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15718 | echo "$as_me: program exited with status $ac_status" >&5 |
| 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 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15722 | ( exit $ac_status ) |
| 15723 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 15724 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15725 | buggygetaddrinfo=yes |
| 15726 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15727 | rm -f 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] | 15728 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15729 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15730 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15731 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15732 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15733 | |
| 15734 | echo "$as_me:$LINENO: result: no" >&5 |
| 15735 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15736 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15737 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15738 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15739 | rm -f conftest.err conftest.$ac_objext \ |
| 15740 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15741 | |
| 15742 | if test "$buggygetaddrinfo" = "yes"; then |
| 15743 | if test "$ipv6" = "yes"; then |
| 15744 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 15745 | echo ' or you can specify "--disable-ipv6"'. |
| 15746 | exit 1 |
| 15747 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15748 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15749 | |
| 15750 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15751 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15752 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15753 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15754 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15755 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 15756 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15757 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15758 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15759 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15760 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15761 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15763 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15764 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15765 | /* confdefs.h. */ |
| 15766 | _ACEOF |
| 15767 | cat confdefs.h >>conftest.$ac_ext |
| 15768 | cat >>conftest.$ac_ext <<_ACEOF |
| 15769 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15770 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15771 | which can conflict with char $ac_func (); below. |
| 15772 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15773 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15774 | including <limits.h> includes <sys/time.h> and causes problems |
| 15775 | checking for functions defined therein. */ |
| 15776 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15777 | # include <limits.h> |
| 15778 | #else |
| 15779 | # include <assert.h> |
| 15780 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15781 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15782 | #ifdef __cplusplus |
| 15783 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15784 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15785 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15786 | /* 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] | 15787 | builtin and then its argument prototype would still apply. */ |
| 15788 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15789 | /* The GNU C library defines this for functions which it implements |
| 15790 | to always fail with ENOSYS. Some functions are actually named |
| 15791 | something starting with __ and the normal name is an alias. */ |
| 15792 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15793 | choke me |
| 15794 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15795 | char (*f) () = $ac_func; |
| 15796 | #endif |
| 15797 | #ifdef __cplusplus |
| 15798 | } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15799 | #endif |
| 15800 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15801 | int |
| 15802 | main () |
| 15803 | { |
| 15804 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15805 | ; |
| 15806 | return 0; |
| 15807 | } |
| 15808 | _ACEOF |
| 15809 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15811 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15812 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15813 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15814 | rm -f conftest.er1 |
| 15815 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15817 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 15818 | { ac_try='test -z "$ac_c_werror_flag" |
| 15819 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15821 | (eval $ac_try) 2>&5 |
| 15822 | ac_status=$? |
| 15823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15824 | (exit $ac_status); }; } && |
| 15825 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15827 | (eval $ac_try) 2>&5 |
| 15828 | ac_status=$? |
| 15829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15830 | (exit $ac_status); }; }; then |
| 15831 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15832 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15833 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15835 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15836 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15837 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15838 | rm -f conftest.err conftest.$ac_objext \ |
| 15839 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15840 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15841 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15842 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15843 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15844 | cat >>confdefs.h <<_ACEOF |
| 15845 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15846 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15847 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15848 | fi |
| 15849 | done |
| 15850 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15851 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15852 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15853 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 15854 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 15855 | if test "${ac_cv_header_time+set}" = set; then |
| 15856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15857 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15858 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15859 | /* confdefs.h. */ |
| 15860 | _ACEOF |
| 15861 | cat confdefs.h >>conftest.$ac_ext |
| 15862 | cat >>conftest.$ac_ext <<_ACEOF |
| 15863 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15864 | #include <sys/types.h> |
| 15865 | #include <sys/time.h> |
| 15866 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15867 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15868 | int |
| 15869 | main () |
| 15870 | { |
| 15871 | if ((struct tm *) 0) |
| 15872 | return 0; |
| 15873 | ; |
| 15874 | return 0; |
| 15875 | } |
| 15876 | _ACEOF |
| 15877 | rm -f conftest.$ac_objext |
| 15878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15879 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15880 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15881 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15882 | rm -f conftest.er1 |
| 15883 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15885 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 15886 | { ac_try='test -z "$ac_c_werror_flag" |
| 15887 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15889 | (eval $ac_try) 2>&5 |
| 15890 | ac_status=$? |
| 15891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15892 | (exit $ac_status); }; } && |
| 15893 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15895 | (eval $ac_try) 2>&5 |
| 15896 | ac_status=$? |
| 15897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15898 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15899 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15900 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15901 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15904 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15905 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15907 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15908 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 15909 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15910 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15911 | |
| 15912 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15913 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15914 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15915 | |
| 15916 | fi |
| 15917 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15918 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 15919 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 15920 | if test "${ac_cv_struct_tm+set}" = set; then |
| 15921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15922 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15923 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15924 | /* confdefs.h. */ |
| 15925 | _ACEOF |
| 15926 | cat confdefs.h >>conftest.$ac_ext |
| 15927 | cat >>conftest.$ac_ext <<_ACEOF |
| 15928 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15929 | #include <sys/types.h> |
| 15930 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15931 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15932 | int |
| 15933 | main () |
| 15934 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15935 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15936 | ; |
| 15937 | return 0; |
| 15938 | } |
| 15939 | _ACEOF |
| 15940 | rm -f conftest.$ac_objext |
| 15941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15942 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15943 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15945 | rm -f conftest.er1 |
| 15946 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15948 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 15949 | { ac_try='test -z "$ac_c_werror_flag" |
| 15950 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15952 | (eval $ac_try) 2>&5 |
| 15953 | ac_status=$? |
| 15954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15955 | (exit $ac_status); }; } && |
| 15956 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15958 | (eval $ac_try) 2>&5 |
| 15959 | ac_status=$? |
| 15960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15961 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15962 | ac_cv_struct_tm=time.h |
| 15963 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15964 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15967 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15968 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15969 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15970 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15971 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 15972 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15973 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15974 | |
| 15975 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15976 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15977 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15978 | |
| 15979 | fi |
| 15980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15981 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 15982 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 15983 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 15984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15985 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15986 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15987 | /* confdefs.h. */ |
| 15988 | _ACEOF |
| 15989 | cat confdefs.h >>conftest.$ac_ext |
| 15990 | cat >>conftest.$ac_ext <<_ACEOF |
| 15991 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15992 | #include <sys/types.h> |
| 15993 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15994 | |
| 15995 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15996 | int |
| 15997 | main () |
| 15998 | { |
| 15999 | static struct tm ac_aggr; |
| 16000 | if (ac_aggr.tm_zone) |
| 16001 | return 0; |
| 16002 | ; |
| 16003 | return 0; |
| 16004 | } |
| 16005 | _ACEOF |
| 16006 | rm -f conftest.$ac_objext |
| 16007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16008 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16009 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16010 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16011 | rm -f conftest.er1 |
| 16012 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16014 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 16015 | { ac_try='test -z "$ac_c_werror_flag" |
| 16016 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16018 | (eval $ac_try) 2>&5 |
| 16019 | ac_status=$? |
| 16020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16021 | (exit $ac_status); }; } && |
| 16022 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16024 | (eval $ac_try) 2>&5 |
| 16025 | ac_status=$? |
| 16026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16027 | (exit $ac_status); }; }; then |
| 16028 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16029 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16030 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16031 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16032 | |
| 16033 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16034 | /* confdefs.h. */ |
| 16035 | _ACEOF |
| 16036 | cat confdefs.h >>conftest.$ac_ext |
| 16037 | cat >>conftest.$ac_ext <<_ACEOF |
| 16038 | /* end confdefs.h. */ |
| 16039 | #include <sys/types.h> |
| 16040 | #include <$ac_cv_struct_tm> |
| 16041 | |
| 16042 | |
| 16043 | int |
| 16044 | main () |
| 16045 | { |
| 16046 | static struct tm ac_aggr; |
| 16047 | if (sizeof ac_aggr.tm_zone) |
| 16048 | return 0; |
| 16049 | ; |
| 16050 | return 0; |
| 16051 | } |
| 16052 | _ACEOF |
| 16053 | rm -f conftest.$ac_objext |
| 16054 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16055 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16056 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16057 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16058 | rm -f conftest.er1 |
| 16059 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16061 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 16062 | { ac_try='test -z "$ac_c_werror_flag" |
| 16063 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16065 | (eval $ac_try) 2>&5 |
| 16066 | ac_status=$? |
| 16067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16068 | (exit $ac_status); }; } && |
| 16069 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16071 | (eval $ac_try) 2>&5 |
| 16072 | ac_status=$? |
| 16073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16074 | (exit $ac_status); }; }; then |
| 16075 | ac_cv_member_struct_tm_tm_zone=yes |
| 16076 | else |
| 16077 | echo "$as_me: failed program was:" >&5 |
| 16078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16079 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16080 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16081 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16082 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16083 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16084 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16085 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16086 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 16087 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 16088 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 16089 | |
| 16090 | cat >>confdefs.h <<_ACEOF |
| 16091 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 16092 | _ACEOF |
| 16093 | |
| 16094 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16095 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16096 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16097 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 16098 | |
| 16099 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16100 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16101 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16102 | |
| 16103 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16104 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 16105 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 16106 | if test "${ac_cv_var_tzname+set}" = set; then |
| 16107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16108 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16109 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16110 | /* confdefs.h. */ |
| 16111 | _ACEOF |
| 16112 | cat confdefs.h >>conftest.$ac_ext |
| 16113 | cat >>conftest.$ac_ext <<_ACEOF |
| 16114 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16115 | #include <time.h> |
| 16116 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16117 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16118 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16119 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16120 | int |
| 16121 | main () |
| 16122 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16123 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16124 | ; |
| 16125 | return 0; |
| 16126 | } |
| 16127 | _ACEOF |
| 16128 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16129 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16130 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16131 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16133 | rm -f conftest.er1 |
| 16134 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16136 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 16137 | { ac_try='test -z "$ac_c_werror_flag" |
| 16138 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16140 | (eval $ac_try) 2>&5 |
| 16141 | ac_status=$? |
| 16142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16143 | (exit $ac_status); }; } && |
| 16144 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16146 | (eval $ac_try) 2>&5 |
| 16147 | ac_status=$? |
| 16148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16149 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16150 | ac_cv_var_tzname=yes |
| 16151 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16152 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16153 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16154 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16155 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16156 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16157 | rm -f conftest.err conftest.$ac_objext \ |
| 16158 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16159 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16160 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 16161 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16162 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16163 | |
| 16164 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16165 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16166 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16167 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16168 | fi |
| 16169 | fi |
| 16170 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16171 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 16172 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 16173 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 16174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16175 | else |
| 16176 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16177 | /* confdefs.h. */ |
| 16178 | _ACEOF |
| 16179 | cat confdefs.h >>conftest.$ac_ext |
| 16180 | cat >>conftest.$ac_ext <<_ACEOF |
| 16181 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16182 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16183 | int |
| 16184 | main () |
| 16185 | { |
| 16186 | static struct stat ac_aggr; |
| 16187 | if (ac_aggr.st_rdev) |
| 16188 | return 0; |
| 16189 | ; |
| 16190 | return 0; |
| 16191 | } |
| 16192 | _ACEOF |
| 16193 | rm -f conftest.$ac_objext |
| 16194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16195 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16196 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16198 | rm -f conftest.er1 |
| 16199 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16201 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 16202 | { ac_try='test -z "$ac_c_werror_flag" |
| 16203 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16205 | (eval $ac_try) 2>&5 |
| 16206 | ac_status=$? |
| 16207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16208 | (exit $ac_status); }; } && |
| 16209 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16211 | (eval $ac_try) 2>&5 |
| 16212 | ac_status=$? |
| 16213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16214 | (exit $ac_status); }; }; then |
| 16215 | ac_cv_member_struct_stat_st_rdev=yes |
| 16216 | else |
| 16217 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16219 | |
| 16220 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16221 | /* confdefs.h. */ |
| 16222 | _ACEOF |
| 16223 | cat confdefs.h >>conftest.$ac_ext |
| 16224 | cat >>conftest.$ac_ext <<_ACEOF |
| 16225 | /* end confdefs.h. */ |
| 16226 | $ac_includes_default |
| 16227 | int |
| 16228 | main () |
| 16229 | { |
| 16230 | static struct stat ac_aggr; |
| 16231 | if (sizeof ac_aggr.st_rdev) |
| 16232 | return 0; |
| 16233 | ; |
| 16234 | return 0; |
| 16235 | } |
| 16236 | _ACEOF |
| 16237 | rm -f conftest.$ac_objext |
| 16238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16239 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16240 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16242 | rm -f conftest.er1 |
| 16243 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16245 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 16246 | { ac_try='test -z "$ac_c_werror_flag" |
| 16247 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16249 | (eval $ac_try) 2>&5 |
| 16250 | ac_status=$? |
| 16251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16252 | (exit $ac_status); }; } && |
| 16253 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16255 | (eval $ac_try) 2>&5 |
| 16256 | ac_status=$? |
| 16257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16258 | (exit $ac_status); }; }; then |
| 16259 | ac_cv_member_struct_stat_st_rdev=yes |
| 16260 | else |
| 16261 | echo "$as_me: failed program was:" >&5 |
| 16262 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16263 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16264 | ac_cv_member_struct_stat_st_rdev=no |
| 16265 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16266 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16267 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16268 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16269 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16270 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 16271 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 16272 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 16273 | |
| 16274 | cat >>confdefs.h <<_ACEOF |
| 16275 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 16276 | _ACEOF |
| 16277 | |
| 16278 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16279 | fi |
| 16280 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16281 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 16282 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 16283 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 16284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16285 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16286 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16287 | /* confdefs.h. */ |
| 16288 | _ACEOF |
| 16289 | cat confdefs.h >>conftest.$ac_ext |
| 16290 | cat >>conftest.$ac_ext <<_ACEOF |
| 16291 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16292 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16293 | int |
| 16294 | main () |
| 16295 | { |
| 16296 | static struct stat ac_aggr; |
| 16297 | if (ac_aggr.st_blksize) |
| 16298 | return 0; |
| 16299 | ; |
| 16300 | return 0; |
| 16301 | } |
| 16302 | _ACEOF |
| 16303 | rm -f conftest.$ac_objext |
| 16304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16305 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16306 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16308 | rm -f conftest.er1 |
| 16309 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16311 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 16312 | { ac_try='test -z "$ac_c_werror_flag" |
| 16313 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16315 | (eval $ac_try) 2>&5 |
| 16316 | ac_status=$? |
| 16317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16318 | (exit $ac_status); }; } && |
| 16319 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16321 | (eval $ac_try) 2>&5 |
| 16322 | ac_status=$? |
| 16323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16324 | (exit $ac_status); }; }; then |
| 16325 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16326 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16327 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16329 | |
| 16330 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16331 | /* confdefs.h. */ |
| 16332 | _ACEOF |
| 16333 | cat confdefs.h >>conftest.$ac_ext |
| 16334 | cat >>conftest.$ac_ext <<_ACEOF |
| 16335 | /* end confdefs.h. */ |
| 16336 | $ac_includes_default |
| 16337 | int |
| 16338 | main () |
| 16339 | { |
| 16340 | static struct stat ac_aggr; |
| 16341 | if (sizeof ac_aggr.st_blksize) |
| 16342 | return 0; |
| 16343 | ; |
| 16344 | return 0; |
| 16345 | } |
| 16346 | _ACEOF |
| 16347 | rm -f conftest.$ac_objext |
| 16348 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16349 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16350 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16351 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16352 | rm -f conftest.er1 |
| 16353 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16355 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 16356 | { ac_try='test -z "$ac_c_werror_flag" |
| 16357 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16359 | (eval $ac_try) 2>&5 |
| 16360 | ac_status=$? |
| 16361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16362 | (exit $ac_status); }; } && |
| 16363 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16365 | (eval $ac_try) 2>&5 |
| 16366 | ac_status=$? |
| 16367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16368 | (exit $ac_status); }; }; then |
| 16369 | ac_cv_member_struct_stat_st_blksize=yes |
| 16370 | else |
| 16371 | echo "$as_me: failed program was:" >&5 |
| 16372 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16373 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16374 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16375 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16376 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16377 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16379 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16380 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 16381 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 16382 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16383 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16384 | cat >>confdefs.h <<_ACEOF |
| 16385 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 16386 | _ACEOF |
| 16387 | |
| 16388 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16389 | fi |
| 16390 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16391 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 16392 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 16393 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 16394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16395 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16396 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16397 | /* confdefs.h. */ |
| 16398 | _ACEOF |
| 16399 | cat confdefs.h >>conftest.$ac_ext |
| 16400 | cat >>conftest.$ac_ext <<_ACEOF |
| 16401 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16402 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16403 | int |
| 16404 | main () |
| 16405 | { |
| 16406 | static struct stat ac_aggr; |
| 16407 | if (ac_aggr.st_blocks) |
| 16408 | return 0; |
| 16409 | ; |
| 16410 | return 0; |
| 16411 | } |
| 16412 | _ACEOF |
| 16413 | rm -f conftest.$ac_objext |
| 16414 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16415 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16416 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16417 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16418 | rm -f conftest.er1 |
| 16419 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16421 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 16422 | { ac_try='test -z "$ac_c_werror_flag" |
| 16423 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16425 | (eval $ac_try) 2>&5 |
| 16426 | ac_status=$? |
| 16427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16428 | (exit $ac_status); }; } && |
| 16429 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16431 | (eval $ac_try) 2>&5 |
| 16432 | ac_status=$? |
| 16433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16434 | (exit $ac_status); }; }; then |
| 16435 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16436 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16437 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16439 | |
| 16440 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16441 | /* confdefs.h. */ |
| 16442 | _ACEOF |
| 16443 | cat confdefs.h >>conftest.$ac_ext |
| 16444 | cat >>conftest.$ac_ext <<_ACEOF |
| 16445 | /* end confdefs.h. */ |
| 16446 | $ac_includes_default |
| 16447 | int |
| 16448 | main () |
| 16449 | { |
| 16450 | static struct stat ac_aggr; |
| 16451 | if (sizeof ac_aggr.st_blocks) |
| 16452 | return 0; |
| 16453 | ; |
| 16454 | return 0; |
| 16455 | } |
| 16456 | _ACEOF |
| 16457 | rm -f conftest.$ac_objext |
| 16458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16459 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16460 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16462 | rm -f conftest.er1 |
| 16463 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16465 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 16466 | { ac_try='test -z "$ac_c_werror_flag" |
| 16467 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16469 | (eval $ac_try) 2>&5 |
| 16470 | ac_status=$? |
| 16471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16472 | (exit $ac_status); }; } && |
| 16473 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16475 | (eval $ac_try) 2>&5 |
| 16476 | ac_status=$? |
| 16477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16478 | (exit $ac_status); }; }; then |
| 16479 | ac_cv_member_struct_stat_st_blocks=yes |
| 16480 | else |
| 16481 | echo "$as_me: failed program was:" >&5 |
| 16482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16483 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16484 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16485 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16487 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16488 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16489 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16490 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 16491 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 16492 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16493 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16494 | cat >>confdefs.h <<_ACEOF |
| 16495 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 16496 | _ACEOF |
| 16497 | |
| 16498 | |
| 16499 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16500 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16501 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16502 | |
| 16503 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16504 | case $LIBOBJS in |
| 16505 | "fileblocks.$ac_objext" | \ |
| 16506 | *" fileblocks.$ac_objext" | \ |
| 16507 | "fileblocks.$ac_objext "* | \ |
| 16508 | *" fileblocks.$ac_objext "* ) ;; |
| 16509 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;; |
| 16510 | esac |
| 16511 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16512 | fi |
| 16513 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16514 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16515 | |
| 16516 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 16517 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 16518 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 16519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16520 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16521 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16522 | /* confdefs.h. */ |
| 16523 | _ACEOF |
| 16524 | cat confdefs.h >>conftest.$ac_ext |
| 16525 | cat >>conftest.$ac_ext <<_ACEOF |
| 16526 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16527 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16528 | int |
| 16529 | main () |
| 16530 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16531 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16532 | ; |
| 16533 | return 0; |
| 16534 | } |
| 16535 | _ACEOF |
| 16536 | rm -f conftest.$ac_objext |
| 16537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16538 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16539 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16540 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16541 | rm -f conftest.er1 |
| 16542 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16544 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 16545 | { ac_try='test -z "$ac_c_werror_flag" |
| 16546 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16548 | (eval $ac_try) 2>&5 |
| 16549 | ac_status=$? |
| 16550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16551 | (exit $ac_status); }; } && |
| 16552 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16554 | (eval $ac_try) 2>&5 |
| 16555 | ac_status=$? |
| 16556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16557 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16558 | ac_cv_header_time_altzone=yes |
| 16559 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16560 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16562 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16563 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16564 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16565 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16566 | fi |
| 16567 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16568 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 16569 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16570 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16571 | |
| 16572 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16573 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16574 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16575 | |
| 16576 | fi |
| 16577 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16578 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16579 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 16580 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 16581 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16582 | /* confdefs.h. */ |
| 16583 | _ACEOF |
| 16584 | cat confdefs.h >>conftest.$ac_ext |
| 16585 | cat >>conftest.$ac_ext <<_ACEOF |
| 16586 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16587 | |
| 16588 | #include <sys/types.h> |
| 16589 | #include <sys/select.h> |
| 16590 | #include <sys/time.h> |
| 16591 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16592 | int |
| 16593 | main () |
| 16594 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16595 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16596 | ; |
| 16597 | return 0; |
| 16598 | } |
| 16599 | _ACEOF |
| 16600 | rm -f conftest.$ac_objext |
| 16601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16602 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16603 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16604 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16605 | rm -f conftest.er1 |
| 16606 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16608 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 16609 | { ac_try='test -z "$ac_c_werror_flag" |
| 16610 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16612 | (eval $ac_try) 2>&5 |
| 16613 | ac_status=$? |
| 16614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16615 | (exit $ac_status); }; } && |
| 16616 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16618 | (eval $ac_try) 2>&5 |
| 16619 | ac_status=$? |
| 16620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16621 | (exit $ac_status); }; }; then |
| 16622 | |
| 16623 | |
| 16624 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16625 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16626 | _ACEOF |
| 16627 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16628 | was_it_defined=yes |
| 16629 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16630 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16631 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16633 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16634 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16635 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16636 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 16637 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16638 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16639 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 16640 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 16641 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 16642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16643 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16644 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16645 | /* confdefs.h. */ |
| 16646 | _ACEOF |
| 16647 | cat confdefs.h >>conftest.$ac_ext |
| 16648 | cat >>conftest.$ac_ext <<_ACEOF |
| 16649 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16650 | |
| 16651 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16652 | int |
| 16653 | main () |
| 16654 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16655 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16656 | ; |
| 16657 | return 0; |
| 16658 | } |
| 16659 | _ACEOF |
| 16660 | rm -f conftest.$ac_objext |
| 16661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16662 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16663 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16664 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16665 | rm -f conftest.er1 |
| 16666 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16668 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 16669 | { ac_try='test -z "$ac_c_werror_flag" |
| 16670 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16672 | (eval $ac_try) 2>&5 |
| 16673 | ac_status=$? |
| 16674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16675 | (exit $ac_status); }; } && |
| 16676 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16678 | (eval $ac_try) 2>&5 |
| 16679 | ac_status=$? |
| 16680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16681 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16682 | ac_cv_struct_addrinfo=yes |
| 16683 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16684 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16685 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16686 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16687 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16688 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16689 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16690 | fi |
| 16691 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16692 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 16693 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16694 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16695 | |
| 16696 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16697 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16698 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16699 | |
| 16700 | fi |
| 16701 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16702 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 16703 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 16704 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 16705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16706 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16707 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16708 | /* confdefs.h. */ |
| 16709 | _ACEOF |
| 16710 | cat confdefs.h >>conftest.$ac_ext |
| 16711 | cat >>conftest.$ac_ext <<_ACEOF |
| 16712 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16713 | |
| 16714 | # include <sys/types.h> |
| 16715 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16716 | int |
| 16717 | main () |
| 16718 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16719 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16720 | ; |
| 16721 | return 0; |
| 16722 | } |
| 16723 | _ACEOF |
| 16724 | rm -f conftest.$ac_objext |
| 16725 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16726 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16727 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16728 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16729 | rm -f conftest.er1 |
| 16730 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16732 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 16733 | { ac_try='test -z "$ac_c_werror_flag" |
| 16734 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16736 | (eval $ac_try) 2>&5 |
| 16737 | ac_status=$? |
| 16738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16739 | (exit $ac_status); }; } && |
| 16740 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16742 | (eval $ac_try) 2>&5 |
| 16743 | ac_status=$? |
| 16744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16745 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16746 | ac_cv_struct_sockaddr_storage=yes |
| 16747 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16748 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16750 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16751 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16752 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16753 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16754 | fi |
| 16755 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16756 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 16757 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16758 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16759 | |
| 16760 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16761 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16762 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16763 | |
| 16764 | fi |
| 16765 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16766 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16767 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16768 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16769 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 16770 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 16771 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 16772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16773 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16774 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16775 | /* confdefs.h. */ |
| 16776 | _ACEOF |
| 16777 | cat confdefs.h >>conftest.$ac_ext |
| 16778 | cat >>conftest.$ac_ext <<_ACEOF |
| 16779 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16780 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16781 | int |
| 16782 | main () |
| 16783 | { |
| 16784 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 16785 | test_array [0] = 0 |
| 16786 | |
| 16787 | ; |
| 16788 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16789 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16790 | _ACEOF |
| 16791 | rm -f conftest.$ac_objext |
| 16792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16793 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16794 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16796 | rm -f conftest.er1 |
| 16797 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16799 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 16800 | { ac_try='test -z "$ac_c_werror_flag" |
| 16801 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16803 | (eval $ac_try) 2>&5 |
| 16804 | ac_status=$? |
| 16805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16806 | (exit $ac_status); }; } && |
| 16807 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16809 | (eval $ac_try) 2>&5 |
| 16810 | ac_status=$? |
| 16811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16812 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16813 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16814 | else |
| 16815 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16817 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16818 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16819 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16821 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16822 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 16823 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16824 | 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] | 16825 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16826 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16827 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16828 | |
| 16829 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16830 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16831 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 16832 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 16833 | if test "${ac_cv_c_const+set}" = set; then |
| 16834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16835 | else |
| 16836 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16837 | /* confdefs.h. */ |
| 16838 | _ACEOF |
| 16839 | cat confdefs.h >>conftest.$ac_ext |
| 16840 | cat >>conftest.$ac_ext <<_ACEOF |
| 16841 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16842 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16843 | int |
| 16844 | main () |
| 16845 | { |
| 16846 | /* FIXME: Include the comments suggested by Paul. */ |
| 16847 | #ifndef __cplusplus |
| 16848 | /* Ultrix mips cc rejects this. */ |
| 16849 | typedef int charset[2]; |
| 16850 | const charset x; |
| 16851 | /* SunOS 4.1.1 cc rejects this. */ |
| 16852 | char const *const *ccp; |
| 16853 | char **p; |
| 16854 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 16855 | struct point {int x, y;}; |
| 16856 | static struct point const zero = {0,0}; |
| 16857 | /* AIX XL C 1.02.0.0 rejects this. |
| 16858 | It does not let you subtract one const X* pointer from another in |
| 16859 | an arm of an if-expression whose if-part is not a constant |
| 16860 | expression */ |
| 16861 | const char *g = "string"; |
| 16862 | ccp = &g + (g ? g-g : 0); |
| 16863 | /* HPUX 7.0 cc rejects these. */ |
| 16864 | ++ccp; |
| 16865 | p = (char**) ccp; |
| 16866 | ccp = (char const *const *) p; |
| 16867 | { /* SCO 3.2v4 cc rejects this. */ |
| 16868 | char *t; |
| 16869 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16870 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16871 | *t++ = 0; |
| 16872 | } |
| 16873 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 16874 | int x[] = {25, 17}; |
| 16875 | const int *foo = &x[0]; |
| 16876 | ++foo; |
| 16877 | } |
| 16878 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 16879 | typedef const int *iptr; |
| 16880 | iptr p = 0; |
| 16881 | ++p; |
| 16882 | } |
| 16883 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 16884 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 16885 | struct s { int j; const int *ap[3]; }; |
| 16886 | struct s *b; b->j = 5; |
| 16887 | } |
| 16888 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 16889 | const int foo = 10; |
| 16890 | } |
| 16891 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16892 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16893 | ; |
| 16894 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16895 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16896 | _ACEOF |
| 16897 | rm -f conftest.$ac_objext |
| 16898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16899 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16900 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16902 | rm -f conftest.er1 |
| 16903 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16905 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 16906 | { ac_try='test -z "$ac_c_werror_flag" |
| 16907 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16909 | (eval $ac_try) 2>&5 |
| 16910 | ac_status=$? |
| 16911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16912 | (exit $ac_status); }; } && |
| 16913 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16915 | (eval $ac_try) 2>&5 |
| 16916 | ac_status=$? |
| 16917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16918 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16919 | ac_cv_c_const=yes |
| 16920 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16921 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16923 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16924 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16925 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16926 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16927 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16928 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 16929 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16930 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16931 | |
| 16932 | cat >>confdefs.h <<\_ACEOF |
| 16933 | #define const |
| 16934 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16935 | |
| 16936 | fi |
| 16937 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16938 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16939 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16940 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 16941 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 16942 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16943 | /* confdefs.h. */ |
| 16944 | _ACEOF |
| 16945 | cat confdefs.h >>conftest.$ac_ext |
| 16946 | cat >>conftest.$ac_ext <<_ACEOF |
| 16947 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16948 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16949 | int |
| 16950 | main () |
| 16951 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16952 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16953 | ; |
| 16954 | return 0; |
| 16955 | } |
| 16956 | _ACEOF |
| 16957 | rm -f conftest.$ac_objext |
| 16958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16959 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16960 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16961 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16962 | rm -f conftest.er1 |
| 16963 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16965 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 16966 | { ac_try='test -z "$ac_c_werror_flag" |
| 16967 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16969 | (eval $ac_try) 2>&5 |
| 16970 | ac_status=$? |
| 16971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16972 | (exit $ac_status); }; } && |
| 16973 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16975 | (eval $ac_try) 2>&5 |
| 16976 | ac_status=$? |
| 16977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16978 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16979 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16980 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16981 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16982 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16983 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16984 | |
| 16985 | cat >>confdefs.h <<\_ACEOF |
| 16986 | #define volatile |
| 16987 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16988 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16989 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16990 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16991 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16992 | echo "$as_me:$LINENO: result: $works" >&5 |
| 16993 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16994 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16995 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16996 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 16997 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 16998 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16999 | /* confdefs.h. */ |
| 17000 | _ACEOF |
| 17001 | cat confdefs.h >>conftest.$ac_ext |
| 17002 | cat >>conftest.$ac_ext <<_ACEOF |
| 17003 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 17004 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17005 | int |
| 17006 | main () |
| 17007 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17008 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17009 | ; |
| 17010 | return 0; |
| 17011 | } |
| 17012 | _ACEOF |
| 17013 | rm -f conftest.$ac_objext |
| 17014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17015 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17016 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17018 | rm -f conftest.er1 |
| 17019 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17021 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 17022 | { ac_try='test -z "$ac_c_werror_flag" |
| 17023 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17025 | (eval $ac_try) 2>&5 |
| 17026 | ac_status=$? |
| 17027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17028 | (exit $ac_status); }; } && |
| 17029 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17031 | (eval $ac_try) 2>&5 |
| 17032 | ac_status=$? |
| 17033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17034 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17035 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 17036 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17037 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17039 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17040 | |
| 17041 | cat >>confdefs.h <<\_ACEOF |
| 17042 | #define signed |
| 17043 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17044 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17045 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17046 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17047 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17048 | echo "$as_me:$LINENO: result: $works" >&5 |
| 17049 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17050 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17051 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17052 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 17053 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 17054 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17055 | /* confdefs.h. */ |
| 17056 | _ACEOF |
| 17057 | cat confdefs.h >>conftest.$ac_ext |
| 17058 | cat >>conftest.$ac_ext <<_ACEOF |
| 17059 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17060 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17061 | int |
| 17062 | main () |
| 17063 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17064 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17065 | ; |
| 17066 | return 0; |
| 17067 | } |
| 17068 | _ACEOF |
| 17069 | rm -f conftest.$ac_objext |
| 17070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17071 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17072 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17073 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17074 | rm -f conftest.er1 |
| 17075 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17077 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 17078 | { ac_try='test -z "$ac_c_werror_flag" |
| 17079 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17081 | (eval $ac_try) 2>&5 |
| 17082 | ac_status=$? |
| 17083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17084 | (exit $ac_status); }; } && |
| 17085 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17087 | (eval $ac_try) 2>&5 |
| 17088 | ac_status=$? |
| 17089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17090 | (exit $ac_status); }; }; then |
| 17091 | |
| 17092 | |
| 17093 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17094 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17095 | _ACEOF |
| 17096 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17097 | have_prototypes=yes |
| 17098 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17099 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17100 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17102 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17103 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17105 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 17106 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17107 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17108 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17109 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 17110 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 17111 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17112 | /* confdefs.h. */ |
| 17113 | _ACEOF |
| 17114 | cat confdefs.h >>conftest.$ac_ext |
| 17115 | cat >>conftest.$ac_ext <<_ACEOF |
| 17116 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17117 | |
| 17118 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 17119 | int foo(int x, ...) { |
| 17120 | va_list va; |
| 17121 | va_start(va, x); |
| 17122 | va_arg(va, int); |
| 17123 | va_arg(va, char *); |
| 17124 | va_arg(va, double); |
| 17125 | return 0; |
| 17126 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17127 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17128 | int |
| 17129 | main () |
| 17130 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 17131 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17132 | ; |
| 17133 | return 0; |
| 17134 | } |
| 17135 | _ACEOF |
| 17136 | rm -f conftest.$ac_objext |
| 17137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17138 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17139 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17141 | rm -f conftest.er1 |
| 17142 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17144 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 17145 | { ac_try='test -z "$ac_c_werror_flag" |
| 17146 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17148 | (eval $ac_try) 2>&5 |
| 17149 | ac_status=$? |
| 17150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17151 | (exit $ac_status); }; } && |
| 17152 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17154 | (eval $ac_try) 2>&5 |
| 17155 | ac_status=$? |
| 17156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17157 | (exit $ac_status); }; }; then |
| 17158 | |
| 17159 | |
| 17160 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17161 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17162 | _ACEOF |
| 17163 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17164 | works=yes |
| 17165 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17166 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17167 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17168 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17169 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17170 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17172 | echo "$as_me:$LINENO: result: $works" >&5 |
| 17173 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17174 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17175 | # check for socketpair |
| 17176 | echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 17177 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6 |
| 17178 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17179 | /* confdefs.h. */ |
| 17180 | _ACEOF |
| 17181 | cat confdefs.h >>conftest.$ac_ext |
| 17182 | cat >>conftest.$ac_ext <<_ACEOF |
| 17183 | /* end confdefs.h. */ |
| 17184 | |
| 17185 | #include <sys/types.h> |
| 17186 | #include <sys/socket.h> |
| 17187 | |
| 17188 | int |
| 17189 | main () |
| 17190 | { |
| 17191 | void *x=socketpair |
| 17192 | ; |
| 17193 | return 0; |
| 17194 | } |
| 17195 | _ACEOF |
| 17196 | rm -f conftest.$ac_objext |
| 17197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17198 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17199 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17200 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17201 | rm -f conftest.er1 |
| 17202 | cat conftest.err >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17204 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 17205 | { ac_try='test -z "$ac_c_werror_flag" |
| 17206 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17208 | (eval $ac_try) 2>&5 |
| 17209 | ac_status=$? |
| 17210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17211 | (exit $ac_status); }; } && |
| 17212 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17214 | (eval $ac_try) 2>&5 |
| 17215 | ac_status=$? |
| 17216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17217 | (exit $ac_status); }; }; then |
| 17218 | |
| 17219 | cat >>confdefs.h <<\_ACEOF |
| 17220 | #define HAVE_SOCKETPAIR 1 |
| 17221 | _ACEOF |
| 17222 | |
| 17223 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17224 | echo "${ECHO_T}yes" >&6 |
| 17225 | else |
| 17226 | echo "$as_me: failed program was:" >&5 |
| 17227 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17228 | |
| 17229 | echo "$as_me:$LINENO: result: no" >&5 |
| 17230 | echo "${ECHO_T}no" >&6 |
| 17231 | |
| 17232 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17233 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17234 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17235 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17236 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 17237 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 17238 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17239 | /* confdefs.h. */ |
| 17240 | _ACEOF |
| 17241 | cat confdefs.h >>conftest.$ac_ext |
| 17242 | cat >>conftest.$ac_ext <<_ACEOF |
| 17243 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17244 | #include <sys/types.h> |
| 17245 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17246 | int |
| 17247 | main () |
| 17248 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17249 | struct sockaddr x; |
| 17250 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17251 | ; |
| 17252 | return 0; |
| 17253 | } |
| 17254 | _ACEOF |
| 17255 | rm -f conftest.$ac_objext |
| 17256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17257 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17258 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17260 | rm -f conftest.er1 |
| 17261 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17263 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 17264 | { ac_try='test -z "$ac_c_werror_flag" |
| 17265 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17267 | (eval $ac_try) 2>&5 |
| 17268 | ac_status=$? |
| 17269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17270 | (exit $ac_status); }; } && |
| 17271 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17273 | (eval $ac_try) 2>&5 |
| 17274 | ac_status=$? |
| 17275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17276 | (exit $ac_status); }; }; then |
| 17277 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17278 | echo "${ECHO_T}yes" >&6 |
| 17279 | |
| 17280 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17281 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17282 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17283 | |
| 17284 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17285 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17287 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17288 | echo "$as_me:$LINENO: result: no" >&5 |
| 17289 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17290 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17291 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17292 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17293 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17294 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 17295 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 17296 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17297 | /* confdefs.h. */ |
| 17298 | _ACEOF |
| 17299 | cat confdefs.h >>conftest.$ac_ext |
| 17300 | cat >>conftest.$ac_ext <<_ACEOF |
| 17301 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17302 | |
| 17303 | #ifdef HAVE_STDARG_PROTOTYPES |
| 17304 | #include <stdarg.h> |
| 17305 | #else |
| 17306 | #include <varargs.h> |
| 17307 | #endif |
| 17308 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17309 | int |
| 17310 | main () |
| 17311 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17312 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17313 | ; |
| 17314 | return 0; |
| 17315 | } |
| 17316 | _ACEOF |
| 17317 | rm -f conftest.$ac_objext |
| 17318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17319 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17320 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17321 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17322 | rm -f conftest.er1 |
| 17323 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17325 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 17326 | { ac_try='test -z "$ac_c_werror_flag" |
| 17327 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17329 | (eval $ac_try) 2>&5 |
| 17330 | ac_status=$? |
| 17331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17332 | (exit $ac_status); }; } && |
| 17333 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17335 | (eval $ac_try) 2>&5 |
| 17336 | ac_status=$? |
| 17337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17338 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17339 | : |
| 17340 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17341 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17343 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17344 | |
| 17345 | |
| 17346 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17347 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17348 | _ACEOF |
| 17349 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17350 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17351 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17352 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17353 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17354 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 17355 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17356 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17357 | # 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] | 17358 | |
| 17359 | |
| 17360 | |
| 17361 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 17362 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 17363 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 17364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17365 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17366 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17367 | /* confdefs.h. */ |
| 17368 | _ACEOF |
| 17369 | cat confdefs.h >>conftest.$ac_ext |
| 17370 | cat >>conftest.$ac_ext <<_ACEOF |
| 17371 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17372 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17373 | which can conflict with char gethostbyname_r (); below. |
| 17374 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 17375 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 17376 | including <limits.h> includes <sys/time.h> and causes problems |
| 17377 | checking for functions defined therein. */ |
| 17378 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17379 | # include <limits.h> |
| 17380 | #else |
| 17381 | # include <assert.h> |
| 17382 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17383 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17384 | #ifdef __cplusplus |
| 17385 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17386 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17387 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17388 | /* 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] | 17389 | builtin and then its argument prototype would still apply. */ |
| 17390 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17391 | /* The GNU C library defines this for functions which it implements |
| 17392 | to always fail with ENOSYS. Some functions are actually named |
| 17393 | something starting with __ and the normal name is an alias. */ |
| 17394 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 17395 | choke me |
| 17396 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17397 | char (*f) () = gethostbyname_r; |
| 17398 | #endif |
| 17399 | #ifdef __cplusplus |
| 17400 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17401 | #endif |
| 17402 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17403 | int |
| 17404 | main () |
| 17405 | { |
| 17406 | return f != gethostbyname_r; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17407 | ; |
| 17408 | return 0; |
| 17409 | } |
| 17410 | _ACEOF |
| 17411 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17412 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17413 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17414 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17415 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17416 | rm -f conftest.er1 |
| 17417 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17419 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 17420 | { ac_try='test -z "$ac_c_werror_flag" |
| 17421 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17423 | (eval $ac_try) 2>&5 |
| 17424 | ac_status=$? |
| 17425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17426 | (exit $ac_status); }; } && |
| 17427 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17429 | (eval $ac_try) 2>&5 |
| 17430 | ac_status=$? |
| 17431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17432 | (exit $ac_status); }; }; then |
| 17433 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17434 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17435 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17436 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17437 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17438 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17439 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17440 | rm -f conftest.err conftest.$ac_objext \ |
| 17441 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17442 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17443 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 17444 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 17445 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17446 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17447 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17448 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17449 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17450 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17451 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 17452 | 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] | 17453 | OLD_CFLAGS=$CFLAGS |
| 17454 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17455 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17456 | /* confdefs.h. */ |
| 17457 | _ACEOF |
| 17458 | cat confdefs.h >>conftest.$ac_ext |
| 17459 | cat >>conftest.$ac_ext <<_ACEOF |
| 17460 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17461 | |
| 17462 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17463 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17464 | int |
| 17465 | main () |
| 17466 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17467 | |
| 17468 | char *name; |
| 17469 | struct hostent *he, *res; |
| 17470 | char buffer[2048]; |
| 17471 | int buflen = 2048; |
| 17472 | int h_errnop; |
| 17473 | |
| 17474 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17475 | |
| 17476 | ; |
| 17477 | return 0; |
| 17478 | } |
| 17479 | _ACEOF |
| 17480 | rm -f conftest.$ac_objext |
| 17481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17482 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17483 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17485 | rm -f conftest.er1 |
| 17486 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17488 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 17489 | { ac_try='test -z "$ac_c_werror_flag" |
| 17490 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17492 | (eval $ac_try) 2>&5 |
| 17493 | ac_status=$? |
| 17494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17495 | (exit $ac_status); }; } && |
| 17496 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17498 | (eval $ac_try) 2>&5 |
| 17499 | ac_status=$? |
| 17500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17501 | (exit $ac_status); }; }; then |
| 17502 | |
| 17503 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17504 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17505 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17506 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17507 | |
| 17508 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17509 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17510 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17511 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17512 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17513 | echo "${ECHO_T}yes" >&6 |
| 17514 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17515 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17516 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17518 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17519 | |
| 17520 | echo "$as_me:$LINENO: result: no" >&5 |
| 17521 | echo "${ECHO_T}no" >&6 |
| 17522 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 17523 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 17524 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17525 | /* confdefs.h. */ |
| 17526 | _ACEOF |
| 17527 | cat confdefs.h >>conftest.$ac_ext |
| 17528 | cat >>conftest.$ac_ext <<_ACEOF |
| 17529 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17530 | |
| 17531 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17532 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17533 | int |
| 17534 | main () |
| 17535 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17536 | |
| 17537 | char *name; |
| 17538 | struct hostent *he; |
| 17539 | char buffer[2048]; |
| 17540 | int buflen = 2048; |
| 17541 | int h_errnop; |
| 17542 | |
| 17543 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17544 | |
| 17545 | ; |
| 17546 | return 0; |
| 17547 | } |
| 17548 | _ACEOF |
| 17549 | rm -f conftest.$ac_objext |
| 17550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17551 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17552 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17554 | rm -f conftest.er1 |
| 17555 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17557 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 17558 | { ac_try='test -z "$ac_c_werror_flag" |
| 17559 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17561 | (eval $ac_try) 2>&5 |
| 17562 | ac_status=$? |
| 17563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17564 | (exit $ac_status); }; } && |
| 17565 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17567 | (eval $ac_try) 2>&5 |
| 17568 | ac_status=$? |
| 17569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17570 | (exit $ac_status); }; }; then |
| 17571 | |
| 17572 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17573 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17574 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17575 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17576 | |
| 17577 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17578 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17579 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17580 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17581 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17582 | echo "${ECHO_T}yes" >&6 |
| 17583 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17584 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17585 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17587 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17588 | |
| 17589 | echo "$as_me:$LINENO: result: no" >&5 |
| 17590 | echo "${ECHO_T}no" >&6 |
| 17591 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 17592 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 17593 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17594 | /* confdefs.h. */ |
| 17595 | _ACEOF |
| 17596 | cat confdefs.h >>conftest.$ac_ext |
| 17597 | cat >>conftest.$ac_ext <<_ACEOF |
| 17598 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17599 | |
| 17600 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17601 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17602 | int |
| 17603 | main () |
| 17604 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17605 | |
| 17606 | char *name; |
| 17607 | struct hostent *he; |
| 17608 | struct hostent_data data; |
| 17609 | |
| 17610 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17611 | |
| 17612 | ; |
| 17613 | return 0; |
| 17614 | } |
| 17615 | _ACEOF |
| 17616 | rm -f conftest.$ac_objext |
| 17617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17618 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17619 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17620 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17621 | rm -f conftest.er1 |
| 17622 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17624 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 17625 | { ac_try='test -z "$ac_c_werror_flag" |
| 17626 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17628 | (eval $ac_try) 2>&5 |
| 17629 | ac_status=$? |
| 17630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17631 | (exit $ac_status); }; } && |
| 17632 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17634 | (eval $ac_try) 2>&5 |
| 17635 | ac_status=$? |
| 17636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17637 | (exit $ac_status); }; }; then |
| 17638 | |
| 17639 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17640 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17641 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17642 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17643 | |
| 17644 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17645 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17646 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17647 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17648 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17649 | echo "${ECHO_T}yes" >&6 |
| 17650 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17651 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17652 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17654 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17655 | |
| 17656 | echo "$as_me:$LINENO: result: no" >&5 |
| 17657 | echo "${ECHO_T}no" >&6 |
| 17658 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17659 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17660 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17661 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17662 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17663 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17664 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17665 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17666 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17667 | CFLAGS=$OLD_CFLAGS |
| 17668 | |
| 17669 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17670 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17671 | |
| 17672 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17673 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17674 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17675 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17676 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17677 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 17678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17679 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17680 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17681 | /* confdefs.h. */ |
| 17682 | _ACEOF |
| 17683 | cat confdefs.h >>conftest.$ac_ext |
| 17684 | cat >>conftest.$ac_ext <<_ACEOF |
| 17685 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17686 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17687 | which can conflict with char $ac_func (); below. |
| 17688 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 17689 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 17690 | including <limits.h> includes <sys/time.h> and causes problems |
| 17691 | checking for functions defined therein. */ |
| 17692 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17693 | # include <limits.h> |
| 17694 | #else |
| 17695 | # include <assert.h> |
| 17696 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17697 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17698 | #ifdef __cplusplus |
| 17699 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17700 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17701 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17702 | /* 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] | 17703 | builtin and then its argument prototype would still apply. */ |
| 17704 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17705 | /* The GNU C library defines this for functions which it implements |
| 17706 | to always fail with ENOSYS. Some functions are actually named |
| 17707 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17708 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17709 | choke me |
| 17710 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17711 | char (*f) () = $ac_func; |
| 17712 | #endif |
| 17713 | #ifdef __cplusplus |
| 17714 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17715 | #endif |
| 17716 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17717 | int |
| 17718 | main () |
| 17719 | { |
| 17720 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17721 | ; |
| 17722 | return 0; |
| 17723 | } |
| 17724 | _ACEOF |
| 17725 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17726 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17727 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17728 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17729 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17730 | rm -f conftest.er1 |
| 17731 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17733 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 17734 | { ac_try='test -z "$ac_c_werror_flag" |
| 17735 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17737 | (eval $ac_try) 2>&5 |
| 17738 | ac_status=$? |
| 17739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17740 | (exit $ac_status); }; } && |
| 17741 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17743 | (eval $ac_try) 2>&5 |
| 17744 | ac_status=$? |
| 17745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17746 | (exit $ac_status); }; }; then |
| 17747 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17748 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17749 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17750 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17751 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17752 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17753 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17754 | rm -f conftest.err conftest.$ac_objext \ |
| 17755 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17756 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17757 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17758 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17759 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17760 | cat >>confdefs.h <<_ACEOF |
| 17761 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17762 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17763 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17764 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17765 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17766 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17767 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17768 | fi |
| 17769 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17770 | |
| 17771 | |
| 17772 | |
| 17773 | |
| 17774 | |
| 17775 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17776 | # checks for system services |
| 17777 | # (none yet) |
| 17778 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17779 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17780 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 17781 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 17782 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 17783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17784 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17785 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17786 | /* confdefs.h. */ |
| 17787 | _ACEOF |
| 17788 | cat confdefs.h >>conftest.$ac_ext |
| 17789 | cat >>conftest.$ac_ext <<_ACEOF |
| 17790 | /* end confdefs.h. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17791 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17792 | which can conflict with char __fpu_control (); below. |
| 17793 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 17794 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 17795 | including <limits.h> includes <sys/time.h> and causes problems |
| 17796 | checking for functions defined therein. */ |
| 17797 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17798 | # include <limits.h> |
| 17799 | #else |
| 17800 | # include <assert.h> |
| 17801 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17802 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17803 | #ifdef __cplusplus |
| 17804 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17805 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17806 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17807 | /* 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] | 17808 | builtin and then its argument prototype would still apply. */ |
| 17809 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17810 | /* The GNU C library defines this for functions which it implements |
| 17811 | to always fail with ENOSYS. Some functions are actually named |
| 17812 | something starting with __ and the normal name is an alias. */ |
| 17813 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 17814 | choke me |
| 17815 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17816 | char (*f) () = __fpu_control; |
| 17817 | #endif |
| 17818 | #ifdef __cplusplus |
| 17819 | } |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17820 | #endif |
| 17821 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17822 | int |
| 17823 | main () |
| 17824 | { |
| 17825 | return f != __fpu_control; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17826 | ; |
| 17827 | return 0; |
| 17828 | } |
| 17829 | _ACEOF |
| 17830 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17832 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17833 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17835 | rm -f conftest.er1 |
| 17836 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17838 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 17839 | { ac_try='test -z "$ac_c_werror_flag" |
| 17840 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17842 | (eval $ac_try) 2>&5 |
| 17843 | ac_status=$? |
| 17844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17845 | (exit $ac_status); }; } && |
| 17846 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17848 | (eval $ac_try) 2>&5 |
| 17849 | ac_status=$? |
| 17850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17851 | (exit $ac_status); }; }; then |
| 17852 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17853 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17854 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17855 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17856 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17857 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17858 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17859 | rm -f conftest.err conftest.$ac_objext \ |
| 17860 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17861 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17862 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 17863 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 17864 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17865 | : |
| 17866 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17867 | |
| 17868 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 17869 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 17870 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 17871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17872 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17873 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17874 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17875 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17876 | /* confdefs.h. */ |
| 17877 | _ACEOF |
| 17878 | cat confdefs.h >>conftest.$ac_ext |
| 17879 | cat >>conftest.$ac_ext <<_ACEOF |
| 17880 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17881 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17882 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17883 | #ifdef __cplusplus |
| 17884 | extern "C" |
| 17885 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17886 | /* 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] | 17887 | builtin and then its argument prototype would still apply. */ |
| 17888 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17889 | int |
| 17890 | main () |
| 17891 | { |
| 17892 | __fpu_control (); |
| 17893 | ; |
| 17894 | return 0; |
| 17895 | } |
| 17896 | _ACEOF |
| 17897 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17899 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17900 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17902 | rm -f conftest.er1 |
| 17903 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17905 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 17906 | { ac_try='test -z "$ac_c_werror_flag" |
| 17907 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17909 | (eval $ac_try) 2>&5 |
| 17910 | ac_status=$? |
| 17911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17912 | (exit $ac_status); }; } && |
| 17913 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17915 | (eval $ac_try) 2>&5 |
| 17916 | ac_status=$? |
| 17917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17918 | (exit $ac_status); }; }; then |
| 17919 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17920 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17921 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17923 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17924 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17925 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17926 | rm -f conftest.err conftest.$ac_objext \ |
| 17927 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17928 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17929 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17930 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 17931 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 17932 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 17933 | cat >>confdefs.h <<_ACEOF |
| 17934 | #define HAVE_LIBIEEE 1 |
| 17935 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17936 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17937 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17938 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17939 | fi |
| 17940 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17941 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17942 | fi |
| 17943 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17944 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17945 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17946 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 17947 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 17948 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17949 | # Check whether --with-fpectl or --without-fpectl was given. |
| 17950 | if test "${with_fpectl+set}" = set; then |
| 17951 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17952 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17953 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17954 | then |
| 17955 | |
| 17956 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17957 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17958 | _ACEOF |
| 17959 | |
| 17960 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17961 | echo "${ECHO_T}yes" >&6 |
| 17962 | else echo "$as_me:$LINENO: result: no" >&5 |
| 17963 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17964 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17965 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17966 | echo "$as_me:$LINENO: result: no" >&5 |
| 17967 | echo "${ECHO_T}no" >&6 |
| 17968 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17969 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17970 | # check for --with-libm=... |
| 17971 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 17972 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 17973 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 17974 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 17975 | *) LIBM=-lm |
| 17976 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17977 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 17978 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 17979 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17980 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17981 | if test "${with_libm+set}" = set; then |
| 17982 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17983 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17984 | if test "$withval" = no |
| 17985 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17986 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 17987 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17988 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17989 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17990 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 17991 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 17992 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 17993 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 17994 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17995 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17996 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17997 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 17998 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 17999 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18000 | |
| 18001 | # check for --with-libc=... |
| 18002 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18003 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 18004 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 18005 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18006 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18007 | if test "${with_libc+set}" = set; then |
| 18008 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18009 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18010 | if test "$withval" = no |
| 18011 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18012 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 18013 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18014 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18015 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18016 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 18017 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 18018 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 18019 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 18020 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18021 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18022 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18023 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 18024 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 18025 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18026 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18027 | # check for hypot() in math library |
| 18028 | LIBS_SAVE=$LIBS |
| 18029 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18030 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18031 | for ac_func in hypot |
| 18032 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18033 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18034 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18035 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 18036 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 18037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18038 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18039 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18040 | /* confdefs.h. */ |
| 18041 | _ACEOF |
| 18042 | cat confdefs.h >>conftest.$ac_ext |
| 18043 | cat >>conftest.$ac_ext <<_ACEOF |
| 18044 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18045 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18046 | which can conflict with char $ac_func (); below. |
| 18047 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 18048 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 18049 | including <limits.h> includes <sys/time.h> and causes problems |
| 18050 | checking for functions defined therein. */ |
| 18051 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18052 | # include <limits.h> |
| 18053 | #else |
| 18054 | # include <assert.h> |
| 18055 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18056 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18057 | #ifdef __cplusplus |
| 18058 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18059 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18060 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18061 | /* 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] | 18062 | builtin and then its argument prototype would still apply. */ |
| 18063 | char $ac_func (); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18064 | /* The GNU C library defines this for functions which it implements |
| 18065 | to always fail with ENOSYS. Some functions are actually named |
| 18066 | something starting with __ and the normal name is an alias. */ |
| 18067 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 18068 | choke me |
| 18069 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18070 | char (*f) () = $ac_func; |
| 18071 | #endif |
| 18072 | #ifdef __cplusplus |
| 18073 | } |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18074 | #endif |
| 18075 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18076 | int |
| 18077 | main () |
| 18078 | { |
| 18079 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18080 | ; |
| 18081 | return 0; |
| 18082 | } |
| 18083 | _ACEOF |
| 18084 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18086 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18087 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18089 | rm -f conftest.er1 |
| 18090 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18092 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 18093 | { ac_try='test -z "$ac_c_werror_flag" |
| 18094 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18096 | (eval $ac_try) 2>&5 |
| 18097 | ac_status=$? |
| 18098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18099 | (exit $ac_status); }; } && |
| 18100 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18102 | (eval $ac_try) 2>&5 |
| 18103 | ac_status=$? |
| 18104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18105 | (exit $ac_status); }; }; then |
| 18106 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 18107 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18108 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18110 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18111 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18112 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18113 | rm -f conftest.err conftest.$ac_objext \ |
| 18114 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18115 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18116 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 18117 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 18118 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18119 | cat >>confdefs.h <<_ACEOF |
| 18120 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18121 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18122 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18123 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18124 | case $LIBOBJS in |
| 18125 | "$ac_func.$ac_objext" | \ |
| 18126 | *" $ac_func.$ac_objext" | \ |
| 18127 | "$ac_func.$ac_objext "* | \ |
| 18128 | *" $ac_func.$ac_objext "* ) ;; |
| 18129 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
| 18130 | esac |
| 18131 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 18132 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 18133 | done |
| 18134 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18135 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18136 | LIBS=$LIBS_SAVE |
| 18137 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18138 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18139 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 18140 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 18141 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 18142 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 18143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18144 | fi |
| 18145 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 18146 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18147 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18148 | # Is the header compilable? |
| 18149 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 18150 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 18151 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18152 | /* confdefs.h. */ |
| 18153 | _ACEOF |
| 18154 | cat confdefs.h >>conftest.$ac_ext |
| 18155 | cat >>conftest.$ac_ext <<_ACEOF |
| 18156 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18157 | $ac_includes_default |
| 18158 | #include <wchar.h> |
| 18159 | _ACEOF |
| 18160 | rm -f conftest.$ac_objext |
| 18161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18162 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18163 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18164 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18165 | rm -f conftest.er1 |
| 18166 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18168 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 18169 | { ac_try='test -z "$ac_c_werror_flag" |
| 18170 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18172 | (eval $ac_try) 2>&5 |
| 18173 | ac_status=$? |
| 18174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18175 | (exit $ac_status); }; } && |
| 18176 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18178 | (eval $ac_try) 2>&5 |
| 18179 | ac_status=$? |
| 18180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18181 | (exit $ac_status); }; }; then |
| 18182 | ac_header_compiler=yes |
| 18183 | else |
| 18184 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18185 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18186 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18187 | ac_header_compiler=no |
| 18188 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18189 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18190 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 18191 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 18192 | |
| 18193 | # Is the header present? |
| 18194 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 18195 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 18196 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18197 | /* confdefs.h. */ |
| 18198 | _ACEOF |
| 18199 | cat confdefs.h >>conftest.$ac_ext |
| 18200 | cat >>conftest.$ac_ext <<_ACEOF |
| 18201 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18202 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18203 | _ACEOF |
| 18204 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 18205 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 18206 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18207 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18208 | rm -f conftest.er1 |
| 18209 | cat conftest.err >&5 |
| 18210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18211 | (exit $ac_status); } >/dev/null; then |
| 18212 | if test -s conftest.err; then |
| 18213 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18214 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18215 | else |
| 18216 | ac_cpp_err= |
| 18217 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18218 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18219 | ac_cpp_err=yes |
| 18220 | fi |
| 18221 | if test -z "$ac_cpp_err"; then |
| 18222 | ac_header_preproc=yes |
| 18223 | else |
| 18224 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18225 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18226 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18227 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18228 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18229 | rm -f conftest.err conftest.$ac_ext |
| 18230 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 18231 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 18232 | |
| 18233 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18234 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 18235 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18236 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 18237 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18238 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 18239 | echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} |
| 18240 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 18241 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18242 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 18243 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 18244 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18245 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 18246 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 18247 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 18248 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 18249 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 18250 | echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 18251 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 18252 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18253 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 18254 | echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 18255 | ( |
| 18256 | cat <<\_ASBOX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18257 | ## --------------------------------- ## |
| 18258 | ## Report this to the python lists. ## |
| 18259 | ## --------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18260 | _ASBOX |
| 18261 | ) | |
| 18262 | sed "s/^/$as_me: WARNING: /" >&2 |
| 18263 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18264 | esac |
| 18265 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 18266 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 18267 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 18268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18269 | else |
| 18270 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18271 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18272 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 18273 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 18274 | |
| 18275 | fi |
| 18276 | if test $ac_cv_header_wchar_h = yes; then |
| 18277 | |
| 18278 | |
| 18279 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18280 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18281 | _ACEOF |
| 18282 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 18283 | wchar_h="yes" |
| 18284 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18285 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18286 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18287 | |
| 18288 | fi |
| 18289 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18290 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18291 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18292 | # determine wchar_t size |
| 18293 | if test "$wchar_h" = yes |
| 18294 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18295 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 18296 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 18297 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 18298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18299 | else |
| 18300 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18301 | /* confdefs.h. */ |
| 18302 | _ACEOF |
| 18303 | cat confdefs.h >>conftest.$ac_ext |
| 18304 | cat >>conftest.$ac_ext <<_ACEOF |
| 18305 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18306 | #include <wchar.h> |
| 18307 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18308 | int |
| 18309 | main () |
| 18310 | { |
| 18311 | if ((wchar_t *) 0) |
| 18312 | return 0; |
| 18313 | if (sizeof (wchar_t)) |
| 18314 | return 0; |
| 18315 | ; |
| 18316 | return 0; |
| 18317 | } |
| 18318 | _ACEOF |
| 18319 | rm -f conftest.$ac_objext |
| 18320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18321 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18322 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18323 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18324 | rm -f conftest.er1 |
| 18325 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18327 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 18328 | { ac_try='test -z "$ac_c_werror_flag" |
| 18329 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18331 | (eval $ac_try) 2>&5 |
| 18332 | ac_status=$? |
| 18333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18334 | (exit $ac_status); }; } && |
| 18335 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18337 | (eval $ac_try) 2>&5 |
| 18338 | ac_status=$? |
| 18339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18340 | (exit $ac_status); }; }; then |
| 18341 | ac_cv_type_wchar_t=yes |
| 18342 | else |
| 18343 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18345 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18346 | ac_cv_type_wchar_t=no |
| 18347 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18348 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18349 | fi |
| 18350 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 18351 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 18352 | |
| 18353 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 18354 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 18355 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 18356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18357 | else |
| 18358 | if test "$ac_cv_type_wchar_t" = yes; then |
| 18359 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 18360 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 18361 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 18362 | # This bug is HP SR number 8606223364. |
| 18363 | if test "$cross_compiling" = yes; then |
| 18364 | # Depending upon the size, compute the lo and hi bounds. |
| 18365 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18366 | /* confdefs.h. */ |
| 18367 | _ACEOF |
| 18368 | cat confdefs.h >>conftest.$ac_ext |
| 18369 | cat >>conftest.$ac_ext <<_ACEOF |
| 18370 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18371 | #include <wchar.h> |
| 18372 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18373 | int |
| 18374 | main () |
| 18375 | { |
| 18376 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 18377 | test_array [0] = 0 |
| 18378 | |
| 18379 | ; |
| 18380 | return 0; |
| 18381 | } |
| 18382 | _ACEOF |
| 18383 | rm -f conftest.$ac_objext |
| 18384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18385 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18386 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18388 | rm -f conftest.er1 |
| 18389 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18391 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 18392 | { ac_try='test -z "$ac_c_werror_flag" |
| 18393 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18395 | (eval $ac_try) 2>&5 |
| 18396 | ac_status=$? |
| 18397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18398 | (exit $ac_status); }; } && |
| 18399 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18401 | (eval $ac_try) 2>&5 |
| 18402 | ac_status=$? |
| 18403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18404 | (exit $ac_status); }; }; then |
| 18405 | ac_lo=0 ac_mid=0 |
| 18406 | while :; do |
| 18407 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18408 | /* confdefs.h. */ |
| 18409 | _ACEOF |
| 18410 | cat confdefs.h >>conftest.$ac_ext |
| 18411 | cat >>conftest.$ac_ext <<_ACEOF |
| 18412 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18413 | #include <wchar.h> |
| 18414 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18415 | int |
| 18416 | main () |
| 18417 | { |
| 18418 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 18419 | test_array [0] = 0 |
| 18420 | |
| 18421 | ; |
| 18422 | return 0; |
| 18423 | } |
| 18424 | _ACEOF |
| 18425 | rm -f conftest.$ac_objext |
| 18426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18427 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18428 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18430 | rm -f conftest.er1 |
| 18431 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18433 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 18434 | { ac_try='test -z "$ac_c_werror_flag" |
| 18435 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18437 | (eval $ac_try) 2>&5 |
| 18438 | ac_status=$? |
| 18439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18440 | (exit $ac_status); }; } && |
| 18441 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18443 | (eval $ac_try) 2>&5 |
| 18444 | ac_status=$? |
| 18445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18446 | (exit $ac_status); }; }; then |
| 18447 | ac_hi=$ac_mid; break |
| 18448 | else |
| 18449 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18450 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18451 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18452 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18453 | if test $ac_lo -le $ac_mid; then |
| 18454 | ac_lo= ac_hi= |
| 18455 | break |
| 18456 | fi |
| 18457 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18458 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18459 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18460 | done |
| 18461 | else |
| 18462 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18464 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18465 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18466 | /* confdefs.h. */ |
| 18467 | _ACEOF |
| 18468 | cat confdefs.h >>conftest.$ac_ext |
| 18469 | cat >>conftest.$ac_ext <<_ACEOF |
| 18470 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18471 | #include <wchar.h> |
| 18472 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18473 | int |
| 18474 | main () |
| 18475 | { |
| 18476 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 18477 | test_array [0] = 0 |
| 18478 | |
| 18479 | ; |
| 18480 | return 0; |
| 18481 | } |
| 18482 | _ACEOF |
| 18483 | rm -f conftest.$ac_objext |
| 18484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18485 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18486 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18487 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18488 | rm -f conftest.er1 |
| 18489 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18491 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 18492 | { ac_try='test -z "$ac_c_werror_flag" |
| 18493 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18495 | (eval $ac_try) 2>&5 |
| 18496 | ac_status=$? |
| 18497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18498 | (exit $ac_status); }; } && |
| 18499 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18501 | (eval $ac_try) 2>&5 |
| 18502 | ac_status=$? |
| 18503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18504 | (exit $ac_status); }; }; then |
| 18505 | ac_hi=-1 ac_mid=-1 |
| 18506 | while :; do |
| 18507 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18508 | /* confdefs.h. */ |
| 18509 | _ACEOF |
| 18510 | cat confdefs.h >>conftest.$ac_ext |
| 18511 | cat >>conftest.$ac_ext <<_ACEOF |
| 18512 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18513 | #include <wchar.h> |
| 18514 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18515 | int |
| 18516 | main () |
| 18517 | { |
| 18518 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 18519 | test_array [0] = 0 |
| 18520 | |
| 18521 | ; |
| 18522 | return 0; |
| 18523 | } |
| 18524 | _ACEOF |
| 18525 | rm -f conftest.$ac_objext |
| 18526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18527 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18528 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18529 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18530 | rm -f conftest.er1 |
| 18531 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18533 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 18534 | { ac_try='test -z "$ac_c_werror_flag" |
| 18535 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18537 | (eval $ac_try) 2>&5 |
| 18538 | ac_status=$? |
| 18539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18540 | (exit $ac_status); }; } && |
| 18541 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18543 | (eval $ac_try) 2>&5 |
| 18544 | ac_status=$? |
| 18545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18546 | (exit $ac_status); }; }; then |
| 18547 | ac_lo=$ac_mid; break |
| 18548 | else |
| 18549 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18551 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18552 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18553 | if test $ac_mid -le $ac_hi; then |
| 18554 | ac_lo= ac_hi= |
| 18555 | break |
| 18556 | fi |
| 18557 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18558 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18559 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18560 | done |
| 18561 | else |
| 18562 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18563 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18564 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18565 | ac_lo= ac_hi= |
| 18566 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18567 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18568 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18570 | # Binary search between lo and hi bounds. |
| 18571 | while test "x$ac_lo" != "x$ac_hi"; do |
| 18572 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 18573 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18574 | /* confdefs.h. */ |
| 18575 | _ACEOF |
| 18576 | cat confdefs.h >>conftest.$ac_ext |
| 18577 | cat >>conftest.$ac_ext <<_ACEOF |
| 18578 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18579 | #include <wchar.h> |
| 18580 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18581 | int |
| 18582 | main () |
| 18583 | { |
| 18584 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 18585 | test_array [0] = 0 |
| 18586 | |
| 18587 | ; |
| 18588 | return 0; |
| 18589 | } |
| 18590 | _ACEOF |
| 18591 | rm -f conftest.$ac_objext |
| 18592 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18593 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18594 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18595 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18596 | rm -f conftest.er1 |
| 18597 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18599 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 18600 | { ac_try='test -z "$ac_c_werror_flag" |
| 18601 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18603 | (eval $ac_try) 2>&5 |
| 18604 | ac_status=$? |
| 18605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18606 | (exit $ac_status); }; } && |
| 18607 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18609 | (eval $ac_try) 2>&5 |
| 18610 | ac_status=$? |
| 18611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18612 | (exit $ac_status); }; }; then |
| 18613 | ac_hi=$ac_mid |
| 18614 | else |
| 18615 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18617 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18618 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 18619 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18620 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18621 | done |
| 18622 | case $ac_lo in |
| 18623 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18624 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 18625 | See \`config.log' for more details." >&5 |
| 18626 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 18627 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18628 | { (exit 1); exit 1; }; } ;; |
| 18629 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18630 | else |
| 18631 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 18632 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 18633 | See \`config.log' for more details." >&5 |
| 18634 | echo "$as_me: error: cannot run test program while cross compiling |
| 18635 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18636 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18637 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18638 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18639 | /* confdefs.h. */ |
| 18640 | _ACEOF |
| 18641 | cat confdefs.h >>conftest.$ac_ext |
| 18642 | cat >>conftest.$ac_ext <<_ACEOF |
| 18643 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18644 | #include <wchar.h> |
| 18645 | |
| 18646 | long longval () { return (long) (sizeof (wchar_t)); } |
| 18647 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18648 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18649 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18650 | int |
| 18651 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18652 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18653 | |
| 18654 | FILE *f = fopen ("conftest.val", "w"); |
| 18655 | if (! f) |
| 18656 | exit (1); |
| 18657 | if (((long) (sizeof (wchar_t))) < 0) |
| 18658 | { |
| 18659 | long i = longval (); |
| 18660 | if (i != ((long) (sizeof (wchar_t)))) |
| 18661 | exit (1); |
| 18662 | fprintf (f, "%ld\n", i); |
| 18663 | } |
| 18664 | else |
| 18665 | { |
| 18666 | unsigned long i = ulongval (); |
| 18667 | if (i != ((long) (sizeof (wchar_t)))) |
| 18668 | exit (1); |
| 18669 | fprintf (f, "%lu\n", i); |
| 18670 | } |
| 18671 | exit (ferror (f) || fclose (f) != 0); |
| 18672 | |
| 18673 | ; |
| 18674 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18675 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18676 | _ACEOF |
| 18677 | rm -f conftest$ac_exeext |
| 18678 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18679 | (eval $ac_link) 2>&5 |
| 18680 | ac_status=$? |
| 18681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18682 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18684 | (eval $ac_try) 2>&5 |
| 18685 | ac_status=$? |
| 18686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18687 | (exit $ac_status); }; }; then |
| 18688 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18689 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18690 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18691 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18693 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18694 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18695 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 18696 | See \`config.log' for more details." >&5 |
| 18697 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 18698 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18699 | { (exit 1); exit 1; }; } |
| 18700 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18701 | rm -f 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] | 18702 | fi |
| 18703 | fi |
| 18704 | rm -f conftest.val |
| 18705 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18706 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18707 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18708 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18709 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 18710 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 18711 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18712 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18713 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18714 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18715 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18716 | fi |
| 18717 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18718 | echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 18719 | echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6 |
| 18720 | have_ucs4_tcl=no |
| 18721 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18722 | /* confdefs.h. */ |
| 18723 | _ACEOF |
| 18724 | cat confdefs.h >>conftest.$ac_ext |
| 18725 | cat >>conftest.$ac_ext <<_ACEOF |
| 18726 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18727 | |
| 18728 | #include <tcl.h> |
| 18729 | #if TCL_UTF_MAX != 6 |
| 18730 | # error "NOT UCS4_TCL" |
| 18731 | #endif |
| 18732 | int |
| 18733 | main () |
| 18734 | { |
| 18735 | |
| 18736 | ; |
| 18737 | return 0; |
| 18738 | } |
| 18739 | _ACEOF |
| 18740 | rm -f conftest.$ac_objext |
| 18741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18742 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18743 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18745 | rm -f conftest.er1 |
| 18746 | cat conftest.err >&5 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18748 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 18749 | { ac_try='test -z "$ac_c_werror_flag" |
| 18750 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18752 | (eval $ac_try) 2>&5 |
| 18753 | ac_status=$? |
| 18754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18755 | (exit $ac_status); }; } && |
| 18756 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18758 | (eval $ac_try) 2>&5 |
| 18759 | ac_status=$? |
| 18760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18761 | (exit $ac_status); }; }; then |
| 18762 | |
| 18763 | |
| 18764 | cat >>confdefs.h <<\_ACEOF |
| 18765 | #define HAVE_UCS4_TCL 1 |
| 18766 | _ACEOF |
| 18767 | |
| 18768 | have_ucs4_tcl=yes |
| 18769 | |
| 18770 | else |
| 18771 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18772 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18773 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18774 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18775 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18776 | echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 18777 | echo "${ECHO_T}$have_ucs4_tcl" >&6 |
| 18778 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18779 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 18780 | if test "$wchar_h" = yes |
| 18781 | then |
| 18782 | # check whether wchar_t is signed or not |
| 18783 | echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 18784 | echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6 |
| 18785 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
| 18786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18787 | else |
| 18788 | |
| 18789 | if test "$cross_compiling" = yes; then |
| 18790 | ac_cv_wchar_t_signed=yes |
| 18791 | else |
| 18792 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18793 | /* confdefs.h. */ |
| 18794 | _ACEOF |
| 18795 | cat confdefs.h >>conftest.$ac_ext |
| 18796 | cat >>conftest.$ac_ext <<_ACEOF |
| 18797 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 18798 | |
| 18799 | #include <wchar.h> |
| 18800 | int main() |
| 18801 | { |
| 18802 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0); |
| 18803 | } |
| 18804 | |
| 18805 | _ACEOF |
| 18806 | rm -f conftest$ac_exeext |
| 18807 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18808 | (eval $ac_link) 2>&5 |
| 18809 | ac_status=$? |
| 18810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18811 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18813 | (eval $ac_try) 2>&5 |
| 18814 | ac_status=$? |
| 18815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18816 | (exit $ac_status); }; }; then |
| 18817 | ac_cv_wchar_t_signed=yes |
| 18818 | else |
| 18819 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18820 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18821 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18822 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 18823 | ( exit $ac_status ) |
| 18824 | ac_cv_wchar_t_signed=no |
| 18825 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18826 | rm -f 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] | 18827 | fi |
| 18828 | fi |
| 18829 | |
| 18830 | echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 18831 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6 |
| 18832 | fi |
| 18833 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18834 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 18835 | 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] | 18836 | # Check whether --enable-unicode or --disable-unicode was given. |
| 18837 | if test "${enable_unicode+set}" = set; then |
| 18838 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18839 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18840 | else |
| 18841 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18842 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18843 | |
| 18844 | if test $enable_unicode = yes |
| 18845 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 18846 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18847 | case "$have_ucs4_tcl" in |
| 18848 | yes) enable_unicode="ucs4" |
| 18849 | ;; |
| 18850 | *) enable_unicode="ucs2" |
| 18851 | ;; |
| 18852 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18853 | fi |
| 18854 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 18855 | |
| 18856 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18857 | case "$enable_unicode" in |
| 18858 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18859 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18860 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18861 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18862 | |
| 18863 | ;; |
| 18864 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18865 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18866 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18867 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18868 | |
| 18869 | ;; |
| 18870 | esac |
| 18871 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18872 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18873 | |
| 18874 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 18875 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18876 | if test "$enable_unicode" = "no" |
| 18877 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 18878 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18879 | echo "$as_me:$LINENO: result: not used" >&5 |
| 18880 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18881 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 18882 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18883 | |
| 18884 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18885 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18886 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18887 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 18888 | |
| 18889 | # wchar_t is only usable if it maps to an unsigned type |
| 18890 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 18891 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18892 | then |
| 18893 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18894 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18895 | cat >>confdefs.h <<\_ACEOF |
| 18896 | #define HAVE_USABLE_WCHAR_T 1 |
| 18897 | _ACEOF |
| 18898 | |
| 18899 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18900 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18901 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18902 | |
| 18903 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 18904 | then |
| 18905 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18906 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18907 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18908 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18909 | |
| 18910 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 18911 | then |
| 18912 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18913 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18914 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18915 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18916 | |
| 18917 | else |
| 18918 | PY_UNICODE_TYPE="no type found" |
| 18919 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18920 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 18921 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18922 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18923 | |
| 18924 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18925 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 18926 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 18927 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 18928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18929 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18930 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 18931 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18932 | /* confdefs.h. */ |
| 18933 | _ACEOF |
| 18934 | cat confdefs.h >>conftest.$ac_ext |
| 18935 | cat >>conftest.$ac_ext <<_ACEOF |
| 18936 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18937 | #include <sys/types.h> |
| 18938 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18939 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18940 | int |
| 18941 | main () |
| 18942 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18943 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 18944 | bogus endian macros |
| 18945 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18946 | |
| 18947 | ; |
| 18948 | return 0; |
| 18949 | } |
| 18950 | _ACEOF |
| 18951 | rm -f conftest.$ac_objext |
| 18952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18953 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18954 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18955 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18956 | rm -f conftest.er1 |
| 18957 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18959 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 18960 | { ac_try='test -z "$ac_c_werror_flag" |
| 18961 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18963 | (eval $ac_try) 2>&5 |
| 18964 | ac_status=$? |
| 18965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18966 | (exit $ac_status); }; } && |
| 18967 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18969 | (eval $ac_try) 2>&5 |
| 18970 | ac_status=$? |
| 18971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18972 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18973 | # 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] | 18974 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18975 | /* confdefs.h. */ |
| 18976 | _ACEOF |
| 18977 | cat confdefs.h >>conftest.$ac_ext |
| 18978 | cat >>conftest.$ac_ext <<_ACEOF |
| 18979 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18980 | #include <sys/types.h> |
| 18981 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18982 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18983 | int |
| 18984 | main () |
| 18985 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18986 | #if BYTE_ORDER != BIG_ENDIAN |
| 18987 | not big endian |
| 18988 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18989 | |
| 18990 | ; |
| 18991 | return 0; |
| 18992 | } |
| 18993 | _ACEOF |
| 18994 | rm -f conftest.$ac_objext |
| 18995 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18996 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18997 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18998 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18999 | rm -f conftest.er1 |
| 19000 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19002 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 19003 | { ac_try='test -z "$ac_c_werror_flag" |
| 19004 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19006 | (eval $ac_try) 2>&5 |
| 19007 | ac_status=$? |
| 19008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19009 | (exit $ac_status); }; } && |
| 19010 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19012 | (eval $ac_try) 2>&5 |
| 19013 | ac_status=$? |
| 19014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19015 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19016 | ac_cv_c_bigendian=yes |
| 19017 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19018 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19020 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19021 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19022 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19023 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19024 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19025 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19027 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19028 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19029 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19030 | # 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] | 19031 | ac_cv_c_bigendian=unknown |
| 19032 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19033 | /* confdefs.h. */ |
| 19034 | _ACEOF |
| 19035 | cat confdefs.h >>conftest.$ac_ext |
| 19036 | cat >>conftest.$ac_ext <<_ACEOF |
| 19037 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19038 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 19039 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 19040 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 19041 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 19042 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 19043 | 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] | 19044 | int |
| 19045 | main () |
| 19046 | { |
| 19047 | _ascii (); _ebcdic (); |
| 19048 | ; |
| 19049 | return 0; |
| 19050 | } |
| 19051 | _ACEOF |
| 19052 | rm -f conftest.$ac_objext |
| 19053 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19054 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19055 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19056 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19057 | rm -f conftest.er1 |
| 19058 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19060 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 19061 | { ac_try='test -z "$ac_c_werror_flag" |
| 19062 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19064 | (eval $ac_try) 2>&5 |
| 19065 | ac_status=$? |
| 19066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19067 | (exit $ac_status); }; } && |
| 19068 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19070 | (eval $ac_try) 2>&5 |
| 19071 | ac_status=$? |
| 19072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19073 | (exit $ac_status); }; }; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19074 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19075 | ac_cv_c_bigendian=yes |
| 19076 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19077 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19078 | if test "$ac_cv_c_bigendian" = unknown; then |
| 19079 | ac_cv_c_bigendian=no |
| 19080 | else |
| 19081 | # finding both strings is unlikely to happen, but who knows? |
| 19082 | ac_cv_c_bigendian=unknown |
| 19083 | fi |
| 19084 | fi |
| 19085 | else |
| 19086 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19087 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19088 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19089 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19091 | else |
| 19092 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19093 | /* confdefs.h. */ |
| 19094 | _ACEOF |
| 19095 | cat confdefs.h >>conftest.$ac_ext |
| 19096 | cat >>conftest.$ac_ext <<_ACEOF |
| 19097 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19098 | int |
| 19099 | main () |
| 19100 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19101 | /* Are we little or big endian? From Harbison&Steele. */ |
| 19102 | union |
| 19103 | { |
| 19104 | long l; |
| 19105 | char c[sizeof (long)]; |
| 19106 | } u; |
| 19107 | u.l = 1; |
| 19108 | exit (u.c[sizeof (long) - 1] == 1); |
| 19109 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19110 | _ACEOF |
| 19111 | rm -f conftest$ac_exeext |
| 19112 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19113 | (eval $ac_link) 2>&5 |
| 19114 | ac_status=$? |
| 19115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19116 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19118 | (eval $ac_try) 2>&5 |
| 19119 | ac_status=$? |
| 19120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19121 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19122 | ac_cv_c_bigendian=no |
| 19123 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19124 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19125 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19127 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19128 | ( exit $ac_status ) |
| 19129 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19130 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19131 | rm -f 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] | 19132 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19133 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19134 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19135 | fi |
| 19136 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 19137 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 19138 | case $ac_cv_c_bigendian in |
| 19139 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19140 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19141 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19142 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19143 | _ACEOF |
| 19144 | ;; |
| 19145 | no) |
| 19146 | ;; |
| 19147 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19148 | { { echo "$as_me:$LINENO: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19149 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19150 | echo "$as_me: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19151 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 19152 | { (exit 1); exit 1; }; } ;; |
| 19153 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19154 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19155 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19156 | # Check whether right shifting a negative integer extends the sign bit |
| 19157 | # 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] | 19158 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 19159 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 19160 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 19161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19162 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19163 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19164 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 19165 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19166 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19167 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19168 | /* confdefs.h. */ |
| 19169 | _ACEOF |
| 19170 | cat confdefs.h >>conftest.$ac_ext |
| 19171 | cat >>conftest.$ac_ext <<_ACEOF |
| 19172 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19173 | |
| 19174 | int main() |
| 19175 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19176 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19177 | } |
| 19178 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19179 | _ACEOF |
| 19180 | rm -f conftest$ac_exeext |
| 19181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19182 | (eval $ac_link) 2>&5 |
| 19183 | ac_status=$? |
| 19184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19185 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19187 | (eval $ac_try) 2>&5 |
| 19188 | ac_status=$? |
| 19189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19190 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19191 | ac_cv_rshift_extends_sign=yes |
| 19192 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19193 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19194 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19196 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19197 | ( exit $ac_status ) |
| 19198 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19199 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19200 | rm -f 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] | 19201 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19202 | fi |
| 19203 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19204 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 19205 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19206 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19207 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19208 | |
| 19209 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19210 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19211 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19212 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19213 | fi |
| 19214 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19215 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19216 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 19217 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 19218 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 19219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19220 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19221 | |
| 19222 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19223 | /* confdefs.h. */ |
| 19224 | _ACEOF |
| 19225 | cat confdefs.h >>conftest.$ac_ext |
| 19226 | cat >>conftest.$ac_ext <<_ACEOF |
| 19227 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19228 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19229 | int |
| 19230 | main () |
| 19231 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19232 | |
| 19233 | FILE *f = fopen("/dev/null", "r"); |
| 19234 | flockfile(f); |
| 19235 | getc_unlocked(f); |
| 19236 | funlockfile(f); |
| 19237 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19238 | ; |
| 19239 | return 0; |
| 19240 | } |
| 19241 | _ACEOF |
| 19242 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19243 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19244 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19245 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19247 | rm -f conftest.er1 |
| 19248 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19250 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 19251 | { ac_try='test -z "$ac_c_werror_flag" |
| 19252 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19254 | (eval $ac_try) 2>&5 |
| 19255 | ac_status=$? |
| 19256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19257 | (exit $ac_status); }; } && |
| 19258 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19260 | (eval $ac_try) 2>&5 |
| 19261 | ac_status=$? |
| 19262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19263 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19264 | ac_cv_have_getc_unlocked=yes |
| 19265 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19266 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19268 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19269 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19270 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19271 | rm -f conftest.err conftest.$ac_objext \ |
| 19272 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19273 | fi |
| 19274 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19275 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 19276 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19277 | if test "$ac_cv_have_getc_unlocked" = yes |
| 19278 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19279 | |
| 19280 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19281 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19282 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19283 | |
| 19284 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19285 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19286 | # check for readline 2.1 |
| 19287 | echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 19288 | echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6 |
| 19289 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then |
| 19290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19291 | else |
| 19292 | ac_check_lib_save_LIBS=$LIBS |
| 19293 | LIBS="-lreadline -ltermcap $LIBS" |
| 19294 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19295 | /* confdefs.h. */ |
| 19296 | _ACEOF |
| 19297 | cat confdefs.h >>conftest.$ac_ext |
| 19298 | cat >>conftest.$ac_ext <<_ACEOF |
| 19299 | /* end confdefs.h. */ |
| 19300 | |
| 19301 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19302 | #ifdef __cplusplus |
| 19303 | extern "C" |
| 19304 | #endif |
| 19305 | /* We use char because int might match the return type of a gcc2 |
| 19306 | builtin and then its argument prototype would still apply. */ |
| 19307 | char rl_callback_handler_install (); |
| 19308 | int |
| 19309 | main () |
| 19310 | { |
| 19311 | rl_callback_handler_install (); |
| 19312 | ; |
| 19313 | return 0; |
| 19314 | } |
| 19315 | _ACEOF |
| 19316 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19317 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19318 | (eval $ac_link) 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19319 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19320 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19321 | rm -f conftest.er1 |
| 19322 | cat conftest.err >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19324 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 19325 | { ac_try='test -z "$ac_c_werror_flag" |
| 19326 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19328 | (eval $ac_try) 2>&5 |
| 19329 | ac_status=$? |
| 19330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19331 | (exit $ac_status); }; } && |
| 19332 | { ac_try='test -s conftest$ac_exeext' |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19334 | (eval $ac_try) 2>&5 |
| 19335 | ac_status=$? |
| 19336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19337 | (exit $ac_status); }; }; then |
| 19338 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 19339 | else |
| 19340 | echo "$as_me: failed program was:" >&5 |
| 19341 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19342 | |
| 19343 | ac_cv_lib_readline_rl_callback_handler_install=no |
| 19344 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19345 | rm -f conftest.err conftest.$ac_objext \ |
| 19346 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19347 | LIBS=$ac_check_lib_save_LIBS |
| 19348 | fi |
| 19349 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 19350 | echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6 |
| 19351 | if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then |
| 19352 | |
| 19353 | cat >>confdefs.h <<\_ACEOF |
| 19354 | #define HAVE_RL_CALLBACK 1 |
| 19355 | _ACEOF |
| 19356 | |
| 19357 | fi |
| 19358 | |
| 19359 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19360 | # check for readline 2.2 |
| 19361 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19362 | /* confdefs.h. */ |
| 19363 | _ACEOF |
| 19364 | cat confdefs.h >>conftest.$ac_ext |
| 19365 | cat >>conftest.$ac_ext <<_ACEOF |
| 19366 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19367 | #include <readline/readline.h> |
| 19368 | _ACEOF |
| 19369 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 19370 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 19371 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19372 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19373 | rm -f conftest.er1 |
| 19374 | cat conftest.err >&5 |
| 19375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19376 | (exit $ac_status); } >/dev/null; then |
| 19377 | if test -s conftest.err; then |
| 19378 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19379 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19380 | else |
| 19381 | ac_cpp_err= |
| 19382 | fi |
| 19383 | else |
| 19384 | ac_cpp_err=yes |
| 19385 | fi |
| 19386 | if test -z "$ac_cpp_err"; then |
| 19387 | have_readline=yes |
| 19388 | else |
| 19389 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19391 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19392 | have_readline=no |
| 19393 | fi |
| 19394 | rm -f conftest.err conftest.$ac_ext |
| 19395 | if test $have_readline = yes |
| 19396 | then |
| 19397 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19398 | /* confdefs.h. */ |
| 19399 | _ACEOF |
| 19400 | cat confdefs.h >>conftest.$ac_ext |
| 19401 | cat >>conftest.$ac_ext <<_ACEOF |
| 19402 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19403 | #include <readline/readline.h> |
| 19404 | |
| 19405 | _ACEOF |
| 19406 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19407 | $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] | 19408 | |
| 19409 | cat >>confdefs.h <<\_ACEOF |
| 19410 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 19411 | _ACEOF |
| 19412 | |
| 19413 | fi |
| 19414 | rm -f conftest* |
| 19415 | |
| 19416 | fi |
| 19417 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19418 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19419 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 19420 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 19421 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 19422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19423 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19424 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19425 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19426 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19427 | /* confdefs.h. */ |
| 19428 | _ACEOF |
| 19429 | cat confdefs.h >>conftest.$ac_ext |
| 19430 | cat >>conftest.$ac_ext <<_ACEOF |
| 19431 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19432 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19433 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19434 | #ifdef __cplusplus |
| 19435 | extern "C" |
| 19436 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19437 | /* 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] | 19438 | builtin and then its argument prototype would still apply. */ |
| 19439 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19440 | int |
| 19441 | main () |
| 19442 | { |
| 19443 | rl_pre_input_hook (); |
| 19444 | ; |
| 19445 | return 0; |
| 19446 | } |
| 19447 | _ACEOF |
| 19448 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19449 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19450 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19451 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19452 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19453 | rm -f conftest.er1 |
| 19454 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19456 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 19457 | { ac_try='test -z "$ac_c_werror_flag" |
| 19458 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19460 | (eval $ac_try) 2>&5 |
| 19461 | ac_status=$? |
| 19462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19463 | (exit $ac_status); }; } && |
| 19464 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19466 | (eval $ac_try) 2>&5 |
| 19467 | ac_status=$? |
| 19468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19469 | (exit $ac_status); }; }; then |
| 19470 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19471 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19472 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19474 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19475 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19476 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19477 | rm -f conftest.err conftest.$ac_objext \ |
| 19478 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19479 | LIBS=$ac_check_lib_save_LIBS |
| 19480 | fi |
| 19481 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 19482 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 19483 | 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] | 19484 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19485 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19486 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19487 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19488 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19489 | fi |
| 19490 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19491 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19492 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19493 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 19494 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 19495 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 19496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19497 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19498 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19499 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19500 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19501 | /* confdefs.h. */ |
| 19502 | _ACEOF |
| 19503 | cat confdefs.h >>conftest.$ac_ext |
| 19504 | cat >>conftest.$ac_ext <<_ACEOF |
| 19505 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19506 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19507 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19508 | #ifdef __cplusplus |
| 19509 | extern "C" |
| 19510 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19511 | /* 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] | 19512 | builtin and then its argument prototype would still apply. */ |
| 19513 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19514 | int |
| 19515 | main () |
| 19516 | { |
| 19517 | rl_completion_matches (); |
| 19518 | ; |
| 19519 | return 0; |
| 19520 | } |
| 19521 | _ACEOF |
| 19522 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19524 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19525 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19527 | rm -f conftest.er1 |
| 19528 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19530 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 19531 | { ac_try='test -z "$ac_c_werror_flag" |
| 19532 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19534 | (eval $ac_try) 2>&5 |
| 19535 | ac_status=$? |
| 19536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19537 | (exit $ac_status); }; } && |
| 19538 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19540 | (eval $ac_try) 2>&5 |
| 19541 | ac_status=$? |
| 19542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19543 | (exit $ac_status); }; }; then |
| 19544 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19545 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19546 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19548 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19549 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19550 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19551 | rm -f conftest.err conftest.$ac_objext \ |
| 19552 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19553 | LIBS=$ac_check_lib_save_LIBS |
| 19554 | fi |
| 19555 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 19556 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 19557 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19558 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19559 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19560 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19561 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19562 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19563 | fi |
| 19564 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19565 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19566 | # also in readline 4.2 |
| 19567 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19568 | /* confdefs.h. */ |
| 19569 | _ACEOF |
| 19570 | cat confdefs.h >>conftest.$ac_ext |
| 19571 | cat >>conftest.$ac_ext <<_ACEOF |
| 19572 | /* end confdefs.h. */ |
| 19573 | #include <readline/readline.h> |
| 19574 | _ACEOF |
| 19575 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 19576 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 19577 | ac_status=$? |
| 19578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19579 | rm -f conftest.er1 |
| 19580 | cat conftest.err >&5 |
| 19581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19582 | (exit $ac_status); } >/dev/null; then |
| 19583 | if test -s conftest.err; then |
| 19584 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19585 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19586 | else |
| 19587 | ac_cpp_err= |
| 19588 | fi |
| 19589 | else |
| 19590 | ac_cpp_err=yes |
| 19591 | fi |
| 19592 | if test -z "$ac_cpp_err"; then |
| 19593 | have_readline=yes |
| 19594 | else |
| 19595 | echo "$as_me: failed program was:" >&5 |
| 19596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19597 | |
| 19598 | have_readline=no |
| 19599 | fi |
| 19600 | rm -f conftest.err conftest.$ac_ext |
| 19601 | if test $have_readline = yes |
| 19602 | then |
| 19603 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19604 | /* confdefs.h. */ |
| 19605 | _ACEOF |
| 19606 | cat confdefs.h >>conftest.$ac_ext |
| 19607 | cat >>conftest.$ac_ext <<_ACEOF |
| 19608 | /* end confdefs.h. */ |
| 19609 | #include <readline/readline.h> |
| 19610 | |
| 19611 | _ACEOF |
| 19612 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19613 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 19614 | |
| 19615 | cat >>confdefs.h <<\_ACEOF |
| 19616 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 19617 | _ACEOF |
| 19618 | |
| 19619 | fi |
| 19620 | rm -f conftest* |
| 19621 | |
| 19622 | fi |
| 19623 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19624 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 19625 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 19626 | if test "${ac_cv_broken_nice+set}" = set; then |
| 19627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19628 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19629 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19630 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 19631 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19632 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19633 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19634 | /* confdefs.h. */ |
| 19635 | _ACEOF |
| 19636 | cat confdefs.h >>conftest.$ac_ext |
| 19637 | cat >>conftest.$ac_ext <<_ACEOF |
| 19638 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19639 | |
| 19640 | int main() |
| 19641 | { |
| 19642 | int val1 = nice(1); |
| 19643 | if (val1 != -1 && val1 == nice(2)) |
| 19644 | exit(0); |
| 19645 | exit(1); |
| 19646 | } |
| 19647 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19648 | _ACEOF |
| 19649 | rm -f conftest$ac_exeext |
| 19650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19651 | (eval $ac_link) 2>&5 |
| 19652 | ac_status=$? |
| 19653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19654 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19656 | (eval $ac_try) 2>&5 |
| 19657 | ac_status=$? |
| 19658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19659 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19660 | ac_cv_broken_nice=yes |
| 19661 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19662 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19663 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19665 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19666 | ( exit $ac_status ) |
| 19667 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19668 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19669 | rm -f 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] | 19670 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19671 | fi |
| 19672 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19673 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 19674 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19675 | if test "$ac_cv_broken_nice" = yes |
| 19676 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19677 | |
| 19678 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19679 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19680 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19681 | |
| 19682 | fi |
| 19683 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 19684 | echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 19685 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6 |
| 19686 | if test "$cross_compiling" = yes; then |
| 19687 | ac_cv_broken_poll=no |
| 19688 | else |
| 19689 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 19690 | /* confdefs.h. */ |
| 19691 | _ACEOF |
| 19692 | cat confdefs.h >>conftest.$ac_ext |
| 19693 | cat >>conftest.$ac_ext <<_ACEOF |
| 19694 | /* end confdefs.h. */ |
| 19695 | |
| 19696 | #include <poll.h> |
| 19697 | |
| 19698 | int main (void) |
| 19699 | { |
| 19700 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
| 19701 | |
| 19702 | close (42); |
| 19703 | |
| 19704 | int poll_test = poll (&poll_struct, 1, 0); |
| 19705 | |
| 19706 | if (poll_test < 0) |
| 19707 | { |
| 19708 | exit(0); |
| 19709 | } |
| 19710 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
| 19711 | { |
| 19712 | exit(0); |
| 19713 | } |
| 19714 | else |
| 19715 | { |
| 19716 | exit(1); |
| 19717 | } |
| 19718 | } |
| 19719 | |
| 19720 | _ACEOF |
| 19721 | rm -f conftest$ac_exeext |
| 19722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19723 | (eval $ac_link) 2>&5 |
| 19724 | ac_status=$? |
| 19725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19726 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19728 | (eval $ac_try) 2>&5 |
| 19729 | ac_status=$? |
| 19730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19731 | (exit $ac_status); }; }; then |
| 19732 | ac_cv_broken_poll=yes |
| 19733 | else |
| 19734 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19735 | echo "$as_me: failed program was:" >&5 |
| 19736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19737 | |
| 19738 | ( exit $ac_status ) |
| 19739 | ac_cv_broken_poll=no |
| 19740 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19741 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 19742 | fi |
| 19743 | echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 19744 | echo "${ECHO_T}$ac_cv_broken_poll" >&6 |
| 19745 | if test "$ac_cv_broken_poll" = yes |
| 19746 | then |
| 19747 | |
| 19748 | cat >>confdefs.h <<\_ACEOF |
| 19749 | #define HAVE_BROKEN_POLL 1 |
| 19750 | _ACEOF |
| 19751 | |
| 19752 | fi |
| 19753 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 19754 | # Before we can test tzset, we need to check if struct tm has a tm_zone |
| 19755 | # and/or if we support tzname[] |
| 19756 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 19757 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 19758 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 19759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19760 | else |
| 19761 | cat >conftest.$ac_ext <<_ACEOF |
| 19762 | /* confdefs.h. */ |
| 19763 | _ACEOF |
| 19764 | cat confdefs.h >>conftest.$ac_ext |
| 19765 | cat >>conftest.$ac_ext <<_ACEOF |
| 19766 | /* end confdefs.h. */ |
| 19767 | #include <sys/types.h> |
| 19768 | #include <$ac_cv_struct_tm> |
| 19769 | |
| 19770 | |
| 19771 | int |
| 19772 | main () |
| 19773 | { |
| 19774 | static struct tm ac_aggr; |
| 19775 | if (ac_aggr.tm_zone) |
| 19776 | return 0; |
| 19777 | ; |
| 19778 | return 0; |
| 19779 | } |
| 19780 | _ACEOF |
| 19781 | rm -f conftest.$ac_objext |
| 19782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19783 | (eval $ac_compile) 2>conftest.er1 |
| 19784 | ac_status=$? |
| 19785 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19786 | rm -f conftest.er1 |
| 19787 | cat conftest.err >&5 |
| 19788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19789 | (exit $ac_status); } && |
| 19790 | { ac_try='test -z "$ac_c_werror_flag" |
| 19791 | || test ! -s conftest.err' |
| 19792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19793 | (eval $ac_try) 2>&5 |
| 19794 | ac_status=$? |
| 19795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19796 | (exit $ac_status); }; } && |
| 19797 | { ac_try='test -s conftest.$ac_objext' |
| 19798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19799 | (eval $ac_try) 2>&5 |
| 19800 | ac_status=$? |
| 19801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19802 | (exit $ac_status); }; }; then |
| 19803 | ac_cv_member_struct_tm_tm_zone=yes |
| 19804 | else |
| 19805 | echo "$as_me: failed program was:" >&5 |
| 19806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19807 | |
| 19808 | cat >conftest.$ac_ext <<_ACEOF |
| 19809 | /* confdefs.h. */ |
| 19810 | _ACEOF |
| 19811 | cat confdefs.h >>conftest.$ac_ext |
| 19812 | cat >>conftest.$ac_ext <<_ACEOF |
| 19813 | /* end confdefs.h. */ |
| 19814 | #include <sys/types.h> |
| 19815 | #include <$ac_cv_struct_tm> |
| 19816 | |
| 19817 | |
| 19818 | int |
| 19819 | main () |
| 19820 | { |
| 19821 | static struct tm ac_aggr; |
| 19822 | if (sizeof ac_aggr.tm_zone) |
| 19823 | return 0; |
| 19824 | ; |
| 19825 | return 0; |
| 19826 | } |
| 19827 | _ACEOF |
| 19828 | rm -f conftest.$ac_objext |
| 19829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19830 | (eval $ac_compile) 2>conftest.er1 |
| 19831 | ac_status=$? |
| 19832 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19833 | rm -f conftest.er1 |
| 19834 | cat conftest.err >&5 |
| 19835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19836 | (exit $ac_status); } && |
| 19837 | { ac_try='test -z "$ac_c_werror_flag" |
| 19838 | || test ! -s conftest.err' |
| 19839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19840 | (eval $ac_try) 2>&5 |
| 19841 | ac_status=$? |
| 19842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19843 | (exit $ac_status); }; } && |
| 19844 | { ac_try='test -s conftest.$ac_objext' |
| 19845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19846 | (eval $ac_try) 2>&5 |
| 19847 | ac_status=$? |
| 19848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19849 | (exit $ac_status); }; }; then |
| 19850 | ac_cv_member_struct_tm_tm_zone=yes |
| 19851 | else |
| 19852 | echo "$as_me: failed program was:" >&5 |
| 19853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19854 | |
| 19855 | ac_cv_member_struct_tm_tm_zone=no |
| 19856 | fi |
| 19857 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19858 | fi |
| 19859 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19860 | fi |
| 19861 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 19862 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 19863 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 19864 | |
| 19865 | cat >>confdefs.h <<_ACEOF |
| 19866 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 19867 | _ACEOF |
| 19868 | |
| 19869 | |
| 19870 | fi |
| 19871 | |
| 19872 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 19873 | |
| 19874 | cat >>confdefs.h <<\_ACEOF |
| 19875 | #define HAVE_TM_ZONE 1 |
| 19876 | _ACEOF |
| 19877 | |
| 19878 | else |
| 19879 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 19880 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 19881 | if test "${ac_cv_var_tzname+set}" = set; then |
| 19882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19883 | else |
| 19884 | cat >conftest.$ac_ext <<_ACEOF |
| 19885 | /* confdefs.h. */ |
| 19886 | _ACEOF |
| 19887 | cat confdefs.h >>conftest.$ac_ext |
| 19888 | cat >>conftest.$ac_ext <<_ACEOF |
| 19889 | /* end confdefs.h. */ |
| 19890 | #include <time.h> |
| 19891 | #ifndef tzname /* For SGI. */ |
| 19892 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
| 19893 | #endif |
| 19894 | |
| 19895 | int |
| 19896 | main () |
| 19897 | { |
| 19898 | atoi(*tzname); |
| 19899 | ; |
| 19900 | return 0; |
| 19901 | } |
| 19902 | _ACEOF |
| 19903 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19904 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19905 | (eval $ac_link) 2>conftest.er1 |
| 19906 | ac_status=$? |
| 19907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19908 | rm -f conftest.er1 |
| 19909 | cat conftest.err >&5 |
| 19910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19911 | (exit $ac_status); } && |
| 19912 | { ac_try='test -z "$ac_c_werror_flag" |
| 19913 | || test ! -s conftest.err' |
| 19914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19915 | (eval $ac_try) 2>&5 |
| 19916 | ac_status=$? |
| 19917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19918 | (exit $ac_status); }; } && |
| 19919 | { ac_try='test -s conftest$ac_exeext' |
| 19920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19921 | (eval $ac_try) 2>&5 |
| 19922 | ac_status=$? |
| 19923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19924 | (exit $ac_status); }; }; then |
| 19925 | ac_cv_var_tzname=yes |
| 19926 | else |
| 19927 | echo "$as_me: failed program was:" >&5 |
| 19928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19929 | |
| 19930 | ac_cv_var_tzname=no |
| 19931 | fi |
| 19932 | rm -f conftest.err conftest.$ac_objext \ |
| 19933 | conftest$ac_exeext conftest.$ac_ext |
| 19934 | fi |
| 19935 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 19936 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
| 19937 | if test $ac_cv_var_tzname = yes; then |
| 19938 | |
| 19939 | cat >>confdefs.h <<\_ACEOF |
| 19940 | #define HAVE_TZNAME 1 |
| 19941 | _ACEOF |
| 19942 | |
| 19943 | fi |
| 19944 | fi |
| 19945 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 19946 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 19947 | # tzset(3) exists and works like we expect it to |
| 19948 | echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 19949 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6 |
| 19950 | if test "${ac_cv_working_tzset+set}" = set; then |
| 19951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19952 | else |
| 19953 | |
| 19954 | if test "$cross_compiling" = yes; then |
| 19955 | ac_cv_working_tzset=no |
| 19956 | else |
| 19957 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19958 | /* confdefs.h. */ |
| 19959 | _ACEOF |
| 19960 | cat confdefs.h >>conftest.$ac_ext |
| 19961 | cat >>conftest.$ac_ext <<_ACEOF |
| 19962 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 19963 | |
| 19964 | #include <stdlib.h> |
| 19965 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 19966 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 19967 | |
| 19968 | #if HAVE_TZNAME |
| 19969 | extern char *tzname[]; |
| 19970 | #endif |
| 19971 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 19972 | int main() |
| 19973 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 19974 | /* Note that we need to ensure that not only does tzset(3) |
| 19975 | do 'something' with localtime, but it works as documented |
| 19976 | in the library reference and as expected by the test suite. |
| 19977 | |
| 19978 | Red Hat 6.2 doesn't understand the southern hemisphere |
| 19979 | after New Year's Day; it thinks swaps on that day. |
| 19980 | */ |
| 19981 | |
| 19982 | time_t groundhogday = 1044144000; /* GMT-based; well, it's a colony */ |
| 19983 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 19984 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 19985 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 19986 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 19987 | if (localtime(&groundhogday)->tm_hour != 0) |
| 19988 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 19989 | #if HAVE_TZNAME |
| 19990 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 19991 | if (strcmp(tzname[0], "UTC") || |
| 19992 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 19993 | exit(1); |
| 19994 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 19995 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 19996 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 19997 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 19998 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 19999 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 20000 | #if HAVE_TZNAME |
| 20001 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 20002 | exit(1); |
| 20003 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20004 | |
| 20005 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 20006 | tzset(); |
| 20007 | if (localtime(&groundhogday)->tm_hour != 11) |
| 20008 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 20009 | #if HAVE_TZNAME |
| 20010 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 20011 | exit(1); |
| 20012 | #endif |
| 20013 | |
| 20014 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20015 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 20016 | exit(1); |
| 20017 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 20018 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 20019 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20020 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20021 | exit(0); |
| 20022 | } |
| 20023 | |
| 20024 | _ACEOF |
| 20025 | rm -f conftest$ac_exeext |
| 20026 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20027 | (eval $ac_link) 2>&5 |
| 20028 | ac_status=$? |
| 20029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20030 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20032 | (eval $ac_try) 2>&5 |
| 20033 | ac_status=$? |
| 20034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20035 | (exit $ac_status); }; }; then |
| 20036 | ac_cv_working_tzset=yes |
| 20037 | else |
| 20038 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20039 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20040 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20041 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20042 | ( exit $ac_status ) |
| 20043 | ac_cv_working_tzset=no |
| 20044 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20045 | rm -f 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] | 20046 | fi |
| 20047 | fi |
| 20048 | |
| 20049 | echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 20050 | echo "${ECHO_T}$ac_cv_working_tzset" >&6 |
| 20051 | if test "$ac_cv_working_tzset" = yes |
| 20052 | then |
| 20053 | |
| 20054 | cat >>confdefs.h <<\_ACEOF |
| 20055 | #define HAVE_WORKING_TZSET 1 |
| 20056 | _ACEOF |
| 20057 | |
| 20058 | fi |
| 20059 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20060 | # Look for subsecond timestamps in struct stat |
| 20061 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 20062 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 20063 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 20064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20065 | else |
| 20066 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20067 | /* confdefs.h. */ |
| 20068 | _ACEOF |
| 20069 | cat confdefs.h >>conftest.$ac_ext |
| 20070 | cat >>conftest.$ac_ext <<_ACEOF |
| 20071 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20072 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20073 | int |
| 20074 | main () |
| 20075 | { |
| 20076 | |
| 20077 | struct stat st; |
| 20078 | st.st_mtim.tv_nsec = 1; |
| 20079 | |
| 20080 | ; |
| 20081 | return 0; |
| 20082 | } |
| 20083 | _ACEOF |
| 20084 | rm -f conftest.$ac_objext |
| 20085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20086 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20087 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20089 | rm -f conftest.er1 |
| 20090 | cat conftest.err >&5 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20092 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 20093 | { ac_try='test -z "$ac_c_werror_flag" |
| 20094 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20096 | (eval $ac_try) 2>&5 |
| 20097 | ac_status=$? |
| 20098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20099 | (exit $ac_status); }; } && |
| 20100 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20102 | (eval $ac_try) 2>&5 |
| 20103 | ac_status=$? |
| 20104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20105 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 20106 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20107 | else |
| 20108 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20110 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20111 | ac_cv_stat_tv_nsec=no |
| 20112 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20113 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20114 | fi |
| 20115 | |
| 20116 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 20117 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 20118 | if test "$ac_cv_stat_tv_nsec" = yes |
| 20119 | then |
| 20120 | |
| 20121 | cat >>confdefs.h <<\_ACEOF |
| 20122 | #define HAVE_STAT_TV_NSEC 1 |
| 20123 | _ACEOF |
| 20124 | |
| 20125 | fi |
| 20126 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20127 | # 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] | 20128 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 20129 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 20130 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 20131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20132 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20133 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20134 | /* confdefs.h. */ |
| 20135 | _ACEOF |
| 20136 | cat confdefs.h >>conftest.$ac_ext |
| 20137 | cat >>conftest.$ac_ext <<_ACEOF |
| 20138 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20139 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20140 | int |
| 20141 | main () |
| 20142 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20143 | |
| 20144 | int rtn; |
| 20145 | rtn = mvwdelch(0,0,0); |
| 20146 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20147 | ; |
| 20148 | return 0; |
| 20149 | } |
| 20150 | _ACEOF |
| 20151 | rm -f conftest.$ac_objext |
| 20152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20153 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20154 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20156 | rm -f conftest.er1 |
| 20157 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20159 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 20160 | { ac_try='test -z "$ac_c_werror_flag" |
| 20161 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20163 | (eval $ac_try) 2>&5 |
| 20164 | ac_status=$? |
| 20165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20166 | (exit $ac_status); }; } && |
| 20167 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20169 | (eval $ac_try) 2>&5 |
| 20170 | ac_status=$? |
| 20171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20172 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20173 | ac_cv_mvwdelch_is_expression=yes |
| 20174 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20175 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20177 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20178 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20179 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20180 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20181 | fi |
| 20182 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20183 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 20184 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20185 | |
| 20186 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 20187 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20188 | |
| 20189 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20190 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20191 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20192 | |
| 20193 | fi |
| 20194 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20195 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 20196 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 20197 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 20198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20199 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20200 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20201 | /* confdefs.h. */ |
| 20202 | _ACEOF |
| 20203 | cat confdefs.h >>conftest.$ac_ext |
| 20204 | cat >>conftest.$ac_ext <<_ACEOF |
| 20205 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20206 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20207 | int |
| 20208 | main () |
| 20209 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20210 | |
| 20211 | WINDOW *w; |
| 20212 | w->_flags = 0; |
| 20213 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20214 | ; |
| 20215 | return 0; |
| 20216 | } |
| 20217 | _ACEOF |
| 20218 | rm -f conftest.$ac_objext |
| 20219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20220 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20221 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20223 | rm -f conftest.er1 |
| 20224 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20226 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 20227 | { ac_try='test -z "$ac_c_werror_flag" |
| 20228 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20230 | (eval $ac_try) 2>&5 |
| 20231 | ac_status=$? |
| 20232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20233 | (exit $ac_status); }; } && |
| 20234 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20236 | (eval $ac_try) 2>&5 |
| 20237 | ac_status=$? |
| 20238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20239 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20240 | ac_cv_window_has_flags=yes |
| 20241 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20242 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20244 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20245 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20246 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20247 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20248 | fi |
| 20249 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20250 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 20251 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20252 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20253 | |
| 20254 | if test "$ac_cv_window_has_flags" = yes |
| 20255 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20256 | |
| 20257 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20258 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20259 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20260 | |
| 20261 | fi |
| 20262 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 20263 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 20264 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
| 20265 | |
| 20266 | if test -e /dev/ptmx |
| 20267 | then |
| 20268 | echo "$as_me:$LINENO: result: yes" >&5 |
| 20269 | echo "${ECHO_T}yes" >&6 |
| 20270 | |
| 20271 | cat >>confdefs.h <<\_ACEOF |
| 20272 | #define HAVE_DEV_PTMX 1 |
| 20273 | _ACEOF |
| 20274 | |
| 20275 | else |
| 20276 | echo "$as_me:$LINENO: result: no" >&5 |
| 20277 | echo "${ECHO_T}no" >&6 |
| 20278 | fi |
| 20279 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 20280 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 20281 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
| 20282 | |
| 20283 | if test -e /dev/ptc |
| 20284 | then |
| 20285 | echo "$as_me:$LINENO: result: yes" >&5 |
| 20286 | echo "${ECHO_T}yes" >&6 |
| 20287 | |
| 20288 | cat >>confdefs.h <<\_ACEOF |
| 20289 | #define HAVE_DEV_PTC 1 |
| 20290 | _ACEOF |
| 20291 | |
| 20292 | else |
| 20293 | echo "$as_me:$LINENO: result: no" >&5 |
| 20294 | echo "${ECHO_T}no" >&6 |
| 20295 | fi |
| 20296 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20297 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 20298 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 20299 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 20300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 20301 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20302 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20303 | /* confdefs.h. */ |
| 20304 | _ACEOF |
| 20305 | cat confdefs.h >>conftest.$ac_ext |
| 20306 | cat >>conftest.$ac_ext <<_ACEOF |
| 20307 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 20308 | |
| 20309 | #ifdef HAVE_SYS_TYPES_H |
| 20310 | #include <sys/types.h> |
| 20311 | #endif |
| 20312 | #ifdef HAVE_SYS_SOCKET_H |
| 20313 | #include <sys/socket.h> |
| 20314 | #endif |
| 20315 | |
| 20316 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20317 | int |
| 20318 | main () |
| 20319 | { |
| 20320 | if ((socklen_t *) 0) |
| 20321 | return 0; |
| 20322 | if (sizeof (socklen_t)) |
| 20323 | return 0; |
| 20324 | ; |
| 20325 | return 0; |
| 20326 | } |
| 20327 | _ACEOF |
| 20328 | rm -f conftest.$ac_objext |
| 20329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20330 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20331 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20333 | rm -f conftest.er1 |
| 20334 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20336 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 20337 | { ac_try='test -z "$ac_c_werror_flag" |
| 20338 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20340 | (eval $ac_try) 2>&5 |
| 20341 | ac_status=$? |
| 20342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20343 | (exit $ac_status); }; } && |
| 20344 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20346 | (eval $ac_try) 2>&5 |
| 20347 | ac_status=$? |
| 20348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20349 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 20350 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 20351 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20352 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20354 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20355 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 20356 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20358 | fi |
| 20359 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 20360 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 20361 | if test $ac_cv_type_socklen_t = yes; then |
| 20362 | : |
| 20363 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 20364 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 20365 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 20366 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20367 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 20368 | |
| 20369 | fi |
| 20370 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20371 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20372 | |
| 20373 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 20374 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 20375 | do |
| 20376 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 20377 | done |
| 20378 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20379 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 20380 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20381 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 20382 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 20383 | for dir in $SRCDIRS; do |
| 20384 | if test ! -d $dir; then |
| 20385 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 20386 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 20387 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20388 | echo "$as_me:$LINENO: result: done" >&5 |
| 20389 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 20390 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20391 | # generate output files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20392 | 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] | 20393 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20394 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20395 | # This file is a shell script that caches the results of configure |
| 20396 | # 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] | 20397 | # scripts and configure runs, see configure's option --config-cache. |
| 20398 | # It is not useful on other systems. If it contains results you don't |
| 20399 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20400 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20401 | # config.status only pays attention to the cache file if you give it |
| 20402 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20403 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20404 | # `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] | 20405 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 20406 | # following values. |
| 20407 | |
| 20408 | _ACEOF |
| 20409 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20410 | # The following way of writing the cache mishandles newlines in values, |
| 20411 | # but we know of no workaround that is simple, portable, and efficient. |
| 20412 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20413 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 20414 | # 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] | 20415 | { |
| 20416 | (set) 2>&1 | |
| 20417 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 20418 | *ac_space=\ *) |
| 20419 | # `set' does not quote correctly, so add quotes (double-quote |
| 20420 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 20421 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20422 | "s/'/'\\\\''/g; |
| 20423 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20424 | ;; |
| 20425 | *) |
| 20426 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 20427 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20428 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20429 | ;; |
| 20430 | esac; |
| 20431 | } | |
| 20432 | sed ' |
| 20433 | t clear |
| 20434 | : clear |
| 20435 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 20436 | t end |
| 20437 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 20438 | : end' >>confcache |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20439 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20440 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20441 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 20442 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20443 | else |
| 20444 | echo "not updating unwritable cache $cache_file" |
| 20445 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20446 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20447 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 20448 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20449 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 20450 | # Let make expand exec_prefix. |
| 20451 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 20452 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20453 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 20454 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 20455 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 20456 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20457 | if test "x$srcdir" = x.; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20458 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20459 | s/:*\$(srcdir):*/:/; |
| 20460 | s/:*\${srcdir}:*/:/; |
| 20461 | s/:*@srcdir@:*/:/; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20462 | s/^\([^=]*=[ ]*\):*/\1/; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20463 | s/:*$//; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20464 | s/^[^=]*=[ ]*$//; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20465 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20466 | fi |
| 20467 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20468 | DEFS=-DHAVE_CONFIG_H |
| 20469 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20470 | ac_libobjs= |
| 20471 | ac_ltlibobjs= |
| 20472 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 20473 | # 1. Remove the extension, and $U if already installed. |
| 20474 | ac_i=`echo "$ac_i" | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20475 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20476 | # 2. Add them. |
| 20477 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 20478 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 20479 | done |
| 20480 | LIBOBJS=$ac_libobjs |
| 20481 | |
| 20482 | LTLIBOBJS=$ac_ltlibobjs |
| 20483 | |
| 20484 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20485 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20486 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20487 | ac_clean_files_save=$ac_clean_files |
| 20488 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 20489 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 20490 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 20491 | cat >$CONFIG_STATUS <<_ACEOF |
| 20492 | #! $SHELL |
| 20493 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20494 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20495 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20496 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20497 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20498 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20499 | ac_cs_recheck=false |
| 20500 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20501 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 20502 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20503 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20504 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20505 | ## --------------------- ## |
| 20506 | ## M4sh Initialization. ## |
| 20507 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20508 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20509 | # Be Bourne compatible |
| 20510 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 20511 | emulate sh |
| 20512 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20513 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20514 | # is contrary to our usage. Disable this feature. |
| 20515 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20516 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20517 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20518 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20519 | DUALCASE=1; export DUALCASE # for MKS sh |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20520 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20521 | # Support unset when possible. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20522 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20523 | as_unset=unset |
| 20524 | else |
| 20525 | as_unset=false |
| 20526 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20527 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20528 | |
| 20529 | # Work around bugs in pre-3.0 UWIN ksh. |
| 20530 | $as_unset ENV MAIL MAILPATH |
| 20531 | PS1='$ ' |
| 20532 | PS2='> ' |
| 20533 | PS4='+ ' |
| 20534 | |
| 20535 | # NLS nuisances. |
| 20536 | for as_var in \ |
| 20537 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 20538 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 20539 | LC_TELEPHONE LC_TIME |
| 20540 | do |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20541 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20542 | eval $as_var=C; export $as_var |
| 20543 | else |
| 20544 | $as_unset $as_var |
| 20545 | fi |
| 20546 | done |
| 20547 | |
| 20548 | # Required to use basename. |
| 20549 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 20550 | as_expr=expr |
| 20551 | else |
| 20552 | as_expr=false |
| 20553 | fi |
| 20554 | |
| 20555 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 20556 | as_basename=basename |
| 20557 | else |
| 20558 | as_basename=false |
| 20559 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20560 | |
| 20561 | |
| 20562 | # Name of the executable. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20563 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20564 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20565 | X"$0" : 'X\(//\)$' \| \ |
| 20566 | X"$0" : 'X\(/\)$' \| \ |
| 20567 | . : '\(.\)' 2>/dev/null || |
| 20568 | echo X/"$0" | |
| 20569 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 20570 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 20571 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 20572 | s/.*/./; q'` |
| 20573 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20575 | # PATH needs CR, and LINENO needs CR and PATH. |
| 20576 | # Avoid depending upon Character Ranges. |
| 20577 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20578 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20579 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20580 | as_cr_digits='0123456789' |
| 20581 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 20582 | |
| 20583 | # The user is always right. |
| 20584 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20585 | echo "#! /bin/sh" >conf$$.sh |
| 20586 | echo "exit 0" >>conf$$.sh |
| 20587 | chmod +x conf$$.sh |
| 20588 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20589 | PATH_SEPARATOR=';' |
| 20590 | else |
| 20591 | PATH_SEPARATOR=: |
| 20592 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20593 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20594 | fi |
| 20595 | |
| 20596 | |
| 20597 | as_lineno_1=$LINENO |
| 20598 | as_lineno_2=$LINENO |
| 20599 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 20600 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20601 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 20602 | # Find who we are. Look in the path if we contain no path at all |
| 20603 | # relative or not. |
| 20604 | case $0 in |
| 20605 | *[\\/]* ) as_myself=$0 ;; |
| 20606 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20607 | for as_dir in $PATH |
| 20608 | do |
| 20609 | IFS=$as_save_IFS |
| 20610 | test -z "$as_dir" && as_dir=. |
| 20611 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 20612 | done |
| 20613 | |
| 20614 | ;; |
| 20615 | esac |
| 20616 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20617 | # in which case we are not to be found in the path. |
| 20618 | if test "x$as_myself" = x; then |
| 20619 | as_myself=$0 |
| 20620 | fi |
| 20621 | if test ! -f "$as_myself"; then |
| 20622 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 20623 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 20624 | { (exit 1); exit 1; }; } |
| 20625 | fi |
| 20626 | case $CONFIG_SHELL in |
| 20627 | '') |
| 20628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20629 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 20630 | do |
| 20631 | IFS=$as_save_IFS |
| 20632 | test -z "$as_dir" && as_dir=. |
| 20633 | for as_base in sh bash ksh sh5; do |
| 20634 | case $as_dir in |
| 20635 | /*) |
| 20636 | if ("$as_dir/$as_base" -c ' |
| 20637 | as_lineno_1=$LINENO |
| 20638 | as_lineno_2=$LINENO |
| 20639 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 20640 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20641 | 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] | 20642 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 20643 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20644 | CONFIG_SHELL=$as_dir/$as_base |
| 20645 | export CONFIG_SHELL |
| 20646 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 20647 | fi;; |
| 20648 | esac |
| 20649 | done |
| 20650 | done |
| 20651 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20652 | esac |
| 20653 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20654 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 20655 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 20656 | # line-number line before each line; the second 'sed' does the real |
| 20657 | # work. The second script uses 'N' to pair each line-number line |
| 20658 | # with the numbered line, and appends trailing '-' during |
| 20659 | # substitution so that $LINENO is not a special case at line end. |
| 20660 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 20661 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 20662 | sed '=' <$as_myself | |
| 20663 | sed ' |
| 20664 | N |
| 20665 | s,$,-, |
| 20666 | : loop |
| 20667 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 20668 | t loop |
| 20669 | s,-$,, |
| 20670 | s,^['$as_cr_digits']*\n,, |
| 20671 | ' >$as_me.lineno && |
| 20672 | chmod +x $as_me.lineno || |
| 20673 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 20674 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 20675 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20676 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20677 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 20678 | # (the dirname of $[0] is not the place where we might find the |
| 20679 | # original and so on. Autoconf is especially sensible to this). |
| 20680 | . ./$as_me.lineno |
| 20681 | # Exit status is that of the last command. |
| 20682 | exit |
| 20683 | } |
| 20684 | |
| 20685 | |
| 20686 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 20687 | *c*,-n*) ECHO_N= ECHO_C=' |
| 20688 | ' ECHO_T=' ' ;; |
| 20689 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 20690 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 20691 | esac |
| 20692 | |
| 20693 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 20694 | as_expr=expr |
| 20695 | else |
| 20696 | as_expr=false |
| 20697 | fi |
| 20698 | |
| 20699 | rm -f conf$$ conf$$.exe conf$$.file |
| 20700 | echo >conf$$.file |
| 20701 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 20702 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 20703 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 20704 | if test -f conf$$.exe; then |
| 20705 | # Don't use ln at all; we don't have any links |
| 20706 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20707 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20708 | as_ln_s='ln -s' |
| 20709 | fi |
| 20710 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 20711 | as_ln_s=ln |
| 20712 | else |
| 20713 | as_ln_s='cp -p' |
| 20714 | fi |
| 20715 | rm -f conf$$ conf$$.exe conf$$.file |
| 20716 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20717 | if mkdir -p . 2>/dev/null; then |
| 20718 | as_mkdir_p=: |
| 20719 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20720 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20721 | as_mkdir_p=false |
| 20722 | fi |
| 20723 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20724 | as_executable_p="test -f" |
| 20725 | |
| 20726 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20727 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20728 | |
| 20729 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20730 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20731 | |
| 20732 | |
| 20733 | # IFS |
| 20734 | # We need space, tab and new line, in precisely that order. |
| 20735 | as_nl=' |
| 20736 | ' |
| 20737 | IFS=" $as_nl" |
| 20738 | |
| 20739 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20740 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20741 | |
| 20742 | exec 6>&1 |
| 20743 | |
| 20744 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 20745 | # report actual input values of CONFIG_FILES etc. instead of their |
| 20746 | # values after options handling. Logging --version etc. is OK. |
| 20747 | exec 5>>config.log |
| 20748 | { |
| 20749 | echo |
| 20750 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 20751 | ## Running $as_me. ## |
| 20752 | _ASBOX |
| 20753 | } >&5 |
| 20754 | cat >&5 <<_CSEOF |
| 20755 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 20756 | This file was extended by python $as_me 2.5, which was |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20757 | generated by GNU Autoconf 2.59. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20758 | |
| 20759 | CONFIG_FILES = $CONFIG_FILES |
| 20760 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 20761 | CONFIG_LINKS = $CONFIG_LINKS |
| 20762 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 20763 | $ $0 $@ |
| 20764 | |
| 20765 | _CSEOF |
| 20766 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 20767 | echo >&5 |
| 20768 | _ACEOF |
| 20769 | |
| 20770 | # Files that config.status was made for. |
| 20771 | if test -n "$ac_config_files"; then |
| 20772 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 20773 | fi |
| 20774 | |
| 20775 | if test -n "$ac_config_headers"; then |
| 20776 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 20777 | fi |
| 20778 | |
| 20779 | if test -n "$ac_config_links"; then |
| 20780 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 20781 | fi |
| 20782 | |
| 20783 | if test -n "$ac_config_commands"; then |
| 20784 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 20785 | fi |
| 20786 | |
| 20787 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20788 | |
| 20789 | ac_cs_usage="\ |
| 20790 | \`$as_me' instantiates files from templates according to the |
| 20791 | current configuration. |
| 20792 | |
| 20793 | Usage: $0 [OPTIONS] [FILE]... |
| 20794 | |
| 20795 | -h, --help print this help, then exit |
| 20796 | -V, --version print version number, then exit |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20797 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20798 | -d, --debug don't remove temporary files |
| 20799 | --recheck update $as_me by reconfiguring in the same conditions |
| 20800 | --file=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20801 | instantiate the configuration file FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20802 | --header=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20803 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20804 | |
| 20805 | Configuration files: |
| 20806 | $config_files |
| 20807 | |
| 20808 | Configuration headers: |
| 20809 | $config_headers |
| 20810 | |
| 20811 | Report bugs to <bug-autoconf@gnu.org>." |
| 20812 | _ACEOF |
| 20813 | |
| 20814 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20815 | ac_cs_version="\\ |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 20816 | python config.status 2.5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20817 | configured by $0, generated by GNU Autoconf 2.59, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20818 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 20819 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20820 | Copyright (C) 2003 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20821 | This config.status script is free software; the Free Software Foundation |
| 20822 | gives unlimited permission to copy, distribute and modify it." |
| 20823 | srcdir=$srcdir |
| 20824 | INSTALL="$INSTALL" |
| 20825 | _ACEOF |
| 20826 | |
| 20827 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20828 | # If no file are specified by the user, then we need to provide default |
| 20829 | # value. By we need to know if files were specified by the user. |
| 20830 | ac_need_defaults=: |
| 20831 | while test $# != 0 |
| 20832 | do |
| 20833 | case $1 in |
| 20834 | --*=*) |
| 20835 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 20836 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20837 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20838 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20839 | -*) |
| 20840 | ac_option=$1 |
| 20841 | ac_optarg=$2 |
| 20842 | ac_shift=shift |
| 20843 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20844 | *) # This is not an option, so the user has probably given explicit |
| 20845 | # arguments. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20846 | ac_option=$1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20847 | ac_need_defaults=false;; |
| 20848 | esac |
| 20849 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20850 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20851 | # Handling of the options. |
| 20852 | _ACEOF |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20853 | cat >>$CONFIG_STATUS <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20854 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 20855 | ac_cs_recheck=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20856 | --version | --vers* | -V ) |
| 20857 | echo "$ac_cs_version"; exit 0 ;; |
| 20858 | --he | --h) |
| 20859 | # Conflict between --help and --header |
| 20860 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 20861 | Try \`$0 --help' for more information." >&5 |
| 20862 | echo "$as_me: error: ambiguous option: $1 |
| 20863 | Try \`$0 --help' for more information." >&2;} |
| 20864 | { (exit 1); exit 1; }; };; |
| 20865 | --help | --hel | -h ) |
| 20866 | echo "$ac_cs_usage"; exit 0 ;; |
| 20867 | --debug | --d* | -d ) |
| 20868 | debug=: ;; |
| 20869 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20870 | $ac_shift |
| 20871 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20872 | ac_need_defaults=false;; |
| 20873 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20874 | $ac_shift |
| 20875 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20876 | ac_need_defaults=false;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20877 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 20878 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 20879 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20880 | |
| 20881 | # This is an error. |
| 20882 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 20883 | Try \`$0 --help' for more information." >&5 |
| 20884 | echo "$as_me: error: unrecognized option: $1 |
| 20885 | Try \`$0 --help' for more information." >&2;} |
| 20886 | { (exit 1); exit 1; }; } ;; |
| 20887 | |
| 20888 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 20889 | |
| 20890 | esac |
| 20891 | shift |
| 20892 | done |
| 20893 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20894 | ac_configure_extra_args= |
| 20895 | |
| 20896 | if $ac_cs_silent; then |
| 20897 | exec 6>/dev/null |
| 20898 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 20899 | fi |
| 20900 | |
| 20901 | _ACEOF |
| 20902 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20903 | if \$ac_cs_recheck; then |
| 20904 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 20905 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 20906 | fi |
| 20907 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20908 | _ACEOF |
| 20909 | |
| 20910 | |
| 20911 | |
| 20912 | |
| 20913 | |
| 20914 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20915 | for ac_config_target in $ac_config_targets |
| 20916 | do |
| 20917 | case "$ac_config_target" in |
| 20918 | # Handling of arguments. |
| 20919 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 20920 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 20921 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 20922 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 20923 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 20924 | { (exit 1); exit 1; }; };; |
| 20925 | esac |
| 20926 | done |
| 20927 | |
| 20928 | # If the user did not use the arguments to specify the items to instantiate, |
| 20929 | # then the envvar interface is used. Set only those that are not. |
| 20930 | # We use the long form for the default assignment because of an extremely |
| 20931 | # bizarre bug on SunOS 4.1.3. |
| 20932 | if $ac_need_defaults; then |
| 20933 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 20934 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 20935 | fi |
| 20936 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20937 | # Have a temporary directory for convenience. Make it in the build tree |
| 20938 | # simply because there is no reason to put it here, and in addition, |
| 20939 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20940 | # Create a temporary directory, and hook for its removal unless debugging. |
| 20941 | $debug || |
| 20942 | { |
| 20943 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 20944 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 20945 | } |
| 20946 | |
| 20947 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20948 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20949 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20950 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20951 | test -n "$tmp" && test -d "$tmp" |
| 20952 | } || |
| 20953 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20954 | tmp=./confstat$$-$RANDOM |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20955 | (umask 077 && mkdir $tmp) |
| 20956 | } || |
| 20957 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20958 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20959 | { (exit 1); exit 1; } |
| 20960 | } |
| 20961 | |
| 20962 | _ACEOF |
| 20963 | |
| 20964 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20965 | |
| 20966 | # |
| 20967 | # CONFIG_FILES section. |
| 20968 | # |
| 20969 | |
| 20970 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 20971 | # This happens for instance when ./config.status config.h |
| 20972 | if test -n "\$CONFIG_FILES"; then |
| 20973 | # Protect against being on the right side of a sed subst in config.status. |
| 20974 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 20975 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 20976 | s,@SHELL@,$SHELL,;t t |
| 20977 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 20978 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 20979 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 20980 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 20981 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 20982 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 20983 | s,@exec_prefix@,$exec_prefix,;t t |
| 20984 | s,@prefix@,$prefix,;t t |
| 20985 | s,@program_transform_name@,$program_transform_name,;t t |
| 20986 | s,@bindir@,$bindir,;t t |
| 20987 | s,@sbindir@,$sbindir,;t t |
| 20988 | s,@libexecdir@,$libexecdir,;t t |
| 20989 | s,@datadir@,$datadir,;t t |
| 20990 | s,@sysconfdir@,$sysconfdir,;t t |
| 20991 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 20992 | s,@localstatedir@,$localstatedir,;t t |
| 20993 | s,@libdir@,$libdir,;t t |
| 20994 | s,@includedir@,$includedir,;t t |
| 20995 | s,@oldincludedir@,$oldincludedir,;t t |
| 20996 | s,@infodir@,$infodir,;t t |
| 20997 | s,@mandir@,$mandir,;t t |
| 20998 | s,@build_alias@,$build_alias,;t t |
| 20999 | s,@host_alias@,$host_alias,;t t |
| 21000 | s,@target_alias@,$target_alias,;t t |
| 21001 | s,@DEFS@,$DEFS,;t t |
| 21002 | s,@ECHO_C@,$ECHO_C,;t t |
| 21003 | s,@ECHO_N@,$ECHO_N,;t t |
| 21004 | s,@ECHO_T@,$ECHO_T,;t t |
| 21005 | s,@LIBS@,$LIBS,;t t |
| 21006 | s,@VERSION@,$VERSION,;t t |
| 21007 | s,@SOVERSION@,$SOVERSION,;t t |
| 21008 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 21009 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 21010 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 21011 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 21012 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 21013 | s,@MACHDEP@,$MACHDEP,;t t |
| 21014 | s,@SGI_ABI@,$SGI_ABI,;t t |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 21015 | s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 21016 | s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 21017 | s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21018 | s,@CXX@,$CXX,;t t |
| 21019 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 21020 | s,@EXEEXT@,$EXEEXT,;t t |
| 21021 | s,@CC@,$CC,;t t |
| 21022 | s,@CFLAGS@,$CFLAGS,;t t |
| 21023 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 21024 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 21025 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 21026 | s,@OBJEXT@,$OBJEXT,;t t |
| 21027 | s,@CPP@,$CPP,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21028 | s,@EGREP@,$EGREP,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21029 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 21030 | s,@LIBRARY@,$LIBRARY,;t t |
| 21031 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 21032 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 21033 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 21034 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 21035 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 21036 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 21037 | s,@LINKCC@,$LINKCC,;t t |
| 21038 | s,@RANLIB@,$RANLIB,;t t |
| 21039 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 21040 | s,@AR@,$AR,;t t |
| 21041 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 21042 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 21043 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 21044 | s,@LN@,$LN,;t t |
| 21045 | s,@OPT@,$OPT,;t t |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 21046 | s,@BASECFLAGS@,$BASECFLAGS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21047 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 21048 | s,@SO@,$SO,;t t |
| 21049 | s,@LDSHARED@,$LDSHARED,;t t |
| 21050 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 21051 | s,@CCSHARED@,$CCSHARED,;t t |
| 21052 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 21053 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 21054 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21055 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 21056 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 21057 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 21058 | s,@LDLAST@,$LDLAST,;t t |
| 21059 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 21060 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 21061 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 21062 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 21063 | s,@TRUE@,$TRUE,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21064 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 21065 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 21066 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 21067 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 21068 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 21069 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 21070 | s,@LIBM@,$LIBM,;t t |
| 21071 | s,@LIBC@,$LIBC,;t t |
| 21072 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 21073 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 21074 | s,@SRCDIRS@,$SRCDIRS,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21075 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21076 | CEOF |
| 21077 | |
| 21078 | _ACEOF |
| 21079 | |
| 21080 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21081 | # Split the substitutions into bite-sized pieces for seds with |
| 21082 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 21083 | ac_max_sed_lines=48 |
| 21084 | ac_sed_frag=1 # Number of current file. |
| 21085 | ac_beg=1 # First line for current file. |
| 21086 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 21087 | ac_more_lines=: |
| 21088 | ac_sed_cmds= |
| 21089 | while $ac_more_lines; do |
| 21090 | if test $ac_beg -gt 1; then |
| 21091 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 21092 | else |
| 21093 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 21094 | fi |
| 21095 | if test ! -s $tmp/subs.frag; then |
| 21096 | ac_more_lines=false |
| 21097 | else |
| 21098 | # The purpose of the label and of the branching condition is to |
| 21099 | # speed up the sed processing (if there are no `@' at all, there |
| 21100 | # is no need to browse any of the substitutions). |
| 21101 | # These are the two extra sed commands mentioned above. |
| 21102 | (echo ':t |
| 21103 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 21104 | if test -z "$ac_sed_cmds"; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21105 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21106 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21107 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21108 | fi |
| 21109 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 21110 | ac_beg=$ac_end |
| 21111 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 21112 | fi |
| 21113 | done |
| 21114 | if test -z "$ac_sed_cmds"; then |
| 21115 | ac_sed_cmds=cat |
| 21116 | fi |
| 21117 | fi # test -n "$CONFIG_FILES" |
| 21118 | |
| 21119 | _ACEOF |
| 21120 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21121 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 21122 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 21123 | case $ac_file in |
| 21124 | - | *:- | *:-:* ) # input from stdin |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21125 | cat >$tmp/stdin |
| 21126 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 21127 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21128 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21129 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21130 | * ) ac_file_in=$ac_file.in ;; |
| 21131 | esac |
| 21132 | |
| 21133 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 21134 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 21135 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21136 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21137 | X"$ac_file" : 'X\(//\)$' \| \ |
| 21138 | X"$ac_file" : 'X\(/\)' \| \ |
| 21139 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21140 | echo X"$ac_file" | |
| 21141 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21142 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21143 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21144 | /^X\(\/\).*/{ s//\1/; q; } |
| 21145 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21146 | { if $as_mkdir_p; then |
| 21147 | mkdir -p "$ac_dir" |
| 21148 | else |
| 21149 | as_dir="$ac_dir" |
| 21150 | as_dirs= |
| 21151 | while test ! -d "$as_dir"; do |
| 21152 | as_dirs="$as_dir $as_dirs" |
| 21153 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 21154 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21155 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21156 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21157 | X"$as_dir" : 'X\(/\)' \| \ |
| 21158 | . : '\(.\)' 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21159 | echo X"$as_dir" | |
| 21160 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21161 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21162 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21163 | /^X\(\/\).*/{ s//\1/; q; } |
| 21164 | s/.*/./; q'` |
| 21165 | done |
| 21166 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 21167 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 21168 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 21169 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21170 | |
| 21171 | ac_builddir=. |
| 21172 | |
| 21173 | if test "$ac_dir" != .; then |
| 21174 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 21175 | # A "../" for each directory in $ac_dir_suffix. |
| 21176 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 21177 | else |
| 21178 | ac_dir_suffix= ac_top_builddir= |
| 21179 | fi |
| 21180 | |
| 21181 | case $srcdir in |
| 21182 | .) # No --srcdir option. We are building in place. |
| 21183 | ac_srcdir=. |
| 21184 | if test -z "$ac_top_builddir"; then |
| 21185 | ac_top_srcdir=. |
| 21186 | else |
| 21187 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 21188 | fi ;; |
| 21189 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 21190 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 21191 | ac_top_srcdir=$srcdir ;; |
| 21192 | *) # Relative path. |
| 21193 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 21194 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 21195 | esac |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21196 | |
| 21197 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 21198 | # the directories may not exist. |
| 21199 | case `pwd` in |
| 21200 | .) ac_abs_builddir="$ac_dir";; |
| 21201 | *) |
| 21202 | case "$ac_dir" in |
| 21203 | .) ac_abs_builddir=`pwd`;; |
| 21204 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 21205 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 21206 | esac;; |
| 21207 | esac |
| 21208 | case $ac_abs_builddir in |
| 21209 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 21210 | *) |
| 21211 | case ${ac_top_builddir}. in |
| 21212 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 21213 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 21214 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 21215 | esac;; |
| 21216 | esac |
| 21217 | case $ac_abs_builddir in |
| 21218 | .) ac_abs_srcdir=$ac_srcdir;; |
| 21219 | *) |
| 21220 | case $ac_srcdir in |
| 21221 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 21222 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 21223 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 21224 | esac;; |
| 21225 | esac |
| 21226 | case $ac_abs_builddir in |
| 21227 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 21228 | *) |
| 21229 | case $ac_top_srcdir in |
| 21230 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 21231 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 21232 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 21233 | esac;; |
| 21234 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21235 | |
| 21236 | |
| 21237 | case $INSTALL in |
| 21238 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 21239 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 21240 | esac |
| 21241 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame^] | 21242 | if test x"$ac_file" != x-; then |
| 21243 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 21244 | echo "$as_me: creating $ac_file" >&6;} |
| 21245 | rm -f "$ac_file" |
| 21246 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21247 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21248 | # use $as_me), people would be surprised to read: |
| 21249 | # /* config.h. Generated by config.status. */ |
| 21250 | if test x"$ac_file" = x-; then |
| 21251 | configure_input= |
| 21252 | else |
| 21253 | configure_input="$ac_file. " |
| 21254 | fi |
| 21255 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21256 | sed 's,.*/,,'` by configure." |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21257 | |
| 21258 | # First look for the input files in the build tree, otherwise in the |
| 21259 | # src tree. |
| 21260 | ac_file_inputs=`IFS=: |
| 21261 | for f in $ac_file_in; do |
| 21262 | case $f in |
| 21263 | -) echo $tmp/stdin ;; |
| 21264 | [\\/$]*) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21265 | # Absolute (can't be DOS-style, as IFS=:) |
| 21266 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21267 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21268 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21269 | echo "$f";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21270 | *) # Relative |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21271 | if test -f "$f"; then |
| 21272 | # Build tree |
| 21273 | echo "$f" |
| 21274 | elif test -f "$srcdir/$f"; then |
| 21275 | # Source tree |
| 21276 | echo "$srcdir/$f" |
| 21277 | else |
| 21278 | # /dev/null tree |
| 21279 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21280 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21281 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21282 | fi;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21283 | esac |
| 21284 | done` || { (exit 1); exit 1; } |
| 21285 | _ACEOF |
| 21286 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21287 | sed "$ac_vpsub |
| 21288 | $extrasub |
| 21289 | _ACEOF |
| 21290 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21291 | :t |
| 21292 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 21293 | s,@configure_input@,$configure_input,;t t |
| 21294 | s,@srcdir@,$ac_srcdir,;t t |
| 21295 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 21296 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 21297 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 21298 | s,@builddir@,$ac_builddir,;t t |
| 21299 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 21300 | s,@top_builddir@,$ac_top_builddir,;t t |
| 21301 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 21302 | s,@INSTALL@,$ac_INSTALL,;t t |
| 21303 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 21304 | rm -f $tmp/stdin |
| 21305 | if test x"$ac_file" != x-; then |
| 21306 | mv $tmp/out $ac_file |
| 21307 | else |
| 21308 | cat $tmp/out |
| 21309 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21310 | fi |
| 21311 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21312 | done |
| 21313 | _ACEOF |
| 21314 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21315 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21316 | # |
| 21317 | # CONFIG_HEADER section. |
| 21318 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21319 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21320 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 21321 | # 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] | 21322 | # |
| 21323 | # ac_d sets the value in "#define NAME VALUE" lines. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21324 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 21325 | ac_dB='[ ].*$,\1#\2' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21326 | ac_dC=' ' |
| 21327 | ac_dD=',;t' |
| 21328 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21329 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21330 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21331 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21332 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21333 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21334 | 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] | 21335 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21336 | case $ac_file in |
| 21337 | - | *:- | *:-:* ) # input from stdin |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21338 | cat >$tmp/stdin |
| 21339 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 21340 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21341 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21342 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21343 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21344 | esac |
| 21345 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21346 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 21347 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21348 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21349 | # First look for the input files in the build tree, otherwise in the |
| 21350 | # src tree. |
| 21351 | ac_file_inputs=`IFS=: |
| 21352 | for f in $ac_file_in; do |
| 21353 | case $f in |
| 21354 | -) echo $tmp/stdin ;; |
| 21355 | [\\/$]*) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21356 | # Absolute (can't be DOS-style, as IFS=:) |
| 21357 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21358 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21359 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21360 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 21361 | echo "$f";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21362 | *) # Relative |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21363 | if test -f "$f"; then |
| 21364 | # Build tree |
| 21365 | echo "$f" |
| 21366 | elif test -f "$srcdir/$f"; then |
| 21367 | # Source tree |
| 21368 | echo "$srcdir/$f" |
| 21369 | else |
| 21370 | # /dev/null tree |
| 21371 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21372 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21373 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21374 | fi;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21375 | esac |
| 21376 | done` || { (exit 1); exit 1; } |
| 21377 | # Remove the trailing spaces. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21378 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21379 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21380 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21381 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21382 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 21383 | # `conftest.undefs', that substitutes the proper values into |
| 21384 | # config.h.in to produce config.h. The first handles `#define' |
| 21385 | # templates, and the second `#undef' templates. |
| 21386 | # And first: Protect against being on the right side of a sed subst in |
| 21387 | # config.status. Protect against being in an unquoted here document |
| 21388 | # in config.status. |
| 21389 | rm -f conftest.defines conftest.undefs |
| 21390 | # Using a here document instead of a string reduces the quoting nightmare. |
| 21391 | # Putting comments in sed scripts is not portable. |
| 21392 | # |
| 21393 | # `end' is used to avoid that the second main sed command (meant for |
| 21394 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 21395 | # See the Autoconf documentation for `clear'. |
| 21396 | cat >confdef2sed.sed <<\_ACEOF |
| 21397 | s/[\\&,]/\\&/g |
| 21398 | s,[\\$`],\\&,g |
| 21399 | t clear |
| 21400 | : clear |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21401 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21402 | t end |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21403 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21404 | : end |
| 21405 | _ACEOF |
| 21406 | # If some macros were called several times there might be several times |
| 21407 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 21408 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 21409 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 21410 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 21411 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21412 | |
| 21413 | # This sed command replaces #undef with comments. This is necessary, for |
| 21414 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 21415 | # 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] | 21416 | cat >>conftest.undefs <<\_ACEOF |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21417 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21418 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21419 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21420 | # Break up conftest.defines because some shells have a limit on the size |
| 21421 | # of here documents, and old seds have small limits too (100 cmds). |
| 21422 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21423 | 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] | 21424 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 21425 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21426 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21427 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21428 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21429 | # Write a limited-size here document to $tmp/defines.sed. |
| 21430 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 21431 | # Speed up: don't consider the non `#define' lines. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21432 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21433 | # Work around the forget-to-reset-the-flag bug. |
| 21434 | echo 't clr' >>$CONFIG_STATUS |
| 21435 | echo ': clr' >>$CONFIG_STATUS |
| 21436 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21437 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21438 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 21439 | rm -f $tmp/in |
| 21440 | mv $tmp/out $tmp/in |
| 21441 | ' >>$CONFIG_STATUS |
| 21442 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 21443 | rm -f conftest.defines |
| 21444 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21445 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21446 | rm -f conftest.defines |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21447 | echo ' fi # grep' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21448 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21449 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21450 | # Break up conftest.undefs because some shells have a limit on the size |
| 21451 | # of here documents, and old seds have small limits too (100 cmds). |
| 21452 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 21453 | rm -f conftest.tail |
| 21454 | while grep . conftest.undefs >/dev/null |
| 21455 | do |
| 21456 | # Write a limited-size here document to $tmp/undefs.sed. |
| 21457 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 21458 | # Speed up: don't consider the non `#undef' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21459 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21460 | # Work around the forget-to-reset-the-flag bug. |
| 21461 | echo 't clr' >>$CONFIG_STATUS |
| 21462 | echo ': clr' >>$CONFIG_STATUS |
| 21463 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 21464 | echo 'CEOF |
| 21465 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 21466 | rm -f $tmp/in |
| 21467 | mv $tmp/out $tmp/in |
| 21468 | ' >>$CONFIG_STATUS |
| 21469 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 21470 | rm -f conftest.undefs |
| 21471 | mv conftest.tail conftest.undefs |
| 21472 | done |
| 21473 | rm -f conftest.undefs |
| 21474 | |
| 21475 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21476 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21477 | # use $as_me), people would be surprised to read: |
| 21478 | # /* config.h. Generated by config.status. */ |
| 21479 | if test x"$ac_file" = x-; then |
| 21480 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21481 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21482 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21483 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21484 | cat $tmp/in >>$tmp/config.h |
| 21485 | rm -f $tmp/in |
| 21486 | if test x"$ac_file" != x-; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21487 | 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] | 21488 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 21489 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 21490 | else |
| 21491 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 21492 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21493 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21494 | X"$ac_file" : 'X\(//\)$' \| \ |
| 21495 | X"$ac_file" : 'X\(/\)' \| \ |
| 21496 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21497 | echo X"$ac_file" | |
| 21498 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21499 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21500 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21501 | /^X\(\/\).*/{ s//\1/; q; } |
| 21502 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21503 | { if $as_mkdir_p; then |
| 21504 | mkdir -p "$ac_dir" |
| 21505 | else |
| 21506 | as_dir="$ac_dir" |
| 21507 | as_dirs= |
| 21508 | while test ! -d "$as_dir"; do |
| 21509 | as_dirs="$as_dir $as_dirs" |
| 21510 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 21511 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21512 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21513 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21514 | X"$as_dir" : 'X\(/\)' \| \ |
| 21515 | . : '\(.\)' 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21516 | echo X"$as_dir" | |
| 21517 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21518 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21519 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21520 | /^X\(\/\).*/{ s//\1/; q; } |
| 21521 | s/.*/./; q'` |
| 21522 | done |
| 21523 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 21524 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 21525 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 21526 | { (exit 1); exit 1; }; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21527 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21528 | rm -f $ac_file |
| 21529 | mv $tmp/config.h $ac_file |
| 21530 | fi |
| 21531 | else |
| 21532 | cat $tmp/config.h |
| 21533 | rm -f $tmp/config.h |
| 21534 | fi |
| 21535 | done |
| 21536 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21537 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21538 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21539 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21540 | { (exit 0); exit 0; } |
| 21541 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21542 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21543 | ac_clean_files=$ac_clean_files_save |
| 21544 | |
| 21545 | |
| 21546 | # configure is writing to config.log, and then calls config.status. |
| 21547 | # config.status does its own redirection, appending to config.log. |
| 21548 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21549 | # by configure, so config.status won't be able to write to it; its |
| 21550 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21551 | # effectively closing config.log, so it can be properly (re)opened and |
| 21552 | # appended to by config.status. When coming back to configure, we |
| 21553 | # need to make the FD available again. |
| 21554 | if test "$no_create" != yes; then |
| 21555 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21556 | ac_config_status_args= |
| 21557 | test "$silent" = yes && |
| 21558 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21559 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21560 | $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] | 21561 | exec 5>>config.log |
| 21562 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21563 | # would make configure fail if this is the last instruction. |
| 21564 | $ac_cs_success || { (exit 1); exit 1; } |
| 21565 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21566 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 21567 | |
| 21568 | echo "creating Setup" |
| 21569 | if test ! -f Modules/Setup |
| 21570 | then |
| 21571 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 21572 | fi |
| 21573 | |
| 21574 | echo "creating Setup.local" |
| 21575 | if test ! -f Modules/Setup.local |
| 21576 | then |
| 21577 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 21578 | fi |
| 21579 | |
| 21580 | echo "creating Makefile" |
| 21581 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 21582 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 21583 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 21584 | mv config.c Modules |