Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Neal Norwitz | 671b9e3 | 2006-01-09 07:07:12 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 41975 . |
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 | fd1c69e7 | 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 | # |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 6 | # Report bugs to <http://www.python.org/python-bugs>. |
| 7 | # |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8 | # Copyright (C) 2003 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11 | ## --------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## --------------------- ## |
| 14 | |
| 15 | # Be Bourne compatible |
| 16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 17 | emulate sh |
| 18 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20 | # is contrary to our usage. Disable this feature. |
| 21 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 23 | set -o posix |
| 24 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27 | # Support unset when possible. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28 | 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] | 29 | as_unset=unset |
| 30 | else |
| 31 | as_unset=false |
| 32 | fi |
| 33 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 34 | |
| 35 | # Work around bugs in pre-3.0 UWIN ksh. |
| 36 | $as_unset ENV MAIL MAILPATH |
| 37 | PS1='$ ' |
| 38 | PS2='> ' |
| 39 | PS4='+ ' |
| 40 | |
| 41 | # NLS nuisances. |
| 42 | for as_var in \ |
| 43 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 44 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 45 | LC_TELEPHONE LC_TIME |
| 46 | do |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 47 | 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] | 48 | eval $as_var=C; export $as_var |
| 49 | else |
| 50 | $as_unset $as_var |
| 51 | fi |
| 52 | done |
| 53 | |
| 54 | # Required to use basename. |
| 55 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 56 | as_expr=expr |
| 57 | else |
| 58 | as_expr=false |
| 59 | fi |
| 60 | |
| 61 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 62 | as_basename=basename |
| 63 | else |
| 64 | as_basename=false |
| 65 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 66 | |
| 67 | |
| 68 | # Name of the executable. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 69 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 70 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 71 | X"$0" : 'X\(//\)$' \| \ |
| 72 | X"$0" : 'X\(/\)$' \| \ |
| 73 | . : '\(.\)' 2>/dev/null || |
| 74 | echo X/"$0" | |
| 75 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 76 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 77 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 78 | s/.*/./; q'` |
| 79 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 80 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 81 | # PATH needs CR, and LINENO needs CR and PATH. |
| 82 | # Avoid depending upon Character Ranges. |
| 83 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 84 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 85 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 86 | as_cr_digits='0123456789' |
| 87 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 88 | |
| 89 | # The user is always right. |
| 90 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 91 | echo "#! /bin/sh" >conf$$.sh |
| 92 | echo "exit 0" >>conf$$.sh |
| 93 | chmod +x conf$$.sh |
| 94 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 95 | PATH_SEPARATOR=';' |
| 96 | else |
| 97 | PATH_SEPARATOR=: |
| 98 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 99 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 100 | fi |
| 101 | |
| 102 | |
| 103 | as_lineno_1=$LINENO |
| 104 | as_lineno_2=$LINENO |
| 105 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 106 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 107 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 108 | # Find who we are. Look in the path if we contain no path at all |
| 109 | # relative or not. |
| 110 | case $0 in |
| 111 | *[\\/]* ) as_myself=$0 ;; |
| 112 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 113 | for as_dir in $PATH |
| 114 | do |
| 115 | IFS=$as_save_IFS |
| 116 | test -z "$as_dir" && as_dir=. |
| 117 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 118 | done |
| 119 | |
| 120 | ;; |
| 121 | esac |
| 122 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 123 | # in which case we are not to be found in the path. |
| 124 | if test "x$as_myself" = x; then |
| 125 | as_myself=$0 |
| 126 | fi |
| 127 | if test ! -f "$as_myself"; then |
| 128 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 129 | { (exit 1); exit 1; }; } |
| 130 | fi |
| 131 | case $CONFIG_SHELL in |
| 132 | '') |
| 133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 134 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 135 | do |
| 136 | IFS=$as_save_IFS |
| 137 | test -z "$as_dir" && as_dir=. |
| 138 | for as_base in sh bash ksh sh5; do |
| 139 | case $as_dir in |
| 140 | /*) |
| 141 | if ("$as_dir/$as_base" -c ' |
| 142 | as_lineno_1=$LINENO |
| 143 | as_lineno_2=$LINENO |
| 144 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 145 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 146 | 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] | 147 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 148 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 149 | CONFIG_SHELL=$as_dir/$as_base |
| 150 | export CONFIG_SHELL |
| 151 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 152 | fi;; |
| 153 | esac |
| 154 | done |
| 155 | done |
| 156 | ;; |
| 157 | esac |
| 158 | |
| 159 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 160 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 161 | # line-number line before each line; the second 'sed' does the real |
| 162 | # work. The second script uses 'N' to pair each line-number line |
| 163 | # with the numbered line, and appends trailing '-' during |
| 164 | # substitution so that $LINENO is not a special case at line end. |
| 165 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 166 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 167 | sed '=' <$as_myself | |
| 168 | sed ' |
| 169 | N |
| 170 | s,$,-, |
| 171 | : loop |
| 172 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 173 | t loop |
| 174 | s,-$,, |
| 175 | s,^['$as_cr_digits']*\n,, |
| 176 | ' >$as_me.lineno && |
| 177 | chmod +x $as_me.lineno || |
| 178 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 179 | { (exit 1); exit 1; }; } |
| 180 | |
| 181 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 182 | # (the dirname of $[0] is not the place where we might find the |
| 183 | # original and so on. Autoconf is especially sensible to this). |
| 184 | . ./$as_me.lineno |
| 185 | # Exit status is that of the last command. |
| 186 | exit |
| 187 | } |
| 188 | |
| 189 | |
| 190 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 191 | *c*,-n*) ECHO_N= ECHO_C=' |
| 192 | ' ECHO_T=' ' ;; |
| 193 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 194 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 195 | esac |
| 196 | |
| 197 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 198 | as_expr=expr |
| 199 | else |
| 200 | as_expr=false |
| 201 | fi |
| 202 | |
| 203 | rm -f conf$$ conf$$.exe conf$$.file |
| 204 | echo >conf$$.file |
| 205 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 206 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 207 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 208 | if test -f conf$$.exe; then |
| 209 | # Don't use ln at all; we don't have any links |
| 210 | as_ln_s='cp -p' |
| 211 | else |
| 212 | as_ln_s='ln -s' |
| 213 | fi |
| 214 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 215 | as_ln_s=ln |
| 216 | else |
| 217 | as_ln_s='cp -p' |
| 218 | fi |
| 219 | rm -f conf$$ conf$$.exe conf$$.file |
| 220 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 221 | if mkdir -p . 2>/dev/null; then |
| 222 | as_mkdir_p=: |
| 223 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 224 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 225 | as_mkdir_p=false |
| 226 | fi |
| 227 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 228 | as_executable_p="test -f" |
| 229 | |
| 230 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 231 | 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] | 232 | |
| 233 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 234 | 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] | 235 | |
| 236 | |
| 237 | # IFS |
| 238 | # We need space, tab and new line, in precisely that order. |
| 239 | as_nl=' |
| 240 | ' |
| 241 | IFS=" $as_nl" |
| 242 | |
| 243 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 244 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 245 | |
| 246 | |
| 247 | # Name of the host. |
| 248 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 249 | # so uname gets run too. |
| 250 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 251 | |
| 252 | exec 6>&1 |
| 253 | |
| 254 | # |
| 255 | # Initializations. |
| 256 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 257 | ac_default_prefix=/usr/local |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 258 | ac_config_libobj_dir=. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 259 | cross_compiling=no |
| 260 | subdirs= |
| 261 | MFLAGS= |
| 262 | MAKEFLAGS= |
| 263 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 264 | |
| 265 | # Maximum number of lines to put in a shell here document. |
| 266 | # This variable seems obsolete. It should probably be removed, and |
| 267 | # only ac_max_sed_lines should be used. |
| 268 | : ${ac_max_here_lines=38} |
| 269 | |
| 270 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 271 | PACKAGE_NAME='python' |
| 272 | PACKAGE_TARNAME='python' |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 273 | PACKAGE_VERSION='2.5' |
| 274 | PACKAGE_STRING='python 2.5' |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 275 | PACKAGE_BUGREPORT='http://www.python.org/python-bugs' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 276 | |
| 277 | ac_unique_file="Include/object.h" |
| 278 | # Factoring default headers for most tests. |
| 279 | ac_includes_default="\ |
| 280 | #include <stdio.h> |
| 281 | #if HAVE_SYS_TYPES_H |
| 282 | # include <sys/types.h> |
| 283 | #endif |
| 284 | #if HAVE_SYS_STAT_H |
| 285 | # include <sys/stat.h> |
| 286 | #endif |
| 287 | #if STDC_HEADERS |
| 288 | # include <stdlib.h> |
| 289 | # include <stddef.h> |
| 290 | #else |
| 291 | # if HAVE_STDLIB_H |
| 292 | # include <stdlib.h> |
| 293 | # endif |
| 294 | #endif |
| 295 | #if HAVE_STRING_H |
| 296 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 297 | # include <memory.h> |
| 298 | # endif |
| 299 | # include <string.h> |
| 300 | #endif |
| 301 | #if HAVE_STRINGS_H |
| 302 | # include <strings.h> |
| 303 | #endif |
| 304 | #if HAVE_INTTYPES_H |
| 305 | # include <inttypes.h> |
| 306 | #else |
| 307 | # if HAVE_STDINT_H |
| 308 | # include <stdint.h> |
| 309 | # endif |
| 310 | #endif |
| 311 | #if HAVE_UNISTD_H |
| 312 | # include <unistd.h> |
| 313 | #endif" |
| 314 | |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 315 | 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 SVNVERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS OTHER_LIBTOOL_OPT 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] | 316 | ac_subst_files='' |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 317 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 318 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 319 | ac_init_help= |
| 320 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 321 | # The variables have the same names as the options, with |
| 322 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 323 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 324 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 325 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 326 | no_recursion= |
| 327 | prefix=NONE |
| 328 | program_prefix=NONE |
| 329 | program_suffix=NONE |
| 330 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 331 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 332 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 333 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 334 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 335 | x_includes=NONE |
| 336 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 337 | |
| 338 | # Installation directory options. |
| 339 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 340 | # and all the variables that are supposed to be based on exec_prefix |
| 341 | # by default will actually change. |
| 342 | # 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] | 343 | bindir='${exec_prefix}/bin' |
| 344 | sbindir='${exec_prefix}/sbin' |
| 345 | libexecdir='${exec_prefix}/libexec' |
| 346 | datadir='${prefix}/share' |
| 347 | sysconfdir='${prefix}/etc' |
| 348 | sharedstatedir='${prefix}/com' |
| 349 | localstatedir='${prefix}/var' |
| 350 | libdir='${exec_prefix}/lib' |
| 351 | includedir='${prefix}/include' |
| 352 | oldincludedir='/usr/include' |
| 353 | infodir='${prefix}/info' |
| 354 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 355 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 356 | ac_prev= |
| 357 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 358 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 359 | # If the previous option needs an argument, assign it. |
| 360 | if test -n "$ac_prev"; then |
| 361 | eval "$ac_prev=\$ac_option" |
| 362 | ac_prev= |
| 363 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 364 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 365 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 366 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 367 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 368 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 369 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 370 | case $ac_option in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 371 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 372 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 373 | ac_prev=bindir ;; |
| 374 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 375 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 376 | |
| 377 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 378 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 379 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 380 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 381 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 382 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 383 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 384 | ac_prev=cache_file ;; |
| 385 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 386 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 387 | cache_file=$ac_optarg ;; |
| 388 | |
| 389 | --config-cache | -C) |
| 390 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 391 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 392 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 393 | ac_prev=datadir ;; |
| 394 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 395 | | --da=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 396 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 397 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 398 | -disable-* | --disable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 399 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 400 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 401 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 402 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 403 | { (exit 1); exit 1; }; } |
| 404 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 405 | eval "enable_$ac_feature=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 406 | |
| 407 | -enable-* | --enable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 408 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 409 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 410 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 411 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 412 | { (exit 1); exit 1; }; } |
| 413 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 414 | case $ac_option in |
| 415 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 416 | *) ac_optarg=yes ;; |
| 417 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 418 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 419 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 420 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 421 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 422 | | --exec | --exe | --ex) |
| 423 | ac_prev=exec_prefix ;; |
| 424 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 425 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 426 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 427 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 428 | |
| 429 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 430 | # Obsolete; use --with-gas. |
| 431 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 432 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 433 | -help | --help | --hel | --he | -h) |
| 434 | ac_init_help=long ;; |
| 435 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 436 | ac_init_help=recursive ;; |
| 437 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 438 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 439 | |
| 440 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 441 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 442 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 443 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 444 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 445 | -includedir | --includedir | --includedi | --included | --include \ |
| 446 | | --includ | --inclu | --incl | --inc) |
| 447 | ac_prev=includedir ;; |
| 448 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 449 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 450 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 451 | |
| 452 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 453 | ac_prev=infodir ;; |
| 454 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 455 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 456 | |
| 457 | -libdir | --libdir | --libdi | --libd) |
| 458 | ac_prev=libdir ;; |
| 459 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 460 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 461 | |
| 462 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 463 | | --libexe | --libex | --libe) |
| 464 | ac_prev=libexecdir ;; |
| 465 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 466 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 467 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 468 | |
| 469 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 470 | | --localstate | --localstat | --localsta | --localst \ |
| 471 | | --locals | --local | --loca | --loc | --lo) |
| 472 | ac_prev=localstatedir ;; |
| 473 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 474 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 475 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 476 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 477 | |
| 478 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 479 | ac_prev=mandir ;; |
| 480 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 481 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 482 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 483 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 484 | # Obsolete; use --without-fp. |
| 485 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 486 | |
| 487 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 488 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 489 | no_create=yes ;; |
| 490 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 491 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 492 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 493 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 494 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 495 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 496 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 497 | | --oldin | --oldi | --old | --ol | --o) |
| 498 | ac_prev=oldincludedir ;; |
| 499 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 500 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 501 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 502 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 503 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 504 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 505 | ac_prev=prefix ;; |
| 506 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 507 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 508 | |
| 509 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 510 | | --program-pre | --program-pr | --program-p) |
| 511 | ac_prev=program_prefix ;; |
| 512 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 513 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 514 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 515 | |
| 516 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 517 | | --program-suf | --program-su | --program-s) |
| 518 | ac_prev=program_suffix ;; |
| 519 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 520 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 521 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 522 | |
| 523 | -program-transform-name | --program-transform-name \ |
| 524 | | --program-transform-nam | --program-transform-na \ |
| 525 | | --program-transform-n | --program-transform- \ |
| 526 | | --program-transform | --program-transfor \ |
| 527 | | --program-transfo | --program-transf \ |
| 528 | | --program-trans | --program-tran \ |
| 529 | | --progr-tra | --program-tr | --program-t) |
| 530 | ac_prev=program_transform_name ;; |
| 531 | -program-transform-name=* | --program-transform-name=* \ |
| 532 | | --program-transform-nam=* | --program-transform-na=* \ |
| 533 | | --program-transform-n=* | --program-transform-=* \ |
| 534 | | --program-transform=* | --program-transfor=* \ |
| 535 | | --program-transfo=* | --program-transf=* \ |
| 536 | | --program-trans=* | --program-tran=* \ |
| 537 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 538 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 539 | |
| 540 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 541 | | -silent | --silent | --silen | --sile | --sil) |
| 542 | silent=yes ;; |
| 543 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 544 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 545 | ac_prev=sbindir ;; |
| 546 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 547 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 548 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 549 | |
| 550 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 551 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 552 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 553 | | --sha | --sh) |
| 554 | ac_prev=sharedstatedir ;; |
| 555 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 556 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 557 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 558 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 559 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 560 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 561 | -site | --site | --sit) |
| 562 | ac_prev=site ;; |
| 563 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 564 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 565 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 566 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 567 | ac_prev=srcdir ;; |
| 568 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 570 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 571 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 572 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 573 | ac_prev=sysconfdir ;; |
| 574 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 575 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 576 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 577 | |
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 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 580 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 581 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 582 | |
| 583 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 584 | verbose=yes ;; |
| 585 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 586 | -version | --version | --versio | --versi | --vers | -V) |
| 587 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 588 | |
| 589 | -with-* | --with-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 590 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 591 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 592 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 593 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 594 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 595 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 596 | case $ac_option in |
| 597 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 598 | *) ac_optarg=yes ;; |
| 599 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 600 | eval "with_$ac_package='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 601 | |
| 602 | -without-* | --without-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 603 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 604 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 605 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 606 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 607 | { (exit 1); exit 1; }; } |
| 608 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 609 | eval "with_$ac_package=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 610 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 611 | --x) |
| 612 | # Obsolete; use --with-x. |
| 613 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 614 | |
| 615 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 616 | | --x-incl | --x-inc | --x-in | --x-i) |
| 617 | ac_prev=x_includes ;; |
| 618 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 619 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 620 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 621 | |
| 622 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 623 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 624 | ac_prev=x_libraries ;; |
| 625 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 626 | | --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] | 627 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 628 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 629 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 630 | Try \`$0 --help' for more information." >&2 |
| 631 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 632 | ;; |
| 633 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 634 | *=*) |
| 635 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 636 | # Reject names that are not valid shell variable names. |
| 637 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 638 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 639 | { (exit 1); exit 1; }; } |
| 640 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 641 | eval "$ac_envvar='$ac_optarg'" |
| 642 | export $ac_envvar ;; |
| 643 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 644 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 645 | # FIXME: should be removed in autoconf 3.0. |
| 646 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 647 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 648 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 649 | : ${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] | 650 | ;; |
| 651 | |
| 652 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 653 | done |
| 654 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 655 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 656 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 657 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 658 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 659 | fi |
| 660 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 661 | # Be sure to have absolute paths. |
| 662 | for ac_var in exec_prefix prefix |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 663 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 664 | eval ac_val=$`echo $ac_var` |
| 665 | case $ac_val in |
| 666 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 667 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 668 | { (exit 1); exit 1; }; };; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 669 | esac |
| 670 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 672 | # Be sure to have absolute paths. |
| 673 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 674 | localstatedir libdir includedir oldincludedir infodir mandir |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 675 | do |
| 676 | eval ac_val=$`echo $ac_var` |
| 677 | case $ac_val in |
| 678 | [\\/$]* | ?:[\\/]* ) ;; |
| 679 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 680 | { (exit 1); exit 1; }; };; |
| 681 | esac |
| 682 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 683 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 684 | # There might be people who depend on the old broken behavior: `$host' |
| 685 | # used to hold the argument of --host etc. |
| 686 | # FIXME: To remove some day. |
| 687 | build=$build_alias |
| 688 | host=$host_alias |
| 689 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 690 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 691 | # FIXME: To remove some day. |
| 692 | if test "x$host_alias" != x; then |
| 693 | if test "x$build_alias" = x; then |
| 694 | cross_compiling=maybe |
| 695 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 696 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 697 | elif test "x$build_alias" != "x$host_alias"; then |
| 698 | cross_compiling=yes |
| 699 | fi |
| 700 | fi |
| 701 | |
| 702 | ac_tool_prefix= |
| 703 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 704 | |
| 705 | test "$silent" = yes && exec 6>/dev/null |
| 706 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 707 | |
| 708 | # Find the source files, if location was not specified. |
| 709 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 710 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 711 | # Try the directory containing this script, then its parent. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 712 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 713 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 714 | X"$0" : 'X\(//\)[^/]' \| \ |
| 715 | X"$0" : 'X\(//\)$' \| \ |
| 716 | X"$0" : 'X\(/\)' \| \ |
| 717 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 718 | echo X"$0" | |
| 719 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 720 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 721 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 722 | /^X\(\/\).*/{ s//\1/; q; } |
| 723 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 724 | srcdir=$ac_confdir |
| 725 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 726 | srcdir=.. |
| 727 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 728 | else |
| 729 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 730 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 731 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 732 | if test "$ac_srcdir_defaulted" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 734 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 735 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 736 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 737 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 738 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 739 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 740 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 741 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 742 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 743 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 744 | ac_env_build_alias_set=${build_alias+set} |
| 745 | ac_env_build_alias_value=$build_alias |
| 746 | ac_cv_env_build_alias_set=${build_alias+set} |
| 747 | ac_cv_env_build_alias_value=$build_alias |
| 748 | ac_env_host_alias_set=${host_alias+set} |
| 749 | ac_env_host_alias_value=$host_alias |
| 750 | ac_cv_env_host_alias_set=${host_alias+set} |
| 751 | ac_cv_env_host_alias_value=$host_alias |
| 752 | ac_env_target_alias_set=${target_alias+set} |
| 753 | ac_env_target_alias_value=$target_alias |
| 754 | ac_cv_env_target_alias_set=${target_alias+set} |
| 755 | ac_cv_env_target_alias_value=$target_alias |
| 756 | ac_env_CC_set=${CC+set} |
| 757 | ac_env_CC_value=$CC |
| 758 | ac_cv_env_CC_set=${CC+set} |
| 759 | ac_cv_env_CC_value=$CC |
| 760 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 761 | ac_env_CFLAGS_value=$CFLAGS |
| 762 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 763 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 764 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 765 | ac_env_LDFLAGS_value=$LDFLAGS |
| 766 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 767 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 768 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 769 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 770 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 771 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 772 | ac_env_CPP_set=${CPP+set} |
| 773 | ac_env_CPP_value=$CPP |
| 774 | ac_cv_env_CPP_set=${CPP+set} |
| 775 | ac_cv_env_CPP_value=$CPP |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 776 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 777 | # |
| 778 | # Report the --help message. |
| 779 | # |
| 780 | if test "$ac_init_help" = "long"; then |
| 781 | # Omit some internal or obsolete options to make the list less imposing. |
| 782 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 783 | cat <<_ACEOF |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 784 | \`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] | 785 | |
| 786 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 787 | |
| 788 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 789 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 790 | |
| 791 | Defaults for the options are specified in brackets. |
| 792 | |
| 793 | Configuration: |
| 794 | -h, --help display this help and exit |
| 795 | --help=short display options specific to this package |
| 796 | --help=recursive display the short help of all the included packages |
| 797 | -V, --version display version information and exit |
| 798 | -q, --quiet, --silent do not print \`checking...' messages |
| 799 | --cache-file=FILE cache test results in FILE [disabled] |
| 800 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 801 | -n, --no-create do not create output files |
| 802 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 803 | |
| 804 | _ACEOF |
| 805 | |
| 806 | cat <<_ACEOF |
| 807 | Installation directories: |
| 808 | --prefix=PREFIX install architecture-independent files in PREFIX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 809 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 810 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 811 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 812 | |
| 813 | By default, \`make install' will install all the files in |
| 814 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 815 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 816 | for instance \`--prefix=\$HOME'. |
| 817 | |
| 818 | For better control, use the options below. |
| 819 | |
| 820 | Fine tuning of the installation directories: |
| 821 | --bindir=DIR user executables [EPREFIX/bin] |
| 822 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 823 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 824 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 825 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 826 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 827 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 828 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 829 | --includedir=DIR C header files [PREFIX/include] |
| 830 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 831 | --infodir=DIR info documentation [PREFIX/info] |
| 832 | --mandir=DIR man documentation [PREFIX/man] |
| 833 | _ACEOF |
| 834 | |
| 835 | cat <<\_ACEOF |
| 836 | _ACEOF |
| 837 | fi |
| 838 | |
| 839 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 840 | case $ac_init_help in |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 841 | short | recursive ) echo "Configuration of python 2.5:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 842 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 843 | cat <<\_ACEOF |
| 844 | |
| 845 | Optional Features: |
| 846 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 847 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 848 | --enable-framework[=INSTALLDIR] |
| 849 | Build (MacOSX|Darwin) framework |
| 850 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 851 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 852 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 853 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 854 | --disable-ipv6 Disable ipv6 support |
| 855 | --enable-unicode[=ucs[24]] |
| 856 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 857 | |
| 858 | Optional Packages: |
| 859 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 860 | --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] | 861 | --without-gcc never use gcc |
| 862 | --with-cxx=<compiler> enable C++ support |
| 863 | --with-suffix=.exe set executable suffix |
| 864 | --with-pydebug build with Py_DEBUG defined |
| 865 | --with-libs='lib1 ...' link against additional libs |
| 866 | --with-signal-module disable/enable signal module |
| 867 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 868 | --with(out)-threads[=DIRECTORY] |
| 869 | disable/enable thread support |
| 870 | --with(out)-thread[=DIRECTORY] |
| 871 | deprecated; use --with(out)-threads |
| 872 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 873 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 874 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 875 | --with(out)-pymalloc disable/enable specialized mallocs |
| 876 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 877 | --with-fpectl enable SIGFPE catching |
| 878 | --with-libm=STRING math library |
| 879 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 880 | |
| 881 | Some influential environment variables: |
| 882 | CC C compiler command |
| 883 | CFLAGS C compiler flags |
| 884 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 885 | nonstandard directory <lib dir> |
| 886 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 887 | headers in a nonstandard directory <include dir> |
| 888 | CPP C preprocessor |
| 889 | |
| 890 | Use these variables to override the choices made by `configure' or to help |
| 891 | it to find libraries and programs with nonstandard names/locations. |
| 892 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 893 | Report bugs to <http://www.python.org/python-bugs>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 894 | _ACEOF |
| 895 | fi |
| 896 | |
| 897 | if test "$ac_init_help" = "recursive"; then |
| 898 | # If there are subdirs, report their specific --help. |
| 899 | ac_popdir=`pwd` |
| 900 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 901 | test -d $ac_dir || continue |
| 902 | ac_builddir=. |
| 903 | |
| 904 | if test "$ac_dir" != .; then |
| 905 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 906 | # A "../" for each directory in $ac_dir_suffix. |
| 907 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 908 | else |
| 909 | ac_dir_suffix= ac_top_builddir= |
| 910 | fi |
| 911 | |
| 912 | case $srcdir in |
| 913 | .) # No --srcdir option. We are building in place. |
| 914 | ac_srcdir=. |
| 915 | if test -z "$ac_top_builddir"; then |
| 916 | ac_top_srcdir=. |
| 917 | else |
| 918 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 919 | fi ;; |
| 920 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 921 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 922 | ac_top_srcdir=$srcdir ;; |
| 923 | *) # Relative path. |
| 924 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 925 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 926 | esac |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 927 | |
| 928 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 929 | # the directories may not exist. |
| 930 | case `pwd` in |
| 931 | .) ac_abs_builddir="$ac_dir";; |
| 932 | *) |
| 933 | case "$ac_dir" in |
| 934 | .) ac_abs_builddir=`pwd`;; |
| 935 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 936 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 937 | esac;; |
| 938 | esac |
| 939 | case $ac_abs_builddir in |
| 940 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 941 | *) |
| 942 | case ${ac_top_builddir}. in |
| 943 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 944 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 945 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 946 | esac;; |
| 947 | esac |
| 948 | case $ac_abs_builddir in |
| 949 | .) ac_abs_srcdir=$ac_srcdir;; |
| 950 | *) |
| 951 | case $ac_srcdir in |
| 952 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 953 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 954 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 955 | esac;; |
| 956 | esac |
| 957 | case $ac_abs_builddir in |
| 958 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 959 | *) |
| 960 | case $ac_top_srcdir in |
| 961 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 962 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 963 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 964 | esac;; |
| 965 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 966 | |
| 967 | cd $ac_dir |
| 968 | # Check for guested configure; otherwise get Cygnus style configure. |
| 969 | if test -f $ac_srcdir/configure.gnu; then |
| 970 | echo |
| 971 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 972 | elif test -f $ac_srcdir/configure; then |
| 973 | echo |
| 974 | $SHELL $ac_srcdir/configure --help=recursive |
| 975 | elif test -f $ac_srcdir/configure.ac || |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 976 | test -f $ac_srcdir/configure.in; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 977 | echo |
| 978 | $ac_configure --help |
| 979 | else |
| 980 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 981 | fi |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 982 | cd $ac_popdir |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 983 | done |
| 984 | fi |
| 985 | |
| 986 | test -n "$ac_init_help" && exit 0 |
| 987 | if $ac_init_version; then |
| 988 | cat <<\_ACEOF |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 989 | python configure 2.5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 990 | generated by GNU Autoconf 2.59 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 991 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 992 | Copyright (C) 2003 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 993 | This configure script is free software; the Free Software Foundation |
| 994 | gives unlimited permission to copy, distribute and modify it. |
| 995 | _ACEOF |
| 996 | exit 0 |
| 997 | fi |
| 998 | exec 5>config.log |
| 999 | cat >&5 <<_ACEOF |
| 1000 | This file contains any messages produced by compilers while |
| 1001 | running configure, to aid debugging if configure makes a mistake. |
| 1002 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 1003 | It was created by python $as_me 2.5, which was |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1004 | generated by GNU Autoconf 2.59. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1005 | |
| 1006 | $ $0 $@ |
| 1007 | |
| 1008 | _ACEOF |
| 1009 | { |
| 1010 | cat <<_ASUNAME |
| 1011 | ## --------- ## |
| 1012 | ## Platform. ## |
| 1013 | ## --------- ## |
| 1014 | |
| 1015 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1016 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1017 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1018 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1019 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1020 | |
| 1021 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1022 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1023 | |
| 1024 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1025 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1026 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1027 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1028 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1029 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1030 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1031 | |
| 1032 | _ASUNAME |
| 1033 | |
| 1034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1035 | for as_dir in $PATH |
| 1036 | do |
| 1037 | IFS=$as_save_IFS |
| 1038 | test -z "$as_dir" && as_dir=. |
| 1039 | echo "PATH: $as_dir" |
| 1040 | done |
| 1041 | |
| 1042 | } >&5 |
| 1043 | |
| 1044 | cat >&5 <<_ACEOF |
| 1045 | |
| 1046 | |
| 1047 | ## ----------- ## |
| 1048 | ## Core tests. ## |
| 1049 | ## ----------- ## |
| 1050 | |
| 1051 | _ACEOF |
| 1052 | |
| 1053 | |
| 1054 | # Keep a trace of the command line. |
| 1055 | # 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] | 1056 | # 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] | 1057 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1058 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1059 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1060 | ac_configure_args0= |
| 1061 | ac_configure_args1= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1062 | ac_sep= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1063 | ac_must_keep_next=false |
| 1064 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1065 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1066 | for ac_arg |
| 1067 | do |
| 1068 | case $ac_arg in |
| 1069 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1070 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1071 | | -silent | --silent | --silen | --sile | --sil) |
| 1072 | continue ;; |
| 1073 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1074 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1075 | esac |
| 1076 | case $ac_pass in |
| 1077 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1078 | 2) |
| 1079 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1080 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1081 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1082 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1083 | case $ac_arg in |
| 1084 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1085 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1086 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1087 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1088 | case "$ac_configure_args0 " in |
| 1089 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1090 | esac |
| 1091 | ;; |
| 1092 | -* ) ac_must_keep_next=true ;; |
| 1093 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1094 | fi |
| 1095 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1096 | # Get rid of the leading space. |
| 1097 | ac_sep=" " |
| 1098 | ;; |
| 1099 | esac |
| 1100 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1101 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1102 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1103 | $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] | 1104 | |
| 1105 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1106 | # config.log. We remove comments because anyway the quotes in there |
| 1107 | # would cause problems or look ugly. |
| 1108 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1109 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1110 | trap 'exit_status=$? |
| 1111 | # Save into config.log some information that might help in debugging. |
| 1112 | { |
| 1113 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1114 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1115 | cat <<\_ASBOX |
| 1116 | ## ---------------- ## |
| 1117 | ## Cache variables. ## |
| 1118 | ## ---------------- ## |
| 1119 | _ASBOX |
| 1120 | echo |
| 1121 | # The following way of writing the cache mishandles newlines in values, |
| 1122 | { |
| 1123 | (set) 2>&1 | |
| 1124 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1125 | *ac_space=\ *) |
| 1126 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1127 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1128 | 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] | 1129 | ;; |
| 1130 | *) |
| 1131 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1132 | "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] | 1133 | ;; |
| 1134 | esac; |
| 1135 | } |
| 1136 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1137 | |
| 1138 | cat <<\_ASBOX |
| 1139 | ## ----------------- ## |
| 1140 | ## Output variables. ## |
| 1141 | ## ----------------- ## |
| 1142 | _ASBOX |
| 1143 | echo |
| 1144 | for ac_var in $ac_subst_vars |
| 1145 | do |
| 1146 | eval ac_val=$`echo $ac_var` |
| 1147 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1148 | done | sort |
| 1149 | echo |
| 1150 | |
| 1151 | if test -n "$ac_subst_files"; then |
| 1152 | cat <<\_ASBOX |
| 1153 | ## ------------- ## |
| 1154 | ## Output files. ## |
| 1155 | ## ------------- ## |
| 1156 | _ASBOX |
| 1157 | echo |
| 1158 | for ac_var in $ac_subst_files |
| 1159 | do |
| 1160 | eval ac_val=$`echo $ac_var` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1161 | echo "$ac_var='"'"'$ac_val'"'"'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1162 | done | sort |
| 1163 | echo |
| 1164 | fi |
| 1165 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1166 | if test -s confdefs.h; then |
| 1167 | cat <<\_ASBOX |
| 1168 | ## ----------- ## |
| 1169 | ## confdefs.h. ## |
| 1170 | ## ----------- ## |
| 1171 | _ASBOX |
| 1172 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1173 | sed "/^$/d" confdefs.h | sort |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1174 | echo |
| 1175 | fi |
| 1176 | test "$ac_signal" != 0 && |
| 1177 | echo "$as_me: caught signal $ac_signal" |
| 1178 | echo "$as_me: exit $exit_status" |
| 1179 | } >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1180 | rm -f core *.core && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1181 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1182 | exit $exit_status |
| 1183 | ' 0 |
| 1184 | for ac_signal in 1 2 13 15; do |
| 1185 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1186 | done |
| 1187 | ac_signal=0 |
| 1188 | |
| 1189 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1190 | rm -rf conftest* confdefs.h |
| 1191 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1192 | echo >confdefs.h |
| 1193 | |
| 1194 | # Predefined preprocessor variables. |
| 1195 | |
| 1196 | cat >>confdefs.h <<_ACEOF |
| 1197 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1198 | _ACEOF |
| 1199 | |
| 1200 | |
| 1201 | cat >>confdefs.h <<_ACEOF |
| 1202 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1203 | _ACEOF |
| 1204 | |
| 1205 | |
| 1206 | cat >>confdefs.h <<_ACEOF |
| 1207 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1208 | _ACEOF |
| 1209 | |
| 1210 | |
| 1211 | cat >>confdefs.h <<_ACEOF |
| 1212 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1213 | _ACEOF |
| 1214 | |
| 1215 | |
| 1216 | cat >>confdefs.h <<_ACEOF |
| 1217 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1218 | _ACEOF |
| 1219 | |
| 1220 | |
| 1221 | # 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] | 1222 | # Prefer explicitly selected file to automatically selected ones. |
| 1223 | if test -z "$CONFIG_SITE"; then |
| 1224 | if test "x$prefix" != xNONE; then |
| 1225 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1226 | else |
| 1227 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1228 | fi |
| 1229 | fi |
| 1230 | for ac_site_file in $CONFIG_SITE; do |
| 1231 | if test -r "$ac_site_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1232 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1233 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1234 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1235 | . "$ac_site_file" |
| 1236 | fi |
| 1237 | done |
| 1238 | |
| 1239 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1240 | # Some versions of bash will fail to source /dev/null (special |
| 1241 | # files actually), so we avoid doing that. |
| 1242 | if test -f "$cache_file"; then |
| 1243 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1244 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1245 | case $cache_file in |
| 1246 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1247 | *) . ./$cache_file;; |
| 1248 | esac |
| 1249 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1250 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1251 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1252 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1253 | >$cache_file |
| 1254 | fi |
| 1255 | |
| 1256 | # Check that the precious variables saved in the cache have kept the same |
| 1257 | # value. |
| 1258 | ac_cache_corrupted=false |
| 1259 | for ac_var in `(set) 2>&1 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1260 | 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] | 1261 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1262 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1263 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1264 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1265 | case $ac_old_set,$ac_new_set in |
| 1266 | set,) |
| 1267 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1268 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1269 | ac_cache_corrupted=: ;; |
| 1270 | ,set) |
| 1271 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1272 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1273 | ac_cache_corrupted=: ;; |
| 1274 | ,);; |
| 1275 | *) |
| 1276 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1277 | { 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] | 1278 | 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] | 1279 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1280 | echo "$as_me: former value: $ac_old_val" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1281 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1282 | echo "$as_me: current value: $ac_new_val" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1283 | ac_cache_corrupted=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1284 | fi;; |
| 1285 | esac |
| 1286 | # Pass precious variables to config.status. |
| 1287 | if test "$ac_new_set" = set; then |
| 1288 | case $ac_new_val in |
| 1289 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1290 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1291 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1292 | esac |
| 1293 | case " $ac_configure_args " in |
| 1294 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1295 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1296 | esac |
| 1297 | fi |
| 1298 | done |
| 1299 | if $ac_cache_corrupted; then |
| 1300 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1301 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1302 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1303 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1304 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1305 | fi |
| 1306 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1307 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1308 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1309 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1310 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1311 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1312 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1313 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1314 | |
| 1315 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1316 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1317 | |
| 1318 | |
| 1319 | |
| 1320 | |
| 1321 | |
| 1322 | |
| 1323 | |
| 1324 | |
| 1325 | |
| 1326 | |
| 1327 | |
| 1328 | |
| 1329 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1330 | |
| 1331 | |
| 1332 | |
| 1333 | |
| 1334 | |
| 1335 | |
| 1336 | |
| 1337 | |
| 1338 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1339 | |
| 1340 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1341 | |
| 1342 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1343 | |
| 1344 | |
| 1345 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1346 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1347 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1348 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1349 | # with other autoconf-based packages that include Python.h |
| 1350 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1351 | rm confdefs.h |
| 1352 | mv confdefs.h.new confdefs.h |
| 1353 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1354 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 1355 | VERSION=2.5 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1356 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1357 | |
| 1358 | SOVERSION=1.0 |
| 1359 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1360 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1361 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1362 | |
| 1363 | cat >>confdefs.h <<\_ACEOF |
| 1364 | #define _GNU_SOURCE 1 |
| 1365 | _ACEOF |
| 1366 | |
| 1367 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1368 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1369 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1370 | # them. |
| 1371 | |
| 1372 | cat >>confdefs.h <<\_ACEOF |
| 1373 | #define _NETBSD_SOURCE 1 |
| 1374 | _ACEOF |
| 1375 | |
| 1376 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1377 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1378 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1379 | # them. |
| 1380 | |
| 1381 | cat >>confdefs.h <<\_ACEOF |
| 1382 | #define __BSD_VISIBLE 1 |
| 1383 | _ACEOF |
| 1384 | |
| 1385 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1386 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1387 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1388 | |
| 1389 | cat >>confdefs.h <<\_ACEOF |
| 1390 | #define _BSD_TYPES 1 |
| 1391 | _ACEOF |
| 1392 | |
| 1393 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1394 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1395 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1396 | # Arguments passed to configure. |
| 1397 | |
| 1398 | CONFIG_ARGS="$ac_configure_args" |
| 1399 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1400 | # Check whether --enable-framework or --disable-framework was given. |
| 1401 | if test "${enable_framework+set}" = set; then |
| 1402 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1403 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1404 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1405 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1406 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1407 | esac |
| 1408 | case $enableval in |
| 1409 | no) |
| 1410 | PYTHONFRAMEWORK= |
| 1411 | PYTHONFRAMEWORKDIR=no-framework |
| 1412 | PYTHONFRAMEWORKPREFIX= |
| 1413 | PYTHONFRAMEWORKINSTALLDIR= |
| 1414 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1415 | ;; |
| 1416 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1417 | PYTHONFRAMEWORK=Python |
| 1418 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1419 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1420 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1421 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1422 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1423 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1424 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1425 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1426 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1427 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1428 | PYTHONFRAMEWORKPREFIX= |
| 1429 | PYTHONFRAMEWORKINSTALLDIR= |
| 1430 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1431 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1432 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1433 | |
| 1434 | |
| 1435 | |
| 1436 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1437 | |
| 1438 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1439 | ## AC_HELP_STRING(--with-dyld, |
| 1440 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1441 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1442 | # Set name for machine-dependent library files |
| 1443 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1444 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1445 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1446 | if test -z "$MACHDEP" |
| 1447 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1448 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1449 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1450 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1451 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1452 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1453 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1454 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1455 | ac_md_system=`echo $ac_sys_system | |
| 1456 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1457 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1458 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1459 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1460 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1461 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1462 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1463 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1464 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 1465 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1466 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1467 | esac |
| 1468 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1469 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1470 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 1471 | # disable features if it is defined, without any means to access these |
| 1472 | # features as extensions. For these systems, we skip the definition of |
| 1473 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 1474 | # some feature, make sure there is no alternative way to access this |
| 1475 | # feature. Also, when using wildcards, make sure you have verified the |
| 1476 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 1477 | # wildcard, and that the wildcard does not include future systems |
| 1478 | # (which may remove their limitations). |
| 1479 | case $ac_sys_system/$ac_sys_release in |
| 1480 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 1481 | # 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] | 1482 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Neal Norwitz | 671b9e3 | 2006-01-09 07:07:12 +0000 | [diff] [blame] | 1483 | OpenBSD/2.* | OpenBSD/3.[012345678]) |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1484 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 1485 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 1486 | # of union __?sigval. Reported by Stuart Bishop. |
| 1487 | SunOS/5.6) |
| 1488 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1489 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 1490 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 1491 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 1492 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1493 | define_xopen_source=no;; |
| 1494 | # 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] | 1495 | # 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] | 1496 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 1497 | define_xopen_source=no;; |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 1498 | # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that |
| 1499 | # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently, |
| 1500 | # this is fixed in 10.3, which identifies itself as Darwin/7.* |
| 1501 | # This should hopefully be fixed in FreeBSD 4.9 |
| 1502 | FreeBSD/4.8* | Darwin/6* ) |
| 1503 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 1504 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 1505 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 1506 | # 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] | 1507 | AIX/4) |
| 1508 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 1509 | AIX/5) |
| 1510 | if test `uname -r` -eq 1; then |
| 1511 | define_xopen_source=no |
| 1512 | fi |
| 1513 | ;; |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 1514 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 1515 | # disables platform specific features beyond repair. |
| 1516 | Darwin/8.*) |
| 1517 | define_xopen_source=no |
| 1518 | ;; |
| 1519 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1520 | esac |
| 1521 | |
| 1522 | if test $define_xopen_source = yes |
| 1523 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1524 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 1525 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 1526 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 1527 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1528 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 1529 | SunOS/5.8|SunOS/5.9|SunOS/5.10) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1530 | |
| 1531 | cat >>confdefs.h <<\_ACEOF |
| 1532 | #define _XOPEN_SOURCE 500 |
| 1533 | _ACEOF |
| 1534 | |
| 1535 | ;; |
| 1536 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1537 | |
| 1538 | cat >>confdefs.h <<\_ACEOF |
| 1539 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1540 | _ACEOF |
| 1541 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1542 | ;; |
| 1543 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1544 | |
| 1545 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 1546 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 1547 | # several APIs are not declared. Since this is also needed in some |
| 1548 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 1549 | # except for Solaris 10, where it must not be defined, |
| 1550 | # as it implies XPG4.2 |
| 1551 | case $ac_sys_system/$ac_sys_release in |
| 1552 | SunOS/5.10) |
| 1553 | ;; |
| 1554 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1555 | |
| 1556 | cat >>confdefs.h <<\_ACEOF |
| 1557 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 1558 | _ACEOF |
| 1559 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 1560 | ;; |
| 1561 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1562 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 1563 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1564 | cat >>confdefs.h <<\_ACEOF |
| 1565 | #define _POSIX_C_SOURCE 200112L |
| 1566 | _ACEOF |
| 1567 | |
| 1568 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1569 | fi |
| 1570 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1571 | # |
| 1572 | # SGI compilers allow the specification of the both the ABI and the |
| 1573 | # ISA on the command line. Depending on the values of these switches, |
| 1574 | # different and often incompatable code will be generated. |
| 1575 | # |
| 1576 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1577 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1578 | # variable is also adjusted. |
| 1579 | # |
| 1580 | |
| 1581 | if test ! -z "$SGI_ABI" |
| 1582 | then |
| 1583 | CC="cc $SGI_ABI" |
| 1584 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1585 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1586 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1587 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1588 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1589 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1590 | # And add extra plat-mac for darwin |
| 1591 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1592 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1593 | echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 1594 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6 |
| 1595 | if test -z "$EXTRAPLATDIR" |
| 1596 | then |
| 1597 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1598 | darwin) |
| 1599 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 1600 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 1601 | ;; |
| 1602 | *) |
| 1603 | EXTRAPLATDIR="" |
| 1604 | EXTRAMACHDEPPATH="" |
| 1605 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1606 | esac |
| 1607 | fi |
| 1608 | echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 1609 | echo "${ECHO_T}$EXTRAPLATDIR" >&6 |
| 1610 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 1611 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 1612 | # it may influence the way we can build extensions, so distutils |
| 1613 | # needs to check it |
| 1614 | |
| 1615 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
| 1616 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1617 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1618 | |
| 1619 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 1620 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 1621 | # just to get things to compile and link. Users are free to override OPT |
| 1622 | # when running configure or make. The build should not break if they do. |
| 1623 | # BASECFLAGS should generally not be messed with, however. |
| 1624 | |
| 1625 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 1626 | # on that fiddles with OPT and BASECFLAGS? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1627 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1628 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1629 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1630 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1631 | if test "${with_gcc+set}" = set; then |
| 1632 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1633 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1634 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1635 | no) CC=cc |
| 1636 | without_gcc=yes;; |
| 1637 | yes) CC=gcc |
| 1638 | without_gcc=no;; |
| 1639 | *) CC=$withval |
| 1640 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1641 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1642 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1643 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1644 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1645 | AIX*) CC=cc_r |
| 1646 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1647 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1648 | case $BE_HOST_CPU in |
| 1649 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1650 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1651 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1652 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 1653 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1654 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1655 | ;; |
| 1656 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1657 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1658 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1659 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1660 | ;; |
| 1661 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1662 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1663 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1664 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1665 | ;; |
| 1666 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1667 | AR="\$(srcdir)/Modules/ar_beos" |
| 1668 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1669 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1670 | Monterey*) |
| 1671 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1672 | without_gcc=;; |
| 1673 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1674 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1675 | fi; |
| 1676 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1677 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1678 | |
| 1679 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1680 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1681 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1682 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1683 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1684 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1685 | # Check whether --with-cxx or --without-cxx was given. |
| 1686 | if test "${with_cxx+set}" = set; then |
| 1687 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1688 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1689 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1690 | case $withval in |
| 1691 | no) CXX= |
| 1692 | with_cxx=no;; |
| 1693 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1694 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1695 | with_cxx=$withval;; |
| 1696 | esac |
| 1697 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1698 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1699 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1700 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1701 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1702 | fi; |
| 1703 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1704 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1705 | |
| 1706 | if test "$with_cxx" = "yes" |
| 1707 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1708 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1709 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1710 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1711 | fi |
| 1712 | |
| 1713 | |
| 1714 | |
| 1715 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1716 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1717 | then |
| 1718 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1719 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1720 | # 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] | 1721 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1722 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1723 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1724 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1726 | else |
| 1727 | if test -n "$CXX"; then |
| 1728 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1729 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1731 | for as_dir in $PATH |
| 1732 | do |
| 1733 | IFS=$as_save_IFS |
| 1734 | test -z "$as_dir" && as_dir=. |
| 1735 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1736 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1737 | ac_cv_prog_CXX="$ac_prog" |
| 1738 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1739 | break 2 |
| 1740 | fi |
| 1741 | done |
| 1742 | done |
| 1743 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1744 | fi |
| 1745 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1746 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1747 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1748 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1749 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1750 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1751 | echo "$as_me:$LINENO: result: no" >&5 |
| 1752 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1753 | fi |
| 1754 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1755 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1756 | done |
| 1757 | test -n "$CXX" || CXX="notfound" |
| 1758 | |
| 1759 | if test "$CXX" = "notfound" |
| 1760 | then |
| 1761 | CXX= |
| 1762 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1763 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1764 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1765 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1766 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1767 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1768 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1769 | /* confdefs.h. */ |
| 1770 | _ACEOF |
| 1771 | cat confdefs.h >>conftest.$ac_ext |
| 1772 | cat >>conftest.$ac_ext <<_ACEOF |
| 1773 | /* end confdefs.h. */ |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1774 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1775 | int |
| 1776 | main () |
| 1777 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1778 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1779 | ; |
| 1780 | return 0; |
| 1781 | } |
| 1782 | _ACEOF |
| 1783 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1784 | 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] | 1785 | # Try to create an executable without -o first, disregard a.out. |
| 1786 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1787 | # of exeext. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1788 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
| 1789 | 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] | 1790 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1791 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1792 | (eval $ac_link_default) 2>&5 |
| 1793 | ac_status=$? |
| 1794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1795 | (exit $ac_status); }; then |
| 1796 | # Find the output, starting from the most likely. This scheme is |
| 1797 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1798 | # resort. |
| 1799 | |
| 1800 | # Be careful to initialize this variable, since it used to be cached. |
| 1801 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1802 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1803 | # b.out is created by i960 compilers. |
| 1804 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1805 | do |
| 1806 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1807 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1808 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1809 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1810 | conftest.$ac_ext ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1811 | # This is the source file. |
| 1812 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1813 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1814 | # We found the default executable, but exeext='' is most |
| 1815 | # certainly right. |
| 1816 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1817 | *.* ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1818 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1819 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1820 | # but it would be cool to find out if it's true. Does anybody |
| 1821 | # maintain Libtool? --akim. |
| 1822 | export ac_cv_exeext |
| 1823 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1824 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1825 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1826 | esac |
| 1827 | done |
| 1828 | else |
| 1829 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1831 | |
| 1832 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
| 1833 | See \`config.log' for more details." >&5 |
| 1834 | echo "$as_me: error: C++ compiler cannot create executables |
| 1835 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1836 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1837 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1838 | |
| 1839 | ac_exeext=$ac_cv_exeext |
| 1840 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1841 | echo "${ECHO_T}$ac_file" >&6 |
| 1842 | |
| 1843 | # Check the compiler produces executables we can run. If not, either |
| 1844 | # the compiler is broken, or we cross compile. |
| 1845 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1846 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1847 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1848 | # If not cross compiling, check that we can run a simple program. |
| 1849 | if test "$cross_compiling" != yes; then |
| 1850 | if { ac_try='./$ac_file' |
| 1851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1852 | (eval $ac_try) 2>&5 |
| 1853 | ac_status=$? |
| 1854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1855 | (exit $ac_status); }; }; then |
| 1856 | cross_compiling=no |
| 1857 | else |
| 1858 | if test "$cross_compiling" = maybe; then |
| 1859 | cross_compiling=yes |
| 1860 | else |
| 1861 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1862 | If you meant to cross compile, use \`--host'. |
| 1863 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1864 | echo "$as_me: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1865 | If you meant to cross compile, use \`--host'. |
| 1866 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1867 | { (exit 1); exit 1; }; } |
| 1868 | fi |
| 1869 | fi |
| 1870 | fi |
| 1871 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1872 | echo "${ECHO_T}yes" >&6 |
| 1873 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1874 | 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] | 1875 | ac_clean_files=$ac_clean_files_save |
| 1876 | # Check the compiler produces executables we can run. If not, either |
| 1877 | # the compiler is broken, or we cross compile. |
| 1878 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1879 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1880 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1881 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1882 | |
| 1883 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1884 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1885 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1886 | (eval $ac_link) 2>&5 |
| 1887 | ac_status=$? |
| 1888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1889 | (exit $ac_status); }; then |
| 1890 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1891 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1892 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1893 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1894 | for ac_file in conftest.exe conftest conftest.*; do |
| 1895 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1896 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1897 | *.$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] | 1898 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1899 | export ac_cv_exeext |
| 1900 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1901 | * ) break;; |
| 1902 | esac |
| 1903 | done |
| 1904 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1905 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1906 | See \`config.log' for more details." >&5 |
| 1907 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1908 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1909 | { (exit 1); exit 1; }; } |
| 1910 | fi |
| 1911 | |
| 1912 | rm -f conftest$ac_cv_exeext |
| 1913 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1914 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1915 | |
| 1916 | rm -f conftest.$ac_ext |
| 1917 | EXEEXT=$ac_cv_exeext |
| 1918 | ac_exeext=$EXEEXT |
| 1919 | |
| 1920 | ac_ext=c |
| 1921 | ac_cpp='$CPP $CPPFLAGS' |
| 1922 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1923 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1924 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1925 | |
| 1926 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1927 | |
| 1928 | fi |
| 1929 | fi |
| 1930 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1931 | # If the user switches compilers, we can't believe the cache |
| 1932 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1933 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1934 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1935 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1936 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1937 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1938 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1939 | fi |
| 1940 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1941 | ac_ext=c |
| 1942 | ac_cpp='$CPP $CPPFLAGS' |
| 1943 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1944 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1945 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1946 | if test -n "$ac_tool_prefix"; then |
| 1947 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1948 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1949 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1950 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1951 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1953 | else |
| 1954 | if test -n "$CC"; then |
| 1955 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1956 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1958 | for as_dir in $PATH |
| 1959 | do |
| 1960 | IFS=$as_save_IFS |
| 1961 | test -z "$as_dir" && as_dir=. |
| 1962 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1963 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1964 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1965 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1966 | break 2 |
| 1967 | fi |
| 1968 | done |
| 1969 | done |
| 1970 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1971 | fi |
| 1972 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1973 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1974 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1975 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1976 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1977 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1978 | echo "$as_me:$LINENO: result: no" >&5 |
| 1979 | echo "${ECHO_T}no" >&6 |
| 1980 | fi |
| 1981 | |
| 1982 | fi |
| 1983 | if test -z "$ac_cv_prog_CC"; then |
| 1984 | ac_ct_CC=$CC |
| 1985 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1986 | set dummy gcc; ac_word=$2 |
| 1987 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1989 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1991 | else |
| 1992 | if test -n "$ac_ct_CC"; then |
| 1993 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1994 | else |
| 1995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1996 | for as_dir in $PATH |
| 1997 | do |
| 1998 | IFS=$as_save_IFS |
| 1999 | test -z "$as_dir" && as_dir=. |
| 2000 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2001 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2002 | ac_cv_prog_ac_ct_CC="gcc" |
| 2003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2004 | break 2 |
| 2005 | fi |
| 2006 | done |
| 2007 | done |
| 2008 | |
| 2009 | fi |
| 2010 | fi |
| 2011 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2012 | if test -n "$ac_ct_CC"; then |
| 2013 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2014 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2015 | else |
| 2016 | echo "$as_me:$LINENO: result: no" >&5 |
| 2017 | echo "${ECHO_T}no" >&6 |
| 2018 | fi |
| 2019 | |
| 2020 | CC=$ac_ct_CC |
| 2021 | else |
| 2022 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2023 | fi |
| 2024 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2025 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2026 | if test -n "$ac_tool_prefix"; then |
| 2027 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2028 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2029 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2030 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2031 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2033 | else |
| 2034 | if test -n "$CC"; then |
| 2035 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2036 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2038 | for as_dir in $PATH |
| 2039 | do |
| 2040 | IFS=$as_save_IFS |
| 2041 | test -z "$as_dir" && as_dir=. |
| 2042 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2043 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2044 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2045 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2046 | break 2 |
| 2047 | fi |
| 2048 | done |
| 2049 | done |
| 2050 | |
| 2051 | fi |
| 2052 | fi |
| 2053 | CC=$ac_cv_prog_CC |
| 2054 | if test -n "$CC"; then |
| 2055 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2056 | echo "${ECHO_T}$CC" >&6 |
| 2057 | else |
| 2058 | echo "$as_me:$LINENO: result: no" >&5 |
| 2059 | echo "${ECHO_T}no" >&6 |
| 2060 | fi |
| 2061 | |
| 2062 | fi |
| 2063 | if test -z "$ac_cv_prog_CC"; then |
| 2064 | ac_ct_CC=$CC |
| 2065 | # Extract the first word of "cc", so it can be a program name with args. |
| 2066 | set dummy cc; ac_word=$2 |
| 2067 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2069 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2071 | else |
| 2072 | if test -n "$ac_ct_CC"; then |
| 2073 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2074 | else |
| 2075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2076 | for as_dir in $PATH |
| 2077 | do |
| 2078 | IFS=$as_save_IFS |
| 2079 | test -z "$as_dir" && as_dir=. |
| 2080 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2081 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2082 | ac_cv_prog_ac_ct_CC="cc" |
| 2083 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2084 | break 2 |
| 2085 | fi |
| 2086 | done |
| 2087 | done |
| 2088 | |
| 2089 | fi |
| 2090 | fi |
| 2091 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2092 | if test -n "$ac_ct_CC"; then |
| 2093 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2094 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2095 | else |
| 2096 | echo "$as_me:$LINENO: result: no" >&5 |
| 2097 | echo "${ECHO_T}no" >&6 |
| 2098 | fi |
| 2099 | |
| 2100 | CC=$ac_ct_CC |
| 2101 | else |
| 2102 | CC="$ac_cv_prog_CC" |
| 2103 | fi |
| 2104 | |
| 2105 | fi |
| 2106 | if test -z "$CC"; then |
| 2107 | # Extract the first word of "cc", so it can be a program name with args. |
| 2108 | set dummy cc; ac_word=$2 |
| 2109 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2110 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2111 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2113 | else |
| 2114 | if test -n "$CC"; then |
| 2115 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2116 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2117 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2119 | for as_dir in $PATH |
| 2120 | do |
| 2121 | IFS=$as_save_IFS |
| 2122 | test -z "$as_dir" && as_dir=. |
| 2123 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2124 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2125 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2126 | ac_prog_rejected=yes |
| 2127 | continue |
| 2128 | fi |
| 2129 | ac_cv_prog_CC="cc" |
| 2130 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2131 | break 2 |
| 2132 | fi |
| 2133 | done |
| 2134 | done |
| 2135 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2136 | if test $ac_prog_rejected = yes; then |
| 2137 | # We found a bogon in the path, so make sure we never use it. |
| 2138 | set dummy $ac_cv_prog_CC |
| 2139 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2140 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2141 | # We chose a different compiler from the bogus one. |
| 2142 | # However, it has the same basename, so the bogon will be chosen |
| 2143 | # first if we set CC to just the basename; use the full file name. |
| 2144 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2145 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2146 | fi |
| 2147 | fi |
| 2148 | fi |
| 2149 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2150 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2151 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2152 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2153 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2154 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2155 | echo "$as_me:$LINENO: result: no" >&5 |
| 2156 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2157 | fi |
| 2158 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2159 | fi |
| 2160 | if test -z "$CC"; then |
| 2161 | if test -n "$ac_tool_prefix"; then |
| 2162 | for ac_prog in cl |
| 2163 | do |
| 2164 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2165 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2166 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2167 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2168 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2170 | else |
| 2171 | if test -n "$CC"; then |
| 2172 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2173 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2175 | for as_dir in $PATH |
| 2176 | do |
| 2177 | IFS=$as_save_IFS |
| 2178 | test -z "$as_dir" && as_dir=. |
| 2179 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2180 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2181 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2182 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2183 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2184 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2185 | done |
| 2186 | done |
| 2187 | |
| 2188 | fi |
| 2189 | fi |
| 2190 | CC=$ac_cv_prog_CC |
| 2191 | if test -n "$CC"; then |
| 2192 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2193 | echo "${ECHO_T}$CC" >&6 |
| 2194 | else |
| 2195 | echo "$as_me:$LINENO: result: no" >&5 |
| 2196 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2197 | fi |
| 2198 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2199 | test -n "$CC" && break |
| 2200 | done |
| 2201 | fi |
| 2202 | if test -z "$CC"; then |
| 2203 | ac_ct_CC=$CC |
| 2204 | for ac_prog in cl |
| 2205 | do |
| 2206 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2207 | set dummy $ac_prog; ac_word=$2 |
| 2208 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2209 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2210 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2212 | else |
| 2213 | if test -n "$ac_ct_CC"; then |
| 2214 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2215 | else |
| 2216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2217 | for as_dir in $PATH |
| 2218 | do |
| 2219 | IFS=$as_save_IFS |
| 2220 | test -z "$as_dir" && as_dir=. |
| 2221 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2222 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2223 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2224 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2225 | break 2 |
| 2226 | fi |
| 2227 | done |
| 2228 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2229 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2230 | fi |
| 2231 | fi |
| 2232 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2233 | if test -n "$ac_ct_CC"; then |
| 2234 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2235 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2236 | else |
| 2237 | echo "$as_me:$LINENO: result: no" >&5 |
| 2238 | echo "${ECHO_T}no" >&6 |
| 2239 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2240 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2241 | test -n "$ac_ct_CC" && break |
| 2242 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2243 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2244 | CC=$ac_ct_CC |
| 2245 | fi |
| 2246 | |
| 2247 | fi |
| 2248 | |
| 2249 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2250 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2251 | See \`config.log' for more details." >&5 |
| 2252 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2253 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2254 | { (exit 1); exit 1; }; } |
| 2255 | |
| 2256 | # Provide some information about the compiler. |
| 2257 | echo "$as_me:$LINENO:" \ |
| 2258 | "checking for C compiler version" >&5 |
| 2259 | ac_compiler=`set X $ac_compile; echo $2` |
| 2260 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2261 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2262 | ac_status=$? |
| 2263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2264 | (exit $ac_status); } |
| 2265 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2266 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2267 | ac_status=$? |
| 2268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2269 | (exit $ac_status); } |
| 2270 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2271 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2272 | ac_status=$? |
| 2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2274 | (exit $ac_status); } |
| 2275 | |
| 2276 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2277 | /* confdefs.h. */ |
| 2278 | _ACEOF |
| 2279 | cat confdefs.h >>conftest.$ac_ext |
| 2280 | cat >>conftest.$ac_ext <<_ACEOF |
| 2281 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2282 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2283 | int |
| 2284 | main () |
| 2285 | { |
| 2286 | |
| 2287 | ; |
| 2288 | return 0; |
| 2289 | } |
| 2290 | _ACEOF |
| 2291 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2292 | 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] | 2293 | # Try to create an executable without -o first, disregard a.out. |
| 2294 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2295 | # of exeext. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2296 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2297 | 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] | 2298 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2299 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2300 | (eval $ac_link_default) 2>&5 |
| 2301 | ac_status=$? |
| 2302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2303 | (exit $ac_status); }; then |
| 2304 | # Find the output, starting from the most likely. This scheme is |
| 2305 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2306 | # resort. |
| 2307 | |
| 2308 | # Be careful to initialize this variable, since it used to be cached. |
| 2309 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2310 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2311 | # b.out is created by i960 compilers. |
| 2312 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2313 | do |
| 2314 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2315 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2316 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2317 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2318 | conftest.$ac_ext ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2319 | # This is the source file. |
| 2320 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2321 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2322 | # We found the default executable, but exeext='' is most |
| 2323 | # certainly right. |
| 2324 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2325 | *.* ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2326 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2327 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2328 | # but it would be cool to find out if it's true. Does anybody |
| 2329 | # maintain Libtool? --akim. |
| 2330 | export ac_cv_exeext |
| 2331 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2332 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2333 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2334 | esac |
| 2335 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2336 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2337 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2339 | |
| 2340 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2341 | See \`config.log' for more details." >&5 |
| 2342 | echo "$as_me: error: C compiler cannot create executables |
| 2343 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2344 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2345 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2346 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2347 | ac_exeext=$ac_cv_exeext |
| 2348 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2349 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2350 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2351 | # Check the compiler produces executables we can run. If not, either |
| 2352 | # the compiler is broken, or we cross compile. |
| 2353 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2354 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2355 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2356 | # If not cross compiling, check that we can run a simple program. |
| 2357 | if test "$cross_compiling" != yes; then |
| 2358 | if { ac_try='./$ac_file' |
| 2359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2360 | (eval $ac_try) 2>&5 |
| 2361 | ac_status=$? |
| 2362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2363 | (exit $ac_status); }; }; then |
| 2364 | cross_compiling=no |
| 2365 | else |
| 2366 | if test "$cross_compiling" = maybe; then |
| 2367 | cross_compiling=yes |
| 2368 | else |
| 2369 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2370 | If you meant to cross compile, use \`--host'. |
| 2371 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2372 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2373 | If you meant to cross compile, use \`--host'. |
| 2374 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2375 | { (exit 1); exit 1; }; } |
| 2376 | fi |
| 2377 | fi |
| 2378 | fi |
| 2379 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2380 | echo "${ECHO_T}yes" >&6 |
| 2381 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2382 | 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] | 2383 | ac_clean_files=$ac_clean_files_save |
| 2384 | # Check the compiler produces executables we can run. If not, either |
| 2385 | # the compiler is broken, or we cross compile. |
| 2386 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2387 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2388 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2389 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2390 | |
| 2391 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2392 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2394 | (eval $ac_link) 2>&5 |
| 2395 | ac_status=$? |
| 2396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2397 | (exit $ac_status); }; then |
| 2398 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2399 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2400 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2401 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2402 | for ac_file in conftest.exe conftest conftest.*; do |
| 2403 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2404 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2405 | *.$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] | 2406 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2407 | export ac_cv_exeext |
| 2408 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2409 | * ) break;; |
| 2410 | esac |
| 2411 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2412 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2413 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2414 | See \`config.log' for more details." >&5 |
| 2415 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2416 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2417 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2418 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2419 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2420 | rm -f conftest$ac_cv_exeext |
| 2421 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2422 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2423 | |
| 2424 | rm -f conftest.$ac_ext |
| 2425 | EXEEXT=$ac_cv_exeext |
| 2426 | ac_exeext=$EXEEXT |
| 2427 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2428 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2429 | if test "${ac_cv_objext+set}" = set; then |
| 2430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2431 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2432 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2433 | /* confdefs.h. */ |
| 2434 | _ACEOF |
| 2435 | cat confdefs.h >>conftest.$ac_ext |
| 2436 | cat >>conftest.$ac_ext <<_ACEOF |
| 2437 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2438 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2439 | int |
| 2440 | main () |
| 2441 | { |
| 2442 | |
| 2443 | ; |
| 2444 | return 0; |
| 2445 | } |
| 2446 | _ACEOF |
| 2447 | rm -f conftest.o conftest.obj |
| 2448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2449 | (eval $ac_compile) 2>&5 |
| 2450 | ac_status=$? |
| 2451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2452 | (exit $ac_status); }; then |
| 2453 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2454 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2455 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2456 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2457 | break;; |
| 2458 | esac |
| 2459 | done |
| 2460 | else |
| 2461 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2463 | |
| 2464 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2465 | See \`config.log' for more details." >&5 |
| 2466 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2467 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2468 | { (exit 1); exit 1; }; } |
| 2469 | fi |
| 2470 | |
| 2471 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2472 | fi |
| 2473 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2474 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2475 | OBJEXT=$ac_cv_objext |
| 2476 | ac_objext=$OBJEXT |
| 2477 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2478 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2479 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2481 | else |
| 2482 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2483 | /* confdefs.h. */ |
| 2484 | _ACEOF |
| 2485 | cat confdefs.h >>conftest.$ac_ext |
| 2486 | cat >>conftest.$ac_ext <<_ACEOF |
| 2487 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2488 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2489 | int |
| 2490 | main () |
| 2491 | { |
| 2492 | #ifndef __GNUC__ |
| 2493 | choke me |
| 2494 | #endif |
| 2495 | |
| 2496 | ; |
| 2497 | return 0; |
| 2498 | } |
| 2499 | _ACEOF |
| 2500 | rm -f conftest.$ac_objext |
| 2501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2502 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2503 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2505 | rm -f conftest.er1 |
| 2506 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2508 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2509 | { ac_try='test -z "$ac_c_werror_flag" |
| 2510 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2512 | (eval $ac_try) 2>&5 |
| 2513 | ac_status=$? |
| 2514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2515 | (exit $ac_status); }; } && |
| 2516 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2518 | (eval $ac_try) 2>&5 |
| 2519 | ac_status=$? |
| 2520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2521 | (exit $ac_status); }; }; then |
| 2522 | ac_compiler_gnu=yes |
| 2523 | else |
| 2524 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2526 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2527 | ac_compiler_gnu=no |
| 2528 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2529 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2530 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2531 | |
| 2532 | fi |
| 2533 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2534 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2535 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2536 | ac_test_CFLAGS=${CFLAGS+set} |
| 2537 | ac_save_CFLAGS=$CFLAGS |
| 2538 | CFLAGS="-g" |
| 2539 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2540 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2541 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2543 | else |
| 2544 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2545 | /* confdefs.h. */ |
| 2546 | _ACEOF |
| 2547 | cat confdefs.h >>conftest.$ac_ext |
| 2548 | cat >>conftest.$ac_ext <<_ACEOF |
| 2549 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2550 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2551 | int |
| 2552 | main () |
| 2553 | { |
| 2554 | |
| 2555 | ; |
| 2556 | return 0; |
| 2557 | } |
| 2558 | _ACEOF |
| 2559 | rm -f conftest.$ac_objext |
| 2560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2561 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2562 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2563 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2564 | rm -f conftest.er1 |
| 2565 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2567 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2568 | { ac_try='test -z "$ac_c_werror_flag" |
| 2569 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2571 | (eval $ac_try) 2>&5 |
| 2572 | ac_status=$? |
| 2573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2574 | (exit $ac_status); }; } && |
| 2575 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2577 | (eval $ac_try) 2>&5 |
| 2578 | ac_status=$? |
| 2579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2580 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2581 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2582 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2583 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2585 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2586 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2587 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2589 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2590 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2591 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2592 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2593 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2594 | elif test $ac_cv_prog_cc_g = yes; then |
| 2595 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2596 | CFLAGS="-g -O2" |
| 2597 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2598 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2599 | fi |
| 2600 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2601 | if test "$GCC" = yes; then |
| 2602 | CFLAGS="-O2" |
| 2603 | else |
| 2604 | CFLAGS= |
| 2605 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2606 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2607 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2608 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2609 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2611 | else |
| 2612 | ac_cv_prog_cc_stdc=no |
| 2613 | ac_save_CC=$CC |
| 2614 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2615 | /* confdefs.h. */ |
| 2616 | _ACEOF |
| 2617 | cat confdefs.h >>conftest.$ac_ext |
| 2618 | cat >>conftest.$ac_ext <<_ACEOF |
| 2619 | /* end confdefs.h. */ |
| 2620 | #include <stdarg.h> |
| 2621 | #include <stdio.h> |
| 2622 | #include <sys/types.h> |
| 2623 | #include <sys/stat.h> |
| 2624 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2625 | struct buf { int x; }; |
| 2626 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2627 | static char *e (p, i) |
| 2628 | char **p; |
| 2629 | int i; |
| 2630 | { |
| 2631 | return p[i]; |
| 2632 | } |
| 2633 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2634 | { |
| 2635 | char *s; |
| 2636 | va_list v; |
| 2637 | va_start (v,p); |
| 2638 | s = g (p, va_arg (v,int)); |
| 2639 | va_end (v); |
| 2640 | return s; |
| 2641 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2642 | |
| 2643 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2644 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2645 | These don't provoke an error unfortunately, instead are silently treated |
| 2646 | as 'x'. The following induces an error, until -std1 is added to get |
| 2647 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2648 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2649 | that's true only with -std1. */ |
| 2650 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2651 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2652 | int test (int i, double x); |
| 2653 | struct s1 {int (*f) (int a);}; |
| 2654 | struct s2 {int (*f) (double a);}; |
| 2655 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2656 | int argc; |
| 2657 | char **argv; |
| 2658 | int |
| 2659 | main () |
| 2660 | { |
| 2661 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2662 | ; |
| 2663 | return 0; |
| 2664 | } |
| 2665 | _ACEOF |
| 2666 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2667 | # breaks some systems' header files. |
| 2668 | # AIX -qlanglvl=ansi |
| 2669 | # Ultrix and OSF/1 -std1 |
| 2670 | # HP-UX 10.20 and later -Ae |
| 2671 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2672 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2673 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2674 | do |
| 2675 | CC="$ac_save_CC $ac_arg" |
| 2676 | rm -f conftest.$ac_objext |
| 2677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2678 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2679 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2680 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2681 | rm -f conftest.er1 |
| 2682 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2684 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2685 | { ac_try='test -z "$ac_c_werror_flag" |
| 2686 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2688 | (eval $ac_try) 2>&5 |
| 2689 | ac_status=$? |
| 2690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2691 | (exit $ac_status); }; } && |
| 2692 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2694 | (eval $ac_try) 2>&5 |
| 2695 | ac_status=$? |
| 2696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2697 | (exit $ac_status); }; }; then |
| 2698 | ac_cv_prog_cc_stdc=$ac_arg |
| 2699 | break |
| 2700 | else |
| 2701 | echo "$as_me: failed program was:" >&5 |
| 2702 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2703 | |
| 2704 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2705 | rm -f conftest.err conftest.$ac_objext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2706 | done |
| 2707 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2708 | CC=$ac_save_CC |
| 2709 | |
| 2710 | fi |
| 2711 | |
| 2712 | case "x$ac_cv_prog_cc_stdc" in |
| 2713 | x|xno) |
| 2714 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2715 | echo "${ECHO_T}none needed" >&6 ;; |
| 2716 | *) |
| 2717 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2718 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2719 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2720 | esac |
| 2721 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2722 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2723 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2724 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2725 | # the declaration of exit, since it's the most demanding environment. |
| 2726 | cat >conftest.$ac_ext <<_ACEOF |
| 2727 | #ifndef __cplusplus |
| 2728 | choke me |
| 2729 | #endif |
| 2730 | _ACEOF |
| 2731 | rm -f conftest.$ac_objext |
| 2732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2733 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2734 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2735 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2736 | rm -f conftest.er1 |
| 2737 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2739 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2740 | { ac_try='test -z "$ac_c_werror_flag" |
| 2741 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2743 | (eval $ac_try) 2>&5 |
| 2744 | ac_status=$? |
| 2745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2746 | (exit $ac_status); }; } && |
| 2747 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2749 | (eval $ac_try) 2>&5 |
| 2750 | ac_status=$? |
| 2751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2752 | (exit $ac_status); }; }; then |
| 2753 | for ac_declaration in \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2754 | '' \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2755 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2756 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2757 | 'extern "C" void exit (int) throw ();' \ |
| 2758 | 'extern "C" void exit (int);' \ |
| 2759 | 'void exit (int);' |
| 2760 | do |
| 2761 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2762 | /* confdefs.h. */ |
| 2763 | _ACEOF |
| 2764 | cat confdefs.h >>conftest.$ac_ext |
| 2765 | cat >>conftest.$ac_ext <<_ACEOF |
| 2766 | /* end confdefs.h. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 2767 | $ac_declaration |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2768 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2769 | int |
| 2770 | main () |
| 2771 | { |
| 2772 | exit (42); |
| 2773 | ; |
| 2774 | return 0; |
| 2775 | } |
| 2776 | _ACEOF |
| 2777 | rm -f conftest.$ac_objext |
| 2778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2779 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2780 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2782 | rm -f conftest.er1 |
| 2783 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2785 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2786 | { ac_try='test -z "$ac_c_werror_flag" |
| 2787 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2789 | (eval $ac_try) 2>&5 |
| 2790 | ac_status=$? |
| 2791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2792 | (exit $ac_status); }; } && |
| 2793 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2795 | (eval $ac_try) 2>&5 |
| 2796 | ac_status=$? |
| 2797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2798 | (exit $ac_status); }; }; then |
| 2799 | : |
| 2800 | else |
| 2801 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2803 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2804 | continue |
| 2805 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2806 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2807 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2808 | /* confdefs.h. */ |
| 2809 | _ACEOF |
| 2810 | cat confdefs.h >>conftest.$ac_ext |
| 2811 | cat >>conftest.$ac_ext <<_ACEOF |
| 2812 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2813 | $ac_declaration |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2814 | int |
| 2815 | main () |
| 2816 | { |
| 2817 | exit (42); |
| 2818 | ; |
| 2819 | return 0; |
| 2820 | } |
| 2821 | _ACEOF |
| 2822 | rm -f conftest.$ac_objext |
| 2823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2824 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2825 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2826 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2827 | rm -f conftest.er1 |
| 2828 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2830 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2831 | { ac_try='test -z "$ac_c_werror_flag" |
| 2832 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2834 | (eval $ac_try) 2>&5 |
| 2835 | ac_status=$? |
| 2836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2837 | (exit $ac_status); }; } && |
| 2838 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2840 | (eval $ac_try) 2>&5 |
| 2841 | ac_status=$? |
| 2842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2843 | (exit $ac_status); }; }; then |
| 2844 | break |
| 2845 | else |
| 2846 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2848 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2849 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2851 | done |
| 2852 | rm -f conftest* |
| 2853 | if test -n "$ac_declaration"; then |
| 2854 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2855 | echo $ac_declaration >>confdefs.h |
| 2856 | echo '#endif' >>confdefs.h |
| 2857 | fi |
| 2858 | |
| 2859 | else |
| 2860 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2862 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2863 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2865 | ac_ext=c |
| 2866 | ac_cpp='$CPP $CPPFLAGS' |
| 2867 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2868 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2869 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2870 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2871 | |
| 2872 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2873 | |
| 2874 | ac_ext=c |
| 2875 | ac_cpp='$CPP $CPPFLAGS' |
| 2876 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2877 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2878 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2879 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2880 | 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] | 2881 | # On Suns, sometimes $CPP names a directory. |
| 2882 | if test -n "$CPP" && test -d "$CPP"; then |
| 2883 | CPP= |
| 2884 | fi |
| 2885 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2886 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2888 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2889 | # Double quotes because CPP needs to be expanded |
| 2890 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2891 | do |
| 2892 | ac_preproc_ok=false |
| 2893 | for ac_c_preproc_warn_flag in '' yes |
| 2894 | do |
| 2895 | # Use a header file that comes with gcc, so configuring glibc |
| 2896 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2897 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2898 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2899 | # 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] | 2900 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2901 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2902 | /* confdefs.h. */ |
| 2903 | _ACEOF |
| 2904 | cat confdefs.h >>conftest.$ac_ext |
| 2905 | cat >>conftest.$ac_ext <<_ACEOF |
| 2906 | /* end confdefs.h. */ |
| 2907 | #ifdef __STDC__ |
| 2908 | # include <limits.h> |
| 2909 | #else |
| 2910 | # include <assert.h> |
| 2911 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2912 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2913 | _ACEOF |
| 2914 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2915 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2916 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2917 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2918 | rm -f conftest.er1 |
| 2919 | cat conftest.err >&5 |
| 2920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2921 | (exit $ac_status); } >/dev/null; then |
| 2922 | if test -s conftest.err; then |
| 2923 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2924 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2925 | else |
| 2926 | ac_cpp_err= |
| 2927 | fi |
| 2928 | else |
| 2929 | ac_cpp_err=yes |
| 2930 | fi |
| 2931 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2932 | : |
| 2933 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2934 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2937 | # Broken: fails on valid input. |
| 2938 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2939 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2940 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2942 | # OK, works on sane cases. Now check whether non-existent headers |
| 2943 | # can be detected and how. |
| 2944 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2945 | /* confdefs.h. */ |
| 2946 | _ACEOF |
| 2947 | cat confdefs.h >>conftest.$ac_ext |
| 2948 | cat >>conftest.$ac_ext <<_ACEOF |
| 2949 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2950 | #include <ac_nonexistent.h> |
| 2951 | _ACEOF |
| 2952 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2953 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2954 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2955 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2956 | rm -f conftest.er1 |
| 2957 | cat conftest.err >&5 |
| 2958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2959 | (exit $ac_status); } >/dev/null; then |
| 2960 | if test -s conftest.err; then |
| 2961 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2962 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2963 | else |
| 2964 | ac_cpp_err= |
| 2965 | fi |
| 2966 | else |
| 2967 | ac_cpp_err=yes |
| 2968 | fi |
| 2969 | if test -z "$ac_cpp_err"; then |
| 2970 | # Broken: success on invalid input. |
| 2971 | continue |
| 2972 | else |
| 2973 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2974 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2975 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2976 | # Passes both tests. |
| 2977 | ac_preproc_ok=: |
| 2978 | break |
| 2979 | fi |
| 2980 | rm -f conftest.err conftest.$ac_ext |
| 2981 | |
| 2982 | done |
| 2983 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2984 | rm -f conftest.err conftest.$ac_ext |
| 2985 | if $ac_preproc_ok; then |
| 2986 | break |
| 2987 | fi |
| 2988 | |
| 2989 | done |
| 2990 | ac_cv_prog_CPP=$CPP |
| 2991 | |
| 2992 | fi |
| 2993 | CPP=$ac_cv_prog_CPP |
| 2994 | else |
| 2995 | ac_cv_prog_CPP=$CPP |
| 2996 | fi |
| 2997 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2998 | echo "${ECHO_T}$CPP" >&6 |
| 2999 | ac_preproc_ok=false |
| 3000 | for ac_c_preproc_warn_flag in '' yes |
| 3001 | do |
| 3002 | # Use a header file that comes with gcc, so configuring glibc |
| 3003 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3004 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3005 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3006 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3007 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3008 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3009 | /* confdefs.h. */ |
| 3010 | _ACEOF |
| 3011 | cat confdefs.h >>conftest.$ac_ext |
| 3012 | cat >>conftest.$ac_ext <<_ACEOF |
| 3013 | /* end confdefs.h. */ |
| 3014 | #ifdef __STDC__ |
| 3015 | # include <limits.h> |
| 3016 | #else |
| 3017 | # include <assert.h> |
| 3018 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3019 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3020 | _ACEOF |
| 3021 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3022 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3023 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3024 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3025 | rm -f conftest.er1 |
| 3026 | cat conftest.err >&5 |
| 3027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3028 | (exit $ac_status); } >/dev/null; then |
| 3029 | if test -s conftest.err; then |
| 3030 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3031 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3032 | else |
| 3033 | ac_cpp_err= |
| 3034 | fi |
| 3035 | else |
| 3036 | ac_cpp_err=yes |
| 3037 | fi |
| 3038 | if test -z "$ac_cpp_err"; then |
| 3039 | : |
| 3040 | else |
| 3041 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3043 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3044 | # Broken: fails on valid input. |
| 3045 | continue |
| 3046 | fi |
| 3047 | rm -f conftest.err conftest.$ac_ext |
| 3048 | |
| 3049 | # OK, works on sane cases. Now check whether non-existent headers |
| 3050 | # can be detected and how. |
| 3051 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3052 | /* confdefs.h. */ |
| 3053 | _ACEOF |
| 3054 | cat confdefs.h >>conftest.$ac_ext |
| 3055 | cat >>conftest.$ac_ext <<_ACEOF |
| 3056 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3057 | #include <ac_nonexistent.h> |
| 3058 | _ACEOF |
| 3059 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3060 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3061 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3062 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3063 | rm -f conftest.er1 |
| 3064 | cat conftest.err >&5 |
| 3065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3066 | (exit $ac_status); } >/dev/null; then |
| 3067 | if test -s conftest.err; then |
| 3068 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3069 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3070 | else |
| 3071 | ac_cpp_err= |
| 3072 | fi |
| 3073 | else |
| 3074 | ac_cpp_err=yes |
| 3075 | fi |
| 3076 | if test -z "$ac_cpp_err"; then |
| 3077 | # Broken: success on invalid input. |
| 3078 | continue |
| 3079 | else |
| 3080 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3082 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3083 | # Passes both tests. |
| 3084 | ac_preproc_ok=: |
| 3085 | break |
| 3086 | fi |
| 3087 | rm -f conftest.err conftest.$ac_ext |
| 3088 | |
| 3089 | done |
| 3090 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3091 | rm -f conftest.err conftest.$ac_ext |
| 3092 | if $ac_preproc_ok; then |
| 3093 | : |
| 3094 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3095 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3096 | See \`config.log' for more details." >&5 |
| 3097 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3098 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3099 | { (exit 1); exit 1; }; } |
| 3100 | fi |
| 3101 | |
| 3102 | ac_ext=c |
| 3103 | ac_cpp='$CPP $CPPFLAGS' |
| 3104 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3105 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3106 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3107 | |
| 3108 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3109 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3110 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3111 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3113 | else |
| 3114 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3115 | then ac_cv_prog_egrep='grep -E' |
| 3116 | else ac_cv_prog_egrep='egrep' |
| 3117 | fi |
| 3118 | fi |
| 3119 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3120 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3121 | EGREP=$ac_cv_prog_egrep |
| 3122 | |
| 3123 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3124 | |
| 3125 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3126 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 3127 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3128 | /* confdefs.h. */ |
| 3129 | _ACEOF |
| 3130 | cat confdefs.h >>conftest.$ac_ext |
| 3131 | cat >>conftest.$ac_ext <<_ACEOF |
| 3132 | /* end confdefs.h. */ |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3133 | #ifdef _AIX |
| 3134 | yes |
| 3135 | #endif |
| 3136 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3137 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3138 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3139 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3140 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3141 | echo "${ECHO_T}yes" >&6 |
| 3142 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3143 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3144 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3145 | |
| 3146 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3147 | echo "$as_me:$LINENO: result: no" >&5 |
| 3148 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3149 | fi |
| 3150 | rm -f conftest* |
| 3151 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3152 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3153 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3154 | # Check for unsupported systems |
| 3155 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 3156 | Linux*/1*) |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3157 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3158 | echo See README for details. |
| 3159 | exit 1;; |
| 3160 | esac |
| 3161 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +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 --with-suffix" >&5 |
| 3164 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3165 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3166 | # Check whether --with-suffix or --without-suffix was given. |
| 3167 | if test "${with_suffix+set}" = set; then |
| 3168 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3169 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3170 | case $withval in |
| 3171 | no) EXEEXT=;; |
| 3172 | yes) EXEEXT=.exe;; |
| 3173 | *) EXEEXT=$withval;; |
| 3174 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3175 | fi; |
| 3176 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3177 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3178 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3179 | # Test whether we're running on a non-case-sensitive system, in which |
| 3180 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3181 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3182 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3183 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3184 | if test ! -d CaseSensitiveTestDir; then |
| 3185 | mkdir CaseSensitiveTestDir |
| 3186 | fi |
| 3187 | |
| 3188 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3189 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3190 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3191 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3192 | BUILDEXEEXT=.exe |
| 3193 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3194 | echo "$as_me:$LINENO: result: no" >&5 |
| 3195 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3196 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3197 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3198 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3199 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3200 | case $MACHDEP in |
| 3201 | bsdos*) |
| 3202 | case $CC in |
| 3203 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3204 | esac;; |
| 3205 | esac |
| 3206 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3207 | case $ac_sys_system in |
| 3208 | hp*|HP*) |
| 3209 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3210 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3211 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3212 | Monterey*) |
| 3213 | case $CC in |
| 3214 | cc) CC="$CC -Wl,-Bexport";; |
| 3215 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3216 | SunOS*) |
| 3217 | # 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] | 3218 | |
| 3219 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3220 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3221 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3222 | |
| 3223 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3224 | esac |
| 3225 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3226 | |
| 3227 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3228 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3229 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3230 | if test -z "$LIBRARY" |
| 3231 | then |
| 3232 | LIBRARY='libpython$(VERSION).a' |
| 3233 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3234 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3235 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3236 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3237 | # 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] | 3238 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3239 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3240 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3241 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3242 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3243 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3244 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3245 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3246 | # RUNSHARED is used to run shared python without installed libraries |
| 3247 | # |
| 3248 | # INSTSONAME is the name of the shared library that will be use to install |
| 3249 | # on the system - some systems like version suffix, others don't |
| 3250 | |
| 3251 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3252 | |
| 3253 | |
| 3254 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3255 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3256 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3257 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3258 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3259 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3260 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3261 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3262 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3263 | # 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] | 3264 | # If CXX is set, and if it is needed to link a main function that was |
| 3265 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3266 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3267 | # 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] | 3268 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3269 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3270 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3271 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3272 | if test -z "$LINKCC" |
| 3273 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3274 | if test -z "$CXX"; then |
| 3275 | LINKCC="\$(PURIFY) \$(CC)" |
| 3276 | else |
Martin v. Löwis | 147fbe5 | 2005-08-07 21:09:30 +0000 | [diff] [blame] | 3277 | echo 'extern "C" void foo();int main(){foo();}' > conftest_a.cc |
| 3278 | $CXX -c conftest_a.cc # 2>&5 |
| 3279 | echo 'void foo(){}' > conftest_b.$ac_ext |
| 3280 | $CC -c conftest_b.$ac_ext # 2>&5 |
| 3281 | if $CC -o conftest$ac_exeext conftest_a.$ac_objext conftest_b.$ac_objext 2>&5 \ |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3282 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3283 | then |
| 3284 | LINKCC="\$(PURIFY) \$(CC)" |
| 3285 | else |
| 3286 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3287 | fi |
| 3288 | rm -fr conftest* |
| 3289 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3290 | case $ac_sys_system in |
| 3291 | AIX*) |
Neal Norwitz | 0b27ff9 | 2003-03-31 15:53:49 +0000 | [diff] [blame] | 3292 | exp_extra="\"\"" |
| 3293 | if test $ac_sys_release -ge 5 -o \ |
| 3294 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3295 | exp_extra="." |
| 3296 | fi |
| 3297 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3298 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3299 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3300 | esac |
| 3301 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3302 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3303 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3304 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3305 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3306 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3307 | # Check whether --enable-shared or --disable-shared was given. |
| 3308 | if test "${enable_shared+set}" = set; then |
| 3309 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3310 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3311 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3312 | |
| 3313 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3314 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3315 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3316 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3317 | enable_shared="yes";; |
| 3318 | *) |
| 3319 | enable_shared="no";; |
| 3320 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3321 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3322 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3323 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3324 | |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3325 | echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 3326 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6 |
| 3327 | # Check whether --enable-profiling or --disable-profiling was given. |
| 3328 | if test "${enable_profiling+set}" = set; then |
| 3329 | enableval="$enable_profiling" |
| 3330 | ac_save_cc="$CC" |
| 3331 | CC="$CC -pg" |
| 3332 | if test "$cross_compiling" = yes; then |
| 3333 | ac_enable_profiling="no" |
| 3334 | else |
| 3335 | cat >conftest.$ac_ext <<_ACEOF |
| 3336 | /* confdefs.h. */ |
| 3337 | _ACEOF |
| 3338 | cat confdefs.h >>conftest.$ac_ext |
| 3339 | cat >>conftest.$ac_ext <<_ACEOF |
| 3340 | /* end confdefs.h. */ |
| 3341 | int main() { return 0; } |
| 3342 | _ACEOF |
| 3343 | rm -f conftest$ac_exeext |
| 3344 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3345 | (eval $ac_link) 2>&5 |
| 3346 | ac_status=$? |
| 3347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3348 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3350 | (eval $ac_try) 2>&5 |
| 3351 | ac_status=$? |
| 3352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3353 | (exit $ac_status); }; }; then |
| 3354 | ac_enable_profiling="yes" |
| 3355 | else |
| 3356 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3357 | echo "$as_me: failed program was:" >&5 |
| 3358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3359 | |
| 3360 | ( exit $ac_status ) |
| 3361 | ac_enable_profiling="no" |
| 3362 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3363 | 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] | 3364 | fi |
| 3365 | CC="$ac_save_cc" |
| 3366 | fi; |
| 3367 | echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 3368 | echo "${ECHO_T}$ac_enable_profiling" >&6 |
| 3369 | |
| 3370 | case "$ac_enable_profiling" in |
| 3371 | "yes") |
| 3372 | BASECFLAGS="-pg $BASECFLAGS" |
| 3373 | LDFLAGS="-pg $LDFLAGS" |
| 3374 | ;; |
| 3375 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3376 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3377 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3378 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3379 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3380 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3381 | # library that we build, but we do not want to link against it (we |
| 3382 | # will find it with a -framework option). For this reason there is an |
| 3383 | # extra variable BLDLIBRARY against which Python and the extension |
| 3384 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3385 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3386 | if test "$enable_framework" |
| 3387 | then |
| 3388 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 3389 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3390 | BLDLIBRARY='' |
| 3391 | else |
| 3392 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3393 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3394 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3395 | # Other platforms follow |
| 3396 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3397 | |
| 3398 | cat >>confdefs.h <<\_ACEOF |
| 3399 | #define Py_ENABLE_SHARED 1 |
| 3400 | _ACEOF |
| 3401 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3402 | case $ac_sys_system in |
| 3403 | BeOS*) |
| 3404 | LDLIBRARY='libpython$(VERSION).so' |
| 3405 | ;; |
| 3406 | CYGWIN*) |
| 3407 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3408 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3409 | ;; |
| 3410 | SunOS*) |
| 3411 | LDLIBRARY='libpython$(VERSION).so' |
Martin v. Löwis | d141a8c | 2003-06-14 15:20:28 +0000 | [diff] [blame] | 3412 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3413 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 2389c41 | 2003-10-31 15:42:07 +0000 | [diff] [blame] | 3414 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3415 | ;; |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 3416 | Linux*|GNU*|NetBSD*|FreeBSD*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3417 | LDLIBRARY='libpython$(VERSION).so' |
| 3418 | BLDLIBRARY='-L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3419 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 3420 | case $ac_sys_system in |
| 3421 | FreeBSD*) |
| 3422 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 3423 | ;; |
| 3424 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3425 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3426 | ;; |
| 3427 | hp*|HP*) |
| 3428 | LDLIBRARY='libpython$(VERSION).sl' |
| 3429 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3430 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3431 | ;; |
| 3432 | OSF*) |
| 3433 | LDLIBRARY='libpython$(VERSION).so' |
Neal Norwitz | 671b9e3 | 2006-01-09 07:07:12 +0000 | [diff] [blame] | 3434 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3435 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3436 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3437 | atheos*) |
| 3438 | LDLIBRARY='libpython$(VERSION).so' |
| 3439 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3440 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3441 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3442 | esac |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 3443 | else # shared is disabled |
| 3444 | case $ac_sys_system in |
| 3445 | CYGWIN*) |
| 3446 | BLDLIBRARY='$(LIBRARY)' |
| 3447 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3448 | ;; |
| 3449 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3450 | fi |
| 3451 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3452 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3453 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3454 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3455 | if test -n "$ac_tool_prefix"; then |
| 3456 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3457 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3458 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3459 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3460 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3462 | else |
| 3463 | if test -n "$RANLIB"; then |
| 3464 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3465 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3467 | for as_dir in $PATH |
| 3468 | do |
| 3469 | IFS=$as_save_IFS |
| 3470 | test -z "$as_dir" && as_dir=. |
| 3471 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3472 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3473 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3474 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3475 | break 2 |
| 3476 | fi |
| 3477 | done |
| 3478 | done |
| 3479 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3480 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3481 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3482 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3483 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3484 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3485 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3486 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3487 | echo "$as_me:$LINENO: result: no" >&5 |
| 3488 | echo "${ECHO_T}no" >&6 |
| 3489 | fi |
| 3490 | |
| 3491 | fi |
| 3492 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3493 | ac_ct_RANLIB=$RANLIB |
| 3494 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3495 | set dummy ranlib; ac_word=$2 |
| 3496 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3497 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3498 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3500 | else |
| 3501 | if test -n "$ac_ct_RANLIB"; then |
| 3502 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3503 | else |
| 3504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3505 | for as_dir in $PATH |
| 3506 | do |
| 3507 | IFS=$as_save_IFS |
| 3508 | test -z "$as_dir" && as_dir=. |
| 3509 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3510 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3511 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3512 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3513 | break 2 |
| 3514 | fi |
| 3515 | done |
| 3516 | done |
| 3517 | |
| 3518 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3519 | fi |
| 3520 | fi |
| 3521 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3522 | if test -n "$ac_ct_RANLIB"; then |
| 3523 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3524 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3525 | else |
| 3526 | echo "$as_me:$LINENO: result: no" >&5 |
| 3527 | echo "${ECHO_T}no" >&6 |
| 3528 | fi |
| 3529 | |
| 3530 | RANLIB=$ac_ct_RANLIB |
| 3531 | else |
| 3532 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3533 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3534 | |
| 3535 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3536 | for ac_prog in ar aal |
| 3537 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3538 | # 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] | 3539 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3540 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3541 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3542 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3544 | else |
| 3545 | if test -n "$AR"; then |
| 3546 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3547 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3549 | for as_dir in $PATH |
| 3550 | do |
| 3551 | IFS=$as_save_IFS |
| 3552 | test -z "$as_dir" && as_dir=. |
| 3553 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3554 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3555 | ac_cv_prog_AR="$ac_prog" |
| 3556 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3557 | break 2 |
| 3558 | fi |
| 3559 | done |
| 3560 | done |
| 3561 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3562 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3563 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3564 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3565 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3566 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3567 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3568 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3569 | echo "$as_me:$LINENO: result: no" >&5 |
| 3570 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3571 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3572 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3573 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3574 | done |
| 3575 | test -n "$AR" || AR="ar" |
| 3576 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3577 | |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 3578 | |
Martin v. Löwis | c5bf5a0 | 2006-01-05 10:33:59 +0000 | [diff] [blame] | 3579 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 3580 | set dummy svnversion; ac_word=$2 |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 3581 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3582 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3583 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
| 3584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3585 | else |
| 3586 | if test -n "$SVNVERSION"; then |
| 3587 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 3588 | else |
| 3589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3590 | for as_dir in $PATH |
| 3591 | do |
| 3592 | IFS=$as_save_IFS |
| 3593 | test -z "$as_dir" && as_dir=. |
| 3594 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3595 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | c5bf5a0 | 2006-01-05 10:33:59 +0000 | [diff] [blame] | 3596 | ac_cv_prog_SVNVERSION="found" |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 3597 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3598 | break 2 |
| 3599 | fi |
| 3600 | done |
| 3601 | done |
| 3602 | |
| 3603 | fi |
| 3604 | fi |
| 3605 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 3606 | if test -n "$SVNVERSION"; then |
| 3607 | echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 3608 | echo "${ECHO_T}$SVNVERSION" >&6 |
| 3609 | else |
| 3610 | echo "$as_me:$LINENO: result: no" >&5 |
| 3611 | echo "${ECHO_T}no" >&6 |
| 3612 | fi |
| 3613 | |
Martin v. Löwis | c5bf5a0 | 2006-01-05 10:33:59 +0000 | [diff] [blame] | 3614 | if test $SVNVERSION = found |
| 3615 | then |
| 3616 | SVNVERSION="svnversion \$(srcdir)" |
| 3617 | else |
| 3618 | SVNVERSION="echo exported" |
| 3619 | fi |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 3620 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3621 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3622 | bsdos*|hp*|HP*) |
| 3623 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3624 | if test -z "$INSTALL" |
| 3625 | then |
| 3626 | INSTALL="${srcdir}/install-sh -c" |
| 3627 | fi |
| 3628 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3629 | ac_aux_dir= |
| 3630 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3631 | if test -f $ac_dir/install-sh; then |
| 3632 | ac_aux_dir=$ac_dir |
| 3633 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3634 | break |
| 3635 | elif test -f $ac_dir/install.sh; then |
| 3636 | ac_aux_dir=$ac_dir |
| 3637 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3638 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3639 | elif test -f $ac_dir/shtool; then |
| 3640 | ac_aux_dir=$ac_dir |
| 3641 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3642 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3643 | fi |
| 3644 | done |
| 3645 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3646 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3647 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3648 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3649 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3650 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3651 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3652 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3653 | |
| 3654 | # Find a good install program. We prefer a C program (faster), |
| 3655 | # so one script is as good as another. But avoid the broken or |
| 3656 | # incompatible versions: |
| 3657 | # SysV /etc/install, /usr/sbin/install |
| 3658 | # SunOS /usr/etc/install |
| 3659 | # IRIX /sbin/install |
| 3660 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3661 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3662 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3663 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3664 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3665 | # OS/2's system install, which has a completely different semantic |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3666 | # ./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] | 3667 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3668 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3669 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3670 | if test "${ac_cv_path_install+set}" = set; then |
| 3671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3672 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3674 | for as_dir in $PATH |
| 3675 | do |
| 3676 | IFS=$as_save_IFS |
| 3677 | test -z "$as_dir" && as_dir=. |
| 3678 | # Account for people who put trailing slashes in PATH elements. |
| 3679 | case $as_dir/ in |
| 3680 | ./ | .// | /cC/* | \ |
| 3681 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3682 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3683 | /usr/ucb/* ) ;; |
| 3684 | *) |
| 3685 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3686 | # Don't use installbsd from OSF since it installs stuff as root |
| 3687 | # by default. |
| 3688 | for ac_prog in ginstall scoinst install; do |
| 3689 | for ac_exec_ext in '' $ac_executable_extensions; do |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3690 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3691 | if test $ac_prog = install && |
| 3692 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3693 | # AIX install. It has an incompatible calling convention. |
| 3694 | : |
| 3695 | elif test $ac_prog = install && |
| 3696 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3697 | # program-specific install script used by HP pwplus--don't use. |
| 3698 | : |
| 3699 | else |
| 3700 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3701 | break 3 |
| 3702 | fi |
| 3703 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3704 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3705 | done |
| 3706 | ;; |
| 3707 | esac |
| 3708 | done |
| 3709 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3710 | |
| 3711 | fi |
| 3712 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3713 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3714 | else |
| 3715 | # As a last resort, use the slow shell script. We don't cache a |
| 3716 | # path for INSTALL within a source directory, because that will |
| 3717 | # break other packages using the cache if that directory is |
| 3718 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3719 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3720 | fi |
| 3721 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3722 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3723 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3724 | |
| 3725 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3726 | # It thinks the first close brace ends the variable substitution. |
| 3727 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3728 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3729 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3730 | |
| 3731 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3732 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3733 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3734 | # Not every filesystem supports hard links |
| 3735 | |
| 3736 | if test -z "$LN" ; then |
| 3737 | case $ac_sys_system in |
| 3738 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3739 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3740 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3741 | *) LN=ln;; |
| 3742 | esac |
| 3743 | fi |
| 3744 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3745 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3746 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3747 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3748 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3749 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3750 | if test "${with_pydebug+set}" = set; then |
| 3751 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3752 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3753 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3754 | then |
| 3755 | |
| 3756 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3757 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3758 | _ACEOF |
| 3759 | |
| 3760 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3761 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3762 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3763 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3764 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3765 | fi |
| 3766 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3767 | echo "$as_me:$LINENO: result: no" >&5 |
| 3768 | echo "${ECHO_T}no" >&6 |
| 3769 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3770 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3771 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 3772 | # merged with this chunk of code? |
| 3773 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3774 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3775 | # ------------------------ |
| 3776 | # (The following bit of code is complicated enough - please keep things |
| 3777 | # indented properly. Just pretend you're editing Python code. ;-) |
| 3778 | |
| 3779 | # There are two parallel sets of case statements below, one that checks to |
| 3780 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 3781 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 3782 | # user set OPT. |
| 3783 | |
| 3784 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 3785 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3786 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3787 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3788 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3789 | case $GCC in |
| 3790 | yes) |
| 3791 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3792 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3793 | if test "$Py_DEBUG" = 'true' ; then |
| 3794 | # Optimization messes up debuggers, so turn it off for |
| 3795 | # debug builds. |
| 3796 | OPT="-g -Wall -Wstrict-prototypes" |
| 3797 | else |
| 3798 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3799 | fi |
| 3800 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3801 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3802 | OPT="-O3 -Wall -Wstrict-prototypes" |
| 3803 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3804 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3805 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3806 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 3807 | ;; |
| 3808 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3809 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3810 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3811 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3812 | OPT="-O" |
| 3813 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3814 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3815 | |
| 3816 | # The current (beta) Monterey compiler dies with optimizations |
| 3817 | # 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] | 3818 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3819 | Monterey*) |
| 3820 | OPT="" |
| 3821 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3822 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3823 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3824 | fi |
| 3825 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3826 | |
| 3827 | # tweak BASECFLAGS based on compiler and platform |
| 3828 | case $GCC in |
| 3829 | yes) |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3830 | # Python violates C99 rules, by casting between incompatible |
| 3831 | # pointer types. GCC may generate bad code as a result of that, |
| 3832 | # so use -fno-strict-aliasing if supported. |
| 3833 | echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 3834 | echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6 |
| 3835 | ac_save_cc="$CC" |
| 3836 | CC="$CC -fno-strict-aliasing" |
| 3837 | if test "$cross_compiling" = yes; then |
| 3838 | ac_cv_no_strict_aliasing_ok=no |
| 3839 | else |
| 3840 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3841 | /* confdefs.h. */ |
| 3842 | _ACEOF |
| 3843 | cat confdefs.h >>conftest.$ac_ext |
| 3844 | cat >>conftest.$ac_ext <<_ACEOF |
| 3845 | /* end confdefs.h. */ |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3846 | int main() { return 0; } |
| 3847 | _ACEOF |
| 3848 | rm -f conftest$ac_exeext |
| 3849 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3850 | (eval $ac_link) 2>&5 |
| 3851 | ac_status=$? |
| 3852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3853 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3855 | (eval $ac_try) 2>&5 |
| 3856 | ac_status=$? |
| 3857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3858 | (exit $ac_status); }; }; then |
| 3859 | ac_cv_no_strict_aliasing_ok=yes |
| 3860 | else |
| 3861 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3862 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3864 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3865 | ( exit $ac_status ) |
| 3866 | ac_cv_no_strict_aliasing_ok=no |
| 3867 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3868 | 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] | 3869 | fi |
| 3870 | CC="$ac_save_cc" |
| 3871 | echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 3872 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6 |
| 3873 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 3874 | then |
| 3875 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 3876 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3877 | case $ac_sys_system in |
| 3878 | SCO_SV*) |
| 3879 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 3880 | ;; |
| 3881 | # is there any other compiler on Darwin besides gcc? |
| 3882 | Darwin*) |
Jack Jansen | e004041 | 2003-07-23 22:17:28 +0000 | [diff] [blame] | 3883 | BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3884 | ;; |
| 3885 | esac |
| 3886 | ;; |
| 3887 | |
| 3888 | *) |
| 3889 | case $ac_sys_system in |
| 3890 | OpenUNIX*|UnixWare*) |
| 3891 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 3892 | ;; |
Neal Norwitz | b44f165 | 2003-05-26 14:11:55 +0000 | [diff] [blame] | 3893 | OSF*) |
| 3894 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 3895 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3896 | SCO_SV*) |
| 3897 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 3898 | ;; |
| 3899 | esac |
| 3900 | ;; |
| 3901 | esac |
| 3902 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3903 | if test "$Py_DEBUG" = 'true'; then |
| 3904 | : |
| 3905 | else |
| 3906 | OPT="-DNDEBUG $OPT" |
| 3907 | fi |
| 3908 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3909 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3910 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3911 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3912 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3913 | |
Neal Norwitz | 020c46a | 2006-01-07 21:39:28 +0000 | [diff] [blame] | 3914 | # disable check for icc since it seems to pass, but generates a warning |
| 3915 | if test "$CC" = icc |
| 3916 | then |
| 3917 | ac_cv_opt_olimit_ok=no |
| 3918 | fi |
| 3919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3920 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3921 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3922 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3924 | else |
| 3925 | ac_save_cc="$CC" |
| 3926 | CC="$CC -OPT:Olimit=0" |
| 3927 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3928 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3929 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3930 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3931 | /* confdefs.h. */ |
| 3932 | _ACEOF |
| 3933 | cat confdefs.h >>conftest.$ac_ext |
| 3934 | cat >>conftest.$ac_ext <<_ACEOF |
| 3935 | /* end confdefs.h. */ |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3936 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3937 | _ACEOF |
| 3938 | rm -f conftest$ac_exeext |
| 3939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3940 | (eval $ac_link) 2>&5 |
| 3941 | ac_status=$? |
| 3942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3943 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3945 | (eval $ac_try) 2>&5 |
| 3946 | ac_status=$? |
| 3947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3948 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3949 | ac_cv_opt_olimit_ok=yes |
| 3950 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3951 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3952 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3954 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3955 | ( exit $ac_status ) |
| 3956 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3957 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3958 | 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] | 3959 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3960 | CC="$ac_save_cc" |
| 3961 | fi |
| 3962 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3963 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3964 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3965 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3966 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3967 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 3968 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 3969 | # environment? |
| 3970 | Darwin*) |
| 3971 | ;; |
| 3972 | *) |
| 3973 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 3974 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3975 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3976 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3977 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3978 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3979 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3981 | else |
| 3982 | ac_save_cc="$CC" |
| 3983 | CC="$CC -Olimit 1500" |
| 3984 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3985 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3986 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3987 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3988 | /* confdefs.h. */ |
| 3989 | _ACEOF |
| 3990 | cat confdefs.h >>conftest.$ac_ext |
| 3991 | cat >>conftest.$ac_ext <<_ACEOF |
| 3992 | /* end confdefs.h. */ |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3993 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3994 | _ACEOF |
| 3995 | rm -f conftest$ac_exeext |
| 3996 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3997 | (eval $ac_link) 2>&5 |
| 3998 | ac_status=$? |
| 3999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4000 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4002 | (eval $ac_try) 2>&5 |
| 4003 | ac_status=$? |
| 4004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4005 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4006 | ac_cv_olimit_ok=yes |
| 4007 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4008 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4009 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4011 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4012 | ( exit $ac_status ) |
| 4013 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 4014 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4015 | 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] | 4016 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4017 | CC="$ac_save_cc" |
| 4018 | fi |
| 4019 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4020 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 4021 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4022 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4023 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4024 | fi |
| 4025 | fi |
| 4026 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4027 | # On some compilers, pthreads are available without further options |
| 4028 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 4029 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 4030 | # So we have to see first whether pthreads are available without |
| 4031 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4032 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 4033 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 4034 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 4035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4036 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4037 | if test "$cross_compiling" = yes; then |
| 4038 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4039 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4040 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4041 | /* confdefs.h. */ |
| 4042 | _ACEOF |
| 4043 | cat confdefs.h >>conftest.$ac_ext |
| 4044 | cat >>conftest.$ac_ext <<_ACEOF |
| 4045 | /* end confdefs.h. */ |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4046 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4047 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4048 | |
| 4049 | void* routine(void* p){return NULL;} |
| 4050 | |
| 4051 | int main(){ |
| 4052 | pthread_t p; |
| 4053 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4054 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4055 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4056 | return 0; |
| 4057 | } |
| 4058 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4059 | _ACEOF |
| 4060 | rm -f conftest$ac_exeext |
| 4061 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4062 | (eval $ac_link) 2>&5 |
| 4063 | ac_status=$? |
| 4064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4065 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4067 | (eval $ac_try) 2>&5 |
| 4068 | ac_status=$? |
| 4069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4070 | (exit $ac_status); }; }; then |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4071 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4072 | ac_cv_pthread_is_default=yes |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4073 | ac_cv_kthread=no |
| 4074 | ac_cv_pthread=no |
| 4075 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4076 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4077 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4078 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4079 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4080 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4081 | ( exit $ac_status ) |
| 4082 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4083 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4084 | 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] | 4085 | fi |
| 4086 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4087 | fi |
| 4088 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4089 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 4090 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4091 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4092 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4093 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4094 | then |
| 4095 | ac_cv_kpthread=no |
| 4096 | else |
| 4097 | # -Kpthread, if available, provides the right #defines |
| 4098 | # and linker options to make pthread_create available |
| 4099 | # Some compilers won't report that they do not support -Kpthread, |
| 4100 | # so we need to run a program to see whether it really made the |
| 4101 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4102 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 4103 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 4104 | if test "${ac_cv_kpthread+set}" = set; then |
| 4105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4106 | else |
| 4107 | ac_save_cc="$CC" |
| 4108 | CC="$CC -Kpthread" |
| 4109 | if test "$cross_compiling" = yes; then |
| 4110 | ac_cv_kpthread=no |
| 4111 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4112 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4113 | /* confdefs.h. */ |
| 4114 | _ACEOF |
| 4115 | cat confdefs.h >>conftest.$ac_ext |
| 4116 | cat >>conftest.$ac_ext <<_ACEOF |
| 4117 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4118 | |
| 4119 | #include <pthread.h> |
| 4120 | |
| 4121 | void* routine(void* p){return NULL;} |
| 4122 | |
| 4123 | int main(){ |
| 4124 | pthread_t p; |
| 4125 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4126 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4127 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4128 | return 0; |
| 4129 | } |
| 4130 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4131 | _ACEOF |
| 4132 | rm -f conftest$ac_exeext |
| 4133 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4134 | (eval $ac_link) 2>&5 |
| 4135 | ac_status=$? |
| 4136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4137 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4139 | (eval $ac_try) 2>&5 |
| 4140 | ac_status=$? |
| 4141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4142 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4143 | ac_cv_kpthread=yes |
| 4144 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4145 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4146 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4148 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4149 | ( exit $ac_status ) |
| 4150 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4151 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4152 | 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] | 4153 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4154 | CC="$ac_save_cc" |
| 4155 | fi |
| 4156 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4157 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 4158 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4159 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4160 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4161 | 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] | 4162 | then |
| 4163 | # -Kthread, if available, provides the right #defines |
| 4164 | # and linker options to make pthread_create available |
| 4165 | # Some compilers won't report that they do not support -Kthread, |
| 4166 | # so we need to run a program to see whether it really made the |
| 4167 | # function available. |
| 4168 | echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 4169 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6 |
| 4170 | if test "${ac_cv_kthread+set}" = set; then |
| 4171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4172 | else |
| 4173 | ac_save_cc="$CC" |
| 4174 | CC="$CC -Kthread" |
| 4175 | if test "$cross_compiling" = yes; then |
| 4176 | ac_cv_kthread=no |
| 4177 | else |
| 4178 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4179 | /* confdefs.h. */ |
| 4180 | _ACEOF |
| 4181 | cat confdefs.h >>conftest.$ac_ext |
| 4182 | cat >>conftest.$ac_ext <<_ACEOF |
| 4183 | /* end confdefs.h. */ |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4184 | |
| 4185 | #include <pthread.h> |
| 4186 | |
| 4187 | void* routine(void* p){return NULL;} |
| 4188 | |
| 4189 | int main(){ |
| 4190 | pthread_t p; |
| 4191 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4192 | return 1; |
| 4193 | (void)pthread_detach(p); |
| 4194 | return 0; |
| 4195 | } |
| 4196 | |
| 4197 | _ACEOF |
| 4198 | rm -f conftest$ac_exeext |
| 4199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4200 | (eval $ac_link) 2>&5 |
| 4201 | ac_status=$? |
| 4202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4203 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4205 | (eval $ac_try) 2>&5 |
| 4206 | ac_status=$? |
| 4207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4208 | (exit $ac_status); }; }; then |
| 4209 | ac_cv_kthread=yes |
| 4210 | else |
| 4211 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4212 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4214 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4215 | ( exit $ac_status ) |
| 4216 | ac_cv_kthread=no |
| 4217 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4218 | 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] | 4219 | fi |
| 4220 | CC="$ac_save_cc" |
| 4221 | fi |
| 4222 | |
| 4223 | echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 4224 | echo "${ECHO_T}$ac_cv_kthread" >&6 |
| 4225 | fi |
| 4226 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4227 | 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] | 4228 | then |
| 4229 | # -pthread, if available, provides the right #defines |
| 4230 | # and linker options to make pthread_create available |
| 4231 | # Some compilers won't report that they do not support -pthread, |
| 4232 | # so we need to run a program to see whether it really made the |
| 4233 | # function available. |
| 4234 | echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 4235 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6 |
| 4236 | if test "${ac_cv_thread+set}" = set; then |
| 4237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4238 | else |
| 4239 | ac_save_cc="$CC" |
| 4240 | CC="$CC -pthread" |
| 4241 | if test "$cross_compiling" = yes; then |
| 4242 | ac_cv_pthread=no |
| 4243 | else |
| 4244 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4245 | /* confdefs.h. */ |
| 4246 | _ACEOF |
| 4247 | cat confdefs.h >>conftest.$ac_ext |
| 4248 | cat >>conftest.$ac_ext <<_ACEOF |
| 4249 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4250 | |
| 4251 | #include <pthread.h> |
| 4252 | |
| 4253 | void* routine(void* p){return NULL;} |
| 4254 | |
| 4255 | int main(){ |
| 4256 | pthread_t p; |
| 4257 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4258 | return 1; |
| 4259 | (void)pthread_detach(p); |
| 4260 | return 0; |
| 4261 | } |
| 4262 | |
| 4263 | _ACEOF |
| 4264 | rm -f conftest$ac_exeext |
| 4265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4266 | (eval $ac_link) 2>&5 |
| 4267 | ac_status=$? |
| 4268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4269 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4271 | (eval $ac_try) 2>&5 |
| 4272 | ac_status=$? |
| 4273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4274 | (exit $ac_status); }; }; then |
| 4275 | ac_cv_pthread=yes |
| 4276 | else |
| 4277 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4278 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4280 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4281 | ( exit $ac_status ) |
| 4282 | ac_cv_pthread=no |
| 4283 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4284 | 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] | 4285 | fi |
| 4286 | CC="$ac_save_cc" |
| 4287 | fi |
| 4288 | |
| 4289 | echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 4290 | echo "${ECHO_T}$ac_cv_pthread" >&6 |
| 4291 | fi |
| 4292 | |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4293 | # If we have set a CC compiler flag for thread support then |
| 4294 | # check if it works for CXX, too. |
| 4295 | ac_cv_cxx_thread=no |
| 4296 | if test ! -z "$CXX" |
| 4297 | then |
| 4298 | echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 4299 | echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6 |
| 4300 | ac_save_cxx="$CXX" |
| 4301 | |
| 4302 | if test "$ac_cv_kpthread" = "yes" |
| 4303 | then |
| 4304 | CXX="$CXX -Kpthread" |
| 4305 | ac_cv_cxx_thread=yes |
| 4306 | elif test "$ac_cv_kthread" = "yes" |
| 4307 | then |
| 4308 | CXX="$CXX -Kthread" |
| 4309 | ac_cv_cxx_thread=yes |
| 4310 | elif test "$ac_cv_pthread" = "yes" |
| 4311 | then |
| 4312 | CXX="$CXX -pthread" |
| 4313 | ac_cv_cxx_thread=yes |
| 4314 | fi |
| 4315 | |
| 4316 | if test $ac_cv_cxx_thread = yes |
| 4317 | then |
| 4318 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 4319 | $CXX -c conftest.$ac_ext 2>&5 |
| 4320 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 4321 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 4322 | then |
| 4323 | ac_cv_cxx_thread=yes |
| 4324 | else |
| 4325 | ac_cv_cxx_thread=no |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4326 | fi |
| 4327 | rm -fr conftest* |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4328 | fi |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4329 | echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 4330 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6 |
Brett Cannon | c601e0f | 2004-11-07 01:24:12 +0000 | [diff] [blame] | 4331 | fi |
| 4332 | CXX="$ac_save_cxx" |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4333 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4334 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4335 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4336 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4337 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4338 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4340 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4341 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4342 | /* confdefs.h. */ |
| 4343 | _ACEOF |
| 4344 | cat confdefs.h >>conftest.$ac_ext |
| 4345 | cat >>conftest.$ac_ext <<_ACEOF |
| 4346 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4347 | #include <stdlib.h> |
| 4348 | #include <stdarg.h> |
| 4349 | #include <string.h> |
| 4350 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4351 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4352 | int |
| 4353 | main () |
| 4354 | { |
| 4355 | |
| 4356 | ; |
| 4357 | return 0; |
| 4358 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4359 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4360 | rm -f conftest.$ac_objext |
| 4361 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4362 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4363 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4364 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4365 | rm -f conftest.er1 |
| 4366 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4368 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4369 | { ac_try='test -z "$ac_c_werror_flag" |
| 4370 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4372 | (eval $ac_try) 2>&5 |
| 4373 | ac_status=$? |
| 4374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4375 | (exit $ac_status); }; } && |
| 4376 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4378 | (eval $ac_try) 2>&5 |
| 4379 | ac_status=$? |
| 4380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4381 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4382 | ac_cv_header_stdc=yes |
| 4383 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4384 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4386 | |
| 4387 | ac_cv_header_stdc=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4388 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4389 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4390 | |
| 4391 | if test $ac_cv_header_stdc = yes; then |
| 4392 | # 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] | 4393 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4394 | /* confdefs.h. */ |
| 4395 | _ACEOF |
| 4396 | cat confdefs.h >>conftest.$ac_ext |
| 4397 | cat >>conftest.$ac_ext <<_ACEOF |
| 4398 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4399 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4400 | |
| 4401 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4402 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4403 | $EGREP "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4404 | : |
| 4405 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4406 | ac_cv_header_stdc=no |
| 4407 | fi |
| 4408 | rm -f conftest* |
| 4409 | |
| 4410 | fi |
| 4411 | |
| 4412 | if test $ac_cv_header_stdc = yes; then |
| 4413 | # 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] | 4414 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4415 | /* confdefs.h. */ |
| 4416 | _ACEOF |
| 4417 | cat confdefs.h >>conftest.$ac_ext |
| 4418 | cat >>conftest.$ac_ext <<_ACEOF |
| 4419 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4420 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4421 | |
| 4422 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4423 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4424 | $EGREP "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4425 | : |
| 4426 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4427 | ac_cv_header_stdc=no |
| 4428 | fi |
| 4429 | rm -f conftest* |
| 4430 | |
| 4431 | fi |
| 4432 | |
| 4433 | if test $ac_cv_header_stdc = yes; then |
| 4434 | # /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] | 4435 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4436 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4437 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4438 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4439 | /* confdefs.h. */ |
| 4440 | _ACEOF |
| 4441 | cat confdefs.h >>conftest.$ac_ext |
| 4442 | cat >>conftest.$ac_ext <<_ACEOF |
| 4443 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4444 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4445 | #if ((' ' & 0x0FF) == 0x020) |
| 4446 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4447 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4448 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4449 | # define ISLOWER(c) \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4450 | (('a' <= (c) && (c) <= 'i') \ |
| 4451 | || ('j' <= (c) && (c) <= 'r') \ |
| 4452 | || ('s' <= (c) && (c) <= 'z')) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4453 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4454 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4455 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4456 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4457 | int |
| 4458 | main () |
| 4459 | { |
| 4460 | int i; |
| 4461 | for (i = 0; i < 256; i++) |
| 4462 | if (XOR (islower (i), ISLOWER (i)) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4463 | || toupper (i) != TOUPPER (i)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4464 | exit(2); |
| 4465 | exit (0); |
| 4466 | } |
| 4467 | _ACEOF |
| 4468 | rm -f conftest$ac_exeext |
| 4469 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4470 | (eval $ac_link) 2>&5 |
| 4471 | ac_status=$? |
| 4472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4473 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4475 | (eval $ac_try) 2>&5 |
| 4476 | ac_status=$? |
| 4477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4478 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4479 | : |
| 4480 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4481 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4482 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4484 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4485 | ( exit $ac_status ) |
| 4486 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4487 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4488 | 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] | 4489 | fi |
| 4490 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4491 | fi |
| 4492 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4493 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4494 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4495 | |
| 4496 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4497 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4498 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4499 | |
| 4500 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4501 | |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4502 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4503 | |
| 4504 | |
| 4505 | |
| 4506 | |
| 4507 | |
| 4508 | |
| 4509 | |
| 4510 | |
| 4511 | |
| 4512 | 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] | 4513 | inttypes.h stdint.h unistd.h |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4514 | do |
| 4515 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4516 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4517 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4518 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4520 | else |
| 4521 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4522 | /* confdefs.h. */ |
| 4523 | _ACEOF |
| 4524 | cat confdefs.h >>conftest.$ac_ext |
| 4525 | cat >>conftest.$ac_ext <<_ACEOF |
| 4526 | /* end confdefs.h. */ |
| 4527 | $ac_includes_default |
| 4528 | |
| 4529 | #include <$ac_header> |
| 4530 | _ACEOF |
| 4531 | rm -f conftest.$ac_objext |
| 4532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4533 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4534 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4535 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4536 | rm -f conftest.er1 |
| 4537 | cat conftest.err >&5 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4539 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4540 | { ac_try='test -z "$ac_c_werror_flag" |
| 4541 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4543 | (eval $ac_try) 2>&5 |
| 4544 | ac_status=$? |
| 4545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4546 | (exit $ac_status); }; } && |
| 4547 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4549 | (eval $ac_try) 2>&5 |
| 4550 | ac_status=$? |
| 4551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4552 | (exit $ac_status); }; }; then |
| 4553 | eval "$as_ac_Header=yes" |
| 4554 | else |
| 4555 | echo "$as_me: failed program was:" >&5 |
| 4556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4557 | |
| 4558 | eval "$as_ac_Header=no" |
| 4559 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4561 | fi |
| 4562 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4563 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4564 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4565 | cat >>confdefs.h <<_ACEOF |
| 4566 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4567 | _ACEOF |
| 4568 | |
| 4569 | fi |
| 4570 | |
| 4571 | done |
| 4572 | |
| 4573 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4574 | |
| 4575 | |
| 4576 | |
| 4577 | |
| 4578 | |
| 4579 | |
| 4580 | |
| 4581 | |
| 4582 | |
| 4583 | |
| 4584 | |
| 4585 | |
| 4586 | |
| 4587 | |
| 4588 | |
| 4589 | |
| 4590 | |
| 4591 | |
| 4592 | |
| 4593 | |
| 4594 | |
| 4595 | |
| 4596 | |
| 4597 | |
| 4598 | |
| 4599 | |
| 4600 | |
| 4601 | |
| 4602 | |
| 4603 | |
| 4604 | |
| 4605 | |
| 4606 | |
| 4607 | |
| 4608 | |
| 4609 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 4610 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 4611 | |
| 4612 | 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] | 4613 | libintl.h ncurses.h poll.h pthread.h \ |
| 4614 | stropts.h termios.h thread.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4615 | unistd.h utime.h \ |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 4616 | sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \ |
| 4617 | sys/modem.h \ |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4618 | 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] | 4619 | 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] | 4620 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
| 4621 | bluetooth/bluetooth.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4622 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4623 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4624 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4625 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4626 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4627 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4629 | fi |
| 4630 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4631 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4632 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4633 | # Is the header compilable? |
| 4634 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4635 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4636 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4637 | /* confdefs.h. */ |
| 4638 | _ACEOF |
| 4639 | cat confdefs.h >>conftest.$ac_ext |
| 4640 | cat >>conftest.$ac_ext <<_ACEOF |
| 4641 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4642 | $ac_includes_default |
| 4643 | #include <$ac_header> |
| 4644 | _ACEOF |
| 4645 | rm -f conftest.$ac_objext |
| 4646 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4647 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4648 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4649 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4650 | rm -f conftest.er1 |
| 4651 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4653 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4654 | { ac_try='test -z "$ac_c_werror_flag" |
| 4655 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4657 | (eval $ac_try) 2>&5 |
| 4658 | ac_status=$? |
| 4659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4660 | (exit $ac_status); }; } && |
| 4661 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4663 | (eval $ac_try) 2>&5 |
| 4664 | ac_status=$? |
| 4665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4666 | (exit $ac_status); }; }; then |
| 4667 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4668 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4669 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4670 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4672 | ac_header_compiler=no |
| 4673 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4674 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4675 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4676 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4677 | |
| 4678 | # Is the header present? |
| 4679 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4680 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4681 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4682 | /* confdefs.h. */ |
| 4683 | _ACEOF |
| 4684 | cat confdefs.h >>conftest.$ac_ext |
| 4685 | cat >>conftest.$ac_ext <<_ACEOF |
| 4686 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4687 | #include <$ac_header> |
| 4688 | _ACEOF |
| 4689 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4690 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4691 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4692 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4693 | rm -f conftest.er1 |
| 4694 | cat conftest.err >&5 |
| 4695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4696 | (exit $ac_status); } >/dev/null; then |
| 4697 | if test -s conftest.err; then |
| 4698 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4699 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4700 | else |
| 4701 | ac_cpp_err= |
| 4702 | fi |
| 4703 | else |
| 4704 | ac_cpp_err=yes |
| 4705 | fi |
| 4706 | if test -z "$ac_cpp_err"; then |
| 4707 | ac_header_preproc=yes |
| 4708 | else |
| 4709 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4711 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4712 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4713 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4714 | rm -f conftest.err conftest.$ac_ext |
| 4715 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4716 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4717 | |
| 4718 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4719 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4720 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4721 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4722 | 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] | 4723 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 4724 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 4725 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 4726 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4727 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 4728 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4729 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4730 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4731 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4732 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 4733 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 4734 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 4735 | 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] | 4736 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4737 | 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] | 4738 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 4739 | 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] | 4740 | ( |
| 4741 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 4742 | ## ------------------------------------------------ ## |
| 4743 | ## Report this to http://www.python.org/python-bugs ## |
| 4744 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4745 | _ASBOX |
| 4746 | ) | |
| 4747 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4748 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4749 | esac |
| 4750 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4751 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4752 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4754 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4755 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4756 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4757 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4758 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4759 | |
| 4760 | fi |
| 4761 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4762 | cat >>confdefs.h <<_ACEOF |
| 4763 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4764 | _ACEOF |
| 4765 | |
| 4766 | fi |
| 4767 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4768 | done |
| 4769 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4770 | |
| 4771 | |
| 4772 | |
| 4773 | |
| 4774 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4775 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4776 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4777 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4778 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4779 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4780 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4782 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4783 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4784 | /* confdefs.h. */ |
| 4785 | _ACEOF |
| 4786 | cat confdefs.h >>conftest.$ac_ext |
| 4787 | cat >>conftest.$ac_ext <<_ACEOF |
| 4788 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4789 | #include <sys/types.h> |
| 4790 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4791 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4792 | int |
| 4793 | main () |
| 4794 | { |
| 4795 | if ((DIR *) 0) |
| 4796 | return 0; |
| 4797 | ; |
| 4798 | return 0; |
| 4799 | } |
| 4800 | _ACEOF |
| 4801 | rm -f conftest.$ac_objext |
| 4802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4803 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4804 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4805 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4806 | rm -f conftest.er1 |
| 4807 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4809 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4810 | { ac_try='test -z "$ac_c_werror_flag" |
| 4811 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4813 | (eval $ac_try) 2>&5 |
| 4814 | ac_status=$? |
| 4815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4816 | (exit $ac_status); }; } && |
| 4817 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4819 | (eval $ac_try) 2>&5 |
| 4820 | ac_status=$? |
| 4821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4822 | (exit $ac_status); }; }; then |
| 4823 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4824 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4825 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4827 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4828 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4829 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4830 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4831 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4832 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4833 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4834 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4835 | cat >>confdefs.h <<_ACEOF |
| 4836 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4837 | _ACEOF |
| 4838 | |
| 4839 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4840 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4841 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4842 | done |
| 4843 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4844 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4845 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4846 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4847 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4849 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4850 | ac_func_search_save_LIBS=$LIBS |
| 4851 | ac_cv_search_opendir=no |
| 4852 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4853 | /* confdefs.h. */ |
| 4854 | _ACEOF |
| 4855 | cat confdefs.h >>conftest.$ac_ext |
| 4856 | cat >>conftest.$ac_ext <<_ACEOF |
| 4857 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4858 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4859 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4860 | #ifdef __cplusplus |
| 4861 | extern "C" |
| 4862 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4863 | /* 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] | 4864 | builtin and then its argument prototype would still apply. */ |
| 4865 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4866 | int |
| 4867 | main () |
| 4868 | { |
| 4869 | opendir (); |
| 4870 | ; |
| 4871 | return 0; |
| 4872 | } |
| 4873 | _ACEOF |
| 4874 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4875 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4876 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4877 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4878 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4879 | rm -f conftest.er1 |
| 4880 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4882 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4883 | { ac_try='test -z "$ac_c_werror_flag" |
| 4884 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4886 | (eval $ac_try) 2>&5 |
| 4887 | ac_status=$? |
| 4888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4889 | (exit $ac_status); }; } && |
| 4890 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4892 | (eval $ac_try) 2>&5 |
| 4893 | ac_status=$? |
| 4894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4895 | (exit $ac_status); }; }; then |
| 4896 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4897 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4898 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4900 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4901 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4902 | rm -f conftest.err conftest.$ac_objext \ |
| 4903 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4904 | if test "$ac_cv_search_opendir" = no; then |
| 4905 | for ac_lib in dir; do |
| 4906 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4907 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4908 | /* confdefs.h. */ |
| 4909 | _ACEOF |
| 4910 | cat confdefs.h >>conftest.$ac_ext |
| 4911 | cat >>conftest.$ac_ext <<_ACEOF |
| 4912 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4913 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4914 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4915 | #ifdef __cplusplus |
| 4916 | extern "C" |
| 4917 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4918 | /* 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] | 4919 | builtin and then its argument prototype would still apply. */ |
| 4920 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4921 | int |
| 4922 | main () |
| 4923 | { |
| 4924 | opendir (); |
| 4925 | ; |
| 4926 | return 0; |
| 4927 | } |
| 4928 | _ACEOF |
| 4929 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4930 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4931 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4932 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4933 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4934 | rm -f conftest.er1 |
| 4935 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4937 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4938 | { ac_try='test -z "$ac_c_werror_flag" |
| 4939 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4941 | (eval $ac_try) 2>&5 |
| 4942 | ac_status=$? |
| 4943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4944 | (exit $ac_status); }; } && |
| 4945 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4947 | (eval $ac_try) 2>&5 |
| 4948 | ac_status=$? |
| 4949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4950 | (exit $ac_status); }; }; then |
| 4951 | ac_cv_search_opendir="-l$ac_lib" |
| 4952 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4953 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4954 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4956 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4957 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4958 | rm -f conftest.err conftest.$ac_objext \ |
| 4959 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4960 | done |
| 4961 | fi |
| 4962 | LIBS=$ac_func_search_save_LIBS |
| 4963 | fi |
| 4964 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4965 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4966 | if test "$ac_cv_search_opendir" != no; then |
| 4967 | 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] | 4968 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4969 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4970 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4971 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4972 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4973 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4974 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4976 | else |
| 4977 | ac_func_search_save_LIBS=$LIBS |
| 4978 | ac_cv_search_opendir=no |
| 4979 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4980 | /* confdefs.h. */ |
| 4981 | _ACEOF |
| 4982 | cat confdefs.h >>conftest.$ac_ext |
| 4983 | cat >>conftest.$ac_ext <<_ACEOF |
| 4984 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4985 | |
| 4986 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4987 | #ifdef __cplusplus |
| 4988 | extern "C" |
| 4989 | #endif |
| 4990 | /* We use char because int might match the return type of a gcc2 |
| 4991 | builtin and then its argument prototype would still apply. */ |
| 4992 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4993 | int |
| 4994 | main () |
| 4995 | { |
| 4996 | opendir (); |
| 4997 | ; |
| 4998 | return 0; |
| 4999 | } |
| 5000 | _ACEOF |
| 5001 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5003 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5004 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5006 | rm -f conftest.er1 |
| 5007 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5009 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5010 | { ac_try='test -z "$ac_c_werror_flag" |
| 5011 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5013 | (eval $ac_try) 2>&5 |
| 5014 | ac_status=$? |
| 5015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5016 | (exit $ac_status); }; } && |
| 5017 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5019 | (eval $ac_try) 2>&5 |
| 5020 | ac_status=$? |
| 5021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5022 | (exit $ac_status); }; }; then |
| 5023 | ac_cv_search_opendir="none required" |
| 5024 | else |
| 5025 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5027 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5028 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5029 | rm -f conftest.err conftest.$ac_objext \ |
| 5030 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5031 | if test "$ac_cv_search_opendir" = no; then |
| 5032 | for ac_lib in x; do |
| 5033 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 5034 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5035 | /* confdefs.h. */ |
| 5036 | _ACEOF |
| 5037 | cat confdefs.h >>conftest.$ac_ext |
| 5038 | cat >>conftest.$ac_ext <<_ACEOF |
| 5039 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5040 | |
| 5041 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5042 | #ifdef __cplusplus |
| 5043 | extern "C" |
| 5044 | #endif |
| 5045 | /* We use char because int might match the return type of a gcc2 |
| 5046 | builtin and then its argument prototype would still apply. */ |
| 5047 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5048 | int |
| 5049 | main () |
| 5050 | { |
| 5051 | opendir (); |
| 5052 | ; |
| 5053 | return 0; |
| 5054 | } |
| 5055 | _ACEOF |
| 5056 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5057 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5058 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5059 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5060 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5061 | rm -f conftest.er1 |
| 5062 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5064 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5065 | { ac_try='test -z "$ac_c_werror_flag" |
| 5066 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +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); }; } && |
| 5072 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5074 | (eval $ac_try) 2>&5 |
| 5075 | ac_status=$? |
| 5076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5077 | (exit $ac_status); }; }; then |
| 5078 | ac_cv_search_opendir="-l$ac_lib" |
| 5079 | break |
| 5080 | else |
| 5081 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5083 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5084 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5085 | rm -f conftest.err conftest.$ac_objext \ |
| 5086 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5087 | done |
| 5088 | fi |
| 5089 | LIBS=$ac_func_search_save_LIBS |
| 5090 | fi |
| 5091 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5092 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 5093 | if test "$ac_cv_search_opendir" != no; then |
| 5094 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 5095 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5096 | fi |
| 5097 | |
| 5098 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5099 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5100 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 5101 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 5102 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 5103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5104 | else |
| 5105 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5106 | /* confdefs.h. */ |
| 5107 | _ACEOF |
| 5108 | cat confdefs.h >>conftest.$ac_ext |
| 5109 | cat >>conftest.$ac_ext <<_ACEOF |
| 5110 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5111 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5112 | int |
| 5113 | main () |
| 5114 | { |
| 5115 | return makedev(0, 0); |
| 5116 | ; |
| 5117 | return 0; |
| 5118 | } |
| 5119 | _ACEOF |
| 5120 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5121 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5122 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5123 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5125 | rm -f conftest.er1 |
| 5126 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5128 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5129 | { ac_try='test -z "$ac_c_werror_flag" |
| 5130 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5132 | (eval $ac_try) 2>&5 |
| 5133 | ac_status=$? |
| 5134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5135 | (exit $ac_status); }; } && |
| 5136 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5138 | (eval $ac_try) 2>&5 |
| 5139 | ac_status=$? |
| 5140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5141 | (exit $ac_status); }; }; then |
| 5142 | ac_cv_header_sys_types_h_makedev=yes |
| 5143 | else |
| 5144 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5146 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5147 | ac_cv_header_sys_types_h_makedev=no |
| 5148 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5149 | rm -f conftest.err conftest.$ac_objext \ |
| 5150 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5151 | |
| 5152 | fi |
| 5153 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 5154 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 5155 | |
| 5156 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 5157 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5158 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5159 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5160 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5162 | fi |
| 5163 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5164 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5165 | else |
| 5166 | # Is the header compilable? |
| 5167 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 5168 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 5169 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5170 | /* confdefs.h. */ |
| 5171 | _ACEOF |
| 5172 | cat confdefs.h >>conftest.$ac_ext |
| 5173 | cat >>conftest.$ac_ext <<_ACEOF |
| 5174 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5175 | $ac_includes_default |
| 5176 | #include <sys/mkdev.h> |
| 5177 | _ACEOF |
| 5178 | rm -f conftest.$ac_objext |
| 5179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5180 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5181 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5182 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5183 | rm -f conftest.er1 |
| 5184 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5186 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5187 | { ac_try='test -z "$ac_c_werror_flag" |
| 5188 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5190 | (eval $ac_try) 2>&5 |
| 5191 | ac_status=$? |
| 5192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5193 | (exit $ac_status); }; } && |
| 5194 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5196 | (eval $ac_try) 2>&5 |
| 5197 | ac_status=$? |
| 5198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5199 | (exit $ac_status); }; }; then |
| 5200 | ac_header_compiler=yes |
| 5201 | else |
| 5202 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5204 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5205 | ac_header_compiler=no |
| 5206 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5208 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5209 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5210 | |
| 5211 | # Is the header present? |
| 5212 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 5213 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 5214 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5215 | /* confdefs.h. */ |
| 5216 | _ACEOF |
| 5217 | cat confdefs.h >>conftest.$ac_ext |
| 5218 | cat >>conftest.$ac_ext <<_ACEOF |
| 5219 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5220 | #include <sys/mkdev.h> |
| 5221 | _ACEOF |
| 5222 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5223 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5224 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5225 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5226 | rm -f conftest.er1 |
| 5227 | cat conftest.err >&5 |
| 5228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5229 | (exit $ac_status); } >/dev/null; then |
| 5230 | if test -s conftest.err; then |
| 5231 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5232 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5233 | else |
| 5234 | ac_cpp_err= |
| 5235 | fi |
| 5236 | else |
| 5237 | ac_cpp_err=yes |
| 5238 | fi |
| 5239 | if test -z "$ac_cpp_err"; then |
| 5240 | ac_header_preproc=yes |
| 5241 | else |
| 5242 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5244 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5245 | ac_header_preproc=no |
| 5246 | fi |
| 5247 | rm -f conftest.err conftest.$ac_ext |
| 5248 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5249 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5250 | |
| 5251 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5252 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5253 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5254 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5255 | 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] | 5256 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 5257 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} |
| 5258 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5259 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5260 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5261 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 5262 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5263 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 5264 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 5265 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 5266 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 5267 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5268 | 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] | 5269 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 5270 | 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] | 5271 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 5272 | 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] | 5273 | ( |
| 5274 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 5275 | ## ------------------------------------------------ ## |
| 5276 | ## Report this to http://www.python.org/python-bugs ## |
| 5277 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5278 | _ASBOX |
| 5279 | ) | |
| 5280 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5281 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5282 | esac |
| 5283 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5284 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5285 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5287 | else |
| 5288 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 5289 | fi |
| 5290 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5291 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5292 | |
| 5293 | fi |
| 5294 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 5295 | |
| 5296 | cat >>confdefs.h <<\_ACEOF |
| 5297 | #define MAJOR_IN_MKDEV 1 |
| 5298 | _ACEOF |
| 5299 | |
| 5300 | fi |
| 5301 | |
| 5302 | |
| 5303 | |
| 5304 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 5305 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5306 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5307 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5308 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5310 | fi |
| 5311 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5312 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5313 | else |
| 5314 | # Is the header compilable? |
| 5315 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 5316 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 5317 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5318 | /* confdefs.h. */ |
| 5319 | _ACEOF |
| 5320 | cat confdefs.h >>conftest.$ac_ext |
| 5321 | cat >>conftest.$ac_ext <<_ACEOF |
| 5322 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5323 | $ac_includes_default |
| 5324 | #include <sys/sysmacros.h> |
| 5325 | _ACEOF |
| 5326 | rm -f conftest.$ac_objext |
| 5327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5328 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5329 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5330 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5331 | rm -f conftest.er1 |
| 5332 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5334 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5335 | { ac_try='test -z "$ac_c_werror_flag" |
| 5336 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5338 | (eval $ac_try) 2>&5 |
| 5339 | ac_status=$? |
| 5340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5341 | (exit $ac_status); }; } && |
| 5342 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5344 | (eval $ac_try) 2>&5 |
| 5345 | ac_status=$? |
| 5346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5347 | (exit $ac_status); }; }; then |
| 5348 | ac_header_compiler=yes |
| 5349 | else |
| 5350 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5352 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5353 | ac_header_compiler=no |
| 5354 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5356 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5357 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5358 | |
| 5359 | # Is the header present? |
| 5360 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 5361 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 5362 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5363 | /* confdefs.h. */ |
| 5364 | _ACEOF |
| 5365 | cat confdefs.h >>conftest.$ac_ext |
| 5366 | cat >>conftest.$ac_ext <<_ACEOF |
| 5367 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5368 | #include <sys/sysmacros.h> |
| 5369 | _ACEOF |
| 5370 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5371 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5372 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5373 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5374 | rm -f conftest.er1 |
| 5375 | cat conftest.err >&5 |
| 5376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5377 | (exit $ac_status); } >/dev/null; then |
| 5378 | if test -s conftest.err; then |
| 5379 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5380 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5381 | else |
| 5382 | ac_cpp_err= |
| 5383 | fi |
| 5384 | else |
| 5385 | ac_cpp_err=yes |
| 5386 | fi |
| 5387 | if test -z "$ac_cpp_err"; then |
| 5388 | ac_header_preproc=yes |
| 5389 | else |
| 5390 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5392 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5393 | ac_header_preproc=no |
| 5394 | fi |
| 5395 | rm -f conftest.err conftest.$ac_ext |
| 5396 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5397 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5398 | |
| 5399 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5400 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5401 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5402 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5403 | 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] | 5404 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 5405 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} |
| 5406 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5407 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5408 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5409 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 5410 | 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] | 5411 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 5412 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 5413 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 5414 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 5415 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5416 | 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] | 5417 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 5418 | 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] | 5419 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 5420 | 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] | 5421 | ( |
| 5422 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 5423 | ## ------------------------------------------------ ## |
| 5424 | ## Report this to http://www.python.org/python-bugs ## |
| 5425 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5426 | _ASBOX |
| 5427 | ) | |
| 5428 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5429 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5430 | esac |
| 5431 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5432 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5433 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5435 | else |
| 5436 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 5437 | fi |
| 5438 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5439 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5440 | |
| 5441 | fi |
| 5442 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 5443 | |
| 5444 | cat >>confdefs.h <<\_ACEOF |
| 5445 | #define MAJOR_IN_SYSMACROS 1 |
| 5446 | _ACEOF |
| 5447 | |
| 5448 | fi |
| 5449 | |
| 5450 | |
| 5451 | fi |
| 5452 | fi |
| 5453 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5454 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5455 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5456 | |
| 5457 | for ac_header in term.h |
| 5458 | do |
| 5459 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5460 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5461 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5462 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5464 | else |
| 5465 | cat >conftest.$ac_ext <<_ACEOF |
| 5466 | /* confdefs.h. */ |
| 5467 | _ACEOF |
| 5468 | cat confdefs.h >>conftest.$ac_ext |
| 5469 | cat >>conftest.$ac_ext <<_ACEOF |
| 5470 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5471 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 5472 | #ifdef HAVE_CURSES_H |
| 5473 | #include <curses.h> |
| 5474 | #endif |
| 5475 | |
| 5476 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5477 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5478 | _ACEOF |
| 5479 | rm -f conftest.$ac_objext |
| 5480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5481 | (eval $ac_compile) 2>conftest.er1 |
| 5482 | ac_status=$? |
| 5483 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5484 | rm -f conftest.er1 |
| 5485 | cat conftest.err >&5 |
| 5486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5487 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5488 | { ac_try='test -z "$ac_c_werror_flag" |
| 5489 | || test ! -s conftest.err' |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5491 | (eval $ac_try) 2>&5 |
| 5492 | ac_status=$? |
| 5493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5494 | (exit $ac_status); }; } && |
| 5495 | { ac_try='test -s conftest.$ac_objext' |
| 5496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5497 | (eval $ac_try) 2>&5 |
| 5498 | ac_status=$? |
| 5499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5500 | (exit $ac_status); }; }; then |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5501 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5502 | else |
| 5503 | echo "$as_me: failed program was:" >&5 |
| 5504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5505 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5506 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5507 | fi |
| 5508 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5509 | fi |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5510 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5511 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5512 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5513 | cat >>confdefs.h <<_ACEOF |
| 5514 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5515 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5516 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5517 | fi |
| 5518 | |
| 5519 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5520 | |
| 5521 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5522 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5523 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5524 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 5525 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 5526 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5527 | /* confdefs.h. */ |
| 5528 | _ACEOF |
| 5529 | cat confdefs.h >>conftest.$ac_ext |
| 5530 | cat >>conftest.$ac_ext <<_ACEOF |
| 5531 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5532 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5533 | |
| 5534 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5535 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5536 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5537 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5538 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5539 | |
| 5540 | |
| 5541 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5542 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5543 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5544 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 5545 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5546 | fi |
| 5547 | rm -f conftest* |
| 5548 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5549 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 5550 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5551 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5552 | # Check whether using makedev requires defining _OSF_SOURCE |
| 5553 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 5554 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 5555 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5556 | /* confdefs.h. */ |
| 5557 | _ACEOF |
| 5558 | cat confdefs.h >>conftest.$ac_ext |
| 5559 | cat >>conftest.$ac_ext <<_ACEOF |
| 5560 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5561 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5562 | int |
| 5563 | main () |
| 5564 | { |
| 5565 | makedev(0, 0) |
| 5566 | ; |
| 5567 | return 0; |
| 5568 | } |
| 5569 | _ACEOF |
| 5570 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5571 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5572 | (eval $ac_link) 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5573 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5574 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5575 | rm -f conftest.er1 |
| 5576 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5578 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5579 | { ac_try='test -z "$ac_c_werror_flag" |
| 5580 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5582 | (eval $ac_try) 2>&5 |
| 5583 | ac_status=$? |
| 5584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5585 | (exit $ac_status); }; } && |
| 5586 | { ac_try='test -s conftest$ac_exeext' |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5588 | (eval $ac_try) 2>&5 |
| 5589 | ac_status=$? |
| 5590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5591 | (exit $ac_status); }; }; then |
| 5592 | ac_cv_has_makedev=yes |
| 5593 | else |
| 5594 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5595 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5596 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5597 | ac_cv_has_makedev=no |
| 5598 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5599 | rm -f conftest.err conftest.$ac_objext \ |
| 5600 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5601 | if test "$ac_cv_has_makedev" = "no"; then |
| 5602 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 5603 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5604 | /* confdefs.h. */ |
| 5605 | _ACEOF |
| 5606 | cat confdefs.h >>conftest.$ac_ext |
| 5607 | cat >>conftest.$ac_ext <<_ACEOF |
| 5608 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5609 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5610 | #define _OSF_SOURCE 1 |
| 5611 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5612 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5613 | int |
| 5614 | main () |
| 5615 | { |
| 5616 | makedev(0, 0) |
| 5617 | ; |
| 5618 | return 0; |
| 5619 | } |
| 5620 | _ACEOF |
| 5621 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5622 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5623 | (eval $ac_link) 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5624 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5625 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5626 | rm -f conftest.er1 |
| 5627 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5629 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5630 | { ac_try='test -z "$ac_c_werror_flag" |
| 5631 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5633 | (eval $ac_try) 2>&5 |
| 5634 | ac_status=$? |
| 5635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5636 | (exit $ac_status); }; } && |
| 5637 | { ac_try='test -s conftest$ac_exeext' |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5639 | (eval $ac_try) 2>&5 |
| 5640 | ac_status=$? |
| 5641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5642 | (exit $ac_status); }; }; then |
| 5643 | ac_cv_has_makedev=yes |
| 5644 | else |
| 5645 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5646 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5647 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5648 | ac_cv_has_makedev=no |
| 5649 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5650 | rm -f conftest.err conftest.$ac_objext \ |
| 5651 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5652 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5653 | |
| 5654 | cat >>confdefs.h <<\_ACEOF |
| 5655 | #define _OSF_SOURCE 1 |
| 5656 | _ACEOF |
| 5657 | |
| 5658 | fi |
| 5659 | fi |
| 5660 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 5661 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 5662 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5663 | |
| 5664 | cat >>confdefs.h <<\_ACEOF |
| 5665 | #define HAVE_MAKEDEV 1 |
| 5666 | _ACEOF |
| 5667 | |
| 5668 | fi |
| 5669 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5670 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 5671 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 5672 | # defined, but the compiler does not support pragma redefine_extname, |
| 5673 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 5674 | # structures (such as rlimit64) without declaring them. As a |
| 5675 | # work-around, disable LFS on such configurations |
| 5676 | |
| 5677 | use_lfs=yes |
| 5678 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 5679 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 5680 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5681 | /* confdefs.h. */ |
| 5682 | _ACEOF |
| 5683 | cat confdefs.h >>conftest.$ac_ext |
| 5684 | cat >>conftest.$ac_ext <<_ACEOF |
| 5685 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5686 | |
| 5687 | #define _LARGEFILE_SOURCE 1 |
| 5688 | #define _FILE_OFFSET_BITS 64 |
| 5689 | #include <sys/resource.h> |
| 5690 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5691 | int |
| 5692 | main () |
| 5693 | { |
| 5694 | struct rlimit foo; |
| 5695 | ; |
| 5696 | return 0; |
| 5697 | } |
| 5698 | _ACEOF |
| 5699 | rm -f conftest.$ac_objext |
| 5700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5701 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5702 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5704 | rm -f conftest.er1 |
| 5705 | cat conftest.err >&5 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5707 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5708 | { ac_try='test -z "$ac_c_werror_flag" |
| 5709 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5711 | (eval $ac_try) 2>&5 |
| 5712 | ac_status=$? |
| 5713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5714 | (exit $ac_status); }; } && |
| 5715 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5717 | (eval $ac_try) 2>&5 |
| 5718 | ac_status=$? |
| 5719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5720 | (exit $ac_status); }; }; then |
| 5721 | sol_lfs_bug=no |
| 5722 | else |
| 5723 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5725 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5726 | sol_lfs_bug=yes |
| 5727 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5728 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5729 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 5730 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 5731 | if test "$sol_lfs_bug" = "yes"; then |
| 5732 | use_lfs=no |
| 5733 | fi |
| 5734 | |
| 5735 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5736 | # Two defines needed to enable largefile support on various platforms |
| 5737 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5738 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5739 | cat >>confdefs.h <<\_ACEOF |
| 5740 | #define _LARGEFILE_SOURCE 1 |
| 5741 | _ACEOF |
| 5742 | |
| 5743 | |
| 5744 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5745 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5746 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5747 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5748 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5749 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 5750 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 5751 | cat >> confdefs.h <<\EOF |
| 5752 | #if defined(SCO_DS) |
| 5753 | #undef _OFF_T |
| 5754 | #endif |
| 5755 | EOF |
| 5756 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5757 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5758 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 5759 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 5760 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 5761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5762 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5763 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5764 | /* confdefs.h. */ |
| 5765 | _ACEOF |
| 5766 | cat confdefs.h >>conftest.$ac_ext |
| 5767 | cat >>conftest.$ac_ext <<_ACEOF |
| 5768 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5769 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5770 | int |
| 5771 | main () |
| 5772 | { |
| 5773 | if ((mode_t *) 0) |
| 5774 | return 0; |
| 5775 | if (sizeof (mode_t)) |
| 5776 | return 0; |
| 5777 | ; |
| 5778 | return 0; |
| 5779 | } |
| 5780 | _ACEOF |
| 5781 | rm -f conftest.$ac_objext |
| 5782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5783 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5784 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5785 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5786 | rm -f conftest.er1 |
| 5787 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5789 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5790 | { ac_try='test -z "$ac_c_werror_flag" |
| 5791 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5793 | (eval $ac_try) 2>&5 |
| 5794 | ac_status=$? |
| 5795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5796 | (exit $ac_status); }; } && |
| 5797 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5799 | (eval $ac_try) 2>&5 |
| 5800 | ac_status=$? |
| 5801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5802 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5803 | ac_cv_type_mode_t=yes |
| 5804 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5805 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5807 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5808 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5809 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5810 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5811 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5812 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 5813 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 5814 | if test $ac_cv_type_mode_t = yes; then |
| 5815 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5816 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5817 | |
| 5818 | cat >>confdefs.h <<_ACEOF |
| 5819 | #define mode_t int |
| 5820 | _ACEOF |
| 5821 | |
| 5822 | fi |
| 5823 | |
| 5824 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5825 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 5826 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5828 | else |
| 5829 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5830 | /* confdefs.h. */ |
| 5831 | _ACEOF |
| 5832 | cat confdefs.h >>conftest.$ac_ext |
| 5833 | cat >>conftest.$ac_ext <<_ACEOF |
| 5834 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5835 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5836 | int |
| 5837 | main () |
| 5838 | { |
| 5839 | if ((off_t *) 0) |
| 5840 | return 0; |
| 5841 | if (sizeof (off_t)) |
| 5842 | return 0; |
| 5843 | ; |
| 5844 | return 0; |
| 5845 | } |
| 5846 | _ACEOF |
| 5847 | rm -f conftest.$ac_objext |
| 5848 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5849 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5850 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5851 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5852 | rm -f conftest.er1 |
| 5853 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5855 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5856 | { ac_try='test -z "$ac_c_werror_flag" |
| 5857 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5859 | (eval $ac_try) 2>&5 |
| 5860 | ac_status=$? |
| 5861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5862 | (exit $ac_status); }; } && |
| 5863 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5865 | (eval $ac_try) 2>&5 |
| 5866 | ac_status=$? |
| 5867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5868 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5869 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5870 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5871 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5873 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5874 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5875 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5876 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5877 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5878 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5879 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 5880 | if test $ac_cv_type_off_t = yes; then |
| 5881 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5882 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5883 | |
| 5884 | cat >>confdefs.h <<_ACEOF |
| 5885 | #define off_t long |
| 5886 | _ACEOF |
| 5887 | |
| 5888 | fi |
| 5889 | |
| 5890 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 5891 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 5892 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 5893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5894 | else |
| 5895 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5896 | /* confdefs.h. */ |
| 5897 | _ACEOF |
| 5898 | cat confdefs.h >>conftest.$ac_ext |
| 5899 | cat >>conftest.$ac_ext <<_ACEOF |
| 5900 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5901 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5902 | int |
| 5903 | main () |
| 5904 | { |
| 5905 | if ((pid_t *) 0) |
| 5906 | return 0; |
| 5907 | if (sizeof (pid_t)) |
| 5908 | return 0; |
| 5909 | ; |
| 5910 | return 0; |
| 5911 | } |
| 5912 | _ACEOF |
| 5913 | rm -f conftest.$ac_objext |
| 5914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5915 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5916 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5918 | rm -f conftest.er1 |
| 5919 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5921 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5922 | { ac_try='test -z "$ac_c_werror_flag" |
| 5923 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5925 | (eval $ac_try) 2>&5 |
| 5926 | ac_status=$? |
| 5927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5928 | (exit $ac_status); }; } && |
| 5929 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5931 | (eval $ac_try) 2>&5 |
| 5932 | ac_status=$? |
| 5933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5934 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5935 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5936 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5937 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5939 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5940 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5941 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5942 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5943 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5944 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 5945 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 5946 | if test $ac_cv_type_pid_t = yes; then |
| 5947 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5948 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5949 | |
| 5950 | cat >>confdefs.h <<_ACEOF |
| 5951 | #define pid_t int |
| 5952 | _ACEOF |
| 5953 | |
| 5954 | fi |
| 5955 | |
| 5956 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 5957 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 5958 | if test "${ac_cv_type_signal+set}" = set; then |
| 5959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5960 | else |
| 5961 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5962 | /* confdefs.h. */ |
| 5963 | _ACEOF |
| 5964 | cat confdefs.h >>conftest.$ac_ext |
| 5965 | cat >>conftest.$ac_ext <<_ACEOF |
| 5966 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5967 | #include <sys/types.h> |
| 5968 | #include <signal.h> |
| 5969 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5970 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5971 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5972 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5973 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 5974 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5975 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5976 | #endif |
| 5977 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5978 | int |
| 5979 | main () |
| 5980 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5981 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5982 | ; |
| 5983 | return 0; |
| 5984 | } |
| 5985 | _ACEOF |
| 5986 | rm -f conftest.$ac_objext |
| 5987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5988 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5989 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5991 | rm -f conftest.er1 |
| 5992 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5994 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5995 | { ac_try='test -z "$ac_c_werror_flag" |
| 5996 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5998 | (eval $ac_try) 2>&5 |
| 5999 | ac_status=$? |
| 6000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6001 | (exit $ac_status); }; } && |
| 6002 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6004 | (eval $ac_try) 2>&5 |
| 6005 | ac_status=$? |
| 6006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6007 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6008 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6009 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6010 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6012 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6013 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6014 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6015 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6016 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6017 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 6018 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6019 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6020 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6021 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6022 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6023 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6024 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6025 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 6026 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 6027 | if test "${ac_cv_type_size_t+set}" = set; then |
| 6028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6029 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6030 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6031 | /* confdefs.h. */ |
| 6032 | _ACEOF |
| 6033 | cat confdefs.h >>conftest.$ac_ext |
| 6034 | cat >>conftest.$ac_ext <<_ACEOF |
| 6035 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6036 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6037 | int |
| 6038 | main () |
| 6039 | { |
| 6040 | if ((size_t *) 0) |
| 6041 | return 0; |
| 6042 | if (sizeof (size_t)) |
| 6043 | return 0; |
| 6044 | ; |
| 6045 | return 0; |
| 6046 | } |
| 6047 | _ACEOF |
| 6048 | rm -f conftest.$ac_objext |
| 6049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6050 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6051 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6052 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6053 | rm -f conftest.er1 |
| 6054 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6056 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6057 | { ac_try='test -z "$ac_c_werror_flag" |
| 6058 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6060 | (eval $ac_try) 2>&5 |
| 6061 | ac_status=$? |
| 6062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6063 | (exit $ac_status); }; } && |
| 6064 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6066 | (eval $ac_try) 2>&5 |
| 6067 | ac_status=$? |
| 6068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6069 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6070 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6071 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6072 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6073 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6074 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6075 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6076 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6077 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6078 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6079 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 6080 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 6081 | if test $ac_cv_type_size_t = yes; then |
| 6082 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6083 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6084 | |
| 6085 | cat >>confdefs.h <<_ACEOF |
| 6086 | #define size_t unsigned |
| 6087 | _ACEOF |
| 6088 | |
| 6089 | fi |
| 6090 | |
| 6091 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 6092 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 6093 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 6094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6095 | else |
| 6096 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6097 | /* confdefs.h. */ |
| 6098 | _ACEOF |
| 6099 | cat confdefs.h >>conftest.$ac_ext |
| 6100 | cat >>conftest.$ac_ext <<_ACEOF |
| 6101 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6102 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6103 | |
| 6104 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6105 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6106 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6107 | ac_cv_type_uid_t=yes |
| 6108 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6109 | ac_cv_type_uid_t=no |
| 6110 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6111 | rm -f conftest* |
| 6112 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6113 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6114 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 6115 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6116 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6117 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6118 | cat >>confdefs.h <<\_ACEOF |
| 6119 | #define uid_t int |
| 6120 | _ACEOF |
| 6121 | |
| 6122 | |
| 6123 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6124 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6125 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6126 | |
| 6127 | fi |
| 6128 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6129 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6130 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 6131 | # 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] | 6132 | echo "$as_me:$LINENO: checking for int" >&5 |
| 6133 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 6134 | if test "${ac_cv_type_int+set}" = set; then |
| 6135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6136 | else |
| 6137 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6138 | /* confdefs.h. */ |
| 6139 | _ACEOF |
| 6140 | cat confdefs.h >>conftest.$ac_ext |
| 6141 | cat >>conftest.$ac_ext <<_ACEOF |
| 6142 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6143 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6144 | int |
| 6145 | main () |
| 6146 | { |
| 6147 | if ((int *) 0) |
| 6148 | return 0; |
| 6149 | if (sizeof (int)) |
| 6150 | return 0; |
| 6151 | ; |
| 6152 | return 0; |
| 6153 | } |
| 6154 | _ACEOF |
| 6155 | rm -f conftest.$ac_objext |
| 6156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6157 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6158 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6159 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6160 | rm -f conftest.er1 |
| 6161 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6163 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6164 | { ac_try='test -z "$ac_c_werror_flag" |
| 6165 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6167 | (eval $ac_try) 2>&5 |
| 6168 | ac_status=$? |
| 6169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6170 | (exit $ac_status); }; } && |
| 6171 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6173 | (eval $ac_try) 2>&5 |
| 6174 | ac_status=$? |
| 6175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6176 | (exit $ac_status); }; }; then |
| 6177 | ac_cv_type_int=yes |
| 6178 | else |
| 6179 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6181 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6182 | ac_cv_type_int=no |
| 6183 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6185 | fi |
| 6186 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 6187 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 6188 | |
| 6189 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 6190 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 6191 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 6192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6193 | else |
| 6194 | if test "$ac_cv_type_int" = yes; then |
| 6195 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6196 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6197 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6198 | # This bug is HP SR number 8606223364. |
| 6199 | if test "$cross_compiling" = yes; then |
| 6200 | # Depending upon the size, compute the lo and hi bounds. |
| 6201 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6202 | /* confdefs.h. */ |
| 6203 | _ACEOF |
| 6204 | cat confdefs.h >>conftest.$ac_ext |
| 6205 | cat >>conftest.$ac_ext <<_ACEOF |
| 6206 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6207 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6208 | int |
| 6209 | main () |
| 6210 | { |
| 6211 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 6212 | test_array [0] = 0 |
| 6213 | |
| 6214 | ; |
| 6215 | return 0; |
| 6216 | } |
| 6217 | _ACEOF |
| 6218 | rm -f conftest.$ac_objext |
| 6219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6220 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6221 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6223 | rm -f conftest.er1 |
| 6224 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6226 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6227 | { ac_try='test -z "$ac_c_werror_flag" |
| 6228 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6230 | (eval $ac_try) 2>&5 |
| 6231 | ac_status=$? |
| 6232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6233 | (exit $ac_status); }; } && |
| 6234 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6236 | (eval $ac_try) 2>&5 |
| 6237 | ac_status=$? |
| 6238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6239 | (exit $ac_status); }; }; then |
| 6240 | ac_lo=0 ac_mid=0 |
| 6241 | while :; do |
| 6242 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6243 | /* confdefs.h. */ |
| 6244 | _ACEOF |
| 6245 | cat confdefs.h >>conftest.$ac_ext |
| 6246 | cat >>conftest.$ac_ext <<_ACEOF |
| 6247 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6248 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6249 | int |
| 6250 | main () |
| 6251 | { |
| 6252 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6253 | test_array [0] = 0 |
| 6254 | |
| 6255 | ; |
| 6256 | return 0; |
| 6257 | } |
| 6258 | _ACEOF |
| 6259 | rm -f conftest.$ac_objext |
| 6260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6261 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6262 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6264 | rm -f conftest.er1 |
| 6265 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6267 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6268 | { ac_try='test -z "$ac_c_werror_flag" |
| 6269 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6271 | (eval $ac_try) 2>&5 |
| 6272 | ac_status=$? |
| 6273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6274 | (exit $ac_status); }; } && |
| 6275 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6277 | (eval $ac_try) 2>&5 |
| 6278 | ac_status=$? |
| 6279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6280 | (exit $ac_status); }; }; then |
| 6281 | ac_hi=$ac_mid; break |
| 6282 | else |
| 6283 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6285 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6286 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6287 | if test $ac_lo -le $ac_mid; then |
| 6288 | ac_lo= ac_hi= |
| 6289 | break |
| 6290 | fi |
| 6291 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6292 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6293 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6294 | done |
| 6295 | else |
| 6296 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6297 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6298 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6299 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6300 | /* confdefs.h. */ |
| 6301 | _ACEOF |
| 6302 | cat confdefs.h >>conftest.$ac_ext |
| 6303 | cat >>conftest.$ac_ext <<_ACEOF |
| 6304 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6305 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6306 | int |
| 6307 | main () |
| 6308 | { |
| 6309 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 6310 | test_array [0] = 0 |
| 6311 | |
| 6312 | ; |
| 6313 | return 0; |
| 6314 | } |
| 6315 | _ACEOF |
| 6316 | rm -f conftest.$ac_objext |
| 6317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6318 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6319 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6320 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6321 | rm -f conftest.er1 |
| 6322 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6324 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6325 | { ac_try='test -z "$ac_c_werror_flag" |
| 6326 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6328 | (eval $ac_try) 2>&5 |
| 6329 | ac_status=$? |
| 6330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6331 | (exit $ac_status); }; } && |
| 6332 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6334 | (eval $ac_try) 2>&5 |
| 6335 | ac_status=$? |
| 6336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6337 | (exit $ac_status); }; }; then |
| 6338 | ac_hi=-1 ac_mid=-1 |
| 6339 | while :; do |
| 6340 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6341 | /* confdefs.h. */ |
| 6342 | _ACEOF |
| 6343 | cat confdefs.h >>conftest.$ac_ext |
| 6344 | cat >>conftest.$ac_ext <<_ACEOF |
| 6345 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6346 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6347 | int |
| 6348 | main () |
| 6349 | { |
| 6350 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 6351 | test_array [0] = 0 |
| 6352 | |
| 6353 | ; |
| 6354 | return 0; |
| 6355 | } |
| 6356 | _ACEOF |
| 6357 | rm -f conftest.$ac_objext |
| 6358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6359 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6360 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6362 | rm -f conftest.er1 |
| 6363 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6365 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6366 | { ac_try='test -z "$ac_c_werror_flag" |
| 6367 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6369 | (eval $ac_try) 2>&5 |
| 6370 | ac_status=$? |
| 6371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6372 | (exit $ac_status); }; } && |
| 6373 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6375 | (eval $ac_try) 2>&5 |
| 6376 | ac_status=$? |
| 6377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6378 | (exit $ac_status); }; }; then |
| 6379 | ac_lo=$ac_mid; break |
| 6380 | else |
| 6381 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6382 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6383 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6384 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6385 | if test $ac_mid -le $ac_hi; then |
| 6386 | ac_lo= ac_hi= |
| 6387 | break |
| 6388 | fi |
| 6389 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6390 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6391 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6392 | done |
| 6393 | else |
| 6394 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6395 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6396 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6397 | ac_lo= ac_hi= |
| 6398 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6399 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6400 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6401 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6402 | # Binary search between lo and hi bounds. |
| 6403 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6404 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6405 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6406 | /* confdefs.h. */ |
| 6407 | _ACEOF |
| 6408 | cat confdefs.h >>conftest.$ac_ext |
| 6409 | cat >>conftest.$ac_ext <<_ACEOF |
| 6410 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6411 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6412 | int |
| 6413 | main () |
| 6414 | { |
| 6415 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6416 | test_array [0] = 0 |
| 6417 | |
| 6418 | ; |
| 6419 | return 0; |
| 6420 | } |
| 6421 | _ACEOF |
| 6422 | rm -f conftest.$ac_objext |
| 6423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6424 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6425 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6427 | rm -f conftest.er1 |
| 6428 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6430 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6431 | { ac_try='test -z "$ac_c_werror_flag" |
| 6432 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6434 | (eval $ac_try) 2>&5 |
| 6435 | ac_status=$? |
| 6436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6437 | (exit $ac_status); }; } && |
| 6438 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6440 | (eval $ac_try) 2>&5 |
| 6441 | ac_status=$? |
| 6442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6443 | (exit $ac_status); }; }; then |
| 6444 | ac_hi=$ac_mid |
| 6445 | else |
| 6446 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6448 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6449 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6450 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6451 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6452 | done |
| 6453 | case $ac_lo in |
| 6454 | ?*) ac_cv_sizeof_int=$ac_lo;; |
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 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6461 | else |
| 6462 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6463 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6464 | See \`config.log' for more details." >&5 |
| 6465 | echo "$as_me: error: cannot run test program while cross compiling |
| 6466 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6467 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6468 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6469 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6470 | /* confdefs.h. */ |
| 6471 | _ACEOF |
| 6472 | cat confdefs.h >>conftest.$ac_ext |
| 6473 | cat >>conftest.$ac_ext <<_ACEOF |
| 6474 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6475 | $ac_includes_default |
| 6476 | long longval () { return (long) (sizeof (int)); } |
| 6477 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6478 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6479 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6480 | int |
| 6481 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6482 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6483 | |
| 6484 | FILE *f = fopen ("conftest.val", "w"); |
| 6485 | if (! f) |
| 6486 | exit (1); |
| 6487 | if (((long) (sizeof (int))) < 0) |
| 6488 | { |
| 6489 | long i = longval (); |
| 6490 | if (i != ((long) (sizeof (int)))) |
| 6491 | exit (1); |
| 6492 | fprintf (f, "%ld\n", i); |
| 6493 | } |
| 6494 | else |
| 6495 | { |
| 6496 | unsigned long i = ulongval (); |
| 6497 | if (i != ((long) (sizeof (int)))) |
| 6498 | exit (1); |
| 6499 | fprintf (f, "%lu\n", i); |
| 6500 | } |
| 6501 | exit (ferror (f) || fclose (f) != 0); |
| 6502 | |
| 6503 | ; |
| 6504 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6505 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6506 | _ACEOF |
| 6507 | rm -f conftest$ac_exeext |
| 6508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6509 | (eval $ac_link) 2>&5 |
| 6510 | ac_status=$? |
| 6511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6512 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6514 | (eval $ac_try) 2>&5 |
| 6515 | ac_status=$? |
| 6516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6517 | (exit $ac_status); }; }; then |
| 6518 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6519 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6520 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6521 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6523 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6524 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6525 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6526 | See \`config.log' for more details." >&5 |
| 6527 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6528 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6529 | { (exit 1); exit 1; }; } |
| 6530 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6531 | 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] | 6532 | fi |
| 6533 | fi |
| 6534 | rm -f conftest.val |
| 6535 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6536 | ac_cv_sizeof_int=0 |
| 6537 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6538 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6539 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 6540 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 6541 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6542 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6543 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6544 | |
| 6545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6546 | echo "$as_me:$LINENO: checking for long" >&5 |
| 6547 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 6548 | if test "${ac_cv_type_long+set}" = set; then |
| 6549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6550 | else |
| 6551 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6552 | /* confdefs.h. */ |
| 6553 | _ACEOF |
| 6554 | cat confdefs.h >>conftest.$ac_ext |
| 6555 | cat >>conftest.$ac_ext <<_ACEOF |
| 6556 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6557 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6558 | int |
| 6559 | main () |
| 6560 | { |
| 6561 | if ((long *) 0) |
| 6562 | return 0; |
| 6563 | if (sizeof (long)) |
| 6564 | return 0; |
| 6565 | ; |
| 6566 | return 0; |
| 6567 | } |
| 6568 | _ACEOF |
| 6569 | rm -f conftest.$ac_objext |
| 6570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6571 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6572 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6574 | rm -f conftest.er1 |
| 6575 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6577 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6578 | { ac_try='test -z "$ac_c_werror_flag" |
| 6579 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6581 | (eval $ac_try) 2>&5 |
| 6582 | ac_status=$? |
| 6583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6584 | (exit $ac_status); }; } && |
| 6585 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6587 | (eval $ac_try) 2>&5 |
| 6588 | ac_status=$? |
| 6589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6590 | (exit $ac_status); }; }; then |
| 6591 | ac_cv_type_long=yes |
| 6592 | else |
| 6593 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6595 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6596 | ac_cv_type_long=no |
| 6597 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6598 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6599 | fi |
| 6600 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 6601 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 6602 | |
| 6603 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 6604 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 6605 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 6606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6607 | else |
| 6608 | if test "$ac_cv_type_long" = yes; then |
| 6609 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6610 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6611 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6612 | # This bug is HP SR number 8606223364. |
| 6613 | if test "$cross_compiling" = yes; then |
| 6614 | # Depending upon the size, compute the lo and hi bounds. |
| 6615 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6616 | /* confdefs.h. */ |
| 6617 | _ACEOF |
| 6618 | cat confdefs.h >>conftest.$ac_ext |
| 6619 | cat >>conftest.$ac_ext <<_ACEOF |
| 6620 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6621 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6622 | int |
| 6623 | main () |
| 6624 | { |
| 6625 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 6626 | test_array [0] = 0 |
| 6627 | |
| 6628 | ; |
| 6629 | return 0; |
| 6630 | } |
| 6631 | _ACEOF |
| 6632 | rm -f conftest.$ac_objext |
| 6633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6634 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6635 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6636 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6637 | rm -f conftest.er1 |
| 6638 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6640 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6641 | { ac_try='test -z "$ac_c_werror_flag" |
| 6642 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6644 | (eval $ac_try) 2>&5 |
| 6645 | ac_status=$? |
| 6646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6647 | (exit $ac_status); }; } && |
| 6648 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6650 | (eval $ac_try) 2>&5 |
| 6651 | ac_status=$? |
| 6652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6653 | (exit $ac_status); }; }; then |
| 6654 | ac_lo=0 ac_mid=0 |
| 6655 | while :; do |
| 6656 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6657 | /* confdefs.h. */ |
| 6658 | _ACEOF |
| 6659 | cat confdefs.h >>conftest.$ac_ext |
| 6660 | cat >>conftest.$ac_ext <<_ACEOF |
| 6661 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6662 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6663 | int |
| 6664 | main () |
| 6665 | { |
| 6666 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6667 | test_array [0] = 0 |
| 6668 | |
| 6669 | ; |
| 6670 | return 0; |
| 6671 | } |
| 6672 | _ACEOF |
| 6673 | rm -f conftest.$ac_objext |
| 6674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6675 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6676 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6678 | rm -f conftest.er1 |
| 6679 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6681 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6682 | { ac_try='test -z "$ac_c_werror_flag" |
| 6683 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6685 | (eval $ac_try) 2>&5 |
| 6686 | ac_status=$? |
| 6687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6688 | (exit $ac_status); }; } && |
| 6689 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6691 | (eval $ac_try) 2>&5 |
| 6692 | ac_status=$? |
| 6693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6694 | (exit $ac_status); }; }; then |
| 6695 | ac_hi=$ac_mid; break |
| 6696 | else |
| 6697 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6699 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6700 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6701 | if test $ac_lo -le $ac_mid; then |
| 6702 | ac_lo= ac_hi= |
| 6703 | break |
| 6704 | fi |
| 6705 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6706 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6707 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6708 | done |
| 6709 | else |
| 6710 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6712 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6713 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6714 | /* confdefs.h. */ |
| 6715 | _ACEOF |
| 6716 | cat confdefs.h >>conftest.$ac_ext |
| 6717 | cat >>conftest.$ac_ext <<_ACEOF |
| 6718 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6719 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6720 | int |
| 6721 | main () |
| 6722 | { |
| 6723 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 6724 | test_array [0] = 0 |
| 6725 | |
| 6726 | ; |
| 6727 | return 0; |
| 6728 | } |
| 6729 | _ACEOF |
| 6730 | rm -f conftest.$ac_objext |
| 6731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6732 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6733 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6735 | rm -f conftest.er1 |
| 6736 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6738 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6739 | { ac_try='test -z "$ac_c_werror_flag" |
| 6740 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6742 | (eval $ac_try) 2>&5 |
| 6743 | ac_status=$? |
| 6744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6745 | (exit $ac_status); }; } && |
| 6746 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6748 | (eval $ac_try) 2>&5 |
| 6749 | ac_status=$? |
| 6750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6751 | (exit $ac_status); }; }; then |
| 6752 | ac_hi=-1 ac_mid=-1 |
| 6753 | while :; do |
| 6754 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6755 | /* confdefs.h. */ |
| 6756 | _ACEOF |
| 6757 | cat confdefs.h >>conftest.$ac_ext |
| 6758 | cat >>conftest.$ac_ext <<_ACEOF |
| 6759 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6760 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6761 | int |
| 6762 | main () |
| 6763 | { |
| 6764 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 6765 | test_array [0] = 0 |
| 6766 | |
| 6767 | ; |
| 6768 | return 0; |
| 6769 | } |
| 6770 | _ACEOF |
| 6771 | rm -f conftest.$ac_objext |
| 6772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6773 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6774 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6776 | rm -f conftest.er1 |
| 6777 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6779 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6780 | { ac_try='test -z "$ac_c_werror_flag" |
| 6781 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6783 | (eval $ac_try) 2>&5 |
| 6784 | ac_status=$? |
| 6785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6786 | (exit $ac_status); }; } && |
| 6787 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6789 | (eval $ac_try) 2>&5 |
| 6790 | ac_status=$? |
| 6791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6792 | (exit $ac_status); }; }; then |
| 6793 | ac_lo=$ac_mid; break |
| 6794 | else |
| 6795 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6797 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6798 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6799 | if test $ac_mid -le $ac_hi; then |
| 6800 | ac_lo= ac_hi= |
| 6801 | break |
| 6802 | fi |
| 6803 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6804 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6805 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6806 | done |
| 6807 | else |
| 6808 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6810 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6811 | ac_lo= ac_hi= |
| 6812 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6814 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6815 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6816 | # Binary search between lo and hi bounds. |
| 6817 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6818 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6819 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6820 | /* confdefs.h. */ |
| 6821 | _ACEOF |
| 6822 | cat confdefs.h >>conftest.$ac_ext |
| 6823 | cat >>conftest.$ac_ext <<_ACEOF |
| 6824 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6825 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6826 | int |
| 6827 | main () |
| 6828 | { |
| 6829 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6830 | test_array [0] = 0 |
| 6831 | |
| 6832 | ; |
| 6833 | return 0; |
| 6834 | } |
| 6835 | _ACEOF |
| 6836 | rm -f conftest.$ac_objext |
| 6837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6838 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6839 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6841 | rm -f conftest.er1 |
| 6842 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6844 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6845 | { ac_try='test -z "$ac_c_werror_flag" |
| 6846 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6848 | (eval $ac_try) 2>&5 |
| 6849 | ac_status=$? |
| 6850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6851 | (exit $ac_status); }; } && |
| 6852 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6854 | (eval $ac_try) 2>&5 |
| 6855 | ac_status=$? |
| 6856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6857 | (exit $ac_status); }; }; then |
| 6858 | ac_hi=$ac_mid |
| 6859 | else |
| 6860 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6862 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6863 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6864 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6865 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6866 | done |
| 6867 | case $ac_lo in |
| 6868 | ?*) ac_cv_sizeof_long=$ac_lo;; |
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 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6875 | else |
| 6876 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6877 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6878 | See \`config.log' for more details." >&5 |
| 6879 | echo "$as_me: error: cannot run test program while cross compiling |
| 6880 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6881 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6882 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6883 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6884 | /* confdefs.h. */ |
| 6885 | _ACEOF |
| 6886 | cat confdefs.h >>conftest.$ac_ext |
| 6887 | cat >>conftest.$ac_ext <<_ACEOF |
| 6888 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6889 | $ac_includes_default |
| 6890 | long longval () { return (long) (sizeof (long)); } |
| 6891 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6892 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6893 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6894 | int |
| 6895 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6896 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6897 | |
| 6898 | FILE *f = fopen ("conftest.val", "w"); |
| 6899 | if (! f) |
| 6900 | exit (1); |
| 6901 | if (((long) (sizeof (long))) < 0) |
| 6902 | { |
| 6903 | long i = longval (); |
| 6904 | if (i != ((long) (sizeof (long)))) |
| 6905 | exit (1); |
| 6906 | fprintf (f, "%ld\n", i); |
| 6907 | } |
| 6908 | else |
| 6909 | { |
| 6910 | unsigned long i = ulongval (); |
| 6911 | if (i != ((long) (sizeof (long)))) |
| 6912 | exit (1); |
| 6913 | fprintf (f, "%lu\n", i); |
| 6914 | } |
| 6915 | exit (ferror (f) || fclose (f) != 0); |
| 6916 | |
| 6917 | ; |
| 6918 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6919 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6920 | _ACEOF |
| 6921 | rm -f conftest$ac_exeext |
| 6922 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6923 | (eval $ac_link) 2>&5 |
| 6924 | ac_status=$? |
| 6925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6926 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6928 | (eval $ac_try) 2>&5 |
| 6929 | ac_status=$? |
| 6930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6931 | (exit $ac_status); }; }; then |
| 6932 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6933 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6934 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6935 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6937 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6938 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6939 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 6940 | See \`config.log' for more details." >&5 |
| 6941 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 6942 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6943 | { (exit 1); exit 1; }; } |
| 6944 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6945 | 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] | 6946 | fi |
| 6947 | fi |
| 6948 | rm -f conftest.val |
| 6949 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6950 | ac_cv_sizeof_long=0 |
| 6951 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6952 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6953 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 6954 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 6955 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6956 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6957 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6958 | |
| 6959 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6960 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 6961 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 6962 | if test "${ac_cv_type_void_p+set}" = set; then |
| 6963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6964 | else |
| 6965 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6966 | /* confdefs.h. */ |
| 6967 | _ACEOF |
| 6968 | cat confdefs.h >>conftest.$ac_ext |
| 6969 | cat >>conftest.$ac_ext <<_ACEOF |
| 6970 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6971 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6972 | int |
| 6973 | main () |
| 6974 | { |
| 6975 | if ((void * *) 0) |
| 6976 | return 0; |
| 6977 | if (sizeof (void *)) |
| 6978 | return 0; |
| 6979 | ; |
| 6980 | return 0; |
| 6981 | } |
| 6982 | _ACEOF |
| 6983 | rm -f conftest.$ac_objext |
| 6984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6985 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6986 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6988 | rm -f conftest.er1 |
| 6989 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6991 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6992 | { ac_try='test -z "$ac_c_werror_flag" |
| 6993 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6995 | (eval $ac_try) 2>&5 |
| 6996 | ac_status=$? |
| 6997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6998 | (exit $ac_status); }; } && |
| 6999 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7001 | (eval $ac_try) 2>&5 |
| 7002 | ac_status=$? |
| 7003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7004 | (exit $ac_status); }; }; then |
| 7005 | ac_cv_type_void_p=yes |
| 7006 | else |
| 7007 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7009 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7010 | ac_cv_type_void_p=no |
| 7011 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7013 | fi |
| 7014 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 7015 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 7016 | |
| 7017 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 7018 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 7019 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 7020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7021 | else |
| 7022 | if test "$ac_cv_type_void_p" = yes; then |
| 7023 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7024 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7025 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7026 | # This bug is HP SR number 8606223364. |
| 7027 | if test "$cross_compiling" = yes; then |
| 7028 | # Depending upon the size, compute the lo and hi bounds. |
| 7029 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7030 | /* confdefs.h. */ |
| 7031 | _ACEOF |
| 7032 | cat confdefs.h >>conftest.$ac_ext |
| 7033 | cat >>conftest.$ac_ext <<_ACEOF |
| 7034 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7035 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7036 | int |
| 7037 | main () |
| 7038 | { |
| 7039 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 7040 | test_array [0] = 0 |
| 7041 | |
| 7042 | ; |
| 7043 | return 0; |
| 7044 | } |
| 7045 | _ACEOF |
| 7046 | rm -f conftest.$ac_objext |
| 7047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7048 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7049 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7050 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7051 | rm -f conftest.er1 |
| 7052 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7054 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7055 | { ac_try='test -z "$ac_c_werror_flag" |
| 7056 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7058 | (eval $ac_try) 2>&5 |
| 7059 | ac_status=$? |
| 7060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7061 | (exit $ac_status); }; } && |
| 7062 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7064 | (eval $ac_try) 2>&5 |
| 7065 | ac_status=$? |
| 7066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7067 | (exit $ac_status); }; }; then |
| 7068 | ac_lo=0 ac_mid=0 |
| 7069 | while :; do |
| 7070 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7071 | /* confdefs.h. */ |
| 7072 | _ACEOF |
| 7073 | cat confdefs.h >>conftest.$ac_ext |
| 7074 | cat >>conftest.$ac_ext <<_ACEOF |
| 7075 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7076 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7077 | int |
| 7078 | main () |
| 7079 | { |
| 7080 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 7081 | test_array [0] = 0 |
| 7082 | |
| 7083 | ; |
| 7084 | return 0; |
| 7085 | } |
| 7086 | _ACEOF |
| 7087 | rm -f conftest.$ac_objext |
| 7088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7089 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7090 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7092 | rm -f conftest.er1 |
| 7093 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7095 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7096 | { ac_try='test -z "$ac_c_werror_flag" |
| 7097 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7099 | (eval $ac_try) 2>&5 |
| 7100 | ac_status=$? |
| 7101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7102 | (exit $ac_status); }; } && |
| 7103 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7105 | (eval $ac_try) 2>&5 |
| 7106 | ac_status=$? |
| 7107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7108 | (exit $ac_status); }; }; then |
| 7109 | ac_hi=$ac_mid; break |
| 7110 | else |
| 7111 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7112 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7113 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7114 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7115 | if test $ac_lo -le $ac_mid; then |
| 7116 | ac_lo= ac_hi= |
| 7117 | break |
| 7118 | fi |
| 7119 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7120 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7121 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7122 | done |
| 7123 | else |
| 7124 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7125 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7126 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7127 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7128 | /* confdefs.h. */ |
| 7129 | _ACEOF |
| 7130 | cat confdefs.h >>conftest.$ac_ext |
| 7131 | cat >>conftest.$ac_ext <<_ACEOF |
| 7132 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7133 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7134 | int |
| 7135 | main () |
| 7136 | { |
| 7137 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 7138 | test_array [0] = 0 |
| 7139 | |
| 7140 | ; |
| 7141 | return 0; |
| 7142 | } |
| 7143 | _ACEOF |
| 7144 | rm -f conftest.$ac_objext |
| 7145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7146 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7147 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7148 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7149 | rm -f conftest.er1 |
| 7150 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7152 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7153 | { ac_try='test -z "$ac_c_werror_flag" |
| 7154 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7156 | (eval $ac_try) 2>&5 |
| 7157 | ac_status=$? |
| 7158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7159 | (exit $ac_status); }; } && |
| 7160 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7162 | (eval $ac_try) 2>&5 |
| 7163 | ac_status=$? |
| 7164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7165 | (exit $ac_status); }; }; then |
| 7166 | ac_hi=-1 ac_mid=-1 |
| 7167 | while :; do |
| 7168 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7169 | /* confdefs.h. */ |
| 7170 | _ACEOF |
| 7171 | cat confdefs.h >>conftest.$ac_ext |
| 7172 | cat >>conftest.$ac_ext <<_ACEOF |
| 7173 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7174 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7175 | int |
| 7176 | main () |
| 7177 | { |
| 7178 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 7179 | test_array [0] = 0 |
| 7180 | |
| 7181 | ; |
| 7182 | return 0; |
| 7183 | } |
| 7184 | _ACEOF |
| 7185 | rm -f conftest.$ac_objext |
| 7186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7187 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7188 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7189 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7190 | rm -f conftest.er1 |
| 7191 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7193 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7194 | { ac_try='test -z "$ac_c_werror_flag" |
| 7195 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7197 | (eval $ac_try) 2>&5 |
| 7198 | ac_status=$? |
| 7199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7200 | (exit $ac_status); }; } && |
| 7201 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7203 | (eval $ac_try) 2>&5 |
| 7204 | ac_status=$? |
| 7205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7206 | (exit $ac_status); }; }; then |
| 7207 | ac_lo=$ac_mid; break |
| 7208 | else |
| 7209 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7211 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7212 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7213 | if test $ac_mid -le $ac_hi; then |
| 7214 | ac_lo= ac_hi= |
| 7215 | break |
| 7216 | fi |
| 7217 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7218 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7219 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7220 | done |
| 7221 | else |
| 7222 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7225 | ac_lo= ac_hi= |
| 7226 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7227 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7228 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7229 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7230 | # Binary search between lo and hi bounds. |
| 7231 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7232 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7233 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7234 | /* confdefs.h. */ |
| 7235 | _ACEOF |
| 7236 | cat confdefs.h >>conftest.$ac_ext |
| 7237 | cat >>conftest.$ac_ext <<_ACEOF |
| 7238 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7239 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7240 | int |
| 7241 | main () |
| 7242 | { |
| 7243 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 7244 | test_array [0] = 0 |
| 7245 | |
| 7246 | ; |
| 7247 | return 0; |
| 7248 | } |
| 7249 | _ACEOF |
| 7250 | rm -f conftest.$ac_objext |
| 7251 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7252 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7253 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7254 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7255 | rm -f conftest.er1 |
| 7256 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7258 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7259 | { ac_try='test -z "$ac_c_werror_flag" |
| 7260 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7262 | (eval $ac_try) 2>&5 |
| 7263 | ac_status=$? |
| 7264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7265 | (exit $ac_status); }; } && |
| 7266 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7268 | (eval $ac_try) 2>&5 |
| 7269 | ac_status=$? |
| 7270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7271 | (exit $ac_status); }; }; then |
| 7272 | ac_hi=$ac_mid |
| 7273 | else |
| 7274 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7275 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7276 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7277 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7278 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7279 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7280 | done |
| 7281 | case $ac_lo in |
| 7282 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
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 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7289 | else |
| 7290 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7291 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7292 | See \`config.log' for more details." >&5 |
| 7293 | echo "$as_me: error: cannot run test program while cross compiling |
| 7294 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7295 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7296 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7297 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7298 | /* confdefs.h. */ |
| 7299 | _ACEOF |
| 7300 | cat confdefs.h >>conftest.$ac_ext |
| 7301 | cat >>conftest.$ac_ext <<_ACEOF |
| 7302 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7303 | $ac_includes_default |
| 7304 | long longval () { return (long) (sizeof (void *)); } |
| 7305 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7306 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7307 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7308 | int |
| 7309 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7310 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7311 | |
| 7312 | FILE *f = fopen ("conftest.val", "w"); |
| 7313 | if (! f) |
| 7314 | exit (1); |
| 7315 | if (((long) (sizeof (void *))) < 0) |
| 7316 | { |
| 7317 | long i = longval (); |
| 7318 | if (i != ((long) (sizeof (void *)))) |
| 7319 | exit (1); |
| 7320 | fprintf (f, "%ld\n", i); |
| 7321 | } |
| 7322 | else |
| 7323 | { |
| 7324 | unsigned long i = ulongval (); |
| 7325 | if (i != ((long) (sizeof (void *)))) |
| 7326 | exit (1); |
| 7327 | fprintf (f, "%lu\n", i); |
| 7328 | } |
| 7329 | exit (ferror (f) || fclose (f) != 0); |
| 7330 | |
| 7331 | ; |
| 7332 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7333 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7334 | _ACEOF |
| 7335 | rm -f conftest$ac_exeext |
| 7336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7337 | (eval $ac_link) 2>&5 |
| 7338 | ac_status=$? |
| 7339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7340 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7342 | (eval $ac_try) 2>&5 |
| 7343 | ac_status=$? |
| 7344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7345 | (exit $ac_status); }; }; then |
| 7346 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7347 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7348 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7349 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7351 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7352 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7353 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 7354 | See \`config.log' for more details." >&5 |
| 7355 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 7356 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7357 | { (exit 1); exit 1; }; } |
| 7358 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7359 | 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] | 7360 | fi |
| 7361 | fi |
| 7362 | rm -f conftest.val |
| 7363 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7364 | ac_cv_sizeof_void_p=0 |
| 7365 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7366 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7367 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 7368 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 7369 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7370 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7371 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7372 | |
| 7373 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7374 | echo "$as_me:$LINENO: checking for short" >&5 |
| 7375 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 7376 | if test "${ac_cv_type_short+set}" = set; then |
| 7377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7378 | else |
| 7379 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7380 | /* confdefs.h. */ |
| 7381 | _ACEOF |
| 7382 | cat confdefs.h >>conftest.$ac_ext |
| 7383 | cat >>conftest.$ac_ext <<_ACEOF |
| 7384 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7385 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7386 | int |
| 7387 | main () |
| 7388 | { |
| 7389 | if ((short *) 0) |
| 7390 | return 0; |
| 7391 | if (sizeof (short)) |
| 7392 | return 0; |
| 7393 | ; |
| 7394 | return 0; |
| 7395 | } |
| 7396 | _ACEOF |
| 7397 | rm -f conftest.$ac_objext |
| 7398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7399 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7400 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7402 | rm -f conftest.er1 |
| 7403 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7405 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7406 | { ac_try='test -z "$ac_c_werror_flag" |
| 7407 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7409 | (eval $ac_try) 2>&5 |
| 7410 | ac_status=$? |
| 7411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7412 | (exit $ac_status); }; } && |
| 7413 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7415 | (eval $ac_try) 2>&5 |
| 7416 | ac_status=$? |
| 7417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7418 | (exit $ac_status); }; }; then |
| 7419 | ac_cv_type_short=yes |
| 7420 | else |
| 7421 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7423 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7424 | ac_cv_type_short=no |
| 7425 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7426 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7427 | fi |
| 7428 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 7429 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 7430 | |
| 7431 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 7432 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 7433 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 7434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7435 | else |
| 7436 | if test "$ac_cv_type_short" = yes; then |
| 7437 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7438 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7439 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7440 | # This bug is HP SR number 8606223364. |
| 7441 | if test "$cross_compiling" = yes; then |
| 7442 | # Depending upon the size, compute the lo and hi bounds. |
| 7443 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7444 | /* confdefs.h. */ |
| 7445 | _ACEOF |
| 7446 | cat confdefs.h >>conftest.$ac_ext |
| 7447 | cat >>conftest.$ac_ext <<_ACEOF |
| 7448 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7449 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7450 | int |
| 7451 | main () |
| 7452 | { |
| 7453 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 7454 | test_array [0] = 0 |
| 7455 | |
| 7456 | ; |
| 7457 | return 0; |
| 7458 | } |
| 7459 | _ACEOF |
| 7460 | rm -f conftest.$ac_objext |
| 7461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7462 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7463 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7464 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7465 | rm -f conftest.er1 |
| 7466 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7468 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7469 | { ac_try='test -z "$ac_c_werror_flag" |
| 7470 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7472 | (eval $ac_try) 2>&5 |
| 7473 | ac_status=$? |
| 7474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7475 | (exit $ac_status); }; } && |
| 7476 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7478 | (eval $ac_try) 2>&5 |
| 7479 | ac_status=$? |
| 7480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7481 | (exit $ac_status); }; }; then |
| 7482 | ac_lo=0 ac_mid=0 |
| 7483 | while :; do |
| 7484 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7485 | /* confdefs.h. */ |
| 7486 | _ACEOF |
| 7487 | cat confdefs.h >>conftest.$ac_ext |
| 7488 | cat >>conftest.$ac_ext <<_ACEOF |
| 7489 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7490 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7491 | int |
| 7492 | main () |
| 7493 | { |
| 7494 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7495 | test_array [0] = 0 |
| 7496 | |
| 7497 | ; |
| 7498 | return 0; |
| 7499 | } |
| 7500 | _ACEOF |
| 7501 | rm -f conftest.$ac_objext |
| 7502 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7503 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7504 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7505 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7506 | rm -f conftest.er1 |
| 7507 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7509 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7510 | { ac_try='test -z "$ac_c_werror_flag" |
| 7511 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7513 | (eval $ac_try) 2>&5 |
| 7514 | ac_status=$? |
| 7515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7516 | (exit $ac_status); }; } && |
| 7517 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7519 | (eval $ac_try) 2>&5 |
| 7520 | ac_status=$? |
| 7521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7522 | (exit $ac_status); }; }; then |
| 7523 | ac_hi=$ac_mid; break |
| 7524 | else |
| 7525 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7527 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7528 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7529 | if test $ac_lo -le $ac_mid; then |
| 7530 | ac_lo= ac_hi= |
| 7531 | break |
| 7532 | fi |
| 7533 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7534 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7535 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7536 | done |
| 7537 | else |
| 7538 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7539 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7540 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7541 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7542 | /* confdefs.h. */ |
| 7543 | _ACEOF |
| 7544 | cat confdefs.h >>conftest.$ac_ext |
| 7545 | cat >>conftest.$ac_ext <<_ACEOF |
| 7546 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7547 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7548 | int |
| 7549 | main () |
| 7550 | { |
| 7551 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 7552 | test_array [0] = 0 |
| 7553 | |
| 7554 | ; |
| 7555 | return 0; |
| 7556 | } |
| 7557 | _ACEOF |
| 7558 | rm -f conftest.$ac_objext |
| 7559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7560 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7561 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7563 | rm -f conftest.er1 |
| 7564 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7566 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7567 | { ac_try='test -z "$ac_c_werror_flag" |
| 7568 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7570 | (eval $ac_try) 2>&5 |
| 7571 | ac_status=$? |
| 7572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7573 | (exit $ac_status); }; } && |
| 7574 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7576 | (eval $ac_try) 2>&5 |
| 7577 | ac_status=$? |
| 7578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7579 | (exit $ac_status); }; }; then |
| 7580 | ac_hi=-1 ac_mid=-1 |
| 7581 | while :; do |
| 7582 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7583 | /* confdefs.h. */ |
| 7584 | _ACEOF |
| 7585 | cat confdefs.h >>conftest.$ac_ext |
| 7586 | cat >>conftest.$ac_ext <<_ACEOF |
| 7587 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7588 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7589 | int |
| 7590 | main () |
| 7591 | { |
| 7592 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 7593 | test_array [0] = 0 |
| 7594 | |
| 7595 | ; |
| 7596 | return 0; |
| 7597 | } |
| 7598 | _ACEOF |
| 7599 | rm -f conftest.$ac_objext |
| 7600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7601 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7602 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7603 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7604 | rm -f conftest.er1 |
| 7605 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7607 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7608 | { ac_try='test -z "$ac_c_werror_flag" |
| 7609 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7611 | (eval $ac_try) 2>&5 |
| 7612 | ac_status=$? |
| 7613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7614 | (exit $ac_status); }; } && |
| 7615 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7617 | (eval $ac_try) 2>&5 |
| 7618 | ac_status=$? |
| 7619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7620 | (exit $ac_status); }; }; then |
| 7621 | ac_lo=$ac_mid; break |
| 7622 | else |
| 7623 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7624 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7626 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7627 | if test $ac_mid -le $ac_hi; then |
| 7628 | ac_lo= ac_hi= |
| 7629 | break |
| 7630 | fi |
| 7631 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7632 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7633 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7634 | done |
| 7635 | else |
| 7636 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7638 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7639 | ac_lo= ac_hi= |
| 7640 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7641 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7642 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7644 | # Binary search between lo and hi bounds. |
| 7645 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7646 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7647 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7648 | /* confdefs.h. */ |
| 7649 | _ACEOF |
| 7650 | cat confdefs.h >>conftest.$ac_ext |
| 7651 | cat >>conftest.$ac_ext <<_ACEOF |
| 7652 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7653 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7654 | int |
| 7655 | main () |
| 7656 | { |
| 7657 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7658 | test_array [0] = 0 |
| 7659 | |
| 7660 | ; |
| 7661 | return 0; |
| 7662 | } |
| 7663 | _ACEOF |
| 7664 | rm -f conftest.$ac_objext |
| 7665 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7666 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7667 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7668 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7669 | rm -f conftest.er1 |
| 7670 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7672 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7673 | { ac_try='test -z "$ac_c_werror_flag" |
| 7674 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7676 | (eval $ac_try) 2>&5 |
| 7677 | ac_status=$? |
| 7678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7679 | (exit $ac_status); }; } && |
| 7680 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7682 | (eval $ac_try) 2>&5 |
| 7683 | ac_status=$? |
| 7684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7685 | (exit $ac_status); }; }; then |
| 7686 | ac_hi=$ac_mid |
| 7687 | else |
| 7688 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7690 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7691 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7692 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7694 | done |
| 7695 | case $ac_lo in |
| 7696 | ?*) ac_cv_sizeof_short=$ac_lo;; |
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 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7703 | else |
| 7704 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7705 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7706 | See \`config.log' for more details." >&5 |
| 7707 | echo "$as_me: error: cannot run test program while cross compiling |
| 7708 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7709 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7710 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7711 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7712 | /* confdefs.h. */ |
| 7713 | _ACEOF |
| 7714 | cat confdefs.h >>conftest.$ac_ext |
| 7715 | cat >>conftest.$ac_ext <<_ACEOF |
| 7716 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7717 | $ac_includes_default |
| 7718 | long longval () { return (long) (sizeof (short)); } |
| 7719 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7720 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7721 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7722 | int |
| 7723 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7724 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7725 | |
| 7726 | FILE *f = fopen ("conftest.val", "w"); |
| 7727 | if (! f) |
| 7728 | exit (1); |
| 7729 | if (((long) (sizeof (short))) < 0) |
| 7730 | { |
| 7731 | long i = longval (); |
| 7732 | if (i != ((long) (sizeof (short)))) |
| 7733 | exit (1); |
| 7734 | fprintf (f, "%ld\n", i); |
| 7735 | } |
| 7736 | else |
| 7737 | { |
| 7738 | unsigned long i = ulongval (); |
| 7739 | if (i != ((long) (sizeof (short)))) |
| 7740 | exit (1); |
| 7741 | fprintf (f, "%lu\n", i); |
| 7742 | } |
| 7743 | exit (ferror (f) || fclose (f) != 0); |
| 7744 | |
| 7745 | ; |
| 7746 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7747 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7748 | _ACEOF |
| 7749 | rm -f conftest$ac_exeext |
| 7750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7751 | (eval $ac_link) 2>&5 |
| 7752 | ac_status=$? |
| 7753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7754 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7756 | (eval $ac_try) 2>&5 |
| 7757 | ac_status=$? |
| 7758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7759 | (exit $ac_status); }; }; then |
| 7760 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7761 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7762 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7763 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7764 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7765 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7766 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7767 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7768 | See \`config.log' for more details." >&5 |
| 7769 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7770 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7771 | { (exit 1); exit 1; }; } |
| 7772 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7773 | 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] | 7774 | fi |
| 7775 | fi |
| 7776 | rm -f conftest.val |
| 7777 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7778 | ac_cv_sizeof_short=0 |
| 7779 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7780 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7781 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 7782 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 7783 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7784 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7785 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7786 | |
| 7787 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7788 | echo "$as_me:$LINENO: checking for float" >&5 |
| 7789 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 7790 | if test "${ac_cv_type_float+set}" = set; then |
| 7791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7792 | else |
| 7793 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7794 | /* confdefs.h. */ |
| 7795 | _ACEOF |
| 7796 | cat confdefs.h >>conftest.$ac_ext |
| 7797 | cat >>conftest.$ac_ext <<_ACEOF |
| 7798 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7799 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7800 | int |
| 7801 | main () |
| 7802 | { |
| 7803 | if ((float *) 0) |
| 7804 | return 0; |
| 7805 | if (sizeof (float)) |
| 7806 | return 0; |
| 7807 | ; |
| 7808 | return 0; |
| 7809 | } |
| 7810 | _ACEOF |
| 7811 | rm -f conftest.$ac_objext |
| 7812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7813 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7814 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7816 | rm -f conftest.er1 |
| 7817 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7819 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7820 | { ac_try='test -z "$ac_c_werror_flag" |
| 7821 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7823 | (eval $ac_try) 2>&5 |
| 7824 | ac_status=$? |
| 7825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7826 | (exit $ac_status); }; } && |
| 7827 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7829 | (eval $ac_try) 2>&5 |
| 7830 | ac_status=$? |
| 7831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7832 | (exit $ac_status); }; }; then |
| 7833 | ac_cv_type_float=yes |
| 7834 | else |
| 7835 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7837 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7838 | ac_cv_type_float=no |
| 7839 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7840 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7841 | fi |
| 7842 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 7843 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 7844 | |
| 7845 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 7846 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 7847 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 7848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7849 | else |
| 7850 | if test "$ac_cv_type_float" = yes; then |
| 7851 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7852 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7853 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7854 | # This bug is HP SR number 8606223364. |
| 7855 | if test "$cross_compiling" = yes; then |
| 7856 | # Depending upon the size, compute the lo and hi bounds. |
| 7857 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7858 | /* confdefs.h. */ |
| 7859 | _ACEOF |
| 7860 | cat confdefs.h >>conftest.$ac_ext |
| 7861 | cat >>conftest.$ac_ext <<_ACEOF |
| 7862 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7863 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7864 | int |
| 7865 | main () |
| 7866 | { |
| 7867 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 7868 | test_array [0] = 0 |
| 7869 | |
| 7870 | ; |
| 7871 | return 0; |
| 7872 | } |
| 7873 | _ACEOF |
| 7874 | rm -f conftest.$ac_objext |
| 7875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7876 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7877 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7878 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7879 | rm -f conftest.er1 |
| 7880 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7882 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7883 | { ac_try='test -z "$ac_c_werror_flag" |
| 7884 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7886 | (eval $ac_try) 2>&5 |
| 7887 | ac_status=$? |
| 7888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7889 | (exit $ac_status); }; } && |
| 7890 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7892 | (eval $ac_try) 2>&5 |
| 7893 | ac_status=$? |
| 7894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7895 | (exit $ac_status); }; }; then |
| 7896 | ac_lo=0 ac_mid=0 |
| 7897 | while :; do |
| 7898 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7899 | /* confdefs.h. */ |
| 7900 | _ACEOF |
| 7901 | cat confdefs.h >>conftest.$ac_ext |
| 7902 | cat >>conftest.$ac_ext <<_ACEOF |
| 7903 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7904 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7905 | int |
| 7906 | main () |
| 7907 | { |
| 7908 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7909 | test_array [0] = 0 |
| 7910 | |
| 7911 | ; |
| 7912 | return 0; |
| 7913 | } |
| 7914 | _ACEOF |
| 7915 | rm -f conftest.$ac_objext |
| 7916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7917 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7918 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7919 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7920 | rm -f conftest.er1 |
| 7921 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7923 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7924 | { ac_try='test -z "$ac_c_werror_flag" |
| 7925 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7927 | (eval $ac_try) 2>&5 |
| 7928 | ac_status=$? |
| 7929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7930 | (exit $ac_status); }; } && |
| 7931 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7933 | (eval $ac_try) 2>&5 |
| 7934 | ac_status=$? |
| 7935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7936 | (exit $ac_status); }; }; then |
| 7937 | ac_hi=$ac_mid; break |
| 7938 | else |
| 7939 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7942 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7943 | if test $ac_lo -le $ac_mid; then |
| 7944 | ac_lo= ac_hi= |
| 7945 | break |
| 7946 | fi |
| 7947 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7948 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7950 | done |
| 7951 | else |
| 7952 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7954 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7955 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7956 | /* confdefs.h. */ |
| 7957 | _ACEOF |
| 7958 | cat confdefs.h >>conftest.$ac_ext |
| 7959 | cat >>conftest.$ac_ext <<_ACEOF |
| 7960 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7961 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7962 | int |
| 7963 | main () |
| 7964 | { |
| 7965 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 7966 | test_array [0] = 0 |
| 7967 | |
| 7968 | ; |
| 7969 | return 0; |
| 7970 | } |
| 7971 | _ACEOF |
| 7972 | rm -f conftest.$ac_objext |
| 7973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7974 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7975 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7976 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7977 | rm -f conftest.er1 |
| 7978 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7980 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7981 | { ac_try='test -z "$ac_c_werror_flag" |
| 7982 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7984 | (eval $ac_try) 2>&5 |
| 7985 | ac_status=$? |
| 7986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7987 | (exit $ac_status); }; } && |
| 7988 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7990 | (eval $ac_try) 2>&5 |
| 7991 | ac_status=$? |
| 7992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7993 | (exit $ac_status); }; }; then |
| 7994 | ac_hi=-1 ac_mid=-1 |
| 7995 | while :; do |
| 7996 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7997 | /* confdefs.h. */ |
| 7998 | _ACEOF |
| 7999 | cat confdefs.h >>conftest.$ac_ext |
| 8000 | cat >>conftest.$ac_ext <<_ACEOF |
| 8001 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8002 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8003 | int |
| 8004 | main () |
| 8005 | { |
| 8006 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 8007 | test_array [0] = 0 |
| 8008 | |
| 8009 | ; |
| 8010 | return 0; |
| 8011 | } |
| 8012 | _ACEOF |
| 8013 | rm -f conftest.$ac_objext |
| 8014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8015 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8016 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8018 | rm -f conftest.er1 |
| 8019 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8021 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8022 | { ac_try='test -z "$ac_c_werror_flag" |
| 8023 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8025 | (eval $ac_try) 2>&5 |
| 8026 | ac_status=$? |
| 8027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8028 | (exit $ac_status); }; } && |
| 8029 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8031 | (eval $ac_try) 2>&5 |
| 8032 | ac_status=$? |
| 8033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8034 | (exit $ac_status); }; }; then |
| 8035 | ac_lo=$ac_mid; break |
| 8036 | else |
| 8037 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8039 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8040 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8041 | if test $ac_mid -le $ac_hi; then |
| 8042 | ac_lo= ac_hi= |
| 8043 | break |
| 8044 | fi |
| 8045 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8046 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8047 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8048 | done |
| 8049 | else |
| 8050 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8052 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8053 | ac_lo= ac_hi= |
| 8054 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8055 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8056 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8058 | # Binary search between lo and hi bounds. |
| 8059 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8060 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8061 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8062 | /* confdefs.h. */ |
| 8063 | _ACEOF |
| 8064 | cat confdefs.h >>conftest.$ac_ext |
| 8065 | cat >>conftest.$ac_ext <<_ACEOF |
| 8066 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8067 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8068 | int |
| 8069 | main () |
| 8070 | { |
| 8071 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 8072 | test_array [0] = 0 |
| 8073 | |
| 8074 | ; |
| 8075 | return 0; |
| 8076 | } |
| 8077 | _ACEOF |
| 8078 | rm -f conftest.$ac_objext |
| 8079 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8080 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8081 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8083 | rm -f conftest.er1 |
| 8084 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8086 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8087 | { ac_try='test -z "$ac_c_werror_flag" |
| 8088 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8090 | (eval $ac_try) 2>&5 |
| 8091 | ac_status=$? |
| 8092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8093 | (exit $ac_status); }; } && |
| 8094 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8096 | (eval $ac_try) 2>&5 |
| 8097 | ac_status=$? |
| 8098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8099 | (exit $ac_status); }; }; then |
| 8100 | ac_hi=$ac_mid |
| 8101 | else |
| 8102 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8104 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8105 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8106 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8107 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8108 | done |
| 8109 | case $ac_lo in |
| 8110 | ?*) ac_cv_sizeof_float=$ac_lo;; |
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 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8117 | else |
| 8118 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8119 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8120 | See \`config.log' for more details." >&5 |
| 8121 | echo "$as_me: error: cannot run test program while cross compiling |
| 8122 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8123 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8124 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8125 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8126 | /* confdefs.h. */ |
| 8127 | _ACEOF |
| 8128 | cat confdefs.h >>conftest.$ac_ext |
| 8129 | cat >>conftest.$ac_ext <<_ACEOF |
| 8130 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8131 | $ac_includes_default |
| 8132 | long longval () { return (long) (sizeof (float)); } |
| 8133 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8134 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8135 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8136 | int |
| 8137 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8138 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8139 | |
| 8140 | FILE *f = fopen ("conftest.val", "w"); |
| 8141 | if (! f) |
| 8142 | exit (1); |
| 8143 | if (((long) (sizeof (float))) < 0) |
| 8144 | { |
| 8145 | long i = longval (); |
| 8146 | if (i != ((long) (sizeof (float)))) |
| 8147 | exit (1); |
| 8148 | fprintf (f, "%ld\n", i); |
| 8149 | } |
| 8150 | else |
| 8151 | { |
| 8152 | unsigned long i = ulongval (); |
| 8153 | if (i != ((long) (sizeof (float)))) |
| 8154 | exit (1); |
| 8155 | fprintf (f, "%lu\n", i); |
| 8156 | } |
| 8157 | exit (ferror (f) || fclose (f) != 0); |
| 8158 | |
| 8159 | ; |
| 8160 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8161 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8162 | _ACEOF |
| 8163 | rm -f conftest$ac_exeext |
| 8164 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8165 | (eval $ac_link) 2>&5 |
| 8166 | ac_status=$? |
| 8167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8168 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8170 | (eval $ac_try) 2>&5 |
| 8171 | ac_status=$? |
| 8172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8173 | (exit $ac_status); }; }; then |
| 8174 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8175 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8176 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8177 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8179 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8180 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8181 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8182 | See \`config.log' for more details." >&5 |
| 8183 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8184 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8185 | { (exit 1); exit 1; }; } |
| 8186 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8187 | 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] | 8188 | fi |
| 8189 | fi |
| 8190 | rm -f conftest.val |
| 8191 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8192 | ac_cv_sizeof_float=0 |
| 8193 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8194 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8195 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 8196 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 8197 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8198 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8199 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8200 | |
| 8201 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8202 | echo "$as_me:$LINENO: checking for double" >&5 |
| 8203 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 8204 | if test "${ac_cv_type_double+set}" = set; then |
| 8205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8206 | else |
| 8207 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8208 | /* confdefs.h. */ |
| 8209 | _ACEOF |
| 8210 | cat confdefs.h >>conftest.$ac_ext |
| 8211 | cat >>conftest.$ac_ext <<_ACEOF |
| 8212 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8213 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8214 | int |
| 8215 | main () |
| 8216 | { |
| 8217 | if ((double *) 0) |
| 8218 | return 0; |
| 8219 | if (sizeof (double)) |
| 8220 | return 0; |
| 8221 | ; |
| 8222 | return 0; |
| 8223 | } |
| 8224 | _ACEOF |
| 8225 | rm -f conftest.$ac_objext |
| 8226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8227 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8228 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8230 | rm -f conftest.er1 |
| 8231 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8233 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8234 | { ac_try='test -z "$ac_c_werror_flag" |
| 8235 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8237 | (eval $ac_try) 2>&5 |
| 8238 | ac_status=$? |
| 8239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8240 | (exit $ac_status); }; } && |
| 8241 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8243 | (eval $ac_try) 2>&5 |
| 8244 | ac_status=$? |
| 8245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8246 | (exit $ac_status); }; }; then |
| 8247 | ac_cv_type_double=yes |
| 8248 | else |
| 8249 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8251 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8252 | ac_cv_type_double=no |
| 8253 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8254 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8255 | fi |
| 8256 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 8257 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 8258 | |
| 8259 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 8260 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 8261 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 8262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8263 | else |
| 8264 | if test "$ac_cv_type_double" = yes; then |
| 8265 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8266 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8267 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8268 | # This bug is HP SR number 8606223364. |
| 8269 | if test "$cross_compiling" = yes; then |
| 8270 | # Depending upon the size, compute the lo and hi bounds. |
| 8271 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8272 | /* confdefs.h. */ |
| 8273 | _ACEOF |
| 8274 | cat confdefs.h >>conftest.$ac_ext |
| 8275 | cat >>conftest.$ac_ext <<_ACEOF |
| 8276 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8277 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8278 | int |
| 8279 | main () |
| 8280 | { |
| 8281 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 8282 | test_array [0] = 0 |
| 8283 | |
| 8284 | ; |
| 8285 | return 0; |
| 8286 | } |
| 8287 | _ACEOF |
| 8288 | rm -f conftest.$ac_objext |
| 8289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8290 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8291 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8292 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8293 | rm -f conftest.er1 |
| 8294 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8296 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8297 | { ac_try='test -z "$ac_c_werror_flag" |
| 8298 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8300 | (eval $ac_try) 2>&5 |
| 8301 | ac_status=$? |
| 8302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8303 | (exit $ac_status); }; } && |
| 8304 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8306 | (eval $ac_try) 2>&5 |
| 8307 | ac_status=$? |
| 8308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8309 | (exit $ac_status); }; }; then |
| 8310 | ac_lo=0 ac_mid=0 |
| 8311 | while :; do |
| 8312 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8313 | /* confdefs.h. */ |
| 8314 | _ACEOF |
| 8315 | cat confdefs.h >>conftest.$ac_ext |
| 8316 | cat >>conftest.$ac_ext <<_ACEOF |
| 8317 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8318 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8319 | int |
| 8320 | main () |
| 8321 | { |
| 8322 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8323 | test_array [0] = 0 |
| 8324 | |
| 8325 | ; |
| 8326 | return 0; |
| 8327 | } |
| 8328 | _ACEOF |
| 8329 | rm -f conftest.$ac_objext |
| 8330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8331 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8332 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8334 | rm -f conftest.er1 |
| 8335 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8337 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8338 | { ac_try='test -z "$ac_c_werror_flag" |
| 8339 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8341 | (eval $ac_try) 2>&5 |
| 8342 | ac_status=$? |
| 8343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8344 | (exit $ac_status); }; } && |
| 8345 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8347 | (eval $ac_try) 2>&5 |
| 8348 | ac_status=$? |
| 8349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8350 | (exit $ac_status); }; }; then |
| 8351 | ac_hi=$ac_mid; break |
| 8352 | else |
| 8353 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8354 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8355 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8356 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8357 | if test $ac_lo -le $ac_mid; then |
| 8358 | ac_lo= ac_hi= |
| 8359 | break |
| 8360 | fi |
| 8361 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8362 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8363 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8364 | done |
| 8365 | else |
| 8366 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8367 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8368 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8369 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8370 | /* confdefs.h. */ |
| 8371 | _ACEOF |
| 8372 | cat confdefs.h >>conftest.$ac_ext |
| 8373 | cat >>conftest.$ac_ext <<_ACEOF |
| 8374 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8375 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8376 | int |
| 8377 | main () |
| 8378 | { |
| 8379 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 8380 | test_array [0] = 0 |
| 8381 | |
| 8382 | ; |
| 8383 | return 0; |
| 8384 | } |
| 8385 | _ACEOF |
| 8386 | rm -f conftest.$ac_objext |
| 8387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8388 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8389 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8390 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8391 | rm -f conftest.er1 |
| 8392 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8394 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8395 | { ac_try='test -z "$ac_c_werror_flag" |
| 8396 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8398 | (eval $ac_try) 2>&5 |
| 8399 | ac_status=$? |
| 8400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8401 | (exit $ac_status); }; } && |
| 8402 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8404 | (eval $ac_try) 2>&5 |
| 8405 | ac_status=$? |
| 8406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8407 | (exit $ac_status); }; }; then |
| 8408 | ac_hi=-1 ac_mid=-1 |
| 8409 | while :; do |
| 8410 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8411 | /* confdefs.h. */ |
| 8412 | _ACEOF |
| 8413 | cat confdefs.h >>conftest.$ac_ext |
| 8414 | cat >>conftest.$ac_ext <<_ACEOF |
| 8415 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8416 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8417 | int |
| 8418 | main () |
| 8419 | { |
| 8420 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 8421 | test_array [0] = 0 |
| 8422 | |
| 8423 | ; |
| 8424 | return 0; |
| 8425 | } |
| 8426 | _ACEOF |
| 8427 | rm -f conftest.$ac_objext |
| 8428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8429 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8430 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8431 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8432 | rm -f conftest.er1 |
| 8433 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8435 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8436 | { ac_try='test -z "$ac_c_werror_flag" |
| 8437 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8439 | (eval $ac_try) 2>&5 |
| 8440 | ac_status=$? |
| 8441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8442 | (exit $ac_status); }; } && |
| 8443 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8445 | (eval $ac_try) 2>&5 |
| 8446 | ac_status=$? |
| 8447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8448 | (exit $ac_status); }; }; then |
| 8449 | ac_lo=$ac_mid; break |
| 8450 | else |
| 8451 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8452 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8453 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8454 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8455 | if test $ac_mid -le $ac_hi; then |
| 8456 | ac_lo= ac_hi= |
| 8457 | break |
| 8458 | fi |
| 8459 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8460 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8461 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8462 | done |
| 8463 | else |
| 8464 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8466 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8467 | ac_lo= ac_hi= |
| 8468 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8469 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8470 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8471 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8472 | # Binary search between lo and hi bounds. |
| 8473 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8474 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8475 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8476 | /* confdefs.h. */ |
| 8477 | _ACEOF |
| 8478 | cat confdefs.h >>conftest.$ac_ext |
| 8479 | cat >>conftest.$ac_ext <<_ACEOF |
| 8480 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8481 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8482 | int |
| 8483 | main () |
| 8484 | { |
| 8485 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8486 | test_array [0] = 0 |
| 8487 | |
| 8488 | ; |
| 8489 | return 0; |
| 8490 | } |
| 8491 | _ACEOF |
| 8492 | rm -f conftest.$ac_objext |
| 8493 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8494 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8495 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8496 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8497 | rm -f conftest.er1 |
| 8498 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8500 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8501 | { ac_try='test -z "$ac_c_werror_flag" |
| 8502 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8504 | (eval $ac_try) 2>&5 |
| 8505 | ac_status=$? |
| 8506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8507 | (exit $ac_status); }; } && |
| 8508 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8510 | (eval $ac_try) 2>&5 |
| 8511 | ac_status=$? |
| 8512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8513 | (exit $ac_status); }; }; then |
| 8514 | ac_hi=$ac_mid |
| 8515 | else |
| 8516 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8518 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8519 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8520 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8521 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8522 | done |
| 8523 | case $ac_lo in |
| 8524 | ?*) ac_cv_sizeof_double=$ac_lo;; |
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 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8531 | else |
| 8532 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8533 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8534 | See \`config.log' for more details." >&5 |
| 8535 | echo "$as_me: error: cannot run test program while cross compiling |
| 8536 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8537 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8538 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8539 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8540 | /* confdefs.h. */ |
| 8541 | _ACEOF |
| 8542 | cat confdefs.h >>conftest.$ac_ext |
| 8543 | cat >>conftest.$ac_ext <<_ACEOF |
| 8544 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8545 | $ac_includes_default |
| 8546 | long longval () { return (long) (sizeof (double)); } |
| 8547 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8548 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8549 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8550 | int |
| 8551 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8552 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8553 | |
| 8554 | FILE *f = fopen ("conftest.val", "w"); |
| 8555 | if (! f) |
| 8556 | exit (1); |
| 8557 | if (((long) (sizeof (double))) < 0) |
| 8558 | { |
| 8559 | long i = longval (); |
| 8560 | if (i != ((long) (sizeof (double)))) |
| 8561 | exit (1); |
| 8562 | fprintf (f, "%ld\n", i); |
| 8563 | } |
| 8564 | else |
| 8565 | { |
| 8566 | unsigned long i = ulongval (); |
| 8567 | if (i != ((long) (sizeof (double)))) |
| 8568 | exit (1); |
| 8569 | fprintf (f, "%lu\n", i); |
| 8570 | } |
| 8571 | exit (ferror (f) || fclose (f) != 0); |
| 8572 | |
| 8573 | ; |
| 8574 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8575 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8576 | _ACEOF |
| 8577 | rm -f conftest$ac_exeext |
| 8578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8579 | (eval $ac_link) 2>&5 |
| 8580 | ac_status=$? |
| 8581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8582 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8584 | (eval $ac_try) 2>&5 |
| 8585 | ac_status=$? |
| 8586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8587 | (exit $ac_status); }; }; then |
| 8588 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8589 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8590 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8591 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8592 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8593 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8594 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8595 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8596 | See \`config.log' for more details." >&5 |
| 8597 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8598 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8599 | { (exit 1); exit 1; }; } |
| 8600 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8601 | 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] | 8602 | fi |
| 8603 | fi |
| 8604 | rm -f conftest.val |
| 8605 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8606 | ac_cv_sizeof_double=0 |
| 8607 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8608 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8609 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 8610 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 8611 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8612 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8613 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8614 | |
| 8615 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8616 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 8617 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 8618 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 8619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8620 | else |
| 8621 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8622 | /* confdefs.h. */ |
| 8623 | _ACEOF |
| 8624 | cat confdefs.h >>conftest.$ac_ext |
| 8625 | cat >>conftest.$ac_ext <<_ACEOF |
| 8626 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8627 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8628 | int |
| 8629 | main () |
| 8630 | { |
| 8631 | if ((fpos_t *) 0) |
| 8632 | return 0; |
| 8633 | if (sizeof (fpos_t)) |
| 8634 | return 0; |
| 8635 | ; |
| 8636 | return 0; |
| 8637 | } |
| 8638 | _ACEOF |
| 8639 | rm -f conftest.$ac_objext |
| 8640 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8641 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8642 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8644 | rm -f conftest.er1 |
| 8645 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8647 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8648 | { ac_try='test -z "$ac_c_werror_flag" |
| 8649 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8651 | (eval $ac_try) 2>&5 |
| 8652 | ac_status=$? |
| 8653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8654 | (exit $ac_status); }; } && |
| 8655 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8657 | (eval $ac_try) 2>&5 |
| 8658 | ac_status=$? |
| 8659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8660 | (exit $ac_status); }; }; then |
| 8661 | ac_cv_type_fpos_t=yes |
| 8662 | else |
| 8663 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8665 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8666 | ac_cv_type_fpos_t=no |
| 8667 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8668 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8669 | fi |
| 8670 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 8671 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 8672 | |
| 8673 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 8674 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 8675 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 8676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8677 | else |
| 8678 | if test "$ac_cv_type_fpos_t" = yes; then |
| 8679 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8680 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8681 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8682 | # This bug is HP SR number 8606223364. |
| 8683 | if test "$cross_compiling" = yes; then |
| 8684 | # Depending upon the size, compute the lo and hi bounds. |
| 8685 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8686 | /* confdefs.h. */ |
| 8687 | _ACEOF |
| 8688 | cat confdefs.h >>conftest.$ac_ext |
| 8689 | cat >>conftest.$ac_ext <<_ACEOF |
| 8690 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8691 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8692 | int |
| 8693 | main () |
| 8694 | { |
| 8695 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 8696 | test_array [0] = 0 |
| 8697 | |
| 8698 | ; |
| 8699 | return 0; |
| 8700 | } |
| 8701 | _ACEOF |
| 8702 | rm -f conftest.$ac_objext |
| 8703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8704 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8705 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8707 | rm -f conftest.er1 |
| 8708 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8710 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8711 | { ac_try='test -z "$ac_c_werror_flag" |
| 8712 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8714 | (eval $ac_try) 2>&5 |
| 8715 | ac_status=$? |
| 8716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8717 | (exit $ac_status); }; } && |
| 8718 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8720 | (eval $ac_try) 2>&5 |
| 8721 | ac_status=$? |
| 8722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8723 | (exit $ac_status); }; }; then |
| 8724 | ac_lo=0 ac_mid=0 |
| 8725 | while :; do |
| 8726 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8727 | /* confdefs.h. */ |
| 8728 | _ACEOF |
| 8729 | cat confdefs.h >>conftest.$ac_ext |
| 8730 | cat >>conftest.$ac_ext <<_ACEOF |
| 8731 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8732 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8733 | int |
| 8734 | main () |
| 8735 | { |
| 8736 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8737 | test_array [0] = 0 |
| 8738 | |
| 8739 | ; |
| 8740 | return 0; |
| 8741 | } |
| 8742 | _ACEOF |
| 8743 | rm -f conftest.$ac_objext |
| 8744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8745 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8746 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8748 | rm -f conftest.er1 |
| 8749 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8751 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8752 | { ac_try='test -z "$ac_c_werror_flag" |
| 8753 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8755 | (eval $ac_try) 2>&5 |
| 8756 | ac_status=$? |
| 8757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8758 | (exit $ac_status); }; } && |
| 8759 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8761 | (eval $ac_try) 2>&5 |
| 8762 | ac_status=$? |
| 8763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8764 | (exit $ac_status); }; }; then |
| 8765 | ac_hi=$ac_mid; break |
| 8766 | else |
| 8767 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8769 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8770 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8771 | if test $ac_lo -le $ac_mid; then |
| 8772 | ac_lo= ac_hi= |
| 8773 | break |
| 8774 | fi |
| 8775 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8776 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8777 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8778 | done |
| 8779 | else |
| 8780 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8782 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8783 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8784 | /* confdefs.h. */ |
| 8785 | _ACEOF |
| 8786 | cat confdefs.h >>conftest.$ac_ext |
| 8787 | cat >>conftest.$ac_ext <<_ACEOF |
| 8788 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8789 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8790 | int |
| 8791 | main () |
| 8792 | { |
| 8793 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 8794 | test_array [0] = 0 |
| 8795 | |
| 8796 | ; |
| 8797 | return 0; |
| 8798 | } |
| 8799 | _ACEOF |
| 8800 | rm -f conftest.$ac_objext |
| 8801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8802 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8803 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8804 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8805 | rm -f conftest.er1 |
| 8806 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8808 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8809 | { ac_try='test -z "$ac_c_werror_flag" |
| 8810 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8812 | (eval $ac_try) 2>&5 |
| 8813 | ac_status=$? |
| 8814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8815 | (exit $ac_status); }; } && |
| 8816 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8818 | (eval $ac_try) 2>&5 |
| 8819 | ac_status=$? |
| 8820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8821 | (exit $ac_status); }; }; then |
| 8822 | ac_hi=-1 ac_mid=-1 |
| 8823 | while :; do |
| 8824 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8825 | /* confdefs.h. */ |
| 8826 | _ACEOF |
| 8827 | cat confdefs.h >>conftest.$ac_ext |
| 8828 | cat >>conftest.$ac_ext <<_ACEOF |
| 8829 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8830 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8831 | int |
| 8832 | main () |
| 8833 | { |
| 8834 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 8835 | test_array [0] = 0 |
| 8836 | |
| 8837 | ; |
| 8838 | return 0; |
| 8839 | } |
| 8840 | _ACEOF |
| 8841 | rm -f conftest.$ac_objext |
| 8842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8843 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8844 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8845 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8846 | rm -f conftest.er1 |
| 8847 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8849 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8850 | { ac_try='test -z "$ac_c_werror_flag" |
| 8851 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8853 | (eval $ac_try) 2>&5 |
| 8854 | ac_status=$? |
| 8855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8856 | (exit $ac_status); }; } && |
| 8857 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8859 | (eval $ac_try) 2>&5 |
| 8860 | ac_status=$? |
| 8861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8862 | (exit $ac_status); }; }; then |
| 8863 | ac_lo=$ac_mid; break |
| 8864 | else |
| 8865 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8867 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8868 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8869 | if test $ac_mid -le $ac_hi; then |
| 8870 | ac_lo= ac_hi= |
| 8871 | break |
| 8872 | fi |
| 8873 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8874 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8875 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8876 | done |
| 8877 | else |
| 8878 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8880 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8881 | ac_lo= ac_hi= |
| 8882 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8883 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8884 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8885 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8886 | # Binary search between lo and hi bounds. |
| 8887 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8888 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8889 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8890 | /* confdefs.h. */ |
| 8891 | _ACEOF |
| 8892 | cat confdefs.h >>conftest.$ac_ext |
| 8893 | cat >>conftest.$ac_ext <<_ACEOF |
| 8894 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8895 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8896 | int |
| 8897 | main () |
| 8898 | { |
| 8899 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8900 | test_array [0] = 0 |
| 8901 | |
| 8902 | ; |
| 8903 | return 0; |
| 8904 | } |
| 8905 | _ACEOF |
| 8906 | rm -f conftest.$ac_objext |
| 8907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8908 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8909 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8910 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8911 | rm -f conftest.er1 |
| 8912 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8914 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8915 | { ac_try='test -z "$ac_c_werror_flag" |
| 8916 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8918 | (eval $ac_try) 2>&5 |
| 8919 | ac_status=$? |
| 8920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8921 | (exit $ac_status); }; } && |
| 8922 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8924 | (eval $ac_try) 2>&5 |
| 8925 | ac_status=$? |
| 8926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8927 | (exit $ac_status); }; }; then |
| 8928 | ac_hi=$ac_mid |
| 8929 | else |
| 8930 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8931 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8932 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8933 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8934 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8935 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8936 | done |
| 8937 | case $ac_lo in |
| 8938 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
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 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8945 | else |
| 8946 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8947 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8948 | See \`config.log' for more details." >&5 |
| 8949 | echo "$as_me: error: cannot run test program while cross compiling |
| 8950 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8951 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8952 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8953 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8954 | /* confdefs.h. */ |
| 8955 | _ACEOF |
| 8956 | cat confdefs.h >>conftest.$ac_ext |
| 8957 | cat >>conftest.$ac_ext <<_ACEOF |
| 8958 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8959 | $ac_includes_default |
| 8960 | long longval () { return (long) (sizeof (fpos_t)); } |
| 8961 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8962 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8963 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8964 | int |
| 8965 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8966 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8967 | |
| 8968 | FILE *f = fopen ("conftest.val", "w"); |
| 8969 | if (! f) |
| 8970 | exit (1); |
| 8971 | if (((long) (sizeof (fpos_t))) < 0) |
| 8972 | { |
| 8973 | long i = longval (); |
| 8974 | if (i != ((long) (sizeof (fpos_t)))) |
| 8975 | exit (1); |
| 8976 | fprintf (f, "%ld\n", i); |
| 8977 | } |
| 8978 | else |
| 8979 | { |
| 8980 | unsigned long i = ulongval (); |
| 8981 | if (i != ((long) (sizeof (fpos_t)))) |
| 8982 | exit (1); |
| 8983 | fprintf (f, "%lu\n", i); |
| 8984 | } |
| 8985 | exit (ferror (f) || fclose (f) != 0); |
| 8986 | |
| 8987 | ; |
| 8988 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8989 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8990 | _ACEOF |
| 8991 | rm -f conftest$ac_exeext |
| 8992 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8993 | (eval $ac_link) 2>&5 |
| 8994 | ac_status=$? |
| 8995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8996 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8998 | (eval $ac_try) 2>&5 |
| 8999 | ac_status=$? |
| 9000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9001 | (exit $ac_status); }; }; then |
| 9002 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9003 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9004 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9005 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9006 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9007 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9008 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9009 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 9010 | See \`config.log' for more details." >&5 |
| 9011 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 9012 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9013 | { (exit 1); exit 1; }; } |
| 9014 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9015 | 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] | 9016 | fi |
| 9017 | fi |
| 9018 | rm -f conftest.val |
| 9019 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9020 | ac_cv_sizeof_fpos_t=0 |
| 9021 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9022 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9023 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 9024 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 9025 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9026 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9027 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9028 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9029 | |
| 9030 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9031 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 9032 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9033 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9034 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9035 | /* confdefs.h. */ |
| 9036 | _ACEOF |
| 9037 | cat confdefs.h >>conftest.$ac_ext |
| 9038 | cat >>conftest.$ac_ext <<_ACEOF |
| 9039 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9040 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9041 | int |
| 9042 | main () |
| 9043 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9044 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9045 | ; |
| 9046 | return 0; |
| 9047 | } |
| 9048 | _ACEOF |
| 9049 | rm -f conftest.$ac_objext |
| 9050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9051 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9052 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9053 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9054 | rm -f conftest.er1 |
| 9055 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9057 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9058 | { ac_try='test -z "$ac_c_werror_flag" |
| 9059 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9061 | (eval $ac_try) 2>&5 |
| 9062 | ac_status=$? |
| 9063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9064 | (exit $ac_status); }; } && |
| 9065 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9067 | (eval $ac_try) 2>&5 |
| 9068 | ac_status=$? |
| 9069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9070 | (exit $ac_status); }; }; then |
| 9071 | |
| 9072 | |
| 9073 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9074 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9075 | _ACEOF |
| 9076 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 9077 | have_long_long=yes |
| 9078 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9079 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9080 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9082 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9083 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9084 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9085 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 9086 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 9087 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9088 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 9089 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 9090 | if test "${ac_cv_type_long_long+set}" = set; then |
| 9091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9092 | else |
| 9093 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9094 | /* confdefs.h. */ |
| 9095 | _ACEOF |
| 9096 | cat confdefs.h >>conftest.$ac_ext |
| 9097 | cat >>conftest.$ac_ext <<_ACEOF |
| 9098 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9099 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9100 | int |
| 9101 | main () |
| 9102 | { |
| 9103 | if ((long long *) 0) |
| 9104 | return 0; |
| 9105 | if (sizeof (long long)) |
| 9106 | return 0; |
| 9107 | ; |
| 9108 | return 0; |
| 9109 | } |
| 9110 | _ACEOF |
| 9111 | rm -f conftest.$ac_objext |
| 9112 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9113 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9114 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9115 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9116 | rm -f conftest.er1 |
| 9117 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9119 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9120 | { ac_try='test -z "$ac_c_werror_flag" |
| 9121 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9123 | (eval $ac_try) 2>&5 |
| 9124 | ac_status=$? |
| 9125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9126 | (exit $ac_status); }; } && |
| 9127 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9129 | (eval $ac_try) 2>&5 |
| 9130 | ac_status=$? |
| 9131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9132 | (exit $ac_status); }; }; then |
| 9133 | ac_cv_type_long_long=yes |
| 9134 | else |
| 9135 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9137 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9138 | ac_cv_type_long_long=no |
| 9139 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9140 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9141 | fi |
| 9142 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 9143 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 9144 | |
| 9145 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 9146 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 9147 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 9148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9149 | else |
| 9150 | if test "$ac_cv_type_long_long" = yes; then |
| 9151 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 9152 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9153 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9154 | # This bug is HP SR number 8606223364. |
| 9155 | if test "$cross_compiling" = yes; then |
| 9156 | # Depending upon the size, compute the lo and hi bounds. |
| 9157 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9158 | /* confdefs.h. */ |
| 9159 | _ACEOF |
| 9160 | cat confdefs.h >>conftest.$ac_ext |
| 9161 | cat >>conftest.$ac_ext <<_ACEOF |
| 9162 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9163 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9164 | int |
| 9165 | main () |
| 9166 | { |
| 9167 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 9168 | test_array [0] = 0 |
| 9169 | |
| 9170 | ; |
| 9171 | return 0; |
| 9172 | } |
| 9173 | _ACEOF |
| 9174 | rm -f conftest.$ac_objext |
| 9175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9176 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9177 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9179 | rm -f conftest.er1 |
| 9180 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9182 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9183 | { ac_try='test -z "$ac_c_werror_flag" |
| 9184 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9186 | (eval $ac_try) 2>&5 |
| 9187 | ac_status=$? |
| 9188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9189 | (exit $ac_status); }; } && |
| 9190 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9192 | (eval $ac_try) 2>&5 |
| 9193 | ac_status=$? |
| 9194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9195 | (exit $ac_status); }; }; then |
| 9196 | ac_lo=0 ac_mid=0 |
| 9197 | while :; do |
| 9198 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9199 | /* confdefs.h. */ |
| 9200 | _ACEOF |
| 9201 | cat confdefs.h >>conftest.$ac_ext |
| 9202 | cat >>conftest.$ac_ext <<_ACEOF |
| 9203 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9204 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9205 | int |
| 9206 | main () |
| 9207 | { |
| 9208 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9209 | test_array [0] = 0 |
| 9210 | |
| 9211 | ; |
| 9212 | return 0; |
| 9213 | } |
| 9214 | _ACEOF |
| 9215 | rm -f conftest.$ac_objext |
| 9216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9217 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9218 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9219 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9220 | rm -f conftest.er1 |
| 9221 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9223 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9224 | { ac_try='test -z "$ac_c_werror_flag" |
| 9225 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9227 | (eval $ac_try) 2>&5 |
| 9228 | ac_status=$? |
| 9229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9230 | (exit $ac_status); }; } && |
| 9231 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9233 | (eval $ac_try) 2>&5 |
| 9234 | ac_status=$? |
| 9235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9236 | (exit $ac_status); }; }; then |
| 9237 | ac_hi=$ac_mid; break |
| 9238 | else |
| 9239 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9241 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9242 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9243 | if test $ac_lo -le $ac_mid; then |
| 9244 | ac_lo= ac_hi= |
| 9245 | break |
| 9246 | fi |
| 9247 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9248 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9249 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9250 | done |
| 9251 | else |
| 9252 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9253 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9254 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9255 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9256 | /* confdefs.h. */ |
| 9257 | _ACEOF |
| 9258 | cat confdefs.h >>conftest.$ac_ext |
| 9259 | cat >>conftest.$ac_ext <<_ACEOF |
| 9260 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9261 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9262 | int |
| 9263 | main () |
| 9264 | { |
| 9265 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 9266 | test_array [0] = 0 |
| 9267 | |
| 9268 | ; |
| 9269 | return 0; |
| 9270 | } |
| 9271 | _ACEOF |
| 9272 | rm -f conftest.$ac_objext |
| 9273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9274 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9275 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9276 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9277 | rm -f conftest.er1 |
| 9278 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9280 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9281 | { ac_try='test -z "$ac_c_werror_flag" |
| 9282 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9284 | (eval $ac_try) 2>&5 |
| 9285 | ac_status=$? |
| 9286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9287 | (exit $ac_status); }; } && |
| 9288 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9290 | (eval $ac_try) 2>&5 |
| 9291 | ac_status=$? |
| 9292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9293 | (exit $ac_status); }; }; then |
| 9294 | ac_hi=-1 ac_mid=-1 |
| 9295 | while :; do |
| 9296 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9297 | /* confdefs.h. */ |
| 9298 | _ACEOF |
| 9299 | cat confdefs.h >>conftest.$ac_ext |
| 9300 | cat >>conftest.$ac_ext <<_ACEOF |
| 9301 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9302 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9303 | int |
| 9304 | main () |
| 9305 | { |
| 9306 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 9307 | test_array [0] = 0 |
| 9308 | |
| 9309 | ; |
| 9310 | return 0; |
| 9311 | } |
| 9312 | _ACEOF |
| 9313 | rm -f conftest.$ac_objext |
| 9314 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9315 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9316 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9317 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9318 | rm -f conftest.er1 |
| 9319 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9321 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9322 | { ac_try='test -z "$ac_c_werror_flag" |
| 9323 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9325 | (eval $ac_try) 2>&5 |
| 9326 | ac_status=$? |
| 9327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9328 | (exit $ac_status); }; } && |
| 9329 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9331 | (eval $ac_try) 2>&5 |
| 9332 | ac_status=$? |
| 9333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9334 | (exit $ac_status); }; }; then |
| 9335 | ac_lo=$ac_mid; break |
| 9336 | else |
| 9337 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9339 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9340 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9341 | if test $ac_mid -le $ac_hi; then |
| 9342 | ac_lo= ac_hi= |
| 9343 | break |
| 9344 | fi |
| 9345 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9346 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9347 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9348 | done |
| 9349 | else |
| 9350 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9352 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9353 | ac_lo= ac_hi= |
| 9354 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9356 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9358 | # Binary search between lo and hi bounds. |
| 9359 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9360 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9361 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9362 | /* confdefs.h. */ |
| 9363 | _ACEOF |
| 9364 | cat confdefs.h >>conftest.$ac_ext |
| 9365 | cat >>conftest.$ac_ext <<_ACEOF |
| 9366 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9367 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9368 | int |
| 9369 | main () |
| 9370 | { |
| 9371 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9372 | test_array [0] = 0 |
| 9373 | |
| 9374 | ; |
| 9375 | return 0; |
| 9376 | } |
| 9377 | _ACEOF |
| 9378 | rm -f conftest.$ac_objext |
| 9379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9380 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9381 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9383 | rm -f conftest.er1 |
| 9384 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9386 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9387 | { ac_try='test -z "$ac_c_werror_flag" |
| 9388 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9390 | (eval $ac_try) 2>&5 |
| 9391 | ac_status=$? |
| 9392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9393 | (exit $ac_status); }; } && |
| 9394 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9396 | (eval $ac_try) 2>&5 |
| 9397 | ac_status=$? |
| 9398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9399 | (exit $ac_status); }; }; then |
| 9400 | ac_hi=$ac_mid |
| 9401 | else |
| 9402 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9404 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9405 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9406 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9407 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9408 | done |
| 9409 | case $ac_lo in |
| 9410 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
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 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9417 | else |
| 9418 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9419 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9420 | See \`config.log' for more details." >&5 |
| 9421 | echo "$as_me: error: cannot run test program while cross compiling |
| 9422 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9423 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9424 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9425 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9426 | /* confdefs.h. */ |
| 9427 | _ACEOF |
| 9428 | cat confdefs.h >>conftest.$ac_ext |
| 9429 | cat >>conftest.$ac_ext <<_ACEOF |
| 9430 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9431 | $ac_includes_default |
| 9432 | long longval () { return (long) (sizeof (long long)); } |
| 9433 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9434 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9435 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9436 | int |
| 9437 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9438 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9439 | |
| 9440 | FILE *f = fopen ("conftest.val", "w"); |
| 9441 | if (! f) |
| 9442 | exit (1); |
| 9443 | if (((long) (sizeof (long long))) < 0) |
| 9444 | { |
| 9445 | long i = longval (); |
| 9446 | if (i != ((long) (sizeof (long long)))) |
| 9447 | exit (1); |
| 9448 | fprintf (f, "%ld\n", i); |
| 9449 | } |
| 9450 | else |
| 9451 | { |
| 9452 | unsigned long i = ulongval (); |
| 9453 | if (i != ((long) (sizeof (long long)))) |
| 9454 | exit (1); |
| 9455 | fprintf (f, "%lu\n", i); |
| 9456 | } |
| 9457 | exit (ferror (f) || fclose (f) != 0); |
| 9458 | |
| 9459 | ; |
| 9460 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9461 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9462 | _ACEOF |
| 9463 | rm -f conftest$ac_exeext |
| 9464 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9465 | (eval $ac_link) 2>&5 |
| 9466 | ac_status=$? |
| 9467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9468 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 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 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9475 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9476 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9477 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9478 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9479 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9480 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9481 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 9482 | See \`config.log' for more details." >&5 |
| 9483 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 9484 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9485 | { (exit 1); exit 1; }; } |
| 9486 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9487 | 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] | 9488 | fi |
| 9489 | fi |
| 9490 | rm -f conftest.val |
| 9491 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9492 | ac_cv_sizeof_long_long=0 |
| 9493 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9494 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9495 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 9496 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 9497 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9498 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9499 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9500 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9501 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9502 | fi |
| 9503 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9504 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 9505 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9506 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9507 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9508 | /* confdefs.h. */ |
| 9509 | _ACEOF |
| 9510 | cat confdefs.h >>conftest.$ac_ext |
| 9511 | cat >>conftest.$ac_ext <<_ACEOF |
| 9512 | /* end confdefs.h. */ |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9513 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9514 | int |
| 9515 | main () |
| 9516 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9517 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9518 | ; |
| 9519 | return 0; |
| 9520 | } |
| 9521 | _ACEOF |
| 9522 | rm -f conftest.$ac_objext |
| 9523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9524 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9525 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9527 | rm -f conftest.er1 |
| 9528 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9530 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9531 | { ac_try='test -z "$ac_c_werror_flag" |
| 9532 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9534 | (eval $ac_try) 2>&5 |
| 9535 | ac_status=$? |
| 9536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9537 | (exit $ac_status); }; } && |
| 9538 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9540 | (eval $ac_try) 2>&5 |
| 9541 | ac_status=$? |
| 9542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9543 | (exit $ac_status); }; }; then |
| 9544 | |
| 9545 | |
| 9546 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9547 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9548 | _ACEOF |
| 9549 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 9550 | have_uintptr_t=yes |
| 9551 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9552 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9553 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9555 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9556 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9558 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 9559 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9560 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9561 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 9562 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 9563 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 9564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9565 | else |
| 9566 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9567 | /* confdefs.h. */ |
| 9568 | _ACEOF |
| 9569 | cat confdefs.h >>conftest.$ac_ext |
| 9570 | cat >>conftest.$ac_ext <<_ACEOF |
| 9571 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9572 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9573 | int |
| 9574 | main () |
| 9575 | { |
| 9576 | if ((uintptr_t *) 0) |
| 9577 | return 0; |
| 9578 | if (sizeof (uintptr_t)) |
| 9579 | return 0; |
| 9580 | ; |
| 9581 | return 0; |
| 9582 | } |
| 9583 | _ACEOF |
| 9584 | rm -f conftest.$ac_objext |
| 9585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9586 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9587 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9588 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9589 | rm -f conftest.er1 |
| 9590 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9592 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9593 | { ac_try='test -z "$ac_c_werror_flag" |
| 9594 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9596 | (eval $ac_try) 2>&5 |
| 9597 | ac_status=$? |
| 9598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9599 | (exit $ac_status); }; } && |
| 9600 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9602 | (eval $ac_try) 2>&5 |
| 9603 | ac_status=$? |
| 9604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9605 | (exit $ac_status); }; }; then |
| 9606 | ac_cv_type_uintptr_t=yes |
| 9607 | else |
| 9608 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9610 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9611 | ac_cv_type_uintptr_t=no |
| 9612 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9613 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9614 | fi |
| 9615 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 9616 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 9617 | |
| 9618 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 9619 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 9620 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 9621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9622 | else |
| 9623 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 9624 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 9625 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9626 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9627 | # This bug is HP SR number 8606223364. |
| 9628 | if test "$cross_compiling" = yes; then |
| 9629 | # Depending upon the size, compute the lo and hi bounds. |
| 9630 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9631 | /* confdefs.h. */ |
| 9632 | _ACEOF |
| 9633 | cat confdefs.h >>conftest.$ac_ext |
| 9634 | cat >>conftest.$ac_ext <<_ACEOF |
| 9635 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9636 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9637 | int |
| 9638 | main () |
| 9639 | { |
| 9640 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 9641 | test_array [0] = 0 |
| 9642 | |
| 9643 | ; |
| 9644 | return 0; |
| 9645 | } |
| 9646 | _ACEOF |
| 9647 | rm -f conftest.$ac_objext |
| 9648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9649 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9650 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9651 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9652 | rm -f conftest.er1 |
| 9653 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9655 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9656 | { ac_try='test -z "$ac_c_werror_flag" |
| 9657 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9659 | (eval $ac_try) 2>&5 |
| 9660 | ac_status=$? |
| 9661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9662 | (exit $ac_status); }; } && |
| 9663 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9665 | (eval $ac_try) 2>&5 |
| 9666 | ac_status=$? |
| 9667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9668 | (exit $ac_status); }; }; then |
| 9669 | ac_lo=0 ac_mid=0 |
| 9670 | while :; do |
| 9671 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9672 | /* confdefs.h. */ |
| 9673 | _ACEOF |
| 9674 | cat confdefs.h >>conftest.$ac_ext |
| 9675 | cat >>conftest.$ac_ext <<_ACEOF |
| 9676 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9677 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9678 | int |
| 9679 | main () |
| 9680 | { |
| 9681 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 9682 | test_array [0] = 0 |
| 9683 | |
| 9684 | ; |
| 9685 | return 0; |
| 9686 | } |
| 9687 | _ACEOF |
| 9688 | rm -f conftest.$ac_objext |
| 9689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9690 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9691 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9693 | rm -f conftest.er1 |
| 9694 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9696 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9697 | { ac_try='test -z "$ac_c_werror_flag" |
| 9698 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9700 | (eval $ac_try) 2>&5 |
| 9701 | ac_status=$? |
| 9702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9703 | (exit $ac_status); }; } && |
| 9704 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9706 | (eval $ac_try) 2>&5 |
| 9707 | ac_status=$? |
| 9708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9709 | (exit $ac_status); }; }; then |
| 9710 | ac_hi=$ac_mid; break |
| 9711 | else |
| 9712 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9714 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9715 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9716 | if test $ac_lo -le $ac_mid; then |
| 9717 | ac_lo= ac_hi= |
| 9718 | break |
| 9719 | fi |
| 9720 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9721 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9722 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9723 | done |
| 9724 | else |
| 9725 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9726 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9727 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9728 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9729 | /* confdefs.h. */ |
| 9730 | _ACEOF |
| 9731 | cat confdefs.h >>conftest.$ac_ext |
| 9732 | cat >>conftest.$ac_ext <<_ACEOF |
| 9733 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9734 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9735 | int |
| 9736 | main () |
| 9737 | { |
| 9738 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 9739 | test_array [0] = 0 |
| 9740 | |
| 9741 | ; |
| 9742 | return 0; |
| 9743 | } |
| 9744 | _ACEOF |
| 9745 | rm -f conftest.$ac_objext |
| 9746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9747 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9748 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9749 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9750 | rm -f conftest.er1 |
| 9751 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9753 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9754 | { ac_try='test -z "$ac_c_werror_flag" |
| 9755 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9757 | (eval $ac_try) 2>&5 |
| 9758 | ac_status=$? |
| 9759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9760 | (exit $ac_status); }; } && |
| 9761 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9763 | (eval $ac_try) 2>&5 |
| 9764 | ac_status=$? |
| 9765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9766 | (exit $ac_status); }; }; then |
| 9767 | ac_hi=-1 ac_mid=-1 |
| 9768 | while :; do |
| 9769 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9770 | /* confdefs.h. */ |
| 9771 | _ACEOF |
| 9772 | cat confdefs.h >>conftest.$ac_ext |
| 9773 | cat >>conftest.$ac_ext <<_ACEOF |
| 9774 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9775 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9776 | int |
| 9777 | main () |
| 9778 | { |
| 9779 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 9780 | test_array [0] = 0 |
| 9781 | |
| 9782 | ; |
| 9783 | return 0; |
| 9784 | } |
| 9785 | _ACEOF |
| 9786 | rm -f conftest.$ac_objext |
| 9787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9788 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9789 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9790 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9791 | rm -f conftest.er1 |
| 9792 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9794 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9795 | { ac_try='test -z "$ac_c_werror_flag" |
| 9796 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9798 | (eval $ac_try) 2>&5 |
| 9799 | ac_status=$? |
| 9800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9801 | (exit $ac_status); }; } && |
| 9802 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9804 | (eval $ac_try) 2>&5 |
| 9805 | ac_status=$? |
| 9806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9807 | (exit $ac_status); }; }; then |
| 9808 | ac_lo=$ac_mid; break |
| 9809 | else |
| 9810 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9812 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9813 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9814 | if test $ac_mid -le $ac_hi; then |
| 9815 | ac_lo= ac_hi= |
| 9816 | break |
| 9817 | fi |
| 9818 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9819 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9821 | done |
| 9822 | else |
| 9823 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9825 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9826 | ac_lo= ac_hi= |
| 9827 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9829 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9830 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9831 | # Binary search between lo and hi bounds. |
| 9832 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9833 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9834 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9835 | /* confdefs.h. */ |
| 9836 | _ACEOF |
| 9837 | cat confdefs.h >>conftest.$ac_ext |
| 9838 | cat >>conftest.$ac_ext <<_ACEOF |
| 9839 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9840 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9841 | int |
| 9842 | main () |
| 9843 | { |
| 9844 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 9845 | test_array [0] = 0 |
| 9846 | |
| 9847 | ; |
| 9848 | return 0; |
| 9849 | } |
| 9850 | _ACEOF |
| 9851 | rm -f conftest.$ac_objext |
| 9852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9853 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9854 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9856 | rm -f conftest.er1 |
| 9857 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9859 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9860 | { ac_try='test -z "$ac_c_werror_flag" |
| 9861 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9863 | (eval $ac_try) 2>&5 |
| 9864 | ac_status=$? |
| 9865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9866 | (exit $ac_status); }; } && |
| 9867 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9869 | (eval $ac_try) 2>&5 |
| 9870 | ac_status=$? |
| 9871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9872 | (exit $ac_status); }; }; then |
| 9873 | ac_hi=$ac_mid |
| 9874 | else |
| 9875 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9877 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9878 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9879 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9880 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9881 | done |
| 9882 | case $ac_lo in |
| 9883 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
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 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9890 | else |
| 9891 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9892 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9893 | See \`config.log' for more details." >&5 |
| 9894 | echo "$as_me: error: cannot run test program while cross compiling |
| 9895 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9896 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9897 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9898 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9899 | /* confdefs.h. */ |
| 9900 | _ACEOF |
| 9901 | cat confdefs.h >>conftest.$ac_ext |
| 9902 | cat >>conftest.$ac_ext <<_ACEOF |
| 9903 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9904 | $ac_includes_default |
| 9905 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 9906 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9907 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9908 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9909 | int |
| 9910 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9911 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9912 | |
| 9913 | FILE *f = fopen ("conftest.val", "w"); |
| 9914 | if (! f) |
| 9915 | exit (1); |
| 9916 | if (((long) (sizeof (uintptr_t))) < 0) |
| 9917 | { |
| 9918 | long i = longval (); |
| 9919 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9920 | exit (1); |
| 9921 | fprintf (f, "%ld\n", i); |
| 9922 | } |
| 9923 | else |
| 9924 | { |
| 9925 | unsigned long i = ulongval (); |
| 9926 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9927 | exit (1); |
| 9928 | fprintf (f, "%lu\n", i); |
| 9929 | } |
| 9930 | exit (ferror (f) || fclose (f) != 0); |
| 9931 | |
| 9932 | ; |
| 9933 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9934 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9935 | _ACEOF |
| 9936 | rm -f conftest$ac_exeext |
| 9937 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9938 | (eval $ac_link) 2>&5 |
| 9939 | ac_status=$? |
| 9940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9941 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9943 | (eval $ac_try) 2>&5 |
| 9944 | ac_status=$? |
| 9945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9946 | (exit $ac_status); }; }; then |
| 9947 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9948 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9949 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9950 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9952 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9953 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9954 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 9955 | See \`config.log' for more details." >&5 |
| 9956 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 9957 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9958 | { (exit 1); exit 1; }; } |
| 9959 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9960 | 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] | 9961 | fi |
| 9962 | fi |
| 9963 | rm -f conftest.val |
| 9964 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9965 | ac_cv_sizeof_uintptr_t=0 |
| 9966 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9967 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9968 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 9969 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 9970 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9971 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9972 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9973 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9974 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9975 | fi |
| 9976 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9977 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9978 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 9979 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 9980 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 9981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9982 | else |
| 9983 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9984 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9985 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9986 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9987 | /* confdefs.h. */ |
| 9988 | _ACEOF |
| 9989 | cat confdefs.h >>conftest.$ac_ext |
| 9990 | cat >>conftest.$ac_ext <<_ACEOF |
| 9991 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9992 | #include <stdio.h> |
| 9993 | #include <sys/types.h> |
| 9994 | main() |
| 9995 | { |
| 9996 | FILE *f=fopen("conftestval", "w"); |
| 9997 | if (!f) exit(1); |
| 9998 | fprintf(f, "%d\n", sizeof(off_t)); |
| 9999 | exit(0); |
| 10000 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10001 | _ACEOF |
| 10002 | rm -f conftest$ac_exeext |
| 10003 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10004 | (eval $ac_link) 2>&5 |
| 10005 | ac_status=$? |
| 10006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10007 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10009 | (eval $ac_try) 2>&5 |
| 10010 | ac_status=$? |
| 10011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10012 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10013 | ac_cv_sizeof_off_t=`cat conftestval` |
| 10014 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10015 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10016 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10018 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10019 | ( exit $ac_status ) |
| 10020 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10021 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10022 | 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] | 10023 | fi |
| 10024 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10025 | fi |
| 10026 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10027 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 10028 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 10029 | |
| 10030 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10031 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10032 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10033 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10034 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10035 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 10036 | 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] | 10037 | if test "$have_long_long" = yes -a \ |
| 10038 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 10039 | "$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] | 10040 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10041 | cat >>confdefs.h <<\_ACEOF |
| 10042 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 10043 | _ACEOF |
| 10044 | |
| 10045 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10046 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10047 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10048 | echo "$as_me:$LINENO: result: no" >&5 |
| 10049 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10050 | fi |
| 10051 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10052 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10053 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 10054 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 10055 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 10056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10057 | else |
| 10058 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10059 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10060 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10061 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10062 | /* confdefs.h. */ |
| 10063 | _ACEOF |
| 10064 | cat confdefs.h >>conftest.$ac_ext |
| 10065 | cat >>conftest.$ac_ext <<_ACEOF |
| 10066 | /* end confdefs.h. */ |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10067 | #include <stdio.h> |
| 10068 | #include <time.h> |
| 10069 | main() |
| 10070 | { |
| 10071 | FILE *f=fopen("conftestval", "w"); |
| 10072 | if (!f) exit(1); |
| 10073 | fprintf(f, "%d\n", sizeof(time_t)); |
| 10074 | exit(0); |
| 10075 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10076 | _ACEOF |
| 10077 | rm -f conftest$ac_exeext |
| 10078 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10079 | (eval $ac_link) 2>&5 |
| 10080 | ac_status=$? |
| 10081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10082 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10084 | (eval $ac_try) 2>&5 |
| 10085 | ac_status=$? |
| 10086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10087 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10088 | ac_cv_sizeof_time_t=`cat conftestval` |
| 10089 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10090 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10091 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10093 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10094 | ( exit $ac_status ) |
| 10095 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10096 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10097 | 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] | 10098 | fi |
| 10099 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10100 | fi |
| 10101 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10102 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 10103 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 10104 | |
| 10105 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10106 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10107 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10108 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10109 | |
| 10110 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10111 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10112 | ac_save_cc="$CC" |
| 10113 | if test "$ac_cv_kpthread" = "yes" |
| 10114 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10115 | elif test "$ac_cv_kthread" = "yes" |
| 10116 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10117 | elif test "$ac_cv_pthread" = "yes" |
| 10118 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10119 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10120 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 10121 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10122 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10123 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10124 | /* confdefs.h. */ |
| 10125 | _ACEOF |
| 10126 | cat confdefs.h >>conftest.$ac_ext |
| 10127 | cat >>conftest.$ac_ext <<_ACEOF |
| 10128 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10129 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10130 | int |
| 10131 | main () |
| 10132 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 10133 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10134 | ; |
| 10135 | return 0; |
| 10136 | } |
| 10137 | _ACEOF |
| 10138 | rm -f conftest.$ac_objext |
| 10139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10140 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10141 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10142 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10143 | rm -f conftest.er1 |
| 10144 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10146 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10147 | { ac_try='test -z "$ac_c_werror_flag" |
| 10148 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10150 | (eval $ac_try) 2>&5 |
| 10151 | ac_status=$? |
| 10152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10153 | (exit $ac_status); }; } && |
| 10154 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10156 | (eval $ac_try) 2>&5 |
| 10157 | ac_status=$? |
| 10158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10159 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10160 | have_pthread_t=yes |
| 10161 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10162 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10164 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10165 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10166 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10167 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 10168 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10169 | if test "$have_pthread_t" = yes ; then |
| 10170 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10171 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 10172 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 10173 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 10174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10175 | else |
| 10176 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10177 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10178 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10179 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10180 | /* confdefs.h. */ |
| 10181 | _ACEOF |
| 10182 | cat confdefs.h >>conftest.$ac_ext |
| 10183 | cat >>conftest.$ac_ext <<_ACEOF |
| 10184 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10185 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10186 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10187 | main() |
| 10188 | { |
| 10189 | FILE *f=fopen("conftestval", "w"); |
| 10190 | if (!f) exit(1); |
| 10191 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 10192 | exit(0); |
| 10193 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10194 | _ACEOF |
| 10195 | rm -f conftest$ac_exeext |
| 10196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10197 | (eval $ac_link) 2>&5 |
| 10198 | ac_status=$? |
| 10199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10200 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10202 | (eval $ac_try) 2>&5 |
| 10203 | ac_status=$? |
| 10204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10205 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10206 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 10207 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10208 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10209 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10211 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10212 | ( exit $ac_status ) |
| 10213 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10214 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10215 | 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] | 10216 | fi |
| 10217 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10218 | fi |
| 10219 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10220 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 10221 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 10222 | |
| 10223 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10224 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10225 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10226 | |
| 10227 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10228 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10229 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10230 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 10231 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10232 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 10233 | if test "${enable_toolbox_glue+set}" = set; then |
| 10234 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10235 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10236 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10237 | |
| 10238 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10239 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10240 | case $ac_sys_system/$ac_sys_release in |
| 10241 | Darwin/*) |
| 10242 | enable_toolbox_glue="yes";; |
| 10243 | *) |
| 10244 | enable_toolbox_glue="no";; |
| 10245 | esac |
| 10246 | fi |
| 10247 | case "$enable_toolbox_glue" in |
| 10248 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10249 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10250 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10251 | |
| 10252 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10253 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10254 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10255 | |
| 10256 | ;; |
| 10257 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10258 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 10259 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10260 | ;; |
| 10261 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10262 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 10263 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10264 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10265 | |
| 10266 | case $ac_sys_system/$ac_sys_release in |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 10267 | Darwin/[01234567].*) |
| 10268 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 10269 | ;; |
| 10270 | Darwin/*) |
| 10271 | OTHER_LIBTOOL_OPT="" |
| 10272 | ;; |
| 10273 | esac |
| 10274 | |
| 10275 | |
| 10276 | case $ac_sys_system/$ac_sys_release in |
| 10277 | Darwin/[01234567].*) |
| 10278 | LIBTOOL_CRUFT="-framework System -lcc_dynamic -arch_only ppc" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 10279 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10280 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 10281 | Darwin/*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 10282 | gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3` |
| 10283 | if test ${gcc_version} '<' 4.0 |
| 10284 | then |
| 10285 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 10286 | else |
| 10287 | LIBTOOL_CRUFT="" |
| 10288 | fi |
| 10289 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -lSystem -lSystemStubs -arch_only ppc' |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 10290 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10291 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10292 | esac |
| 10293 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10294 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 10295 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10296 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10297 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10298 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10299 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10300 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10301 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10302 | cat >>confdefs.h <<\_ACEOF |
| 10303 | #define WITH_NEXT_FRAMEWORK 1 |
| 10304 | _ACEOF |
| 10305 | |
| 10306 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10307 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10308 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10309 | echo "$as_me:$LINENO: result: no" >&5 |
| 10310 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10311 | fi |
| 10312 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10313 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 10314 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10315 | case $ac_sys_system/$ac_sys_release in |
| 10316 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10317 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10318 | cat >>confdefs.h <<\_ACEOF |
| 10319 | #define WITH_DYLD 1 |
| 10320 | _ACEOF |
| 10321 | |
| 10322 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 10323 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10324 | ;; |
| 10325 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10326 | echo "$as_me:$LINENO: result: no" >&5 |
| 10327 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10328 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10329 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10330 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10331 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10332 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10333 | |
| 10334 | |
| 10335 | |
| 10336 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10337 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10338 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10339 | echo "$as_me:$LINENO: checking SO" >&5 |
| 10340 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10341 | if test -z "$SO" |
| 10342 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10343 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 10344 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10345 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 10346 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10347 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 10348 | else |
| 10349 | # this might also be a termcap variable, see #610332 |
| 10350 | echo |
| 10351 | echo '=====================================================================' |
| 10352 | echo '+ +' |
| 10353 | echo '+ WARNING: You have set SO in your environment. +' |
| 10354 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 10355 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 10356 | echo '+ +' |
| 10357 | echo '=====================================================================' |
| 10358 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10359 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10360 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 10361 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10362 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 10363 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10364 | # (Shared libraries in this instance are shared modules to be loaded into |
| 10365 | # 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] | 10366 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 10367 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10368 | if test -z "$LDSHARED" |
| 10369 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10370 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10371 | AIX*) |
| 10372 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 10373 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10374 | ;; |
| 10375 | BeOS*) |
| 10376 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 10377 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10378 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10379 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 10380 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10381 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10382 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 10383 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 10384 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10385 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10386 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10387 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10388 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10389 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10390 | if test "$enable_framework" ; then |
| 10391 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10392 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10393 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10394 | else |
| 10395 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10396 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10397 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10398 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10399 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10400 | if test "$enable_framework" ; then |
| 10401 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10402 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10403 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10404 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 10405 | # No framework, use the Python app as bundle-loader |
| 10406 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 10407 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10408 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10409 | Darwin/*) |
| 10410 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 10411 | # This allows an extension to be used in any Python |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 10412 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
Jack Jansen | c110f86 | 2005-01-07 10:49:32 +0000 | [diff] [blame] | 10413 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 10414 | if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10415 | then |
| 10416 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 10417 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10418 | else |
| 10419 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10420 | if test "$enable_framework" ; then |
| 10421 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10422 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10423 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10424 | else |
| 10425 | # No framework, use the Python app as bundle-loader |
| 10426 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 10427 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 10428 | fi |
| 10429 | fi |
| 10430 | ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 10431 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 10432 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 10433 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 10434 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 10435 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 10436 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 10437 | else |
| 10438 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 10439 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 10440 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10441 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10442 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 10443 | then LDSHARED='$(CC) -shared' |
| 10444 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10445 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 10446 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10447 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10448 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10449 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10450 | *) LDSHARED="ld";; |
| 10451 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10452 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10453 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 10454 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10455 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10456 | # 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] | 10457 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10458 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 10459 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10460 | if test -z "$CCSHARED" |
| 10461 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10462 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 10463 | SunOS*) if test "$GCC" = yes; |
| 10464 | then CCSHARED="-fPIC"; |
Martin v. Löwis | d5845ec | 2005-12-30 12:31:38 +0000 | [diff] [blame] | 10465 | else CCSHARED="-xcode=pic32"; |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 10466 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10467 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 10468 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10469 | else CCSHARED="+z"; |
| 10470 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10471 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 10472 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 10473 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10474 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10475 | if test "$GCC" = "yes" |
| 10476 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10477 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10478 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10479 | SCO_SV*) |
| 10480 | if test "$GCC" = "yes" |
| 10481 | then CCSHARED="-fPIC" |
| 10482 | else CCSHARED="-Kpic -belf" |
| 10483 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10484 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10485 | IRIX*/6*) case $CC in |
| 10486 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 10487 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10488 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10489 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10490 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10491 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10492 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 10493 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10494 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10495 | # 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] | 10496 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 10497 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10498 | if test -z "$LINKFORSHARED" |
| 10499 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10500 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10501 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 10502 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10503 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 10504 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 10505 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10506 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10507 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10508 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10509 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 10510 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10511 | # not used by the core itself but which needs to be in the core so |
| 10512 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 10513 | # -prebind is no longer used, because it actually seems to give a |
| 10514 | # slowdown in stead of a speedup, maybe due to the large number of |
| 10515 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10516 | |
| 10517 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10518 | if test "$enable_framework" |
| 10519 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10520 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10521 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10522 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10523 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10524 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 10525 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10526 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 10527 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 10528 | then |
| 10529 | LINKFORSHARED="-Wl,--export-dynamic" |
| 10530 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10531 | SunOS/5*) case $CC in |
| 10532 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 10533 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 10534 | then |
| 10535 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10536 | fi;; |
| 10537 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 10538 | CYGWIN*) |
| 10539 | if test $enable_shared = "no" |
| 10540 | then |
| 10541 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 10542 | fi;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10543 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10544 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10545 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 10546 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10547 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10548 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10549 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 10550 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10551 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 10552 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 10553 | case $ac_sys_system in |
| 10554 | CYGWIN*) |
| 10555 | # Cygwin needs CCSHARED when building extension DLLs |
| 10556 | # but not when building the interpreter DLL. |
| 10557 | CFLAGSFORSHARED='';; |
| 10558 | *) |
| 10559 | CFLAGSFORSHARED='$(CCSHARED)' |
| 10560 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10561 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10562 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 10563 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10564 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10565 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 10566 | # library (with --enable-shared). |
| 10567 | # 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] | 10568 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 10569 | # if it is not required, since it creates a dependency of the shared library |
| 10570 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 10571 | # don't need to link LIBS explicitly. The default should be only changed |
| 10572 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10573 | |
| 10574 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 10575 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 10576 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10577 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 10578 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10579 | esac |
| 10580 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 10581 | echo "${ECHO_T}$SHLIBS" >&6 |
| 10582 | |
| 10583 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10584 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10585 | |
| 10586 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10587 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 10588 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10590 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10591 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10592 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10593 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10594 | /* confdefs.h. */ |
| 10595 | _ACEOF |
| 10596 | cat confdefs.h >>conftest.$ac_ext |
| 10597 | cat >>conftest.$ac_ext <<_ACEOF |
| 10598 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10599 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10600 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10601 | #ifdef __cplusplus |
| 10602 | extern "C" |
| 10603 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10604 | /* 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] | 10605 | builtin and then its argument prototype would still apply. */ |
| 10606 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10607 | int |
| 10608 | main () |
| 10609 | { |
| 10610 | dlopen (); |
| 10611 | ; |
| 10612 | return 0; |
| 10613 | } |
| 10614 | _ACEOF |
| 10615 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10616 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10617 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10618 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10620 | rm -f conftest.er1 |
| 10621 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10623 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10624 | { ac_try='test -z "$ac_c_werror_flag" |
| 10625 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10627 | (eval $ac_try) 2>&5 |
| 10628 | ac_status=$? |
| 10629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10630 | (exit $ac_status); }; } && |
| 10631 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10633 | (eval $ac_try) 2>&5 |
| 10634 | ac_status=$? |
| 10635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10636 | (exit $ac_status); }; }; then |
| 10637 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10638 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10639 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10641 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10642 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10643 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10644 | rm -f conftest.err conftest.$ac_objext \ |
| 10645 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10646 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10647 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10648 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10649 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 10650 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10651 | cat >>confdefs.h <<_ACEOF |
| 10652 | #define HAVE_LIBDL 1 |
| 10653 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10654 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10655 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10656 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10657 | fi |
| 10658 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10659 | |
| 10660 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10661 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 10662 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10664 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10665 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10666 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10667 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10668 | /* confdefs.h. */ |
| 10669 | _ACEOF |
| 10670 | cat confdefs.h >>conftest.$ac_ext |
| 10671 | cat >>conftest.$ac_ext <<_ACEOF |
| 10672 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10673 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10674 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10675 | #ifdef __cplusplus |
| 10676 | extern "C" |
| 10677 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10678 | /* 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] | 10679 | builtin and then its argument prototype would still apply. */ |
| 10680 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10681 | int |
| 10682 | main () |
| 10683 | { |
| 10684 | shl_load (); |
| 10685 | ; |
| 10686 | return 0; |
| 10687 | } |
| 10688 | _ACEOF |
| 10689 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10690 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10691 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10692 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10693 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10694 | rm -f conftest.er1 |
| 10695 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10697 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10698 | { ac_try='test -z "$ac_c_werror_flag" |
| 10699 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10701 | (eval $ac_try) 2>&5 |
| 10702 | ac_status=$? |
| 10703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10704 | (exit $ac_status); }; } && |
| 10705 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10707 | (eval $ac_try) 2>&5 |
| 10708 | ac_status=$? |
| 10709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10710 | (exit $ac_status); }; }; then |
| 10711 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10712 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10713 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10715 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10716 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10717 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10718 | rm -f conftest.err conftest.$ac_objext \ |
| 10719 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10720 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10721 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10722 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10723 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 10724 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 10725 | cat >>confdefs.h <<_ACEOF |
| 10726 | #define HAVE_LIBDLD 1 |
| 10727 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10728 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10729 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10730 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10731 | fi |
| 10732 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10733 | |
| 10734 | # only check for sem_ini if thread support is requested |
| 10735 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
| 10736 | 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] | 10737 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 10738 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10740 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10741 | ac_func_search_save_LIBS=$LIBS |
| 10742 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10743 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10744 | /* confdefs.h. */ |
| 10745 | _ACEOF |
| 10746 | cat confdefs.h >>conftest.$ac_ext |
| 10747 | cat >>conftest.$ac_ext <<_ACEOF |
| 10748 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10749 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10750 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10751 | #ifdef __cplusplus |
| 10752 | extern "C" |
| 10753 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10754 | /* 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] | 10755 | builtin and then its argument prototype would still apply. */ |
| 10756 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10757 | int |
| 10758 | main () |
| 10759 | { |
| 10760 | sem_init (); |
| 10761 | ; |
| 10762 | return 0; |
| 10763 | } |
| 10764 | _ACEOF |
| 10765 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10766 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10767 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10768 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10769 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10770 | rm -f conftest.er1 |
| 10771 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10773 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10774 | { ac_try='test -z "$ac_c_werror_flag" |
| 10775 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10777 | (eval $ac_try) 2>&5 |
| 10778 | ac_status=$? |
| 10779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10780 | (exit $ac_status); }; } && |
| 10781 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10783 | (eval $ac_try) 2>&5 |
| 10784 | ac_status=$? |
| 10785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10786 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10787 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10788 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10789 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10791 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10792 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10793 | rm -f conftest.err conftest.$ac_objext \ |
| 10794 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10795 | if test "$ac_cv_search_sem_init" = no; then |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 10796 | for ac_lib in pthread rt posix4; do |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10797 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10798 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10799 | /* confdefs.h. */ |
| 10800 | _ACEOF |
| 10801 | cat confdefs.h >>conftest.$ac_ext |
| 10802 | cat >>conftest.$ac_ext <<_ACEOF |
| 10803 | /* end confdefs.h. */ |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10804 | |
| 10805 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10806 | #ifdef __cplusplus |
| 10807 | extern "C" |
| 10808 | #endif |
| 10809 | /* We use char because int might match the return type of a gcc2 |
| 10810 | builtin and then its argument prototype would still apply. */ |
| 10811 | char sem_init (); |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10812 | int |
| 10813 | main () |
| 10814 | { |
| 10815 | sem_init (); |
| 10816 | ; |
| 10817 | return 0; |
| 10818 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10819 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10820 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10821 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10822 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10823 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10825 | rm -f conftest.er1 |
| 10826 | cat conftest.err >&5 |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10828 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10829 | { ac_try='test -z "$ac_c_werror_flag" |
| 10830 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10832 | (eval $ac_try) 2>&5 |
| 10833 | ac_status=$? |
| 10834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10835 | (exit $ac_status); }; } && |
| 10836 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10838 | (eval $ac_try) 2>&5 |
| 10839 | ac_status=$? |
| 10840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10841 | (exit $ac_status); }; }; then |
| 10842 | ac_cv_search_sem_init="-l$ac_lib" |
| 10843 | break |
| 10844 | else |
| 10845 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10847 | |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10848 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10849 | rm -f conftest.err conftest.$ac_objext \ |
| 10850 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10851 | done |
| 10852 | fi |
| 10853 | LIBS=$ac_func_search_save_LIBS |
| 10854 | fi |
| 10855 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 10856 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 10857 | if test "$ac_cv_search_sem_init" != no; then |
| 10858 | 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] | 10859 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10860 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 10861 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10862 | # posix4 on Solaris 2.6 |
| 10863 | # pthread (first!) on Linux |
| 10864 | fi |
| 10865 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10866 | # check if we need libintl for locale functions |
| 10867 | echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 10868 | echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6 |
| 10869 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
| 10870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10871 | else |
| 10872 | ac_check_lib_save_LIBS=$LIBS |
| 10873 | LIBS="-lintl $LIBS" |
| 10874 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10875 | /* confdefs.h. */ |
| 10876 | _ACEOF |
| 10877 | cat confdefs.h >>conftest.$ac_ext |
| 10878 | cat >>conftest.$ac_ext <<_ACEOF |
| 10879 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10880 | |
| 10881 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10882 | #ifdef __cplusplus |
| 10883 | extern "C" |
| 10884 | #endif |
| 10885 | /* We use char because int might match the return type of a gcc2 |
| 10886 | builtin and then its argument prototype would still apply. */ |
| 10887 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10888 | int |
| 10889 | main () |
| 10890 | { |
| 10891 | textdomain (); |
| 10892 | ; |
| 10893 | return 0; |
| 10894 | } |
| 10895 | _ACEOF |
| 10896 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10897 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10898 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10899 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10901 | rm -f conftest.er1 |
| 10902 | cat conftest.err >&5 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10904 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10905 | { ac_try='test -z "$ac_c_werror_flag" |
| 10906 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10908 | (eval $ac_try) 2>&5 |
| 10909 | ac_status=$? |
| 10910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10911 | (exit $ac_status); }; } && |
| 10912 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10914 | (eval $ac_try) 2>&5 |
| 10915 | ac_status=$? |
| 10916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10917 | (exit $ac_status); }; }; then |
| 10918 | ac_cv_lib_intl_textdomain=yes |
| 10919 | else |
| 10920 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10922 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10923 | ac_cv_lib_intl_textdomain=no |
| 10924 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10925 | rm -f conftest.err conftest.$ac_objext \ |
| 10926 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10927 | LIBS=$ac_check_lib_save_LIBS |
| 10928 | fi |
| 10929 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 10930 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6 |
| 10931 | if test $ac_cv_lib_intl_textdomain = yes; then |
| 10932 | |
| 10933 | cat >>confdefs.h <<\_ACEOF |
| 10934 | #define WITH_LIBINTL 1 |
| 10935 | _ACEOF |
| 10936 | |
| 10937 | fi |
| 10938 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10939 | |
| 10940 | # checks for system dependent C++ extensions support |
| 10941 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10942 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 10943 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 10944 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10945 | /* confdefs.h. */ |
| 10946 | _ACEOF |
| 10947 | cat confdefs.h >>conftest.$ac_ext |
| 10948 | cat >>conftest.$ac_ext <<_ACEOF |
| 10949 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10950 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10951 | int |
| 10952 | main () |
| 10953 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10954 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10955 | ; |
| 10956 | return 0; |
| 10957 | } |
| 10958 | _ACEOF |
| 10959 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10961 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10962 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10964 | rm -f conftest.er1 |
| 10965 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10967 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10968 | { ac_try='test -z "$ac_c_werror_flag" |
| 10969 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10971 | (eval $ac_try) 2>&5 |
| 10972 | ac_status=$? |
| 10973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10974 | (exit $ac_status); }; } && |
| 10975 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10977 | (eval $ac_try) 2>&5 |
| 10978 | ac_status=$? |
| 10979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10980 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10981 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10982 | cat >>confdefs.h <<\_ACEOF |
| 10983 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 10984 | _ACEOF |
| 10985 | |
| 10986 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10987 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10988 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10989 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10991 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10992 | echo "$as_me:$LINENO: result: no" >&5 |
| 10993 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10994 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10995 | rm -f conftest.err conftest.$ac_objext \ |
| 10996 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10997 | *) ;; |
| 10998 | esac |
| 10999 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 11000 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11001 | # BeOS' sockets are stashed in libnet. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11002 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 11003 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 11004 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 11005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11006 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11007 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11008 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11009 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11010 | /* confdefs.h. */ |
| 11011 | _ACEOF |
| 11012 | cat confdefs.h >>conftest.$ac_ext |
| 11013 | cat >>conftest.$ac_ext <<_ACEOF |
| 11014 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11015 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11016 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11017 | #ifdef __cplusplus |
| 11018 | extern "C" |
| 11019 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11020 | /* 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] | 11021 | builtin and then its argument prototype would still apply. */ |
| 11022 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11023 | int |
| 11024 | main () |
| 11025 | { |
| 11026 | t_open (); |
| 11027 | ; |
| 11028 | return 0; |
| 11029 | } |
| 11030 | _ACEOF |
| 11031 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11032 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11033 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11034 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11035 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11036 | rm -f conftest.er1 |
| 11037 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11039 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11040 | { ac_try='test -z "$ac_c_werror_flag" |
| 11041 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11043 | (eval $ac_try) 2>&5 |
| 11044 | ac_status=$? |
| 11045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11046 | (exit $ac_status); }; } && |
| 11047 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11049 | (eval $ac_try) 2>&5 |
| 11050 | ac_status=$? |
| 11051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11052 | (exit $ac_status); }; }; then |
| 11053 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11054 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11055 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11057 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11058 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11059 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11060 | rm -f conftest.err conftest.$ac_objext \ |
| 11061 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11062 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11063 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11064 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 11065 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 11066 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11067 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11068 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 11069 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11070 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 11071 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 11072 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 11073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11074 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11075 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11076 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11077 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11078 | /* confdefs.h. */ |
| 11079 | _ACEOF |
| 11080 | cat confdefs.h >>conftest.$ac_ext |
| 11081 | cat >>conftest.$ac_ext <<_ACEOF |
| 11082 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11083 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11084 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11085 | #ifdef __cplusplus |
| 11086 | extern "C" |
| 11087 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11088 | /* 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] | 11089 | builtin and then its argument prototype would still apply. */ |
| 11090 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11091 | int |
| 11092 | main () |
| 11093 | { |
| 11094 | socket (); |
| 11095 | ; |
| 11096 | return 0; |
| 11097 | } |
| 11098 | _ACEOF |
| 11099 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11100 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11101 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11102 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11103 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11104 | rm -f conftest.er1 |
| 11105 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11107 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11108 | { ac_try='test -z "$ac_c_werror_flag" |
| 11109 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11111 | (eval $ac_try) 2>&5 |
| 11112 | ac_status=$? |
| 11113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11114 | (exit $ac_status); }; } && |
| 11115 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11117 | (eval $ac_try) 2>&5 |
| 11118 | ac_status=$? |
| 11119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11120 | (exit $ac_status); }; }; then |
| 11121 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11122 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11123 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11124 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11125 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11126 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11127 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11128 | rm -f conftest.err conftest.$ac_objext \ |
| 11129 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11130 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11131 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11132 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 11133 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 11134 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11135 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11136 | fi |
| 11137 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 11138 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 11139 | case "$ac_sys_system" in |
| 11140 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11141 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 11142 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 11143 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 11144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11145 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11146 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11147 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11148 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11149 | /* confdefs.h. */ |
| 11150 | _ACEOF |
| 11151 | cat confdefs.h >>conftest.$ac_ext |
| 11152 | cat >>conftest.$ac_ext <<_ACEOF |
| 11153 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11154 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11155 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11156 | #ifdef __cplusplus |
| 11157 | extern "C" |
| 11158 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11159 | /* 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] | 11160 | builtin and then its argument prototype would still apply. */ |
| 11161 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11162 | int |
| 11163 | main () |
| 11164 | { |
| 11165 | socket (); |
| 11166 | ; |
| 11167 | return 0; |
| 11168 | } |
| 11169 | _ACEOF |
| 11170 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11171 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11172 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11173 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11175 | rm -f conftest.er1 |
| 11176 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11178 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11179 | { ac_try='test -z "$ac_c_werror_flag" |
| 11180 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11182 | (eval $ac_try) 2>&5 |
| 11183 | ac_status=$? |
| 11184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11185 | (exit $ac_status); }; } && |
| 11186 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11188 | (eval $ac_try) 2>&5 |
| 11189 | ac_status=$? |
| 11190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11191 | (exit $ac_status); }; }; then |
| 11192 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11193 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11194 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11196 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11197 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11198 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11199 | rm -f conftest.err conftest.$ac_objext \ |
| 11200 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11201 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11202 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11203 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 11204 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 11205 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11206 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11207 | fi |
| 11208 | # BeOS |
| 11209 | ;; |
| 11210 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 11211 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11212 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 11213 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 11214 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 11215 | # Check whether --with-libs or --without-libs was given. |
| 11216 | if test "${with_libs+set}" = set; then |
| 11217 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11218 | |
| 11219 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11220 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 11221 | LIBS="$withval $LIBS" |
| 11222 | |
| 11223 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11224 | echo "$as_me:$LINENO: result: no" >&5 |
| 11225 | echo "${ECHO_T}no" >&6 |
| 11226 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11227 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11228 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11229 | |
| 11230 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11231 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 11232 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 11233 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11234 | # Check whether --with-signal-module or --without-signal-module was given. |
| 11235 | if test "${with_signal_module+set}" = set; then |
| 11236 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11237 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11238 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11239 | |
| 11240 | if test -z "$with_signal_module" |
| 11241 | then with_signal_module="yes" |
| 11242 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11243 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 11244 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11245 | |
| 11246 | if test "${with_signal_module}" = "yes"; then |
| 11247 | USE_SIGNAL_MODULE="" |
| 11248 | SIGNAL_OBJS="" |
| 11249 | else |
| 11250 | USE_SIGNAL_MODULE="#" |
| 11251 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 11252 | fi |
| 11253 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 11254 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 11255 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11256 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 11257 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11258 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 11259 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 11260 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11261 | |
| 11262 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 11263 | if test "${with_dec_threads+set}" = set; then |
| 11264 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11265 | |
| 11266 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11267 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11268 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 11269 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11270 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 11271 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11272 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11273 | echo "$as_me:$LINENO: result: no" >&5 |
| 11274 | echo "${ECHO_T}no" >&6 |
| 11275 | fi; |
| 11276 | |
| 11277 | # Templates for things AC_DEFINEd more than once. |
| 11278 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11279 | |
| 11280 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11281 | |
| 11282 | |
| 11283 | |
| 11284 | |
| 11285 | |
| 11286 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 11287 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 11288 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11289 | # Check whether --with-threads or --without-threads was given. |
| 11290 | if test "${with_threads+set}" = set; then |
| 11291 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11292 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11293 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11294 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11295 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11296 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11297 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11298 | if test "${with_thread+set}" = set; then |
| 11299 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11300 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11301 | fi; |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11302 | |
| 11303 | if test -z "$with_threads" |
| 11304 | then with_threads="yes" |
| 11305 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11306 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 11307 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11308 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11309 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11310 | if test "$with_threads" = "no" |
| 11311 | then |
| 11312 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11313 | elif test "$ac_cv_pthread_is_default" = yes |
| 11314 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11315 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11316 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11317 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11318 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11319 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11320 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11321 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11322 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11323 | |
| 11324 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11325 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11326 | elif test "$ac_cv_kpthread" = "yes" |
| 11327 | then |
| 11328 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11329 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11330 | CXX="$CXX -Kpthread" |
| 11331 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11332 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 11333 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11334 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 11335 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11336 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11337 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 11338 | elif test "$ac_cv_kthread" = "yes" |
| 11339 | then |
| 11340 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11341 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11342 | CXX="$CXX -Kthread" |
| 11343 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 11344 | cat >>confdefs.h <<\_ACEOF |
| 11345 | #define WITH_THREAD 1 |
| 11346 | _ACEOF |
| 11347 | |
| 11348 | posix_threads=yes |
| 11349 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11350 | elif test "$ac_cv_pthread" = "yes" |
| 11351 | then |
| 11352 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11353 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11354 | CXX="$CXX -pthread" |
| 11355 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11356 | cat >>confdefs.h <<\_ACEOF |
| 11357 | #define WITH_THREAD 1 |
| 11358 | _ACEOF |
| 11359 | |
| 11360 | posix_threads=yes |
| 11361 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11362 | else |
| 11363 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 11364 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 11365 | fi |
| 11366 | if test ! -z "$withval" -a -d "$withval" |
| 11367 | then LDFLAGS="$LDFLAGS -L$withval" |
| 11368 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11369 | |
| 11370 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 11371 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 11372 | # (e.g. gnu pth with pthread emulation) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11373 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 11374 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 11375 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11376 | /* confdefs.h. */ |
| 11377 | _ACEOF |
| 11378 | cat confdefs.h >>conftest.$ac_ext |
| 11379 | cat >>conftest.$ac_ext <<_ACEOF |
| 11380 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11381 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11382 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11383 | #ifdef _POSIX_THREADS |
| 11384 | yes |
| 11385 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11386 | |
| 11387 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11388 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11389 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11390 | unistd_defines_pthreads=yes |
| 11391 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11392 | unistd_defines_pthreads=no |
| 11393 | fi |
| 11394 | rm -f conftest* |
| 11395 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11396 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 11397 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11398 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11399 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 11400 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11401 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 11402 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11403 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11404 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 11405 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 11406 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11408 | fi |
| 11409 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 11410 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11411 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11412 | # Is the header compilable? |
| 11413 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 11414 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 11415 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11416 | /* confdefs.h. */ |
| 11417 | _ACEOF |
| 11418 | cat confdefs.h >>conftest.$ac_ext |
| 11419 | cat >>conftest.$ac_ext <<_ACEOF |
| 11420 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11421 | $ac_includes_default |
| 11422 | #include <cthreads.h> |
| 11423 | _ACEOF |
| 11424 | rm -f conftest.$ac_objext |
| 11425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11426 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11427 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11428 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11429 | rm -f conftest.er1 |
| 11430 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11432 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11433 | { ac_try='test -z "$ac_c_werror_flag" |
| 11434 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11436 | (eval $ac_try) 2>&5 |
| 11437 | ac_status=$? |
| 11438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11439 | (exit $ac_status); }; } && |
| 11440 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11442 | (eval $ac_try) 2>&5 |
| 11443 | ac_status=$? |
| 11444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11445 | (exit $ac_status); }; }; then |
| 11446 | ac_header_compiler=yes |
| 11447 | else |
| 11448 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11450 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11451 | ac_header_compiler=no |
| 11452 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11453 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11454 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11455 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11456 | |
| 11457 | # Is the header present? |
| 11458 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 11459 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 11460 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11461 | /* confdefs.h. */ |
| 11462 | _ACEOF |
| 11463 | cat confdefs.h >>conftest.$ac_ext |
| 11464 | cat >>conftest.$ac_ext <<_ACEOF |
| 11465 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11466 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11467 | _ACEOF |
| 11468 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11469 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11470 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11471 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11472 | rm -f conftest.er1 |
| 11473 | cat conftest.err >&5 |
| 11474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11475 | (exit $ac_status); } >/dev/null; then |
| 11476 | if test -s conftest.err; then |
| 11477 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11478 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11479 | else |
| 11480 | ac_cpp_err= |
| 11481 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11482 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11483 | ac_cpp_err=yes |
| 11484 | fi |
| 11485 | if test -z "$ac_cpp_err"; then |
| 11486 | ac_header_preproc=yes |
| 11487 | else |
| 11488 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11490 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11491 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11492 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11493 | rm -f conftest.err conftest.$ac_ext |
| 11494 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11495 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11496 | |
| 11497 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11498 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11499 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11500 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11501 | 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] | 11502 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 11503 | echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;} |
| 11504 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11505 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11506 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11507 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 11508 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11509 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 11510 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 11511 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 11512 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 11513 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11514 | 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] | 11515 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 11516 | 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] | 11517 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 11518 | 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] | 11519 | ( |
| 11520 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 11521 | ## ------------------------------------------------ ## |
| 11522 | ## Report this to http://www.python.org/python-bugs ## |
| 11523 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11524 | _ASBOX |
| 11525 | ) | |
| 11526 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11527 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11528 | esac |
| 11529 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 11530 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 11531 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11533 | else |
| 11534 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11535 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11536 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 11537 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 11538 | |
| 11539 | fi |
| 11540 | if test $ac_cv_header_cthreads_h = yes; then |
| 11541 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11542 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11543 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11544 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11545 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11546 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11547 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11548 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11549 | |
| 11550 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11551 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11552 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11553 | |
| 11554 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11555 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11556 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11557 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11558 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11559 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 11560 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 11561 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11563 | fi |
| 11564 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 11565 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11566 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11567 | # Is the header compilable? |
| 11568 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 11569 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 11570 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11571 | /* confdefs.h. */ |
| 11572 | _ACEOF |
| 11573 | cat confdefs.h >>conftest.$ac_ext |
| 11574 | cat >>conftest.$ac_ext <<_ACEOF |
| 11575 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11576 | $ac_includes_default |
| 11577 | #include <mach/cthreads.h> |
| 11578 | _ACEOF |
| 11579 | rm -f conftest.$ac_objext |
| 11580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11581 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11582 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11584 | rm -f conftest.er1 |
| 11585 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11587 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11588 | { ac_try='test -z "$ac_c_werror_flag" |
| 11589 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11591 | (eval $ac_try) 2>&5 |
| 11592 | ac_status=$? |
| 11593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11594 | (exit $ac_status); }; } && |
| 11595 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11597 | (eval $ac_try) 2>&5 |
| 11598 | ac_status=$? |
| 11599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11600 | (exit $ac_status); }; }; then |
| 11601 | ac_header_compiler=yes |
| 11602 | else |
| 11603 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11605 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11606 | ac_header_compiler=no |
| 11607 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11608 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11609 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11610 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11611 | |
| 11612 | # Is the header present? |
| 11613 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 11614 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 11615 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11616 | /* confdefs.h. */ |
| 11617 | _ACEOF |
| 11618 | cat confdefs.h >>conftest.$ac_ext |
| 11619 | cat >>conftest.$ac_ext <<_ACEOF |
| 11620 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11621 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11622 | _ACEOF |
| 11623 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11624 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11625 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11626 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11627 | rm -f conftest.er1 |
| 11628 | cat conftest.err >&5 |
| 11629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11630 | (exit $ac_status); } >/dev/null; then |
| 11631 | if test -s conftest.err; then |
| 11632 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11633 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11634 | else |
| 11635 | ac_cpp_err= |
| 11636 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11637 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11638 | ac_cpp_err=yes |
| 11639 | fi |
| 11640 | if test -z "$ac_cpp_err"; then |
| 11641 | ac_header_preproc=yes |
| 11642 | else |
| 11643 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11645 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11646 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11647 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11648 | rm -f conftest.err conftest.$ac_ext |
| 11649 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11650 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11651 | |
| 11652 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11653 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11654 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11655 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11656 | 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] | 11657 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 11658 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;} |
| 11659 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11660 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11661 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11662 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 11663 | 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] | 11664 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 11665 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 11666 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 11667 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 11668 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11669 | 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] | 11670 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 11671 | 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] | 11672 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 11673 | 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] | 11674 | ( |
| 11675 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 11676 | ## ------------------------------------------------ ## |
| 11677 | ## Report this to http://www.python.org/python-bugs ## |
| 11678 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11679 | _ASBOX |
| 11680 | ) | |
| 11681 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11682 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11683 | esac |
| 11684 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 11685 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 11686 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11688 | else |
| 11689 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11690 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11691 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 11692 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 11693 | |
| 11694 | fi |
| 11695 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 11696 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11697 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11698 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11699 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11700 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11701 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11702 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11703 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11704 | |
| 11705 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11706 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11707 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11708 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11709 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11710 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11711 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11712 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 11713 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 11714 | |
| 11715 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11716 | if test "${with_pth+set}" = set; then |
| 11717 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11718 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11719 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11720 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11721 | #define WITH_THREAD 1 |
| 11722 | _ACEOF |
| 11723 | |
| 11724 | |
| 11725 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11726 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11727 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11728 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11729 | LIBS="-lpth $LIBS" |
| 11730 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11731 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11732 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11733 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11734 | |
| 11735 | # Just looking for pthread_create in libpthread is not enough: |
| 11736 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 11737 | # So we really have to include pthread.h, and then link. |
| 11738 | _libs=$LIBS |
| 11739 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11740 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 11741 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 11742 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11743 | /* confdefs.h. */ |
| 11744 | _ACEOF |
| 11745 | cat confdefs.h >>conftest.$ac_ext |
| 11746 | cat >>conftest.$ac_ext <<_ACEOF |
| 11747 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11748 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11749 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11750 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11751 | int |
| 11752 | main () |
| 11753 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11754 | |
| 11755 | pthread_create (NULL, NULL, start_routine, NULL) |
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 | |
| 11783 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11784 | echo "${ECHO_T}yes" >&6 |
| 11785 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11786 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11787 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11788 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11789 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11790 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11791 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11792 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11794 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11795 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11796 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11797 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 11798 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 11799 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 11800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11801 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11802 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11803 | /* confdefs.h. */ |
| 11804 | _ACEOF |
| 11805 | cat confdefs.h >>conftest.$ac_ext |
| 11806 | cat >>conftest.$ac_ext <<_ACEOF |
| 11807 | /* end confdefs.h. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11808 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11809 | which can conflict with char pthread_detach (); below. |
| 11810 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 11811 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 11812 | including <limits.h> includes <sys/time.h> and causes problems |
| 11813 | checking for functions defined therein. */ |
| 11814 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11815 | # include <limits.h> |
| 11816 | #else |
| 11817 | # include <assert.h> |
| 11818 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11819 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11820 | #ifdef __cplusplus |
| 11821 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11822 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11823 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11824 | /* 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] | 11825 | builtin and then its argument prototype would still apply. */ |
| 11826 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11827 | /* The GNU C library defines this for functions which it implements |
| 11828 | to always fail with ENOSYS. Some functions are actually named |
| 11829 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 11830 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11831 | choke me |
| 11832 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11833 | char (*f) () = pthread_detach; |
| 11834 | #endif |
| 11835 | #ifdef __cplusplus |
| 11836 | } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11837 | #endif |
| 11838 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11839 | int |
| 11840 | main () |
| 11841 | { |
| 11842 | return f != pthread_detach; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11843 | ; |
| 11844 | return 0; |
| 11845 | } |
| 11846 | _ACEOF |
| 11847 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11848 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11849 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11850 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11851 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11852 | rm -f conftest.er1 |
| 11853 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11855 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11856 | { ac_try='test -z "$ac_c_werror_flag" |
| 11857 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11859 | (eval $ac_try) 2>&5 |
| 11860 | ac_status=$? |
| 11861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11862 | (exit $ac_status); }; } && |
| 11863 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11865 | (eval $ac_try) 2>&5 |
| 11866 | ac_status=$? |
| 11867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11868 | (exit $ac_status); }; }; then |
| 11869 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11870 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11871 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11873 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11874 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11875 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11876 | rm -f conftest.err conftest.$ac_objext \ |
| 11877 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11878 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11879 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 11880 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 11881 | if test $ac_cv_func_pthread_detach = yes; then |
| 11882 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11883 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11884 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11885 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11886 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11887 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11888 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11889 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11890 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11891 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 11892 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 11893 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11895 | fi |
| 11896 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 11897 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 11898 | else |
| 11899 | # Is the header compilable? |
| 11900 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 11901 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 11902 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11903 | /* confdefs.h. */ |
| 11904 | _ACEOF |
| 11905 | cat confdefs.h >>conftest.$ac_ext |
| 11906 | cat >>conftest.$ac_ext <<_ACEOF |
| 11907 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11908 | $ac_includes_default |
| 11909 | #include <atheos/threads.h> |
| 11910 | _ACEOF |
| 11911 | rm -f conftest.$ac_objext |
| 11912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11913 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11914 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11915 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11916 | rm -f conftest.er1 |
| 11917 | cat conftest.err >&5 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11919 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11920 | { ac_try='test -z "$ac_c_werror_flag" |
| 11921 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11923 | (eval $ac_try) 2>&5 |
| 11924 | ac_status=$? |
| 11925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11926 | (exit $ac_status); }; } && |
| 11927 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11929 | (eval $ac_try) 2>&5 |
| 11930 | ac_status=$? |
| 11931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11932 | (exit $ac_status); }; }; then |
| 11933 | ac_header_compiler=yes |
| 11934 | else |
| 11935 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11937 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11938 | ac_header_compiler=no |
| 11939 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11940 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11941 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11942 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11943 | |
| 11944 | # Is the header present? |
| 11945 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 11946 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 11947 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11948 | /* confdefs.h. */ |
| 11949 | _ACEOF |
| 11950 | cat confdefs.h >>conftest.$ac_ext |
| 11951 | cat >>conftest.$ac_ext <<_ACEOF |
| 11952 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11953 | #include <atheos/threads.h> |
| 11954 | _ACEOF |
| 11955 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11956 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11957 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11958 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11959 | rm -f conftest.er1 |
| 11960 | cat conftest.err >&5 |
| 11961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11962 | (exit $ac_status); } >/dev/null; then |
| 11963 | if test -s conftest.err; then |
| 11964 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11965 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11966 | else |
| 11967 | ac_cpp_err= |
| 11968 | fi |
| 11969 | else |
| 11970 | ac_cpp_err=yes |
| 11971 | fi |
| 11972 | if test -z "$ac_cpp_err"; then |
| 11973 | ac_header_preproc=yes |
| 11974 | else |
| 11975 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11977 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11978 | ac_header_preproc=no |
| 11979 | fi |
| 11980 | rm -f conftest.err conftest.$ac_ext |
| 11981 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11982 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11983 | |
| 11984 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11985 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11986 | yes:no: ) |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11987 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11988 | 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] | 11989 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 11990 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;} |
| 11991 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11992 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11993 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11994 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 11995 | 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] | 11996 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 11997 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 11998 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 11999 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 12000 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12001 | 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] | 12002 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 12003 | 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] | 12004 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 12005 | 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] | 12006 | ( |
| 12007 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 12008 | ## ------------------------------------------------ ## |
| 12009 | ## Report this to http://www.python.org/python-bugs ## |
| 12010 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12011 | _ASBOX |
| 12012 | ) | |
| 12013 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12014 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12015 | esac |
| 12016 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 12017 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 12018 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 12019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12020 | else |
| 12021 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 12022 | fi |
| 12023 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 12024 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 12025 | |
| 12026 | fi |
| 12027 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 12028 | cat >>confdefs.h <<\_ACEOF |
| 12029 | #define WITH_THREAD 1 |
| 12030 | _ACEOF |
| 12031 | |
| 12032 | |
| 12033 | cat >>confdefs.h <<\_ACEOF |
| 12034 | #define ATHEOS_THREADS 1 |
| 12035 | _ACEOF |
| 12036 | |
| 12037 | THREADOBJ="Python/thread.o" |
| 12038 | else |
| 12039 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12040 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 12041 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 12042 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 12043 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 12044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12045 | fi |
| 12046 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 12047 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12048 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12049 | # Is the header compilable? |
| 12050 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 12051 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 12052 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12053 | /* confdefs.h. */ |
| 12054 | _ACEOF |
| 12055 | cat confdefs.h >>conftest.$ac_ext |
| 12056 | cat >>conftest.$ac_ext <<_ACEOF |
| 12057 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12058 | $ac_includes_default |
| 12059 | #include <kernel/OS.h> |
| 12060 | _ACEOF |
| 12061 | rm -f conftest.$ac_objext |
| 12062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12063 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12064 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12065 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12066 | rm -f conftest.er1 |
| 12067 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12069 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12070 | { ac_try='test -z "$ac_c_werror_flag" |
| 12071 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12073 | (eval $ac_try) 2>&5 |
| 12074 | ac_status=$? |
| 12075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12076 | (exit $ac_status); }; } && |
| 12077 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12079 | (eval $ac_try) 2>&5 |
| 12080 | ac_status=$? |
| 12081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12082 | (exit $ac_status); }; }; then |
| 12083 | ac_header_compiler=yes |
| 12084 | else |
| 12085 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12087 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12088 | ac_header_compiler=no |
| 12089 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12091 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12092 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12093 | |
| 12094 | # Is the header present? |
| 12095 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 12096 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 12097 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12098 | /* confdefs.h. */ |
| 12099 | _ACEOF |
| 12100 | cat confdefs.h >>conftest.$ac_ext |
| 12101 | cat >>conftest.$ac_ext <<_ACEOF |
| 12102 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12103 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12104 | _ACEOF |
| 12105 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12106 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12107 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12108 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12109 | rm -f conftest.er1 |
| 12110 | cat conftest.err >&5 |
| 12111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12112 | (exit $ac_status); } >/dev/null; then |
| 12113 | if test -s conftest.err; then |
| 12114 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12115 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12116 | else |
| 12117 | ac_cpp_err= |
| 12118 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12119 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12120 | ac_cpp_err=yes |
| 12121 | fi |
| 12122 | if test -z "$ac_cpp_err"; then |
| 12123 | ac_header_preproc=yes |
| 12124 | else |
| 12125 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12127 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12128 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12129 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12130 | rm -f conftest.err conftest.$ac_ext |
| 12131 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12132 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12133 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12134 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12135 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12136 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12137 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12138 | 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] | 12139 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| 12140 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;} |
| 12141 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12142 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12143 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12144 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 12145 | 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] | 12146 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 12147 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 12148 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| 12149 | echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| 12150 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12151 | 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] | 12152 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 12153 | 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] | 12154 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| 12155 | 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] | 12156 | ( |
| 12157 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 12158 | ## ------------------------------------------------ ## |
| 12159 | ## Report this to http://www.python.org/python-bugs ## |
| 12160 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12161 | _ASBOX |
| 12162 | ) | |
| 12163 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12164 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12165 | esac |
| 12166 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 12167 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 12168 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 12169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12170 | else |
| 12171 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 12172 | fi |
| 12173 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 12174 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 12175 | |
| 12176 | fi |
| 12177 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 12178 | cat >>confdefs.h <<\_ACEOF |
| 12179 | #define WITH_THREAD 1 |
| 12180 | _ACEOF |
| 12181 | |
| 12182 | |
| 12183 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12184 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12185 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12186 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12187 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12188 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12189 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12190 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 12191 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 12192 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 12193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12194 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12195 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12196 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12197 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12198 | /* confdefs.h. */ |
| 12199 | _ACEOF |
| 12200 | cat confdefs.h >>conftest.$ac_ext |
| 12201 | cat >>conftest.$ac_ext <<_ACEOF |
| 12202 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12203 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12204 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12205 | #ifdef __cplusplus |
| 12206 | extern "C" |
| 12207 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12208 | /* 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] | 12209 | builtin and then its argument prototype would still apply. */ |
| 12210 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12211 | int |
| 12212 | main () |
| 12213 | { |
| 12214 | pthread_create (); |
| 12215 | ; |
| 12216 | return 0; |
| 12217 | } |
| 12218 | _ACEOF |
| 12219 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12220 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12221 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12222 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12223 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12224 | rm -f conftest.er1 |
| 12225 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12227 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12228 | { ac_try='test -z "$ac_c_werror_flag" |
| 12229 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12231 | (eval $ac_try) 2>&5 |
| 12232 | ac_status=$? |
| 12233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12234 | (exit $ac_status); }; } && |
| 12235 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12237 | (eval $ac_try) 2>&5 |
| 12238 | ac_status=$? |
| 12239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12240 | (exit $ac_status); }; }; then |
| 12241 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12242 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12243 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12245 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12246 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12247 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12248 | rm -f conftest.err conftest.$ac_objext \ |
| 12249 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12250 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12251 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12252 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 12253 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 12254 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 12255 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12256 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12257 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12258 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12259 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12260 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12261 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12262 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12263 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12264 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 12265 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 12266 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 12267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12268 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12269 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12270 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12271 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12272 | /* confdefs.h. */ |
| 12273 | _ACEOF |
| 12274 | cat confdefs.h >>conftest.$ac_ext |
| 12275 | cat >>conftest.$ac_ext <<_ACEOF |
| 12276 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12277 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12278 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12279 | #ifdef __cplusplus |
| 12280 | extern "C" |
| 12281 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12282 | /* 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] | 12283 | builtin and then its argument prototype would still apply. */ |
| 12284 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12285 | int |
| 12286 | main () |
| 12287 | { |
| 12288 | pthread_create (); |
| 12289 | ; |
| 12290 | return 0; |
| 12291 | } |
| 12292 | _ACEOF |
| 12293 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12295 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12296 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12297 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12298 | rm -f conftest.er1 |
| 12299 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12301 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12302 | { ac_try='test -z "$ac_c_werror_flag" |
| 12303 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12305 | (eval $ac_try) 2>&5 |
| 12306 | ac_status=$? |
| 12307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12308 | (exit $ac_status); }; } && |
| 12309 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12311 | (eval $ac_try) 2>&5 |
| 12312 | ac_status=$? |
| 12313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12314 | (exit $ac_status); }; }; then |
| 12315 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12316 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12317 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12318 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12319 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12320 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12321 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12322 | rm -f conftest.err conftest.$ac_objext \ |
| 12323 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12324 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12325 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12326 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 12327 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 12328 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 12329 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12330 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12331 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12332 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12333 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12334 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12335 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12336 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12337 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12338 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 12339 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 12340 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 12341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12342 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12343 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12344 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12345 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12346 | /* confdefs.h. */ |
| 12347 | _ACEOF |
| 12348 | cat confdefs.h >>conftest.$ac_ext |
| 12349 | cat >>conftest.$ac_ext <<_ACEOF |
| 12350 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12351 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12352 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12353 | #ifdef __cplusplus |
| 12354 | extern "C" |
| 12355 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12356 | /* 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] | 12357 | builtin and then its argument prototype would still apply. */ |
| 12358 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12359 | int |
| 12360 | main () |
| 12361 | { |
| 12362 | __pthread_create_system (); |
| 12363 | ; |
| 12364 | return 0; |
| 12365 | } |
| 12366 | _ACEOF |
| 12367 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12368 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12369 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12370 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12371 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12372 | rm -f conftest.er1 |
| 12373 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12375 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12376 | { ac_try='test -z "$ac_c_werror_flag" |
| 12377 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12379 | (eval $ac_try) 2>&5 |
| 12380 | ac_status=$? |
| 12381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12382 | (exit $ac_status); }; } && |
| 12383 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12385 | (eval $ac_try) 2>&5 |
| 12386 | ac_status=$? |
| 12387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12388 | (exit $ac_status); }; }; then |
| 12389 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12390 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12391 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12393 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12394 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12395 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12396 | rm -f conftest.err conftest.$ac_objext \ |
| 12397 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12398 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12399 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12400 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 12401 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 12402 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 12403 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12404 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12405 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12406 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12407 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12408 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12409 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12410 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12411 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12412 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 12413 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 12414 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 12415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12416 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12417 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12418 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12419 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12420 | /* confdefs.h. */ |
| 12421 | _ACEOF |
| 12422 | cat confdefs.h >>conftest.$ac_ext |
| 12423 | cat >>conftest.$ac_ext <<_ACEOF |
| 12424 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12425 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12426 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12427 | #ifdef __cplusplus |
| 12428 | extern "C" |
| 12429 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12430 | /* 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] | 12431 | builtin and then its argument prototype would still apply. */ |
| 12432 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12433 | int |
| 12434 | main () |
| 12435 | { |
| 12436 | pthread_create (); |
| 12437 | ; |
| 12438 | return 0; |
| 12439 | } |
| 12440 | _ACEOF |
| 12441 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12442 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12443 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12444 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12446 | rm -f conftest.er1 |
| 12447 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12449 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12450 | { ac_try='test -z "$ac_c_werror_flag" |
| 12451 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12453 | (eval $ac_try) 2>&5 |
| 12454 | ac_status=$? |
| 12455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12456 | (exit $ac_status); }; } && |
| 12457 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12459 | (eval $ac_try) 2>&5 |
| 12460 | ac_status=$? |
| 12461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12462 | (exit $ac_status); }; }; then |
| 12463 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12464 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12465 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12467 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12468 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12469 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12470 | rm -f conftest.err conftest.$ac_objext \ |
| 12471 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12472 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12473 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12474 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 12475 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 12476 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 12477 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12478 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12479 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12480 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12481 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12482 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12483 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12484 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 12485 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12486 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 12487 | fi |
| 12488 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12489 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12490 | fi |
| 12491 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 12492 | fi |
| 12493 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12494 | fi |
| 12495 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12496 | fi |
| 12497 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12498 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12499 | fi |
| 12500 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12501 | |
| 12502 | fi |
| 12503 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12504 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12505 | rm -f conftest.err conftest.$ac_objext \ |
| 12506 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12507 | fi; |
| 12508 | fi |
| 12509 | |
| 12510 | |
| 12511 | fi |
| 12512 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12513 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12514 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12515 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 12516 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 12517 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 12518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12519 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12520 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12521 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12522 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12523 | /* confdefs.h. */ |
| 12524 | _ACEOF |
| 12525 | cat confdefs.h >>conftest.$ac_ext |
| 12526 | cat >>conftest.$ac_ext <<_ACEOF |
| 12527 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12528 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12529 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12530 | #ifdef __cplusplus |
| 12531 | extern "C" |
| 12532 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12533 | /* 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] | 12534 | builtin and then its argument prototype would still apply. */ |
| 12535 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12536 | int |
| 12537 | main () |
| 12538 | { |
| 12539 | usconfig (); |
| 12540 | ; |
| 12541 | return 0; |
| 12542 | } |
| 12543 | _ACEOF |
| 12544 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12545 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12546 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12547 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12548 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12549 | rm -f conftest.er1 |
| 12550 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12552 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12553 | { ac_try='test -z "$ac_c_werror_flag" |
| 12554 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12556 | (eval $ac_try) 2>&5 |
| 12557 | ac_status=$? |
| 12558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12559 | (exit $ac_status); }; } && |
| 12560 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12562 | (eval $ac_try) 2>&5 |
| 12563 | ac_status=$? |
| 12564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12565 | (exit $ac_status); }; }; then |
| 12566 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12567 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12568 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12570 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12571 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12572 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12573 | rm -f conftest.err conftest.$ac_objext \ |
| 12574 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12575 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12576 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12577 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 12578 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 12579 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 12580 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12581 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12582 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12583 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12584 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12585 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12586 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12587 | fi |
| 12588 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12589 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 12590 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12591 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 12592 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 12593 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 12594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12595 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12596 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12597 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12598 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12599 | /* confdefs.h. */ |
| 12600 | _ACEOF |
| 12601 | cat confdefs.h >>conftest.$ac_ext |
| 12602 | cat >>conftest.$ac_ext <<_ACEOF |
| 12603 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12604 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12605 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12606 | #ifdef __cplusplus |
| 12607 | extern "C" |
| 12608 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12609 | /* 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] | 12610 | builtin and then its argument prototype would still apply. */ |
| 12611 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12612 | int |
| 12613 | main () |
| 12614 | { |
| 12615 | thr_create (); |
| 12616 | ; |
| 12617 | return 0; |
| 12618 | } |
| 12619 | _ACEOF |
| 12620 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12621 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12622 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12623 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12624 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12625 | rm -f conftest.er1 |
| 12626 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12628 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12629 | { ac_try='test -z "$ac_c_werror_flag" |
| 12630 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12632 | (eval $ac_try) 2>&5 |
| 12633 | ac_status=$? |
| 12634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12635 | (exit $ac_status); }; } && |
| 12636 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12638 | (eval $ac_try) 2>&5 |
| 12639 | ac_status=$? |
| 12640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12641 | (exit $ac_status); }; }; then |
| 12642 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12643 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12644 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12646 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12647 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12648 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12649 | rm -f conftest.err conftest.$ac_objext \ |
| 12650 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12651 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12652 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12653 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 12654 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 12655 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 12656 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12657 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12658 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12659 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12660 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12661 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12662 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12663 | fi |
| 12664 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12665 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12666 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12667 | if test "$USE_THREAD_MODULE" != "#" |
| 12668 | then |
| 12669 | # If the above checks didn't disable threads, (at least) OSF1 |
| 12670 | # needs this '-threads' argument during linking. |
| 12671 | case $ac_sys_system in |
| 12672 | OSF1) LDLAST=-threads;; |
| 12673 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 12674 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12675 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12676 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12677 | if test "$posix_threads" = "yes"; then |
| 12678 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12679 | |
| 12680 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12681 | #define _POSIX_THREADS 1 |
| 12682 | _ACEOF |
| 12683 | |
| 12684 | fi |
| 12685 | |
| 12686 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 12687 | case $ac_sys_system/$ac_sys_release in |
| 12688 | SunOS/5.6) |
| 12689 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12690 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 12691 | _ACEOF |
| 12692 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12693 | ;; |
| 12694 | SunOS/5.8) |
| 12695 | cat >>confdefs.h <<\_ACEOF |
| 12696 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 12697 | _ACEOF |
| 12698 | |
| 12699 | ;; |
| 12700 | esac |
| 12701 | |
| 12702 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 12703 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 12704 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 12705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12706 | else |
| 12707 | if test "$cross_compiling" = yes; then |
| 12708 | ac_cv_pthread_system_supported=no |
| 12709 | else |
| 12710 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12711 | /* confdefs.h. */ |
| 12712 | _ACEOF |
| 12713 | cat confdefs.h >>conftest.$ac_ext |
| 12714 | cat >>conftest.$ac_ext <<_ACEOF |
| 12715 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12716 | #include <pthread.h> |
| 12717 | void *foo(void *parm) { |
| 12718 | return NULL; |
| 12719 | } |
| 12720 | main() { |
| 12721 | pthread_attr_t attr; |
| 12722 | pthread_t id; |
| 12723 | if (pthread_attr_init(&attr)) exit(-1); |
| 12724 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 12725 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 12726 | exit(0); |
| 12727 | } |
| 12728 | _ACEOF |
| 12729 | rm -f conftest$ac_exeext |
| 12730 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12731 | (eval $ac_link) 2>&5 |
| 12732 | ac_status=$? |
| 12733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12734 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12736 | (eval $ac_try) 2>&5 |
| 12737 | ac_status=$? |
| 12738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12739 | (exit $ac_status); }; }; then |
| 12740 | ac_cv_pthread_system_supported=yes |
| 12741 | else |
| 12742 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12743 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12745 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12746 | ( exit $ac_status ) |
| 12747 | ac_cv_pthread_system_supported=no |
| 12748 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12749 | 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] | 12750 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12751 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12752 | fi |
| 12753 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12754 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 12755 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
| 12756 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 12757 | |
| 12758 | cat >>confdefs.h <<\_ACEOF |
| 12759 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 12760 | _ACEOF |
| 12761 | |
| 12762 | fi |
| 12763 | |
| 12764 | for ac_func in pthread_sigmask |
| 12765 | do |
| 12766 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12767 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12768 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12769 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12771 | else |
| 12772 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12773 | /* confdefs.h. */ |
| 12774 | _ACEOF |
| 12775 | cat confdefs.h >>conftest.$ac_ext |
| 12776 | cat >>conftest.$ac_ext <<_ACEOF |
| 12777 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12778 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12779 | which can conflict with char $ac_func (); below. |
| 12780 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 12781 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 12782 | including <limits.h> includes <sys/time.h> and causes problems |
| 12783 | checking for functions defined therein. */ |
| 12784 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12785 | # include <limits.h> |
| 12786 | #else |
| 12787 | # include <assert.h> |
| 12788 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12789 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12790 | #ifdef __cplusplus |
| 12791 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12792 | { |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12793 | #endif |
| 12794 | /* We use char because int might match the return type of a gcc2 |
| 12795 | builtin and then its argument prototype would still apply. */ |
| 12796 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12797 | /* The GNU C library defines this for functions which it implements |
| 12798 | to always fail with ENOSYS. Some functions are actually named |
| 12799 | something starting with __ and the normal name is an alias. */ |
| 12800 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12801 | choke me |
| 12802 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12803 | char (*f) () = $ac_func; |
| 12804 | #endif |
| 12805 | #ifdef __cplusplus |
| 12806 | } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12807 | #endif |
| 12808 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12809 | int |
| 12810 | main () |
| 12811 | { |
| 12812 | return f != $ac_func; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12813 | ; |
| 12814 | return 0; |
| 12815 | } |
| 12816 | _ACEOF |
| 12817 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12818 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12819 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12820 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12821 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12822 | rm -f conftest.er1 |
| 12823 | cat conftest.err >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12825 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12826 | { ac_try='test -z "$ac_c_werror_flag" |
| 12827 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12829 | (eval $ac_try) 2>&5 |
| 12830 | ac_status=$? |
| 12831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12832 | (exit $ac_status); }; } && |
| 12833 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12835 | (eval $ac_try) 2>&5 |
| 12836 | ac_status=$? |
| 12837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12838 | (exit $ac_status); }; }; then |
| 12839 | eval "$as_ac_var=yes" |
| 12840 | else |
| 12841 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12842 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12843 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12844 | eval "$as_ac_var=no" |
| 12845 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12846 | rm -f conftest.err conftest.$ac_objext \ |
| 12847 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12848 | fi |
| 12849 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12850 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12851 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12852 | cat >>confdefs.h <<_ACEOF |
| 12853 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12854 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12855 | case $ac_sys_system in |
| 12856 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12857 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12858 | cat >>confdefs.h <<\_ACEOF |
| 12859 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 12860 | _ACEOF |
| 12861 | |
| 12862 | ;; |
| 12863 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12864 | fi |
| 12865 | done |
| 12866 | |
| 12867 | fi |
| 12868 | |
| 12869 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12870 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12871 | |
| 12872 | |
| 12873 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 12874 | 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] | 12875 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 12876 | if test "${enable_ipv6+set}" = set; then |
| 12877 | enableval="$enable_ipv6" |
| 12878 | case "$enableval" in |
| 12879 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12880 | echo "$as_me:$LINENO: result: no" >&5 |
| 12881 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12882 | ipv6=no |
| 12883 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12884 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 12885 | echo "${ECHO_T}yes" >&6 |
| 12886 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12887 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12888 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12889 | |
| 12890 | ipv6=yes |
| 12891 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12892 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12893 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12894 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12895 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12896 | echo "$as_me:$LINENO: result: no" >&5 |
| 12897 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12898 | ipv6=no |
| 12899 | |
| 12900 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12901 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12902 | /* confdefs.h. */ |
| 12903 | _ACEOF |
| 12904 | cat confdefs.h >>conftest.$ac_ext |
| 12905 | cat >>conftest.$ac_ext <<_ACEOF |
| 12906 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12907 | /* AF_INET6 available check */ |
| 12908 | #include <sys/types.h> |
| 12909 | #include <sys/socket.h> |
| 12910 | main() |
| 12911 | { |
| 12912 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 12913 | exit(1); |
| 12914 | else |
| 12915 | exit(0); |
| 12916 | } |
| 12917 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12918 | _ACEOF |
| 12919 | rm -f conftest$ac_exeext |
| 12920 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12921 | (eval $ac_link) 2>&5 |
| 12922 | ac_status=$? |
| 12923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12924 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12926 | (eval $ac_try) 2>&5 |
| 12927 | ac_status=$? |
| 12928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12929 | (exit $ac_status); }; }; then |
| 12930 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12931 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12932 | ipv6=yes |
| 12933 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12934 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12935 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12937 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12938 | ( exit $ac_status ) |
| 12939 | echo "$as_me:$LINENO: result: no" >&5 |
| 12940 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12941 | ipv6=no |
| 12942 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12943 | 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] | 12944 | fi |
| 12945 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12946 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12947 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 12948 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 12949 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12950 | /* confdefs.h. */ |
| 12951 | _ACEOF |
| 12952 | cat confdefs.h >>conftest.$ac_ext |
| 12953 | cat >>conftest.$ac_ext <<_ACEOF |
| 12954 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12955 | #include <sys/types.h> |
| 12956 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12957 | int |
| 12958 | main () |
| 12959 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12960 | struct sockaddr_in6 x; |
| 12961 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12962 | ; |
| 12963 | return 0; |
| 12964 | } |
| 12965 | _ACEOF |
| 12966 | rm -f conftest.$ac_objext |
| 12967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12968 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12969 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12970 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12971 | rm -f conftest.er1 |
| 12972 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12974 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12975 | { ac_try='test -z "$ac_c_werror_flag" |
| 12976 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12978 | (eval $ac_try) 2>&5 |
| 12979 | ac_status=$? |
| 12980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12981 | (exit $ac_status); }; } && |
| 12982 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12984 | (eval $ac_try) 2>&5 |
| 12985 | ac_status=$? |
| 12986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12987 | (exit $ac_status); }; }; then |
| 12988 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12989 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12990 | ipv6=yes |
| 12991 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12992 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12994 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12995 | echo "$as_me:$LINENO: result: no" >&5 |
| 12996 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12997 | ipv6=no |
| 12998 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12999 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13000 | fi |
| 13001 | |
| 13002 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13003 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13004 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13005 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13006 | |
| 13007 | fi |
| 13008 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13009 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13010 | |
| 13011 | ipv6type=unknown |
| 13012 | ipv6lib=none |
| 13013 | ipv6trylibc=no |
| 13014 | |
| 13015 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13016 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 13017 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 13018 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 13019 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13020 | case $i in |
| 13021 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13022 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13023 | /* confdefs.h. */ |
| 13024 | _ACEOF |
| 13025 | cat confdefs.h >>conftest.$ac_ext |
| 13026 | cat >>conftest.$ac_ext <<_ACEOF |
| 13027 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13028 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13029 | #include <netinet/in.h> |
| 13030 | #ifdef IPV6_INRIA_VERSION |
| 13031 | yes |
| 13032 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13033 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13034 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13035 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 13036 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13037 | fi |
| 13038 | rm -f conftest* |
| 13039 | |
| 13040 | ;; |
| 13041 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13042 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13043 | /* confdefs.h. */ |
| 13044 | _ACEOF |
| 13045 | cat confdefs.h >>conftest.$ac_ext |
| 13046 | cat >>conftest.$ac_ext <<_ACEOF |
| 13047 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13048 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13049 | #include <netinet/in.h> |
| 13050 | #ifdef __KAME__ |
| 13051 | yes |
| 13052 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13053 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13054 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13055 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13056 | ipv6type=$i; |
| 13057 | ipv6lib=inet6 |
| 13058 | ipv6libdir=/usr/local/v6/lib |
| 13059 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13060 | fi |
| 13061 | rm -f conftest* |
| 13062 | |
| 13063 | ;; |
| 13064 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13065 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13066 | /* confdefs.h. */ |
| 13067 | _ACEOF |
| 13068 | cat confdefs.h >>conftest.$ac_ext |
| 13069 | cat >>conftest.$ac_ext <<_ACEOF |
| 13070 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13071 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13072 | #include <features.h> |
| 13073 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 13074 | yes |
| 13075 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13076 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13077 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13078 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13079 | ipv6type=$i; |
| 13080 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13081 | fi |
| 13082 | rm -f conftest* |
| 13083 | |
| 13084 | ;; |
| 13085 | linux-inet6) |
| 13086 | if test -d /usr/inet6; then |
| 13087 | ipv6type=$i |
| 13088 | ipv6lib=inet6 |
| 13089 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13090 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13091 | fi |
| 13092 | ;; |
| 13093 | solaris) |
| 13094 | if test -f /etc/netconfig; then |
| 13095 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 13096 | ipv6type=$i |
| 13097 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13098 | fi |
| 13099 | fi |
| 13100 | ;; |
| 13101 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13102 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13103 | /* confdefs.h. */ |
| 13104 | _ACEOF |
| 13105 | cat confdefs.h >>conftest.$ac_ext |
| 13106 | cat >>conftest.$ac_ext <<_ACEOF |
| 13107 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13108 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13109 | #include <sys/param.h> |
| 13110 | #ifdef _TOSHIBA_INET6 |
| 13111 | yes |
| 13112 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13113 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13114 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13115 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13116 | ipv6type=$i; |
| 13117 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 13118 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13119 | fi |
| 13120 | rm -f conftest* |
| 13121 | |
| 13122 | ;; |
| 13123 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13124 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13125 | /* confdefs.h. */ |
| 13126 | _ACEOF |
| 13127 | cat confdefs.h >>conftest.$ac_ext |
| 13128 | cat >>conftest.$ac_ext <<_ACEOF |
| 13129 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13130 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13131 | #include </usr/local/v6/include/sys/v6config.h> |
| 13132 | #ifdef __V6D__ |
| 13133 | yes |
| 13134 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13135 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13136 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13137 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13138 | ipv6type=$i; |
| 13139 | ipv6lib=v6; |
| 13140 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13141 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13142 | fi |
| 13143 | rm -f conftest* |
| 13144 | |
| 13145 | ;; |
| 13146 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13147 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13148 | /* confdefs.h. */ |
| 13149 | _ACEOF |
| 13150 | cat confdefs.h >>conftest.$ac_ext |
| 13151 | cat >>conftest.$ac_ext <<_ACEOF |
| 13152 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13153 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13154 | #include <sys/param.h> |
| 13155 | #ifdef _ZETA_MINAMI_INET6 |
| 13156 | yes |
| 13157 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13158 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13159 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13160 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13161 | ipv6type=$i; |
| 13162 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 13163 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13164 | fi |
| 13165 | rm -f conftest* |
| 13166 | |
| 13167 | ;; |
| 13168 | esac |
| 13169 | if test "$ipv6type" != "unknown"; then |
| 13170 | break |
| 13171 | fi |
| 13172 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13173 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 13174 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13175 | fi |
| 13176 | |
| 13177 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 13178 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 13179 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 13180 | echo "using lib$ipv6lib" |
| 13181 | else |
| 13182 | if test $ipv6trylibc = "yes"; then |
| 13183 | echo "using libc" |
| 13184 | else |
| 13185 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 13186 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 13187 | echo 'ipv6 kit and compile beforehand.' |
| 13188 | exit 1 |
| 13189 | fi |
| 13190 | fi |
| 13191 | fi |
| 13192 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 13193 | # Check for --with-doc-strings |
| 13194 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 13195 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 13196 | |
| 13197 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 13198 | if test "${with_doc_strings+set}" = set; then |
| 13199 | withval="$with_doc_strings" |
| 13200 | |
| 13201 | fi; |
| 13202 | |
| 13203 | if test -z "$with_doc_strings" |
| 13204 | then with_doc_strings="yes" |
| 13205 | fi |
| 13206 | if test "$with_doc_strings" != "no" |
| 13207 | then |
| 13208 | |
| 13209 | cat >>confdefs.h <<\_ACEOF |
| 13210 | #define WITH_DOC_STRINGS 1 |
| 13211 | _ACEOF |
| 13212 | |
| 13213 | fi |
| 13214 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 13215 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 13216 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13217 | # Check for Python-specific malloc support |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 13218 | echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 13219 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6 |
| 13220 | |
| 13221 | # Check whether --with-tsc or --without-tsc was given. |
| 13222 | if test "${with_tsc+set}" = set; then |
| 13223 | withval="$with_tsc" |
| 13224 | |
| 13225 | if test "$withval" != no |
| 13226 | then |
| 13227 | |
| 13228 | cat >>confdefs.h <<\_ACEOF |
| 13229 | #define WITH_TSC 1 |
| 13230 | _ACEOF |
| 13231 | |
| 13232 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13233 | echo "${ECHO_T}yes" >&6 |
| 13234 | else echo "$as_me:$LINENO: result: no" >&5 |
| 13235 | echo "${ECHO_T}no" >&6 |
| 13236 | fi |
| 13237 | else |
| 13238 | echo "$as_me:$LINENO: result: no" >&5 |
| 13239 | echo "${ECHO_T}no" >&6 |
| 13240 | fi; |
| 13241 | |
| 13242 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13243 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 13244 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 13245 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13246 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 13247 | if test "${with_pymalloc+set}" = set; then |
| 13248 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13249 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13250 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13251 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13252 | if test -z "$with_pymalloc" |
| 13253 | then with_pymalloc="yes" |
| 13254 | fi |
| 13255 | if test "$with_pymalloc" != "no" |
| 13256 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13257 | |
| 13258 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13259 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13260 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13261 | |
| 13262 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13263 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 13264 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13265 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13266 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13267 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 13268 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 13269 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13270 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 13271 | if test "${with_wctype_functions+set}" = set; then |
| 13272 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13273 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13274 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13275 | then |
| 13276 | |
| 13277 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13278 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13279 | _ACEOF |
| 13280 | |
| 13281 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13282 | echo "${ECHO_T}yes" >&6 |
| 13283 | else echo "$as_me:$LINENO: result: no" >&5 |
| 13284 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13285 | fi |
| 13286 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13287 | echo "$as_me:$LINENO: result: no" >&5 |
| 13288 | echo "${ECHO_T}no" >&6 |
| 13289 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13290 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13291 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13292 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 13293 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13294 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13295 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 13296 | # 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] | 13297 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13298 | for ac_func in dlopen |
| 13299 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13300 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13301 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13302 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13303 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13305 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13306 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13307 | /* confdefs.h. */ |
| 13308 | _ACEOF |
| 13309 | cat confdefs.h >>conftest.$ac_ext |
| 13310 | cat >>conftest.$ac_ext <<_ACEOF |
| 13311 | /* end confdefs.h. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13312 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13313 | which can conflict with char $ac_func (); below. |
| 13314 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13315 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13316 | including <limits.h> includes <sys/time.h> and causes problems |
| 13317 | checking for functions defined therein. */ |
| 13318 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13319 | # include <limits.h> |
| 13320 | #else |
| 13321 | # include <assert.h> |
| 13322 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13323 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13324 | #ifdef __cplusplus |
| 13325 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13326 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13327 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13328 | /* 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] | 13329 | builtin and then its argument prototype would still apply. */ |
| 13330 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13331 | /* The GNU C library defines this for functions which it implements |
| 13332 | to always fail with ENOSYS. Some functions are actually named |
| 13333 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13334 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13335 | choke me |
| 13336 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13337 | char (*f) () = $ac_func; |
| 13338 | #endif |
| 13339 | #ifdef __cplusplus |
| 13340 | } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13341 | #endif |
| 13342 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13343 | int |
| 13344 | main () |
| 13345 | { |
| 13346 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13347 | ; |
| 13348 | return 0; |
| 13349 | } |
| 13350 | _ACEOF |
| 13351 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13352 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13353 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13354 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13355 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13356 | rm -f conftest.er1 |
| 13357 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13359 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13360 | { ac_try='test -z "$ac_c_werror_flag" |
| 13361 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13363 | (eval $ac_try) 2>&5 |
| 13364 | ac_status=$? |
| 13365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13366 | (exit $ac_status); }; } && |
| 13367 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13369 | (eval $ac_try) 2>&5 |
| 13370 | ac_status=$? |
| 13371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13372 | (exit $ac_status); }; }; then |
| 13373 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13374 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13375 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13377 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13378 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13379 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13380 | rm -f conftest.err conftest.$ac_objext \ |
| 13381 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13382 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13383 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13384 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13385 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13386 | cat >>confdefs.h <<_ACEOF |
| 13387 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13388 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13389 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13390 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13391 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13392 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13393 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13394 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 13395 | # loading of modules. |
| 13396 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13397 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 13398 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13399 | if test -z "$DYNLOADFILE" |
| 13400 | then |
| 13401 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 13402 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 13403 | if test "$ac_cv_func_dlopen" = yes |
| 13404 | then DYNLOADFILE="dynload_shlib.o" |
| 13405 | else DYNLOADFILE="dynload_aix.o" |
| 13406 | fi |
| 13407 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13408 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 13409 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13410 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13411 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13412 | *) |
| 13413 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 13414 | # out any dynamic loading |
| 13415 | if test "$ac_cv_func_dlopen" = yes |
| 13416 | then DYNLOADFILE="dynload_shlib.o" |
| 13417 | else DYNLOADFILE="dynload_stub.o" |
| 13418 | fi |
| 13419 | ;; |
| 13420 | esac |
| 13421 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13422 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 13423 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13424 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 13425 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13426 | |
| 13427 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13428 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13429 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13430 | |
| 13431 | fi |
| 13432 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13433 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 13434 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13435 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13436 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 13437 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13438 | if test -z "$MACHDEP_OBJS" |
| 13439 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13440 | MACHDEP_OBJS=$extra_machdep_objs |
| 13441 | else |
| 13442 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13443 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13444 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 13445 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13446 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13447 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13448 | |
| 13449 | |
| 13450 | |
| 13451 | |
| 13452 | |
| 13453 | |
| 13454 | |
| 13455 | |
| 13456 | |
| 13457 | |
| 13458 | |
| 13459 | |
| 13460 | |
| 13461 | |
| 13462 | |
| 13463 | |
| 13464 | |
| 13465 | |
| 13466 | |
| 13467 | |
| 13468 | |
| 13469 | |
| 13470 | |
| 13471 | |
| 13472 | |
| 13473 | |
| 13474 | |
| 13475 | |
| 13476 | |
| 13477 | |
| 13478 | |
| 13479 | |
| 13480 | |
| 13481 | |
| 13482 | |
| 13483 | |
| 13484 | |
| 13485 | |
| 13486 | |
| 13487 | |
| 13488 | |
| 13489 | |
| 13490 | |
| 13491 | |
| 13492 | |
| 13493 | |
| 13494 | |
| 13495 | |
| 13496 | |
| 13497 | |
| 13498 | |
| 13499 | |
| 13500 | |
| 13501 | |
| 13502 | |
| 13503 | |
| 13504 | |
| 13505 | |
| 13506 | |
| 13507 | |
| 13508 | |
| 13509 | |
| 13510 | |
| 13511 | |
| 13512 | |
| 13513 | |
| 13514 | |
| 13515 | |
| 13516 | |
| 13517 | |
| 13518 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13519 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 13520 | |
| 13521 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13522 | for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \ |
| 13523 | execv fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 13524 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 13525 | getpriority getpwent getspnam getspent getsid getwd \ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13526 | kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 13527 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 13528 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13529 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 13530 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 13531 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 13532 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 13533 | truncate uname unsetenv utimes waitpid wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13534 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13535 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13536 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13537 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13538 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13540 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13541 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13542 | /* confdefs.h. */ |
| 13543 | _ACEOF |
| 13544 | cat confdefs.h >>conftest.$ac_ext |
| 13545 | cat >>conftest.$ac_ext <<_ACEOF |
| 13546 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13547 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13548 | which can conflict with char $ac_func (); below. |
| 13549 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13550 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13551 | including <limits.h> includes <sys/time.h> and causes problems |
| 13552 | checking for functions defined therein. */ |
| 13553 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13554 | # include <limits.h> |
| 13555 | #else |
| 13556 | # include <assert.h> |
| 13557 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13558 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13559 | #ifdef __cplusplus |
| 13560 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13561 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13562 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13563 | /* 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] | 13564 | builtin and then its argument prototype would still apply. */ |
| 13565 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13566 | /* The GNU C library defines this for functions which it implements |
| 13567 | to always fail with ENOSYS. Some functions are actually named |
| 13568 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13569 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13570 | choke me |
| 13571 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13572 | char (*f) () = $ac_func; |
| 13573 | #endif |
| 13574 | #ifdef __cplusplus |
| 13575 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13576 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13577 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13578 | int |
| 13579 | main () |
| 13580 | { |
| 13581 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13582 | ; |
| 13583 | return 0; |
| 13584 | } |
| 13585 | _ACEOF |
| 13586 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13587 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13588 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13589 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13590 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13591 | rm -f conftest.er1 |
| 13592 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13594 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13595 | { ac_try='test -z "$ac_c_werror_flag" |
| 13596 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13598 | (eval $ac_try) 2>&5 |
| 13599 | ac_status=$? |
| 13600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13601 | (exit $ac_status); }; } && |
| 13602 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13604 | (eval $ac_try) 2>&5 |
| 13605 | ac_status=$? |
| 13606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13607 | (exit $ac_status); }; }; then |
| 13608 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13609 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13610 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13612 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13613 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13614 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13615 | rm -f conftest.err conftest.$ac_objext \ |
| 13616 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13617 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13618 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13619 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13620 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13621 | cat >>confdefs.h <<_ACEOF |
| 13622 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13623 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13624 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13625 | fi |
| 13626 | done |
| 13627 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13628 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13629 | # For some functions, having a definition is not sufficient, since |
| 13630 | # we want to take their address. |
| 13631 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 13632 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 13633 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13634 | /* confdefs.h. */ |
| 13635 | _ACEOF |
| 13636 | cat confdefs.h >>conftest.$ac_ext |
| 13637 | cat >>conftest.$ac_ext <<_ACEOF |
| 13638 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13639 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13640 | int |
| 13641 | main () |
| 13642 | { |
| 13643 | void *x=chroot |
| 13644 | ; |
| 13645 | return 0; |
| 13646 | } |
| 13647 | _ACEOF |
| 13648 | rm -f conftest.$ac_objext |
| 13649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13650 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13651 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13652 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13653 | rm -f conftest.er1 |
| 13654 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13656 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13657 | { ac_try='test -z "$ac_c_werror_flag" |
| 13658 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13660 | (eval $ac_try) 2>&5 |
| 13661 | ac_status=$? |
| 13662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13663 | (exit $ac_status); }; } && |
| 13664 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13666 | (eval $ac_try) 2>&5 |
| 13667 | ac_status=$? |
| 13668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13669 | (exit $ac_status); }; }; then |
| 13670 | |
| 13671 | cat >>confdefs.h <<\_ACEOF |
| 13672 | #define HAVE_CHROOT 1 |
| 13673 | _ACEOF |
| 13674 | |
| 13675 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13676 | echo "${ECHO_T}yes" >&6 |
| 13677 | else |
| 13678 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13679 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13680 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13681 | echo "$as_me:$LINENO: result: no" >&5 |
| 13682 | echo "${ECHO_T}no" >&6 |
| 13683 | |
| 13684 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13685 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13686 | echo "$as_me:$LINENO: checking for link" >&5 |
| 13687 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 13688 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13689 | /* confdefs.h. */ |
| 13690 | _ACEOF |
| 13691 | cat confdefs.h >>conftest.$ac_ext |
| 13692 | cat >>conftest.$ac_ext <<_ACEOF |
| 13693 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13694 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13695 | int |
| 13696 | main () |
| 13697 | { |
| 13698 | void *x=link |
| 13699 | ; |
| 13700 | return 0; |
| 13701 | } |
| 13702 | _ACEOF |
| 13703 | rm -f conftest.$ac_objext |
| 13704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13705 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13706 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13707 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13708 | rm -f conftest.er1 |
| 13709 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13711 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13712 | { ac_try='test -z "$ac_c_werror_flag" |
| 13713 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13715 | (eval $ac_try) 2>&5 |
| 13716 | ac_status=$? |
| 13717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13718 | (exit $ac_status); }; } && |
| 13719 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13721 | (eval $ac_try) 2>&5 |
| 13722 | ac_status=$? |
| 13723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13724 | (exit $ac_status); }; }; then |
| 13725 | |
| 13726 | cat >>confdefs.h <<\_ACEOF |
| 13727 | #define HAVE_LINK 1 |
| 13728 | _ACEOF |
| 13729 | |
| 13730 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13731 | echo "${ECHO_T}yes" >&6 |
| 13732 | else |
| 13733 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13734 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13735 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13736 | echo "$as_me:$LINENO: result: no" >&5 |
| 13737 | echo "${ECHO_T}no" >&6 |
| 13738 | |
| 13739 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13740 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13741 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 13742 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 13743 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13744 | /* confdefs.h. */ |
| 13745 | _ACEOF |
| 13746 | cat confdefs.h >>conftest.$ac_ext |
| 13747 | cat >>conftest.$ac_ext <<_ACEOF |
| 13748 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13749 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13750 | int |
| 13751 | main () |
| 13752 | { |
| 13753 | void *x=symlink |
| 13754 | ; |
| 13755 | return 0; |
| 13756 | } |
| 13757 | _ACEOF |
| 13758 | rm -f conftest.$ac_objext |
| 13759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13760 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13761 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13762 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13763 | rm -f conftest.er1 |
| 13764 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13766 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13767 | { ac_try='test -z "$ac_c_werror_flag" |
| 13768 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13770 | (eval $ac_try) 2>&5 |
| 13771 | ac_status=$? |
| 13772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13773 | (exit $ac_status); }; } && |
| 13774 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13776 | (eval $ac_try) 2>&5 |
| 13777 | ac_status=$? |
| 13778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13779 | (exit $ac_status); }; }; then |
| 13780 | |
| 13781 | cat >>confdefs.h <<\_ACEOF |
| 13782 | #define HAVE_SYMLINK 1 |
| 13783 | _ACEOF |
| 13784 | |
| 13785 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13786 | echo "${ECHO_T}yes" >&6 |
| 13787 | else |
| 13788 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13790 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13791 | echo "$as_me:$LINENO: result: no" >&5 |
| 13792 | echo "${ECHO_T}no" >&6 |
| 13793 | |
| 13794 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13795 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13796 | echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 13797 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6 |
| 13798 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13799 | /* confdefs.h. */ |
| 13800 | _ACEOF |
| 13801 | cat confdefs.h >>conftest.$ac_ext |
| 13802 | cat >>conftest.$ac_ext <<_ACEOF |
| 13803 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13804 | #include <unistd.h> |
| 13805 | int |
| 13806 | main () |
| 13807 | { |
| 13808 | void *x=fchdir |
| 13809 | ; |
| 13810 | return 0; |
| 13811 | } |
| 13812 | _ACEOF |
| 13813 | rm -f conftest.$ac_objext |
| 13814 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13815 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13816 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13818 | rm -f conftest.er1 |
| 13819 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13821 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13822 | { ac_try='test -z "$ac_c_werror_flag" |
| 13823 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13825 | (eval $ac_try) 2>&5 |
| 13826 | ac_status=$? |
| 13827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13828 | (exit $ac_status); }; } && |
| 13829 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13831 | (eval $ac_try) 2>&5 |
| 13832 | ac_status=$? |
| 13833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13834 | (exit $ac_status); }; }; then |
| 13835 | |
| 13836 | cat >>confdefs.h <<\_ACEOF |
| 13837 | #define HAVE_FCHDIR 1 |
| 13838 | _ACEOF |
| 13839 | |
| 13840 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13841 | echo "${ECHO_T}yes" >&6 |
| 13842 | else |
| 13843 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13845 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13846 | echo "$as_me:$LINENO: result: no" >&5 |
| 13847 | echo "${ECHO_T}no" >&6 |
| 13848 | |
| 13849 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13851 | echo "$as_me:$LINENO: checking for fsync" >&5 |
| 13852 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6 |
| 13853 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13854 | /* confdefs.h. */ |
| 13855 | _ACEOF |
| 13856 | cat confdefs.h >>conftest.$ac_ext |
| 13857 | cat >>conftest.$ac_ext <<_ACEOF |
| 13858 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13859 | #include <unistd.h> |
| 13860 | int |
| 13861 | main () |
| 13862 | { |
| 13863 | void *x=fsync |
| 13864 | ; |
| 13865 | return 0; |
| 13866 | } |
| 13867 | _ACEOF |
| 13868 | rm -f conftest.$ac_objext |
| 13869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13870 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13871 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13873 | rm -f conftest.er1 |
| 13874 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13876 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13877 | { ac_try='test -z "$ac_c_werror_flag" |
| 13878 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13880 | (eval $ac_try) 2>&5 |
| 13881 | ac_status=$? |
| 13882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13883 | (exit $ac_status); }; } && |
| 13884 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13886 | (eval $ac_try) 2>&5 |
| 13887 | ac_status=$? |
| 13888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13889 | (exit $ac_status); }; }; then |
| 13890 | |
| 13891 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13892 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13893 | _ACEOF |
| 13894 | |
| 13895 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13896 | echo "${ECHO_T}yes" >&6 |
| 13897 | else |
| 13898 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13900 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13901 | echo "$as_me:$LINENO: result: no" >&5 |
| 13902 | echo "${ECHO_T}no" >&6 |
| 13903 | |
| 13904 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13905 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13906 | echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 13907 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6 |
| 13908 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13909 | /* confdefs.h. */ |
| 13910 | _ACEOF |
| 13911 | cat confdefs.h >>conftest.$ac_ext |
| 13912 | cat >>conftest.$ac_ext <<_ACEOF |
| 13913 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13914 | #include <unistd.h> |
| 13915 | int |
| 13916 | main () |
| 13917 | { |
| 13918 | void *x=fdatasync |
| 13919 | ; |
| 13920 | return 0; |
| 13921 | } |
| 13922 | _ACEOF |
| 13923 | rm -f conftest.$ac_objext |
| 13924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13925 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13926 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13928 | rm -f conftest.er1 |
| 13929 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13931 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13932 | { ac_try='test -z "$ac_c_werror_flag" |
| 13933 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13935 | (eval $ac_try) 2>&5 |
| 13936 | ac_status=$? |
| 13937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13938 | (exit $ac_status); }; } && |
| 13939 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13941 | (eval $ac_try) 2>&5 |
| 13942 | ac_status=$? |
| 13943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13944 | (exit $ac_status); }; }; then |
| 13945 | |
| 13946 | cat >>confdefs.h <<\_ACEOF |
| 13947 | #define HAVE_FDATASYNC 1 |
| 13948 | _ACEOF |
| 13949 | |
| 13950 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13951 | echo "${ECHO_T}yes" >&6 |
| 13952 | else |
| 13953 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13955 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13956 | echo "$as_me:$LINENO: result: no" >&5 |
| 13957 | echo "${ECHO_T}no" >&6 |
| 13958 | |
| 13959 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13960 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13961 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13962 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 13963 | # functions ctermid_r, setgroups in the library, but no prototype |
| 13964 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 13965 | # address to avoid compiler warnings and potential miscompilations |
| 13966 | # because of the missing prototypes. |
| 13967 | |
| 13968 | echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 13969 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6 |
| 13970 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13971 | /* confdefs.h. */ |
| 13972 | _ACEOF |
| 13973 | cat confdefs.h >>conftest.$ac_ext |
| 13974 | cat >>conftest.$ac_ext <<_ACEOF |
| 13975 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13976 | |
| 13977 | #include "confdefs.h" |
| 13978 | #include <stdio.h> |
| 13979 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13980 | int |
| 13981 | main () |
| 13982 | { |
| 13983 | void* p = ctermid_r |
| 13984 | ; |
| 13985 | return 0; |
| 13986 | } |
| 13987 | _ACEOF |
| 13988 | rm -f conftest.$ac_objext |
| 13989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13990 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13991 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13993 | rm -f conftest.er1 |
| 13994 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13996 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13997 | { ac_try='test -z "$ac_c_werror_flag" |
| 13998 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14000 | (eval $ac_try) 2>&5 |
| 14001 | ac_status=$? |
| 14002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14003 | (exit $ac_status); }; } && |
| 14004 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14006 | (eval $ac_try) 2>&5 |
| 14007 | ac_status=$? |
| 14008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14009 | (exit $ac_status); }; }; then |
| 14010 | |
| 14011 | cat >>confdefs.h <<\_ACEOF |
| 14012 | #define HAVE_CTERMID_R 1 |
| 14013 | _ACEOF |
| 14014 | |
| 14015 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14016 | echo "${ECHO_T}yes" >&6 |
| 14017 | else |
| 14018 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14020 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14021 | echo "$as_me:$LINENO: result: no" >&5 |
| 14022 | echo "${ECHO_T}no" >&6 |
| 14023 | |
| 14024 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14025 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14026 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14027 | echo "$as_me:$LINENO: checking for flock" >&5 |
| 14028 | echo $ECHO_N "checking for flock... $ECHO_C" >&6 |
| 14029 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14030 | /* confdefs.h. */ |
| 14031 | _ACEOF |
| 14032 | cat confdefs.h >>conftest.$ac_ext |
| 14033 | cat >>conftest.$ac_ext <<_ACEOF |
| 14034 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14035 | |
| 14036 | #include "confdefs.h" |
| 14037 | #include <sys/file.h> |
| 14038 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14039 | int |
| 14040 | main () |
| 14041 | { |
| 14042 | void* p = flock |
| 14043 | ; |
| 14044 | return 0; |
| 14045 | } |
| 14046 | _ACEOF |
| 14047 | rm -f conftest.$ac_objext |
| 14048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14049 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14050 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14051 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14052 | rm -f conftest.er1 |
| 14053 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14055 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14056 | { ac_try='test -z "$ac_c_werror_flag" |
| 14057 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14059 | (eval $ac_try) 2>&5 |
| 14060 | ac_status=$? |
| 14061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14062 | (exit $ac_status); }; } && |
| 14063 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14065 | (eval $ac_try) 2>&5 |
| 14066 | ac_status=$? |
| 14067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14068 | (exit $ac_status); }; }; then |
| 14069 | |
| 14070 | cat >>confdefs.h <<\_ACEOF |
| 14071 | #define HAVE_FLOCK 1 |
| 14072 | _ACEOF |
| 14073 | |
| 14074 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14075 | echo "${ECHO_T}yes" >&6 |
| 14076 | else |
| 14077 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14079 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14080 | echo "$as_me:$LINENO: result: no" >&5 |
| 14081 | echo "${ECHO_T}no" >&6 |
| 14082 | |
| 14083 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14084 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14085 | |
| 14086 | echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 14087 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 |
| 14088 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14089 | /* confdefs.h. */ |
| 14090 | _ACEOF |
| 14091 | cat confdefs.h >>conftest.$ac_ext |
| 14092 | cat >>conftest.$ac_ext <<_ACEOF |
| 14093 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14094 | |
| 14095 | #include "confdefs.h" |
| 14096 | #include <unistd.h> |
| 14097 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14098 | int |
| 14099 | main () |
| 14100 | { |
| 14101 | void* p = getpagesize |
| 14102 | ; |
| 14103 | return 0; |
| 14104 | } |
| 14105 | _ACEOF |
| 14106 | rm -f conftest.$ac_objext |
| 14107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14108 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14109 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14110 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14111 | rm -f conftest.er1 |
| 14112 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14114 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14115 | { ac_try='test -z "$ac_c_werror_flag" |
| 14116 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14118 | (eval $ac_try) 2>&5 |
| 14119 | ac_status=$? |
| 14120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14121 | (exit $ac_status); }; } && |
| 14122 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14124 | (eval $ac_try) 2>&5 |
| 14125 | ac_status=$? |
| 14126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14127 | (exit $ac_status); }; }; then |
| 14128 | |
| 14129 | cat >>confdefs.h <<\_ACEOF |
| 14130 | #define HAVE_GETPAGESIZE 1 |
| 14131 | _ACEOF |
| 14132 | |
| 14133 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14134 | echo "${ECHO_T}yes" >&6 |
| 14135 | else |
| 14136 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14138 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14139 | echo "$as_me:$LINENO: result: no" >&5 |
| 14140 | echo "${ECHO_T}no" >&6 |
| 14141 | |
| 14142 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14144 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14145 | for ac_prog in true |
| 14146 | do |
| 14147 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 14148 | set dummy $ac_prog; ac_word=$2 |
| 14149 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14150 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14151 | if test "${ac_cv_prog_TRUE+set}" = set; then |
| 14152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14153 | else |
| 14154 | if test -n "$TRUE"; then |
| 14155 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 14156 | else |
| 14157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14158 | for as_dir in $PATH |
| 14159 | do |
| 14160 | IFS=$as_save_IFS |
| 14161 | test -z "$as_dir" && as_dir=. |
| 14162 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14163 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14164 | ac_cv_prog_TRUE="$ac_prog" |
| 14165 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14166 | break 2 |
| 14167 | fi |
| 14168 | done |
| 14169 | done |
| 14170 | |
| 14171 | fi |
| 14172 | fi |
| 14173 | TRUE=$ac_cv_prog_TRUE |
| 14174 | if test -n "$TRUE"; then |
| 14175 | echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 14176 | echo "${ECHO_T}$TRUE" >&6 |
| 14177 | else |
| 14178 | echo "$as_me:$LINENO: result: no" >&5 |
| 14179 | echo "${ECHO_T}no" >&6 |
| 14180 | fi |
| 14181 | |
| 14182 | test -n "$TRUE" && break |
| 14183 | done |
| 14184 | test -n "$TRUE" || TRUE="/bin/true" |
| 14185 | |
| 14186 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14187 | echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 14188 | echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6 |
| 14189 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
| 14190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14191 | else |
| 14192 | ac_check_lib_save_LIBS=$LIBS |
| 14193 | LIBS="-lc $LIBS" |
| 14194 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14195 | /* confdefs.h. */ |
| 14196 | _ACEOF |
| 14197 | cat confdefs.h >>conftest.$ac_ext |
| 14198 | cat >>conftest.$ac_ext <<_ACEOF |
| 14199 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14200 | |
| 14201 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14202 | #ifdef __cplusplus |
| 14203 | extern "C" |
| 14204 | #endif |
| 14205 | /* We use char because int might match the return type of a gcc2 |
| 14206 | builtin and then its argument prototype would still apply. */ |
| 14207 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14208 | int |
| 14209 | main () |
| 14210 | { |
| 14211 | inet_aton (); |
| 14212 | ; |
| 14213 | return 0; |
| 14214 | } |
| 14215 | _ACEOF |
| 14216 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14217 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14218 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14219 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14221 | rm -f conftest.er1 |
| 14222 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14224 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14225 | { ac_try='test -z "$ac_c_werror_flag" |
| 14226 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14228 | (eval $ac_try) 2>&5 |
| 14229 | ac_status=$? |
| 14230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14231 | (exit $ac_status); }; } && |
| 14232 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14234 | (eval $ac_try) 2>&5 |
| 14235 | ac_status=$? |
| 14236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14237 | (exit $ac_status); }; }; then |
| 14238 | ac_cv_lib_c_inet_aton=yes |
| 14239 | else |
| 14240 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14241 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14242 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14243 | ac_cv_lib_c_inet_aton=no |
| 14244 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14245 | rm -f conftest.err conftest.$ac_objext \ |
| 14246 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14247 | LIBS=$ac_check_lib_save_LIBS |
| 14248 | fi |
| 14249 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 14250 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6 |
| 14251 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14252 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14253 | else |
| 14254 | |
| 14255 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 14256 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 14257 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 14258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14259 | else |
| 14260 | ac_check_lib_save_LIBS=$LIBS |
| 14261 | LIBS="-lresolv $LIBS" |
| 14262 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14263 | /* confdefs.h. */ |
| 14264 | _ACEOF |
| 14265 | cat confdefs.h >>conftest.$ac_ext |
| 14266 | cat >>conftest.$ac_ext <<_ACEOF |
| 14267 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14268 | |
| 14269 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14270 | #ifdef __cplusplus |
| 14271 | extern "C" |
| 14272 | #endif |
| 14273 | /* We use char because int might match the return type of a gcc2 |
| 14274 | builtin and then its argument prototype would still apply. */ |
| 14275 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14276 | int |
| 14277 | main () |
| 14278 | { |
| 14279 | inet_aton (); |
| 14280 | ; |
| 14281 | return 0; |
| 14282 | } |
| 14283 | _ACEOF |
| 14284 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14285 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14286 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14287 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14289 | rm -f conftest.er1 |
| 14290 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14292 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14293 | { ac_try='test -z "$ac_c_werror_flag" |
| 14294 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14296 | (eval $ac_try) 2>&5 |
| 14297 | ac_status=$? |
| 14298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14299 | (exit $ac_status); }; } && |
| 14300 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14302 | (eval $ac_try) 2>&5 |
| 14303 | ac_status=$? |
| 14304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14305 | (exit $ac_status); }; }; then |
| 14306 | ac_cv_lib_resolv_inet_aton=yes |
| 14307 | else |
| 14308 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14310 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14311 | ac_cv_lib_resolv_inet_aton=no |
| 14312 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14313 | rm -f conftest.err conftest.$ac_objext \ |
| 14314 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14315 | LIBS=$ac_check_lib_save_LIBS |
| 14316 | fi |
| 14317 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 14318 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 14319 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
| 14320 | cat >>confdefs.h <<_ACEOF |
| 14321 | #define HAVE_LIBRESOLV 1 |
| 14322 | _ACEOF |
| 14323 | |
| 14324 | LIBS="-lresolv $LIBS" |
| 14325 | |
| 14326 | fi |
| 14327 | |
| 14328 | |
| 14329 | fi |
| 14330 | |
| 14331 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14332 | echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 14333 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 |
| 14334 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14335 | /* confdefs.h. */ |
| 14336 | _ACEOF |
| 14337 | cat confdefs.h >>conftest.$ac_ext |
| 14338 | cat >>conftest.$ac_ext <<_ACEOF |
| 14339 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14340 | |
| 14341 | #include "confdefs.h" |
| 14342 | #include <netdb.h> |
| 14343 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14344 | int |
| 14345 | main () |
| 14346 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14347 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14348 | ; |
| 14349 | return 0; |
| 14350 | } |
| 14351 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14352 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14353 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14354 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14355 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14356 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14357 | rm -f conftest.er1 |
| 14358 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14360 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14361 | { ac_try='test -z "$ac_c_werror_flag" |
| 14362 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14364 | (eval $ac_try) 2>&5 |
| 14365 | ac_status=$? |
| 14366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14367 | (exit $ac_status); }; } && |
| 14368 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14370 | (eval $ac_try) 2>&5 |
| 14371 | ac_status=$? |
| 14372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14373 | (exit $ac_status); }; }; then |
| 14374 | |
| 14375 | cat >>confdefs.h <<\_ACEOF |
| 14376 | #define HAVE_HSTRERROR 1 |
| 14377 | _ACEOF |
| 14378 | |
| 14379 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14380 | echo "${ECHO_T}yes" >&6 |
| 14381 | else |
| 14382 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14384 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14385 | echo "$as_me:$LINENO: result: no" >&5 |
| 14386 | echo "${ECHO_T}no" >&6 |
| 14387 | |
| 14388 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14389 | rm -f conftest.err conftest.$ac_objext \ |
| 14390 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14391 | |
| 14392 | echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 14393 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 |
| 14394 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14395 | /* confdefs.h. */ |
| 14396 | _ACEOF |
| 14397 | cat confdefs.h >>conftest.$ac_ext |
| 14398 | cat >>conftest.$ac_ext <<_ACEOF |
| 14399 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14400 | |
| 14401 | #include "confdefs.h" |
| 14402 | #include <sys/socket.h> |
| 14403 | #include <netinet/in.h> |
| 14404 | #include <arpa/inet.h> |
| 14405 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14406 | int |
| 14407 | main () |
| 14408 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14409 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14410 | ; |
| 14411 | return 0; |
| 14412 | } |
| 14413 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14414 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14415 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14416 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14417 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14418 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14419 | rm -f conftest.er1 |
| 14420 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14422 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14423 | { ac_try='test -z "$ac_c_werror_flag" |
| 14424 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14426 | (eval $ac_try) 2>&5 |
| 14427 | ac_status=$? |
| 14428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14429 | (exit $ac_status); }; } && |
| 14430 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14432 | (eval $ac_try) 2>&5 |
| 14433 | ac_status=$? |
| 14434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14435 | (exit $ac_status); }; }; then |
| 14436 | |
| 14437 | cat >>confdefs.h <<\_ACEOF |
| 14438 | #define HAVE_INET_ATON 1 |
| 14439 | _ACEOF |
| 14440 | |
| 14441 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14442 | echo "${ECHO_T}yes" >&6 |
| 14443 | else |
| 14444 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14445 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14446 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14447 | echo "$as_me:$LINENO: result: no" >&5 |
| 14448 | echo "${ECHO_T}no" >&6 |
| 14449 | |
| 14450 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14451 | rm -f conftest.err conftest.$ac_objext \ |
| 14452 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14453 | |
| 14454 | echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 14455 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 |
| 14456 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14457 | /* confdefs.h. */ |
| 14458 | _ACEOF |
| 14459 | cat confdefs.h >>conftest.$ac_ext |
| 14460 | cat >>conftest.$ac_ext <<_ACEOF |
| 14461 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14462 | |
| 14463 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 14464 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14465 | #include <sys/socket.h> |
| 14466 | #include <netinet/in.h> |
| 14467 | #include <arpa/inet.h> |
| 14468 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14469 | int |
| 14470 | main () |
| 14471 | { |
| 14472 | void* p = inet_pton |
| 14473 | ; |
| 14474 | return 0; |
| 14475 | } |
| 14476 | _ACEOF |
| 14477 | rm -f conftest.$ac_objext |
| 14478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14479 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14480 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14481 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14482 | rm -f conftest.er1 |
| 14483 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14485 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14486 | { ac_try='test -z "$ac_c_werror_flag" |
| 14487 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14489 | (eval $ac_try) 2>&5 |
| 14490 | ac_status=$? |
| 14491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14492 | (exit $ac_status); }; } && |
| 14493 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14495 | (eval $ac_try) 2>&5 |
| 14496 | ac_status=$? |
| 14497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14498 | (exit $ac_status); }; }; then |
| 14499 | |
| 14500 | cat >>confdefs.h <<\_ACEOF |
| 14501 | #define HAVE_INET_PTON 1 |
| 14502 | _ACEOF |
| 14503 | |
| 14504 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14505 | echo "${ECHO_T}yes" >&6 |
| 14506 | else |
| 14507 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14509 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14510 | echo "$as_me:$LINENO: result: no" >&5 |
| 14511 | echo "${ECHO_T}no" >&6 |
| 14512 | |
| 14513 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14514 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14515 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 14516 | # 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] | 14517 | echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 14518 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 |
| 14519 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14520 | /* confdefs.h. */ |
| 14521 | _ACEOF |
| 14522 | cat confdefs.h >>conftest.$ac_ext |
| 14523 | cat >>conftest.$ac_ext <<_ACEOF |
| 14524 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14525 | |
| 14526 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 14527 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 14528 | #ifdef HAVE_GRP_H |
| 14529 | #include <grp.h> |
| 14530 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14531 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14532 | int |
| 14533 | main () |
| 14534 | { |
| 14535 | void* p = setgroups |
| 14536 | ; |
| 14537 | return 0; |
| 14538 | } |
| 14539 | _ACEOF |
| 14540 | rm -f conftest.$ac_objext |
| 14541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14542 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14543 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14545 | rm -f conftest.er1 |
| 14546 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14548 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14549 | { ac_try='test -z "$ac_c_werror_flag" |
| 14550 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14552 | (eval $ac_try) 2>&5 |
| 14553 | ac_status=$? |
| 14554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14555 | (exit $ac_status); }; } && |
| 14556 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14558 | (eval $ac_try) 2>&5 |
| 14559 | ac_status=$? |
| 14560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14561 | (exit $ac_status); }; }; then |
| 14562 | |
| 14563 | cat >>confdefs.h <<\_ACEOF |
| 14564 | #define HAVE_SETGROUPS 1 |
| 14565 | _ACEOF |
| 14566 | |
| 14567 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14568 | echo "${ECHO_T}yes" >&6 |
| 14569 | else |
| 14570 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14572 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14573 | echo "$as_me:$LINENO: result: no" >&5 |
| 14574 | echo "${ECHO_T}no" >&6 |
| 14575 | |
| 14576 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14577 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14578 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14579 | # check for openpty and forkpty |
| 14580 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14581 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14582 | for ac_func in openpty |
| 14583 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14584 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14585 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14586 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14587 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14589 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14590 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14591 | /* confdefs.h. */ |
| 14592 | _ACEOF |
| 14593 | cat confdefs.h >>conftest.$ac_ext |
| 14594 | cat >>conftest.$ac_ext <<_ACEOF |
| 14595 | /* end confdefs.h. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14596 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14597 | which can conflict with char $ac_func (); below. |
| 14598 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14599 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14600 | including <limits.h> includes <sys/time.h> and causes problems |
| 14601 | checking for functions defined therein. */ |
| 14602 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14603 | # include <limits.h> |
| 14604 | #else |
| 14605 | # include <assert.h> |
| 14606 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14607 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14608 | #ifdef __cplusplus |
| 14609 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14610 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14611 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14612 | /* 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] | 14613 | builtin and then its argument prototype would still apply. */ |
| 14614 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14615 | /* The GNU C library defines this for functions which it implements |
| 14616 | to always fail with ENOSYS. Some functions are actually named |
| 14617 | something starting with __ and the normal name is an alias. */ |
| 14618 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14619 | choke me |
| 14620 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14621 | char (*f) () = $ac_func; |
| 14622 | #endif |
| 14623 | #ifdef __cplusplus |
| 14624 | } |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14625 | #endif |
| 14626 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14627 | int |
| 14628 | main () |
| 14629 | { |
| 14630 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14631 | ; |
| 14632 | return 0; |
| 14633 | } |
| 14634 | _ACEOF |
| 14635 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14636 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14637 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14638 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14639 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14640 | rm -f conftest.er1 |
| 14641 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14643 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14644 | { ac_try='test -z "$ac_c_werror_flag" |
| 14645 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14647 | (eval $ac_try) 2>&5 |
| 14648 | ac_status=$? |
| 14649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14650 | (exit $ac_status); }; } && |
| 14651 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14653 | (eval $ac_try) 2>&5 |
| 14654 | ac_status=$? |
| 14655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14656 | (exit $ac_status); }; }; then |
| 14657 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14658 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14659 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14661 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14662 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14663 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14664 | rm -f conftest.err conftest.$ac_objext \ |
| 14665 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14666 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14667 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14668 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14669 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14670 | cat >>confdefs.h <<_ACEOF |
| 14671 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14672 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14673 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14674 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14675 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 14676 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 14677 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 14678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14679 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14680 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14681 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14682 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14683 | /* confdefs.h. */ |
| 14684 | _ACEOF |
| 14685 | cat confdefs.h >>conftest.$ac_ext |
| 14686 | cat >>conftest.$ac_ext <<_ACEOF |
| 14687 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14688 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14689 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14690 | #ifdef __cplusplus |
| 14691 | extern "C" |
| 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 openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14696 | int |
| 14697 | main () |
| 14698 | { |
| 14699 | openpty (); |
| 14700 | ; |
| 14701 | return 0; |
| 14702 | } |
| 14703 | _ACEOF |
| 14704 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14705 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14706 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14707 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14708 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14709 | rm -f conftest.er1 |
| 14710 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14712 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14713 | { ac_try='test -z "$ac_c_werror_flag" |
| 14714 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14716 | (eval $ac_try) 2>&5 |
| 14717 | ac_status=$? |
| 14718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14719 | (exit $ac_status); }; } && |
| 14720 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14722 | (eval $ac_try) 2>&5 |
| 14723 | ac_status=$? |
| 14724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14725 | (exit $ac_status); }; }; then |
| 14726 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14727 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14728 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14730 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14731 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14732 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14733 | rm -f conftest.err conftest.$ac_objext \ |
| 14734 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14735 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14736 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14737 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 14738 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 14739 | if test $ac_cv_lib_util_openpty = yes; then |
| 14740 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14741 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14742 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14743 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14744 | else |
| 14745 | echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 14746 | echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6 |
| 14747 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
| 14748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14749 | else |
| 14750 | ac_check_lib_save_LIBS=$LIBS |
| 14751 | LIBS="-lbsd $LIBS" |
| 14752 | cat >conftest.$ac_ext <<_ACEOF |
| 14753 | /* confdefs.h. */ |
| 14754 | _ACEOF |
| 14755 | cat confdefs.h >>conftest.$ac_ext |
| 14756 | cat >>conftest.$ac_ext <<_ACEOF |
| 14757 | /* end confdefs.h. */ |
| 14758 | |
| 14759 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14760 | #ifdef __cplusplus |
| 14761 | extern "C" |
| 14762 | #endif |
| 14763 | /* We use char because int might match the return type of a gcc2 |
| 14764 | builtin and then its argument prototype would still apply. */ |
| 14765 | char openpty (); |
| 14766 | int |
| 14767 | main () |
| 14768 | { |
| 14769 | openpty (); |
| 14770 | ; |
| 14771 | return 0; |
| 14772 | } |
| 14773 | _ACEOF |
| 14774 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14776 | (eval $ac_link) 2>conftest.er1 |
| 14777 | ac_status=$? |
| 14778 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14779 | rm -f conftest.er1 |
| 14780 | cat conftest.err >&5 |
| 14781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14782 | (exit $ac_status); } && |
| 14783 | { ac_try='test -z "$ac_c_werror_flag" |
| 14784 | || test ! -s conftest.err' |
| 14785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14786 | (eval $ac_try) 2>&5 |
| 14787 | ac_status=$? |
| 14788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14789 | (exit $ac_status); }; } && |
| 14790 | { ac_try='test -s conftest$ac_exeext' |
| 14791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14792 | (eval $ac_try) 2>&5 |
| 14793 | ac_status=$? |
| 14794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14795 | (exit $ac_status); }; }; then |
| 14796 | ac_cv_lib_bsd_openpty=yes |
| 14797 | else |
| 14798 | echo "$as_me: failed program was:" >&5 |
| 14799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14800 | |
| 14801 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14802 | fi |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14803 | rm -f conftest.err conftest.$ac_objext \ |
| 14804 | conftest$ac_exeext conftest.$ac_ext |
| 14805 | LIBS=$ac_check_lib_save_LIBS |
| 14806 | fi |
| 14807 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 14808 | echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6 |
| 14809 | if test $ac_cv_lib_bsd_openpty = yes; then |
| 14810 | cat >>confdefs.h <<\_ACEOF |
| 14811 | #define HAVE_OPENPTY 1 |
| 14812 | _ACEOF |
| 14813 | LIBS="$LIBS -lbsd" |
| 14814 | fi |
| 14815 | |
| 14816 | |
| 14817 | fi |
| 14818 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14819 | |
| 14820 | fi |
| 14821 | done |
| 14822 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14823 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14824 | for ac_func in forkpty |
| 14825 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14826 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14827 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14828 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14829 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14831 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14832 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14833 | /* confdefs.h. */ |
| 14834 | _ACEOF |
| 14835 | cat confdefs.h >>conftest.$ac_ext |
| 14836 | cat >>conftest.$ac_ext <<_ACEOF |
| 14837 | /* end confdefs.h. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14838 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14839 | which can conflict with char $ac_func (); below. |
| 14840 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14841 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14842 | including <limits.h> includes <sys/time.h> and causes problems |
| 14843 | checking for functions defined therein. */ |
| 14844 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14845 | # include <limits.h> |
| 14846 | #else |
| 14847 | # include <assert.h> |
| 14848 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14849 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14850 | #ifdef __cplusplus |
| 14851 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14852 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14853 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14854 | /* 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] | 14855 | builtin and then its argument prototype would still apply. */ |
| 14856 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14857 | /* The GNU C library defines this for functions which it implements |
| 14858 | to always fail with ENOSYS. Some functions are actually named |
| 14859 | something starting with __ and the normal name is an alias. */ |
| 14860 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14861 | choke me |
| 14862 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14863 | char (*f) () = $ac_func; |
| 14864 | #endif |
| 14865 | #ifdef __cplusplus |
| 14866 | } |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14867 | #endif |
| 14868 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14869 | int |
| 14870 | main () |
| 14871 | { |
| 14872 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14873 | ; |
| 14874 | return 0; |
| 14875 | } |
| 14876 | _ACEOF |
| 14877 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14879 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14880 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14881 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14882 | rm -f conftest.er1 |
| 14883 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14885 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14886 | { ac_try='test -z "$ac_c_werror_flag" |
| 14887 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14889 | (eval $ac_try) 2>&5 |
| 14890 | ac_status=$? |
| 14891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14892 | (exit $ac_status); }; } && |
| 14893 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14895 | (eval $ac_try) 2>&5 |
| 14896 | ac_status=$? |
| 14897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14898 | (exit $ac_status); }; }; then |
| 14899 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14900 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14901 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14904 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14905 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14906 | rm -f conftest.err conftest.$ac_objext \ |
| 14907 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14908 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14909 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14910 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14911 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14912 | cat >>confdefs.h <<_ACEOF |
| 14913 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14914 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14915 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14916 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14917 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 14918 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 14919 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 14920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14921 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14922 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14923 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14924 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14925 | /* confdefs.h. */ |
| 14926 | _ACEOF |
| 14927 | cat confdefs.h >>conftest.$ac_ext |
| 14928 | cat >>conftest.$ac_ext <<_ACEOF |
| 14929 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14930 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14931 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14932 | #ifdef __cplusplus |
| 14933 | extern "C" |
| 14934 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14935 | /* 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] | 14936 | builtin and then its argument prototype would still apply. */ |
| 14937 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14938 | int |
| 14939 | main () |
| 14940 | { |
| 14941 | forkpty (); |
| 14942 | ; |
| 14943 | return 0; |
| 14944 | } |
| 14945 | _ACEOF |
| 14946 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14947 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14948 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14949 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14951 | rm -f conftest.er1 |
| 14952 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14954 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14955 | { ac_try='test -z "$ac_c_werror_flag" |
| 14956 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14958 | (eval $ac_try) 2>&5 |
| 14959 | ac_status=$? |
| 14960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14961 | (exit $ac_status); }; } && |
| 14962 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14964 | (eval $ac_try) 2>&5 |
| 14965 | ac_status=$? |
| 14966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14967 | (exit $ac_status); }; }; then |
| 14968 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14969 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14970 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14972 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14973 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14974 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14975 | rm -f conftest.err conftest.$ac_objext \ |
| 14976 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14977 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14978 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14979 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 14980 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 14981 | if test $ac_cv_lib_util_forkpty = yes; then |
| 14982 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14983 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14984 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14985 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 14986 | else |
| 14987 | echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 14988 | echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6 |
| 14989 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
| 14990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14991 | else |
| 14992 | ac_check_lib_save_LIBS=$LIBS |
| 14993 | LIBS="-lbsd $LIBS" |
| 14994 | cat >conftest.$ac_ext <<_ACEOF |
| 14995 | /* confdefs.h. */ |
| 14996 | _ACEOF |
| 14997 | cat confdefs.h >>conftest.$ac_ext |
| 14998 | cat >>conftest.$ac_ext <<_ACEOF |
| 14999 | /* end confdefs.h. */ |
| 15000 | |
| 15001 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15002 | #ifdef __cplusplus |
| 15003 | extern "C" |
| 15004 | #endif |
| 15005 | /* We use char because int might match the return type of a gcc2 |
| 15006 | builtin and then its argument prototype would still apply. */ |
| 15007 | char forkpty (); |
| 15008 | int |
| 15009 | main () |
| 15010 | { |
| 15011 | forkpty (); |
| 15012 | ; |
| 15013 | return 0; |
| 15014 | } |
| 15015 | _ACEOF |
| 15016 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15017 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15018 | (eval $ac_link) 2>conftest.er1 |
| 15019 | ac_status=$? |
| 15020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15021 | rm -f conftest.er1 |
| 15022 | cat conftest.err >&5 |
| 15023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15024 | (exit $ac_status); } && |
| 15025 | { ac_try='test -z "$ac_c_werror_flag" |
| 15026 | || test ! -s conftest.err' |
| 15027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15028 | (eval $ac_try) 2>&5 |
| 15029 | ac_status=$? |
| 15030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15031 | (exit $ac_status); }; } && |
| 15032 | { ac_try='test -s conftest$ac_exeext' |
| 15033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15034 | (eval $ac_try) 2>&5 |
| 15035 | ac_status=$? |
| 15036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15037 | (exit $ac_status); }; }; then |
| 15038 | ac_cv_lib_bsd_forkpty=yes |
| 15039 | else |
| 15040 | echo "$as_me: failed program was:" >&5 |
| 15041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15042 | |
| 15043 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15044 | fi |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 15045 | rm -f conftest.err conftest.$ac_objext \ |
| 15046 | conftest$ac_exeext conftest.$ac_ext |
| 15047 | LIBS=$ac_check_lib_save_LIBS |
| 15048 | fi |
| 15049 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 15050 | echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6 |
| 15051 | if test $ac_cv_lib_bsd_forkpty = yes; then |
| 15052 | cat >>confdefs.h <<\_ACEOF |
| 15053 | #define HAVE_FORKPTY 1 |
| 15054 | _ACEOF |
| 15055 | LIBS="$LIBS -lbsd" |
| 15056 | fi |
| 15057 | |
| 15058 | |
| 15059 | fi |
| 15060 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15061 | |
| 15062 | fi |
| 15063 | done |
| 15064 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15065 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15066 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15067 | |
| 15068 | |
| 15069 | |
| 15070 | |
| 15071 | |
| 15072 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15073 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 15074 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15075 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15076 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15077 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15078 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 15080 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15081 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15082 | /* confdefs.h. */ |
| 15083 | _ACEOF |
| 15084 | cat confdefs.h >>conftest.$ac_ext |
| 15085 | cat >>conftest.$ac_ext <<_ACEOF |
| 15086 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 15087 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15088 | which can conflict with char $ac_func (); below. |
| 15089 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15090 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15091 | including <limits.h> includes <sys/time.h> and causes problems |
| 15092 | checking for functions defined therein. */ |
| 15093 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15094 | # include <limits.h> |
| 15095 | #else |
| 15096 | # include <assert.h> |
| 15097 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 15098 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15099 | #ifdef __cplusplus |
| 15100 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15101 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15102 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 15103 | /* 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] | 15104 | builtin and then its argument prototype would still apply. */ |
| 15105 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 15106 | /* The GNU C library defines this for functions which it implements |
| 15107 | to always fail with ENOSYS. Some functions are actually named |
| 15108 | something starting with __ and the normal name is an alias. */ |
| 15109 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15110 | choke me |
| 15111 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15112 | char (*f) () = $ac_func; |
| 15113 | #endif |
| 15114 | #ifdef __cplusplus |
| 15115 | } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 15116 | #endif |
| 15117 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15118 | int |
| 15119 | main () |
| 15120 | { |
| 15121 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15122 | ; |
| 15123 | return 0; |
| 15124 | } |
| 15125 | _ACEOF |
| 15126 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15128 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15129 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15131 | rm -f conftest.er1 |
| 15132 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15134 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15135 | { ac_try='test -z "$ac_c_werror_flag" |
| 15136 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15138 | (eval $ac_try) 2>&5 |
| 15139 | ac_status=$? |
| 15140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15141 | (exit $ac_status); }; } && |
| 15142 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15144 | (eval $ac_try) 2>&5 |
| 15145 | ac_status=$? |
| 15146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15147 | (exit $ac_status); }; }; then |
| 15148 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15149 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15150 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15152 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15153 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15154 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15155 | rm -f conftest.err conftest.$ac_objext \ |
| 15156 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15157 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15158 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15159 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15160 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15161 | cat >>confdefs.h <<_ACEOF |
| 15162 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15163 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15164 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15165 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15166 | done |
| 15167 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15168 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15169 | |
| 15170 | |
| 15171 | |
| 15172 | |
| 15173 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15174 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15175 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15176 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15177 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15178 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15179 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15181 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15182 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15183 | /* confdefs.h. */ |
| 15184 | _ACEOF |
| 15185 | cat confdefs.h >>conftest.$ac_ext |
| 15186 | cat >>conftest.$ac_ext <<_ACEOF |
| 15187 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15188 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15189 | which can conflict with char $ac_func (); below. |
| 15190 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15191 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15192 | including <limits.h> includes <sys/time.h> and causes problems |
| 15193 | checking for functions defined therein. */ |
| 15194 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15195 | # include <limits.h> |
| 15196 | #else |
| 15197 | # include <assert.h> |
| 15198 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15199 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15200 | #ifdef __cplusplus |
| 15201 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15202 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15203 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15204 | /* 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] | 15205 | builtin and then its argument prototype would still apply. */ |
| 15206 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15207 | /* The GNU C library defines this for functions which it implements |
| 15208 | to always fail with ENOSYS. Some functions are actually named |
| 15209 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15210 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15211 | choke me |
| 15212 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15213 | char (*f) () = $ac_func; |
| 15214 | #endif |
| 15215 | #ifdef __cplusplus |
| 15216 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15217 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15218 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15219 | int |
| 15220 | main () |
| 15221 | { |
| 15222 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15223 | ; |
| 15224 | return 0; |
| 15225 | } |
| 15226 | _ACEOF |
| 15227 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15228 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15229 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15230 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15231 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15232 | rm -f conftest.er1 |
| 15233 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15235 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15236 | { ac_try='test -z "$ac_c_werror_flag" |
| 15237 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15239 | (eval $ac_try) 2>&5 |
| 15240 | ac_status=$? |
| 15241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15242 | (exit $ac_status); }; } && |
| 15243 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15245 | (eval $ac_try) 2>&5 |
| 15246 | ac_status=$? |
| 15247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15248 | (exit $ac_status); }; }; then |
| 15249 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15250 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15251 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15253 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15254 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15255 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15256 | rm -f conftest.err conftest.$ac_objext \ |
| 15257 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15258 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15259 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15260 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15261 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15262 | cat >>confdefs.h <<_ACEOF |
| 15263 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15264 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15265 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15266 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15267 | case $LIBOBJS in |
| 15268 | "$ac_func.$ac_objext" | \ |
| 15269 | *" $ac_func.$ac_objext" | \ |
| 15270 | "$ac_func.$ac_objext "* | \ |
| 15271 | *" $ac_func.$ac_objext "* ) ;; |
| 15272 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
| 15273 | esac |
| 15274 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15275 | fi |
| 15276 | done |
| 15277 | |
| 15278 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15279 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15280 | for ac_func in getpgrp |
| 15281 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15282 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15283 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15284 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15285 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15287 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15288 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15289 | /* confdefs.h. */ |
| 15290 | _ACEOF |
| 15291 | cat confdefs.h >>conftest.$ac_ext |
| 15292 | cat >>conftest.$ac_ext <<_ACEOF |
| 15293 | /* end confdefs.h. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15294 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15295 | which can conflict with char $ac_func (); below. |
| 15296 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15297 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15298 | including <limits.h> includes <sys/time.h> and causes problems |
| 15299 | checking for functions defined therein. */ |
| 15300 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15301 | # include <limits.h> |
| 15302 | #else |
| 15303 | # include <assert.h> |
| 15304 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15305 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15306 | #ifdef __cplusplus |
| 15307 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15308 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15309 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15310 | /* 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] | 15311 | builtin and then its argument prototype would still apply. */ |
| 15312 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15313 | /* The GNU C library defines this for functions which it implements |
| 15314 | to always fail with ENOSYS. Some functions are actually named |
| 15315 | something starting with __ and the normal name is an alias. */ |
| 15316 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15317 | choke me |
| 15318 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15319 | char (*f) () = $ac_func; |
| 15320 | #endif |
| 15321 | #ifdef __cplusplus |
| 15322 | } |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15323 | #endif |
| 15324 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15325 | int |
| 15326 | main () |
| 15327 | { |
| 15328 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15329 | ; |
| 15330 | return 0; |
| 15331 | } |
| 15332 | _ACEOF |
| 15333 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15334 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15335 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15336 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15337 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15338 | rm -f conftest.er1 |
| 15339 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15341 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15342 | { ac_try='test -z "$ac_c_werror_flag" |
| 15343 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15345 | (eval $ac_try) 2>&5 |
| 15346 | ac_status=$? |
| 15347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15348 | (exit $ac_status); }; } && |
| 15349 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15351 | (eval $ac_try) 2>&5 |
| 15352 | ac_status=$? |
| 15353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15354 | (exit $ac_status); }; }; then |
| 15355 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15356 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15357 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15359 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15360 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15361 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15362 | rm -f conftest.err conftest.$ac_objext \ |
| 15363 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15364 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15365 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15366 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15367 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15368 | cat >>confdefs.h <<_ACEOF |
| 15369 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15370 | _ACEOF |
| 15371 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15372 | /* confdefs.h. */ |
| 15373 | _ACEOF |
| 15374 | cat confdefs.h >>conftest.$ac_ext |
| 15375 | cat >>conftest.$ac_ext <<_ACEOF |
| 15376 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15377 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15378 | int |
| 15379 | main () |
| 15380 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15381 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15382 | ; |
| 15383 | return 0; |
| 15384 | } |
| 15385 | _ACEOF |
| 15386 | rm -f conftest.$ac_objext |
| 15387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15388 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15389 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15390 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15391 | rm -f conftest.er1 |
| 15392 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15394 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15395 | { ac_try='test -z "$ac_c_werror_flag" |
| 15396 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15398 | (eval $ac_try) 2>&5 |
| 15399 | ac_status=$? |
| 15400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15401 | (exit $ac_status); }; } && |
| 15402 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15404 | (eval $ac_try) 2>&5 |
| 15405 | ac_status=$? |
| 15406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15407 | (exit $ac_status); }; }; then |
| 15408 | |
| 15409 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15410 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15411 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15412 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15413 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15414 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15415 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15417 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15418 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15419 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15420 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15421 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15422 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15423 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15424 | |
| 15425 | for ac_func in setpgrp |
| 15426 | do |
| 15427 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15428 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15429 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15430 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15432 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15433 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15434 | /* confdefs.h. */ |
| 15435 | _ACEOF |
| 15436 | cat confdefs.h >>conftest.$ac_ext |
| 15437 | cat >>conftest.$ac_ext <<_ACEOF |
| 15438 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15439 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15440 | which can conflict with char $ac_func (); below. |
| 15441 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15442 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15443 | including <limits.h> includes <sys/time.h> and causes problems |
| 15444 | checking for functions defined therein. */ |
| 15445 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15446 | # include <limits.h> |
| 15447 | #else |
| 15448 | # include <assert.h> |
| 15449 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15450 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15451 | #ifdef __cplusplus |
| 15452 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15453 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15454 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15455 | /* We use char because int might match the return type of a gcc2 |
| 15456 | builtin and then its argument prototype would still apply. */ |
| 15457 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15458 | /* The GNU C library defines this for functions which it implements |
| 15459 | to always fail with ENOSYS. Some functions are actually named |
| 15460 | something starting with __ and the normal name is an alias. */ |
| 15461 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15462 | choke me |
| 15463 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15464 | char (*f) () = $ac_func; |
| 15465 | #endif |
| 15466 | #ifdef __cplusplus |
| 15467 | } |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15468 | #endif |
| 15469 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15470 | int |
| 15471 | main () |
| 15472 | { |
| 15473 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15474 | ; |
| 15475 | return 0; |
| 15476 | } |
| 15477 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15478 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15480 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15481 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15482 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15483 | rm -f conftest.er1 |
| 15484 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15486 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15487 | { ac_try='test -z "$ac_c_werror_flag" |
| 15488 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15490 | (eval $ac_try) 2>&5 |
| 15491 | ac_status=$? |
| 15492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15493 | (exit $ac_status); }; } && |
| 15494 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15496 | (eval $ac_try) 2>&5 |
| 15497 | ac_status=$? |
| 15498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15499 | (exit $ac_status); }; }; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15500 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15501 | else |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15502 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15504 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15505 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15506 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15507 | rm -f conftest.err conftest.$ac_objext \ |
| 15508 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15509 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15510 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15511 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15512 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15513 | cat >>confdefs.h <<_ACEOF |
| 15514 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15515 | _ACEOF |
| 15516 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15517 | /* confdefs.h. */ |
| 15518 | _ACEOF |
| 15519 | cat confdefs.h >>conftest.$ac_ext |
| 15520 | cat >>conftest.$ac_ext <<_ACEOF |
| 15521 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15522 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15523 | int |
| 15524 | main () |
| 15525 | { |
| 15526 | setpgrp(0,0); |
| 15527 | ; |
| 15528 | return 0; |
| 15529 | } |
| 15530 | _ACEOF |
| 15531 | rm -f conftest.$ac_objext |
| 15532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15533 | (eval $ac_compile) 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15534 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15535 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15536 | rm -f conftest.er1 |
| 15537 | cat conftest.err >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15539 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15540 | { ac_try='test -z "$ac_c_werror_flag" |
| 15541 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15543 | (eval $ac_try) 2>&5 |
| 15544 | ac_status=$? |
| 15545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15546 | (exit $ac_status); }; } && |
| 15547 | { ac_try='test -s conftest.$ac_objext' |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15549 | (eval $ac_try) 2>&5 |
| 15550 | ac_status=$? |
| 15551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15552 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15553 | |
| 15554 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15555 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15556 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 15557 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15558 | |
| 15559 | else |
| 15560 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15562 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 15563 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15564 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15565 | |
| 15566 | fi |
| 15567 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 15568 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15569 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15570 | for ac_func in gettimeofday |
| 15571 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15572 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15573 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15574 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15575 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15577 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15578 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15579 | /* confdefs.h. */ |
| 15580 | _ACEOF |
| 15581 | cat confdefs.h >>conftest.$ac_ext |
| 15582 | cat >>conftest.$ac_ext <<_ACEOF |
| 15583 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15584 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15585 | which can conflict with char $ac_func (); below. |
| 15586 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15587 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15588 | including <limits.h> includes <sys/time.h> and causes problems |
| 15589 | checking for functions defined therein. */ |
| 15590 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15591 | # include <limits.h> |
| 15592 | #else |
| 15593 | # include <assert.h> |
| 15594 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15595 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15596 | #ifdef __cplusplus |
| 15597 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15598 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15599 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15600 | /* 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] | 15601 | builtin and then its argument prototype would still apply. */ |
| 15602 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15603 | /* The GNU C library defines this for functions which it implements |
| 15604 | to always fail with ENOSYS. Some functions are actually named |
| 15605 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15606 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15607 | choke me |
| 15608 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15609 | char (*f) () = $ac_func; |
| 15610 | #endif |
| 15611 | #ifdef __cplusplus |
| 15612 | } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15613 | #endif |
| 15614 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15615 | int |
| 15616 | main () |
| 15617 | { |
| 15618 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15619 | ; |
| 15620 | return 0; |
| 15621 | } |
| 15622 | _ACEOF |
| 15623 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15624 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15625 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15626 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15627 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15628 | rm -f conftest.er1 |
| 15629 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15631 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15632 | { ac_try='test -z "$ac_c_werror_flag" |
| 15633 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15635 | (eval $ac_try) 2>&5 |
| 15636 | ac_status=$? |
| 15637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15638 | (exit $ac_status); }; } && |
| 15639 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15641 | (eval $ac_try) 2>&5 |
| 15642 | ac_status=$? |
| 15643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15644 | (exit $ac_status); }; }; then |
| 15645 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15646 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15647 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15649 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15650 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15651 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15652 | rm -f conftest.err conftest.$ac_objext \ |
| 15653 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15654 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15655 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15656 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15657 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15658 | cat >>confdefs.h <<_ACEOF |
| 15659 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15660 | _ACEOF |
| 15661 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15662 | /* confdefs.h. */ |
| 15663 | _ACEOF |
| 15664 | cat confdefs.h >>conftest.$ac_ext |
| 15665 | cat >>conftest.$ac_ext <<_ACEOF |
| 15666 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15667 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15668 | int |
| 15669 | main () |
| 15670 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15671 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15672 | ; |
| 15673 | return 0; |
| 15674 | } |
| 15675 | _ACEOF |
| 15676 | rm -f conftest.$ac_objext |
| 15677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15678 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15679 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15680 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15681 | rm -f conftest.er1 |
| 15682 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15684 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15685 | { ac_try='test -z "$ac_c_werror_flag" |
| 15686 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15688 | (eval $ac_try) 2>&5 |
| 15689 | ac_status=$? |
| 15690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15691 | (exit $ac_status); }; } && |
| 15692 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15694 | (eval $ac_try) 2>&5 |
| 15695 | ac_status=$? |
| 15696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15697 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15698 | : |
| 15699 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15700 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15702 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15703 | |
| 15704 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15705 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15706 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15707 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15708 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15709 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15710 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15711 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15712 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15713 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15714 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15715 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15716 | echo "$as_me:$LINENO: checking for major" >&5 |
| 15717 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 15718 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15719 | /* confdefs.h. */ |
| 15720 | _ACEOF |
| 15721 | cat confdefs.h >>conftest.$ac_ext |
| 15722 | cat >>conftest.$ac_ext <<_ACEOF |
| 15723 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15724 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15725 | #if defined(MAJOR_IN_MKDEV) |
| 15726 | #include <sys/mkdev.h> |
| 15727 | #elif defined(MAJOR_IN_SYSMACROS) |
| 15728 | #include <sys/sysmacros.h> |
| 15729 | #else |
| 15730 | #include <sys/types.h> |
| 15731 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15732 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15733 | int |
| 15734 | main () |
| 15735 | { |
| 15736 | |
| 15737 | makedev(major(0),minor(0)); |
| 15738 | |
| 15739 | ; |
| 15740 | return 0; |
| 15741 | } |
| 15742 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 15743 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15744 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15745 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15746 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15748 | rm -f conftest.er1 |
| 15749 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15751 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15752 | { ac_try='test -z "$ac_c_werror_flag" |
| 15753 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15755 | (eval $ac_try) 2>&5 |
| 15756 | ac_status=$? |
| 15757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15758 | (exit $ac_status); }; } && |
| 15759 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15761 | (eval $ac_try) 2>&5 |
| 15762 | ac_status=$? |
| 15763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15764 | (exit $ac_status); }; }; then |
| 15765 | |
| 15766 | |
| 15767 | cat >>confdefs.h <<\_ACEOF |
| 15768 | #define HAVE_DEVICE_MACROS 1 |
| 15769 | _ACEOF |
| 15770 | |
| 15771 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15772 | echo "${ECHO_T}yes" >&6 |
| 15773 | |
| 15774 | else |
| 15775 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15776 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15777 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15778 | |
| 15779 | echo "$as_me:$LINENO: result: no" >&5 |
| 15780 | echo "${ECHO_T}no" >&6 |
| 15781 | |
| 15782 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15783 | rm -f conftest.err conftest.$ac_objext \ |
| 15784 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15785 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15786 | # 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] | 15787 | # for [no]getaddrinfo in netdb.h. |
| 15788 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 15789 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 15790 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15791 | /* confdefs.h. */ |
| 15792 | _ACEOF |
| 15793 | cat confdefs.h >>conftest.$ac_ext |
| 15794 | cat >>conftest.$ac_ext <<_ACEOF |
| 15795 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15796 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 15797 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15798 | #include <sys/socket.h> |
| 15799 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 15800 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15801 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15802 | int |
| 15803 | main () |
| 15804 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15805 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15806 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15807 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15808 | ; |
| 15809 | return 0; |
| 15810 | } |
| 15811 | _ACEOF |
| 15812 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15813 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15814 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15815 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15816 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15817 | rm -f conftest.er1 |
| 15818 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15820 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15821 | { ac_try='test -z "$ac_c_werror_flag" |
| 15822 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15824 | (eval $ac_try) 2>&5 |
| 15825 | ac_status=$? |
| 15826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15827 | (exit $ac_status); }; } && |
| 15828 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15830 | (eval $ac_try) 2>&5 |
| 15831 | ac_status=$? |
| 15832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15833 | (exit $ac_status); }; }; then |
| 15834 | |
| 15835 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15836 | echo "${ECHO_T}yes" >&6 |
| 15837 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 15838 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15839 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15840 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 15841 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15842 | buggygetaddrinfo=yes |
| 15843 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15844 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15845 | /* confdefs.h. */ |
| 15846 | _ACEOF |
| 15847 | cat confdefs.h >>conftest.$ac_ext |
| 15848 | cat >>conftest.$ac_ext <<_ACEOF |
| 15849 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15850 | |
| 15851 | #include <sys/types.h> |
| 15852 | #include <netdb.h> |
| 15853 | #include <string.h> |
| 15854 | #include <sys/socket.h> |
| 15855 | #include <netinet/in.h> |
| 15856 | |
| 15857 | main() |
| 15858 | { |
| 15859 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 15860 | struct addrinfo hints, *ai, *aitop; |
| 15861 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 15862 | |
| 15863 | for (passive = 0; passive <= 1; passive++) { |
| 15864 | memset(&hints, 0, sizeof(hints)); |
| 15865 | hints.ai_family = AF_UNSPEC; |
| 15866 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 15867 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 15868 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15869 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 15870 | (void)gai_strerror(gaierr); |
| 15871 | goto bad; |
| 15872 | } |
| 15873 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 15874 | if (ai->ai_addr == NULL || |
| 15875 | ai->ai_addrlen == 0 || |
| 15876 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 15877 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 15878 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 15879 | goto bad; |
| 15880 | } |
| 15881 | switch (ai->ai_family) { |
| 15882 | case AF_INET: |
| 15883 | if (strcmp(strport, "54321") != 0) { |
| 15884 | goto bad; |
| 15885 | } |
| 15886 | if (passive) { |
| 15887 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 15888 | goto bad; |
| 15889 | } |
| 15890 | } else { |
| 15891 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 15892 | goto bad; |
| 15893 | } |
| 15894 | } |
| 15895 | inet4++; |
| 15896 | break; |
| 15897 | case AF_INET6: |
| 15898 | if (strcmp(strport, "54321") != 0) { |
| 15899 | goto bad; |
| 15900 | } |
| 15901 | if (passive) { |
| 15902 | if (strcmp(straddr, "::") != 0) { |
| 15903 | goto bad; |
| 15904 | } |
| 15905 | } else { |
| 15906 | if (strcmp(straddr, "::1") != 0) { |
| 15907 | goto bad; |
| 15908 | } |
| 15909 | } |
| 15910 | inet6++; |
| 15911 | break; |
| 15912 | case AF_UNSPEC: |
| 15913 | goto bad; |
| 15914 | break; |
| 15915 | default: |
| 15916 | /* another family support? */ |
| 15917 | break; |
| 15918 | } |
| 15919 | } |
| 15920 | } |
| 15921 | |
| 15922 | if (!(inet4 == 0 || inet4 == 2)) |
| 15923 | goto bad; |
| 15924 | if (!(inet6 == 0 || inet6 == 2)) |
| 15925 | goto bad; |
| 15926 | |
| 15927 | if (aitop) |
| 15928 | freeaddrinfo(aitop); |
| 15929 | exit(0); |
| 15930 | |
| 15931 | bad: |
| 15932 | if (aitop) |
| 15933 | freeaddrinfo(aitop); |
| 15934 | exit(1); |
| 15935 | } |
| 15936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15937 | _ACEOF |
| 15938 | rm -f conftest$ac_exeext |
| 15939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15940 | (eval $ac_link) 2>&5 |
| 15941 | ac_status=$? |
| 15942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15943 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15945 | (eval $ac_try) 2>&5 |
| 15946 | ac_status=$? |
| 15947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15948 | (exit $ac_status); }; }; then |
| 15949 | echo "$as_me:$LINENO: result: good" >&5 |
| 15950 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15951 | buggygetaddrinfo=no |
| 15952 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15953 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15954 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15957 | ( exit $ac_status ) |
| 15958 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 15959 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15960 | buggygetaddrinfo=yes |
| 15961 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15962 | 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] | 15963 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15964 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15965 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15967 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15968 | |
| 15969 | echo "$as_me:$LINENO: result: no" >&5 |
| 15970 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15971 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15972 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15973 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15974 | rm -f conftest.err conftest.$ac_objext \ |
| 15975 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15976 | |
| 15977 | if test "$buggygetaddrinfo" = "yes"; then |
| 15978 | if test "$ipv6" = "yes"; then |
| 15979 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 15980 | echo ' or you can specify "--disable-ipv6"'. |
| 15981 | exit 1 |
| 15982 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15983 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15984 | |
| 15985 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15986 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15987 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15988 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15989 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15990 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 15991 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15992 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15993 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15994 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15995 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15996 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15998 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15999 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16000 | /* confdefs.h. */ |
| 16001 | _ACEOF |
| 16002 | cat confdefs.h >>conftest.$ac_ext |
| 16003 | cat >>conftest.$ac_ext <<_ACEOF |
| 16004 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16005 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16006 | which can conflict with char $ac_func (); below. |
| 16007 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 16008 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 16009 | including <limits.h> includes <sys/time.h> and causes problems |
| 16010 | checking for functions defined therein. */ |
| 16011 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16012 | # include <limits.h> |
| 16013 | #else |
| 16014 | # include <assert.h> |
| 16015 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16016 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16017 | #ifdef __cplusplus |
| 16018 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16019 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16020 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16021 | /* 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] | 16022 | builtin and then its argument prototype would still apply. */ |
| 16023 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16024 | /* The GNU C library defines this for functions which it implements |
| 16025 | to always fail with ENOSYS. Some functions are actually named |
| 16026 | something starting with __ and the normal name is an alias. */ |
| 16027 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16028 | choke me |
| 16029 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16030 | char (*f) () = $ac_func; |
| 16031 | #endif |
| 16032 | #ifdef __cplusplus |
| 16033 | } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16034 | #endif |
| 16035 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16036 | int |
| 16037 | main () |
| 16038 | { |
| 16039 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16040 | ; |
| 16041 | return 0; |
| 16042 | } |
| 16043 | _ACEOF |
| 16044 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16046 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16047 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16049 | rm -f conftest.er1 |
| 16050 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16052 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16053 | { ac_try='test -z "$ac_c_werror_flag" |
| 16054 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16056 | (eval $ac_try) 2>&5 |
| 16057 | ac_status=$? |
| 16058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16059 | (exit $ac_status); }; } && |
| 16060 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16062 | (eval $ac_try) 2>&5 |
| 16063 | ac_status=$? |
| 16064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16065 | (exit $ac_status); }; }; then |
| 16066 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16067 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16068 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16070 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16071 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16072 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16073 | rm -f conftest.err conftest.$ac_objext \ |
| 16074 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16075 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16076 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16077 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16078 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16079 | cat >>confdefs.h <<_ACEOF |
| 16080 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16081 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16082 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16083 | fi |
| 16084 | done |
| 16085 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16086 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16087 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16088 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 16089 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 16090 | if test "${ac_cv_header_time+set}" = set; then |
| 16091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16092 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16093 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16094 | /* confdefs.h. */ |
| 16095 | _ACEOF |
| 16096 | cat confdefs.h >>conftest.$ac_ext |
| 16097 | cat >>conftest.$ac_ext <<_ACEOF |
| 16098 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16099 | #include <sys/types.h> |
| 16100 | #include <sys/time.h> |
| 16101 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16102 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16103 | int |
| 16104 | main () |
| 16105 | { |
| 16106 | if ((struct tm *) 0) |
| 16107 | return 0; |
| 16108 | ; |
| 16109 | return 0; |
| 16110 | } |
| 16111 | _ACEOF |
| 16112 | rm -f conftest.$ac_objext |
| 16113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16114 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16115 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16116 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16117 | rm -f conftest.er1 |
| 16118 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16120 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16121 | { ac_try='test -z "$ac_c_werror_flag" |
| 16122 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16124 | (eval $ac_try) 2>&5 |
| 16125 | ac_status=$? |
| 16126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16127 | (exit $ac_status); }; } && |
| 16128 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16130 | (eval $ac_try) 2>&5 |
| 16131 | ac_status=$? |
| 16132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16133 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16134 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16135 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16136 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16138 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16139 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16140 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16141 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16142 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16143 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 16144 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16145 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16146 | |
| 16147 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16148 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16149 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16150 | |
| 16151 | fi |
| 16152 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16153 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 16154 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 16155 | if test "${ac_cv_struct_tm+set}" = set; then |
| 16156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16157 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16158 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16159 | /* confdefs.h. */ |
| 16160 | _ACEOF |
| 16161 | cat confdefs.h >>conftest.$ac_ext |
| 16162 | cat >>conftest.$ac_ext <<_ACEOF |
| 16163 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16164 | #include <sys/types.h> |
| 16165 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16166 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16167 | int |
| 16168 | main () |
| 16169 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16170 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16171 | ; |
| 16172 | return 0; |
| 16173 | } |
| 16174 | _ACEOF |
| 16175 | rm -f conftest.$ac_objext |
| 16176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16177 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16178 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16180 | rm -f conftest.er1 |
| 16181 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16183 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16184 | { ac_try='test -z "$ac_c_werror_flag" |
| 16185 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16187 | (eval $ac_try) 2>&5 |
| 16188 | ac_status=$? |
| 16189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16190 | (exit $ac_status); }; } && |
| 16191 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16193 | (eval $ac_try) 2>&5 |
| 16194 | ac_status=$? |
| 16195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16196 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16197 | ac_cv_struct_tm=time.h |
| 16198 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16199 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16200 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16201 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16202 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16203 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16204 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16205 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16206 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 16207 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16208 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16209 | |
| 16210 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16211 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16212 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16213 | |
| 16214 | fi |
| 16215 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16216 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 16217 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 16218 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 16219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16220 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16221 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16222 | /* confdefs.h. */ |
| 16223 | _ACEOF |
| 16224 | cat confdefs.h >>conftest.$ac_ext |
| 16225 | cat >>conftest.$ac_ext <<_ACEOF |
| 16226 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16227 | #include <sys/types.h> |
| 16228 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16229 | |
| 16230 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16231 | int |
| 16232 | main () |
| 16233 | { |
| 16234 | static struct tm ac_aggr; |
| 16235 | if (ac_aggr.tm_zone) |
| 16236 | return 0; |
| 16237 | ; |
| 16238 | return 0; |
| 16239 | } |
| 16240 | _ACEOF |
| 16241 | rm -f conftest.$ac_objext |
| 16242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16243 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16244 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16245 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16246 | rm -f conftest.er1 |
| 16247 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16249 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16250 | { ac_try='test -z "$ac_c_werror_flag" |
| 16251 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16253 | (eval $ac_try) 2>&5 |
| 16254 | ac_status=$? |
| 16255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16256 | (exit $ac_status); }; } && |
| 16257 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16259 | (eval $ac_try) 2>&5 |
| 16260 | ac_status=$? |
| 16261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16262 | (exit $ac_status); }; }; then |
| 16263 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16264 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16265 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16267 | |
| 16268 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16269 | /* confdefs.h. */ |
| 16270 | _ACEOF |
| 16271 | cat confdefs.h >>conftest.$ac_ext |
| 16272 | cat >>conftest.$ac_ext <<_ACEOF |
| 16273 | /* end confdefs.h. */ |
| 16274 | #include <sys/types.h> |
| 16275 | #include <$ac_cv_struct_tm> |
| 16276 | |
| 16277 | |
| 16278 | int |
| 16279 | main () |
| 16280 | { |
| 16281 | static struct tm ac_aggr; |
| 16282 | if (sizeof ac_aggr.tm_zone) |
| 16283 | return 0; |
| 16284 | ; |
| 16285 | return 0; |
| 16286 | } |
| 16287 | _ACEOF |
| 16288 | rm -f conftest.$ac_objext |
| 16289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16290 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16291 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16292 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16293 | rm -f conftest.er1 |
| 16294 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16296 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16297 | { ac_try='test -z "$ac_c_werror_flag" |
| 16298 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16300 | (eval $ac_try) 2>&5 |
| 16301 | ac_status=$? |
| 16302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16303 | (exit $ac_status); }; } && |
| 16304 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16306 | (eval $ac_try) 2>&5 |
| 16307 | ac_status=$? |
| 16308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16309 | (exit $ac_status); }; }; then |
| 16310 | ac_cv_member_struct_tm_tm_zone=yes |
| 16311 | else |
| 16312 | echo "$as_me: failed program was:" >&5 |
| 16313 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16314 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16315 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16316 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16317 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16318 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16319 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16320 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16321 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 16322 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 16323 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 16324 | |
| 16325 | cat >>confdefs.h <<_ACEOF |
| 16326 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 16327 | _ACEOF |
| 16328 | |
| 16329 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16330 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16331 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16332 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 16333 | |
| 16334 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16335 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16336 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16337 | |
| 16338 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16339 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 16340 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 16341 | if test "${ac_cv_var_tzname+set}" = set; then |
| 16342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16343 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16344 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16345 | /* confdefs.h. */ |
| 16346 | _ACEOF |
| 16347 | cat confdefs.h >>conftest.$ac_ext |
| 16348 | cat >>conftest.$ac_ext <<_ACEOF |
| 16349 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16350 | #include <time.h> |
| 16351 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16352 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16353 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16354 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16355 | int |
| 16356 | main () |
| 16357 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16358 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16359 | ; |
| 16360 | return 0; |
| 16361 | } |
| 16362 | _ACEOF |
| 16363 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16364 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16365 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16366 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16367 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16368 | rm -f conftest.er1 |
| 16369 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16371 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16372 | { ac_try='test -z "$ac_c_werror_flag" |
| 16373 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16375 | (eval $ac_try) 2>&5 |
| 16376 | ac_status=$? |
| 16377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16378 | (exit $ac_status); }; } && |
| 16379 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16381 | (eval $ac_try) 2>&5 |
| 16382 | ac_status=$? |
| 16383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16384 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16385 | ac_cv_var_tzname=yes |
| 16386 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16387 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16388 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16389 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16390 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16391 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16392 | rm -f conftest.err conftest.$ac_objext \ |
| 16393 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16394 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16395 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 16396 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16397 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16398 | |
| 16399 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16400 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16401 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16402 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16403 | fi |
| 16404 | fi |
| 16405 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16406 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 16407 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 16408 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 16409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16410 | else |
| 16411 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16412 | /* confdefs.h. */ |
| 16413 | _ACEOF |
| 16414 | cat confdefs.h >>conftest.$ac_ext |
| 16415 | cat >>conftest.$ac_ext <<_ACEOF |
| 16416 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16417 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16418 | int |
| 16419 | main () |
| 16420 | { |
| 16421 | static struct stat ac_aggr; |
| 16422 | if (ac_aggr.st_rdev) |
| 16423 | return 0; |
| 16424 | ; |
| 16425 | return 0; |
| 16426 | } |
| 16427 | _ACEOF |
| 16428 | rm -f conftest.$ac_objext |
| 16429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16430 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16431 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16433 | rm -f conftest.er1 |
| 16434 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16436 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16437 | { ac_try='test -z "$ac_c_werror_flag" |
| 16438 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16440 | (eval $ac_try) 2>&5 |
| 16441 | ac_status=$? |
| 16442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16443 | (exit $ac_status); }; } && |
| 16444 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16446 | (eval $ac_try) 2>&5 |
| 16447 | ac_status=$? |
| 16448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16449 | (exit $ac_status); }; }; then |
| 16450 | ac_cv_member_struct_stat_st_rdev=yes |
| 16451 | else |
| 16452 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16454 | |
| 16455 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16456 | /* confdefs.h. */ |
| 16457 | _ACEOF |
| 16458 | cat confdefs.h >>conftest.$ac_ext |
| 16459 | cat >>conftest.$ac_ext <<_ACEOF |
| 16460 | /* end confdefs.h. */ |
| 16461 | $ac_includes_default |
| 16462 | int |
| 16463 | main () |
| 16464 | { |
| 16465 | static struct stat ac_aggr; |
| 16466 | if (sizeof ac_aggr.st_rdev) |
| 16467 | return 0; |
| 16468 | ; |
| 16469 | return 0; |
| 16470 | } |
| 16471 | _ACEOF |
| 16472 | rm -f conftest.$ac_objext |
| 16473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16474 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16475 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16476 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16477 | rm -f conftest.er1 |
| 16478 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16480 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16481 | { ac_try='test -z "$ac_c_werror_flag" |
| 16482 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16484 | (eval $ac_try) 2>&5 |
| 16485 | ac_status=$? |
| 16486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16487 | (exit $ac_status); }; } && |
| 16488 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16490 | (eval $ac_try) 2>&5 |
| 16491 | ac_status=$? |
| 16492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16493 | (exit $ac_status); }; }; then |
| 16494 | ac_cv_member_struct_stat_st_rdev=yes |
| 16495 | else |
| 16496 | echo "$as_me: failed program was:" >&5 |
| 16497 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16498 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16499 | ac_cv_member_struct_stat_st_rdev=no |
| 16500 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16501 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16502 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16503 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16504 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16505 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 16506 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 16507 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 16508 | |
| 16509 | cat >>confdefs.h <<_ACEOF |
| 16510 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 16511 | _ACEOF |
| 16512 | |
| 16513 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16514 | fi |
| 16515 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16516 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 16517 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 16518 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 16519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +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. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16527 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16528 | int |
| 16529 | main () |
| 16530 | { |
| 16531 | static struct stat ac_aggr; |
| 16532 | if (ac_aggr.st_blksize) |
| 16533 | return 0; |
| 16534 | ; |
| 16535 | return 0; |
| 16536 | } |
| 16537 | _ACEOF |
| 16538 | rm -f conftest.$ac_objext |
| 16539 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16540 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16541 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16543 | rm -f conftest.er1 |
| 16544 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16546 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16547 | { ac_try='test -z "$ac_c_werror_flag" |
| 16548 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16550 | (eval $ac_try) 2>&5 |
| 16551 | ac_status=$? |
| 16552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16553 | (exit $ac_status); }; } && |
| 16554 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16556 | (eval $ac_try) 2>&5 |
| 16557 | ac_status=$? |
| 16558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16559 | (exit $ac_status); }; }; then |
| 16560 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16561 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16562 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16563 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16564 | |
| 16565 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16566 | /* confdefs.h. */ |
| 16567 | _ACEOF |
| 16568 | cat confdefs.h >>conftest.$ac_ext |
| 16569 | cat >>conftest.$ac_ext <<_ACEOF |
| 16570 | /* end confdefs.h. */ |
| 16571 | $ac_includes_default |
| 16572 | int |
| 16573 | main () |
| 16574 | { |
| 16575 | static struct stat ac_aggr; |
| 16576 | if (sizeof ac_aggr.st_blksize) |
| 16577 | return 0; |
| 16578 | ; |
| 16579 | return 0; |
| 16580 | } |
| 16581 | _ACEOF |
| 16582 | rm -f conftest.$ac_objext |
| 16583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16584 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16585 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16587 | rm -f conftest.er1 |
| 16588 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16590 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16591 | { ac_try='test -z "$ac_c_werror_flag" |
| 16592 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16594 | (eval $ac_try) 2>&5 |
| 16595 | ac_status=$? |
| 16596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16597 | (exit $ac_status); }; } && |
| 16598 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16600 | (eval $ac_try) 2>&5 |
| 16601 | ac_status=$? |
| 16602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16603 | (exit $ac_status); }; }; then |
| 16604 | ac_cv_member_struct_stat_st_blksize=yes |
| 16605 | else |
| 16606 | echo "$as_me: failed program was:" >&5 |
| 16607 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16608 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16609 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16610 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16611 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16612 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16613 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16614 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16615 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 16616 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 16617 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16618 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16619 | cat >>confdefs.h <<_ACEOF |
| 16620 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 16621 | _ACEOF |
| 16622 | |
| 16623 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16624 | fi |
| 16625 | |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 16626 | echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 16627 | echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6 |
| 16628 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
| 16629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16630 | else |
| 16631 | cat >conftest.$ac_ext <<_ACEOF |
| 16632 | /* confdefs.h. */ |
| 16633 | _ACEOF |
| 16634 | cat confdefs.h >>conftest.$ac_ext |
| 16635 | cat >>conftest.$ac_ext <<_ACEOF |
| 16636 | /* end confdefs.h. */ |
| 16637 | $ac_includes_default |
| 16638 | int |
| 16639 | main () |
| 16640 | { |
| 16641 | static struct stat ac_aggr; |
| 16642 | if (ac_aggr.st_flags) |
| 16643 | return 0; |
| 16644 | ; |
| 16645 | return 0; |
| 16646 | } |
| 16647 | _ACEOF |
| 16648 | rm -f conftest.$ac_objext |
| 16649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16650 | (eval $ac_compile) 2>conftest.er1 |
| 16651 | ac_status=$? |
| 16652 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16653 | rm -f conftest.er1 |
| 16654 | cat conftest.err >&5 |
| 16655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16656 | (exit $ac_status); } && |
| 16657 | { ac_try='test -z "$ac_c_werror_flag" |
| 16658 | || test ! -s conftest.err' |
| 16659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16660 | (eval $ac_try) 2>&5 |
| 16661 | ac_status=$? |
| 16662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16663 | (exit $ac_status); }; } && |
| 16664 | { ac_try='test -s conftest.$ac_objext' |
| 16665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16666 | (eval $ac_try) 2>&5 |
| 16667 | ac_status=$? |
| 16668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16669 | (exit $ac_status); }; }; then |
| 16670 | ac_cv_member_struct_stat_st_flags=yes |
| 16671 | else |
| 16672 | echo "$as_me: failed program was:" >&5 |
| 16673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16674 | |
| 16675 | cat >conftest.$ac_ext <<_ACEOF |
| 16676 | /* confdefs.h. */ |
| 16677 | _ACEOF |
| 16678 | cat confdefs.h >>conftest.$ac_ext |
| 16679 | cat >>conftest.$ac_ext <<_ACEOF |
| 16680 | /* end confdefs.h. */ |
| 16681 | $ac_includes_default |
| 16682 | int |
| 16683 | main () |
| 16684 | { |
| 16685 | static struct stat ac_aggr; |
| 16686 | if (sizeof ac_aggr.st_flags) |
| 16687 | return 0; |
| 16688 | ; |
| 16689 | return 0; |
| 16690 | } |
| 16691 | _ACEOF |
| 16692 | rm -f conftest.$ac_objext |
| 16693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16694 | (eval $ac_compile) 2>conftest.er1 |
| 16695 | ac_status=$? |
| 16696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16697 | rm -f conftest.er1 |
| 16698 | cat conftest.err >&5 |
| 16699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16700 | (exit $ac_status); } && |
| 16701 | { ac_try='test -z "$ac_c_werror_flag" |
| 16702 | || test ! -s conftest.err' |
| 16703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16704 | (eval $ac_try) 2>&5 |
| 16705 | ac_status=$? |
| 16706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16707 | (exit $ac_status); }; } && |
| 16708 | { ac_try='test -s conftest.$ac_objext' |
| 16709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16710 | (eval $ac_try) 2>&5 |
| 16711 | ac_status=$? |
| 16712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16713 | (exit $ac_status); }; }; then |
| 16714 | ac_cv_member_struct_stat_st_flags=yes |
| 16715 | else |
| 16716 | echo "$as_me: failed program was:" >&5 |
| 16717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16718 | |
| 16719 | ac_cv_member_struct_stat_st_flags=no |
| 16720 | fi |
| 16721 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16722 | fi |
| 16723 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16724 | fi |
| 16725 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 16726 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6 |
| 16727 | if test $ac_cv_member_struct_stat_st_flags = yes; then |
| 16728 | |
| 16729 | cat >>confdefs.h <<_ACEOF |
| 16730 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 16731 | _ACEOF |
| 16732 | |
| 16733 | |
| 16734 | fi |
| 16735 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 16736 | echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 16737 | echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6 |
| 16738 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
| 16739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16740 | else |
| 16741 | cat >conftest.$ac_ext <<_ACEOF |
| 16742 | /* confdefs.h. */ |
| 16743 | _ACEOF |
| 16744 | cat confdefs.h >>conftest.$ac_ext |
| 16745 | cat >>conftest.$ac_ext <<_ACEOF |
| 16746 | /* end confdefs.h. */ |
| 16747 | $ac_includes_default |
| 16748 | int |
| 16749 | main () |
| 16750 | { |
| 16751 | static struct stat ac_aggr; |
| 16752 | if (ac_aggr.st_gen) |
| 16753 | return 0; |
| 16754 | ; |
| 16755 | return 0; |
| 16756 | } |
| 16757 | _ACEOF |
| 16758 | rm -f conftest.$ac_objext |
| 16759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16760 | (eval $ac_compile) 2>conftest.er1 |
| 16761 | ac_status=$? |
| 16762 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16763 | rm -f conftest.er1 |
| 16764 | cat conftest.err >&5 |
| 16765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16766 | (exit $ac_status); } && |
| 16767 | { ac_try='test -z "$ac_c_werror_flag" |
| 16768 | || test ! -s conftest.err' |
| 16769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16770 | (eval $ac_try) 2>&5 |
| 16771 | ac_status=$? |
| 16772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16773 | (exit $ac_status); }; } && |
| 16774 | { ac_try='test -s conftest.$ac_objext' |
| 16775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16776 | (eval $ac_try) 2>&5 |
| 16777 | ac_status=$? |
| 16778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16779 | (exit $ac_status); }; }; then |
| 16780 | ac_cv_member_struct_stat_st_gen=yes |
| 16781 | else |
| 16782 | echo "$as_me: failed program was:" >&5 |
| 16783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16784 | |
| 16785 | cat >conftest.$ac_ext <<_ACEOF |
| 16786 | /* confdefs.h. */ |
| 16787 | _ACEOF |
| 16788 | cat confdefs.h >>conftest.$ac_ext |
| 16789 | cat >>conftest.$ac_ext <<_ACEOF |
| 16790 | /* end confdefs.h. */ |
| 16791 | $ac_includes_default |
| 16792 | int |
| 16793 | main () |
| 16794 | { |
| 16795 | static struct stat ac_aggr; |
| 16796 | if (sizeof ac_aggr.st_gen) |
| 16797 | return 0; |
| 16798 | ; |
| 16799 | return 0; |
| 16800 | } |
| 16801 | _ACEOF |
| 16802 | rm -f conftest.$ac_objext |
| 16803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16804 | (eval $ac_compile) 2>conftest.er1 |
| 16805 | ac_status=$? |
| 16806 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16807 | rm -f conftest.er1 |
| 16808 | cat conftest.err >&5 |
| 16809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16810 | (exit $ac_status); } && |
| 16811 | { ac_try='test -z "$ac_c_werror_flag" |
| 16812 | || test ! -s conftest.err' |
| 16813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16814 | (eval $ac_try) 2>&5 |
| 16815 | ac_status=$? |
| 16816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16817 | (exit $ac_status); }; } && |
| 16818 | { ac_try='test -s conftest.$ac_objext' |
| 16819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16820 | (eval $ac_try) 2>&5 |
| 16821 | ac_status=$? |
| 16822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16823 | (exit $ac_status); }; }; then |
| 16824 | ac_cv_member_struct_stat_st_gen=yes |
| 16825 | else |
| 16826 | echo "$as_me: failed program was:" >&5 |
| 16827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16828 | |
| 16829 | ac_cv_member_struct_stat_st_gen=no |
| 16830 | fi |
| 16831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16832 | fi |
| 16833 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16834 | fi |
| 16835 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 16836 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6 |
| 16837 | if test $ac_cv_member_struct_stat_st_gen = yes; then |
| 16838 | |
| 16839 | cat >>confdefs.h <<_ACEOF |
| 16840 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 16841 | _ACEOF |
| 16842 | |
| 16843 | |
| 16844 | fi |
| 16845 | |
| 16846 | echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 16847 | echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6 |
| 16848 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
| 16849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16850 | else |
| 16851 | cat >conftest.$ac_ext <<_ACEOF |
| 16852 | /* confdefs.h. */ |
| 16853 | _ACEOF |
| 16854 | cat confdefs.h >>conftest.$ac_ext |
| 16855 | cat >>conftest.$ac_ext <<_ACEOF |
| 16856 | /* end confdefs.h. */ |
| 16857 | $ac_includes_default |
| 16858 | int |
| 16859 | main () |
| 16860 | { |
| 16861 | static struct stat ac_aggr; |
| 16862 | if (ac_aggr.st_birthtime) |
| 16863 | return 0; |
| 16864 | ; |
| 16865 | return 0; |
| 16866 | } |
| 16867 | _ACEOF |
| 16868 | rm -f conftest.$ac_objext |
| 16869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16870 | (eval $ac_compile) 2>conftest.er1 |
| 16871 | ac_status=$? |
| 16872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16873 | rm -f conftest.er1 |
| 16874 | cat conftest.err >&5 |
| 16875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16876 | (exit $ac_status); } && |
| 16877 | { ac_try='test -z "$ac_c_werror_flag" |
| 16878 | || test ! -s conftest.err' |
| 16879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16880 | (eval $ac_try) 2>&5 |
| 16881 | ac_status=$? |
| 16882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16883 | (exit $ac_status); }; } && |
| 16884 | { ac_try='test -s conftest.$ac_objext' |
| 16885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16886 | (eval $ac_try) 2>&5 |
| 16887 | ac_status=$? |
| 16888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16889 | (exit $ac_status); }; }; then |
| 16890 | ac_cv_member_struct_stat_st_birthtime=yes |
| 16891 | else |
| 16892 | echo "$as_me: failed program was:" >&5 |
| 16893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16894 | |
| 16895 | cat >conftest.$ac_ext <<_ACEOF |
| 16896 | /* confdefs.h. */ |
| 16897 | _ACEOF |
| 16898 | cat confdefs.h >>conftest.$ac_ext |
| 16899 | cat >>conftest.$ac_ext <<_ACEOF |
| 16900 | /* end confdefs.h. */ |
| 16901 | $ac_includes_default |
| 16902 | int |
| 16903 | main () |
| 16904 | { |
| 16905 | static struct stat ac_aggr; |
| 16906 | if (sizeof ac_aggr.st_birthtime) |
| 16907 | return 0; |
| 16908 | ; |
| 16909 | return 0; |
| 16910 | } |
| 16911 | _ACEOF |
| 16912 | rm -f conftest.$ac_objext |
| 16913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16914 | (eval $ac_compile) 2>conftest.er1 |
| 16915 | ac_status=$? |
| 16916 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16917 | rm -f conftest.er1 |
| 16918 | cat conftest.err >&5 |
| 16919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16920 | (exit $ac_status); } && |
| 16921 | { ac_try='test -z "$ac_c_werror_flag" |
| 16922 | || test ! -s conftest.err' |
| 16923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16924 | (eval $ac_try) 2>&5 |
| 16925 | ac_status=$? |
| 16926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16927 | (exit $ac_status); }; } && |
| 16928 | { ac_try='test -s conftest.$ac_objext' |
| 16929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16930 | (eval $ac_try) 2>&5 |
| 16931 | ac_status=$? |
| 16932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16933 | (exit $ac_status); }; }; then |
| 16934 | ac_cv_member_struct_stat_st_birthtime=yes |
| 16935 | else |
| 16936 | echo "$as_me: failed program was:" >&5 |
| 16937 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16938 | |
| 16939 | ac_cv_member_struct_stat_st_birthtime=no |
| 16940 | fi |
| 16941 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16942 | fi |
| 16943 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16944 | fi |
| 16945 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 16946 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6 |
| 16947 | if test $ac_cv_member_struct_stat_st_birthtime = yes; then |
| 16948 | |
| 16949 | cat >>confdefs.h <<_ACEOF |
| 16950 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 16951 | _ACEOF |
| 16952 | |
| 16953 | |
| 16954 | fi |
| 16955 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16956 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 16957 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 16958 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 16959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16960 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16961 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16962 | /* confdefs.h. */ |
| 16963 | _ACEOF |
| 16964 | cat confdefs.h >>conftest.$ac_ext |
| 16965 | cat >>conftest.$ac_ext <<_ACEOF |
| 16966 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16967 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16968 | int |
| 16969 | main () |
| 16970 | { |
| 16971 | static struct stat ac_aggr; |
| 16972 | if (ac_aggr.st_blocks) |
| 16973 | return 0; |
| 16974 | ; |
| 16975 | return 0; |
| 16976 | } |
| 16977 | _ACEOF |
| 16978 | rm -f conftest.$ac_objext |
| 16979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16980 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16981 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16983 | rm -f conftest.er1 |
| 16984 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16986 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16987 | { ac_try='test -z "$ac_c_werror_flag" |
| 16988 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16990 | (eval $ac_try) 2>&5 |
| 16991 | ac_status=$? |
| 16992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16993 | (exit $ac_status); }; } && |
| 16994 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16996 | (eval $ac_try) 2>&5 |
| 16997 | ac_status=$? |
| 16998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16999 | (exit $ac_status); }; }; then |
| 17000 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17001 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17002 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17003 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17004 | |
| 17005 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17006 | /* confdefs.h. */ |
| 17007 | _ACEOF |
| 17008 | cat confdefs.h >>conftest.$ac_ext |
| 17009 | cat >>conftest.$ac_ext <<_ACEOF |
| 17010 | /* end confdefs.h. */ |
| 17011 | $ac_includes_default |
| 17012 | int |
| 17013 | main () |
| 17014 | { |
| 17015 | static struct stat ac_aggr; |
| 17016 | if (sizeof ac_aggr.st_blocks) |
| 17017 | return 0; |
| 17018 | ; |
| 17019 | return 0; |
| 17020 | } |
| 17021 | _ACEOF |
| 17022 | rm -f conftest.$ac_objext |
| 17023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17024 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17025 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17026 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17027 | rm -f conftest.er1 |
| 17028 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17030 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17031 | { ac_try='test -z "$ac_c_werror_flag" |
| 17032 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17034 | (eval $ac_try) 2>&5 |
| 17035 | ac_status=$? |
| 17036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17037 | (exit $ac_status); }; } && |
| 17038 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17040 | (eval $ac_try) 2>&5 |
| 17041 | ac_status=$? |
| 17042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17043 | (exit $ac_status); }; }; then |
| 17044 | ac_cv_member_struct_stat_st_blocks=yes |
| 17045 | else |
| 17046 | echo "$as_me: failed program was:" >&5 |
| 17047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17048 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17049 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17050 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17051 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17052 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17054 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17055 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 17056 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 17057 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17058 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17059 | cat >>confdefs.h <<_ACEOF |
| 17060 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 17061 | _ACEOF |
| 17062 | |
| 17063 | |
| 17064 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 17065 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17066 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 17067 | |
| 17068 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17069 | case $LIBOBJS in |
| 17070 | "fileblocks.$ac_objext" | \ |
| 17071 | *" fileblocks.$ac_objext" | \ |
| 17072 | "fileblocks.$ac_objext "* | \ |
| 17073 | *" fileblocks.$ac_objext "* ) ;; |
| 17074 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;; |
| 17075 | esac |
| 17076 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 17077 | fi |
| 17078 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17079 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17080 | |
| 17081 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 17082 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 17083 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 17084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17085 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17086 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17087 | /* confdefs.h. */ |
| 17088 | _ACEOF |
| 17089 | cat confdefs.h >>conftest.$ac_ext |
| 17090 | cat >>conftest.$ac_ext <<_ACEOF |
| 17091 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17092 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17093 | int |
| 17094 | main () |
| 17095 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17096 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17097 | ; |
| 17098 | return 0; |
| 17099 | } |
| 17100 | _ACEOF |
| 17101 | rm -f conftest.$ac_objext |
| 17102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17103 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17104 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17106 | rm -f conftest.er1 |
| 17107 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17109 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17110 | { ac_try='test -z "$ac_c_werror_flag" |
| 17111 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17113 | (eval $ac_try) 2>&5 |
| 17114 | ac_status=$? |
| 17115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17116 | (exit $ac_status); }; } && |
| 17117 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17119 | (eval $ac_try) 2>&5 |
| 17120 | ac_status=$? |
| 17121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17122 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17123 | ac_cv_header_time_altzone=yes |
| 17124 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17125 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17127 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17128 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17129 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17131 | fi |
| 17132 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17133 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 17134 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17135 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17136 | |
| 17137 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17138 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17139 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17140 | |
| 17141 | fi |
| 17142 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17143 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17144 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 17145 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 17146 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17147 | /* confdefs.h. */ |
| 17148 | _ACEOF |
| 17149 | cat confdefs.h >>conftest.$ac_ext |
| 17150 | cat >>conftest.$ac_ext <<_ACEOF |
| 17151 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17152 | |
| 17153 | #include <sys/types.h> |
| 17154 | #include <sys/select.h> |
| 17155 | #include <sys/time.h> |
| 17156 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17157 | int |
| 17158 | main () |
| 17159 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17160 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17161 | ; |
| 17162 | return 0; |
| 17163 | } |
| 17164 | _ACEOF |
| 17165 | rm -f conftest.$ac_objext |
| 17166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17167 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17168 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17169 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17170 | rm -f conftest.er1 |
| 17171 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17173 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17174 | { ac_try='test -z "$ac_c_werror_flag" |
| 17175 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17177 | (eval $ac_try) 2>&5 |
| 17178 | ac_status=$? |
| 17179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17180 | (exit $ac_status); }; } && |
| 17181 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17183 | (eval $ac_try) 2>&5 |
| 17184 | ac_status=$? |
| 17185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17186 | (exit $ac_status); }; }; then |
| 17187 | |
| 17188 | |
| 17189 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17190 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17191 | _ACEOF |
| 17192 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17193 | was_it_defined=yes |
| 17194 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17195 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17196 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17198 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17199 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17200 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17201 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 17202 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17203 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17204 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 17205 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 17206 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 17207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17208 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17209 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17210 | /* confdefs.h. */ |
| 17211 | _ACEOF |
| 17212 | cat confdefs.h >>conftest.$ac_ext |
| 17213 | cat >>conftest.$ac_ext <<_ACEOF |
| 17214 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17215 | |
| 17216 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17217 | int |
| 17218 | main () |
| 17219 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17220 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17221 | ; |
| 17222 | return 0; |
| 17223 | } |
| 17224 | _ACEOF |
| 17225 | rm -f conftest.$ac_objext |
| 17226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17227 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17228 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17230 | rm -f conftest.er1 |
| 17231 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17233 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17234 | { ac_try='test -z "$ac_c_werror_flag" |
| 17235 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17237 | (eval $ac_try) 2>&5 |
| 17238 | ac_status=$? |
| 17239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17240 | (exit $ac_status); }; } && |
| 17241 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17243 | (eval $ac_try) 2>&5 |
| 17244 | ac_status=$? |
| 17245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17246 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17247 | ac_cv_struct_addrinfo=yes |
| 17248 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17249 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17251 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17252 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17253 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17254 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17255 | fi |
| 17256 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17257 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 17258 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17259 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17260 | |
| 17261 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17262 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17263 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17264 | |
| 17265 | fi |
| 17266 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17267 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 17268 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 17269 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 17270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17271 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17272 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17273 | /* confdefs.h. */ |
| 17274 | _ACEOF |
| 17275 | cat confdefs.h >>conftest.$ac_ext |
| 17276 | cat >>conftest.$ac_ext <<_ACEOF |
| 17277 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17278 | |
| 17279 | # include <sys/types.h> |
| 17280 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17281 | int |
| 17282 | main () |
| 17283 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17284 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17285 | ; |
| 17286 | return 0; |
| 17287 | } |
| 17288 | _ACEOF |
| 17289 | rm -f conftest.$ac_objext |
| 17290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17291 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17292 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17293 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17294 | rm -f conftest.er1 |
| 17295 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17297 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17298 | { ac_try='test -z "$ac_c_werror_flag" |
| 17299 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17301 | (eval $ac_try) 2>&5 |
| 17302 | ac_status=$? |
| 17303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17304 | (exit $ac_status); }; } && |
| 17305 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17307 | (eval $ac_try) 2>&5 |
| 17308 | ac_status=$? |
| 17309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17310 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17311 | ac_cv_struct_sockaddr_storage=yes |
| 17312 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17313 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17315 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17316 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17317 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17318 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17319 | fi |
| 17320 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17321 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 17322 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17323 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17324 | |
| 17325 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17326 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17327 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17328 | |
| 17329 | fi |
| 17330 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17331 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17332 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17333 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17334 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 17335 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 17336 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 17337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17338 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17339 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17340 | /* confdefs.h. */ |
| 17341 | _ACEOF |
| 17342 | cat confdefs.h >>conftest.$ac_ext |
| 17343 | cat >>conftest.$ac_ext <<_ACEOF |
| 17344 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17345 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17346 | int |
| 17347 | main () |
| 17348 | { |
| 17349 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 17350 | test_array [0] = 0 |
| 17351 | |
| 17352 | ; |
| 17353 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17354 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17355 | _ACEOF |
| 17356 | rm -f conftest.$ac_objext |
| 17357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17358 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17359 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17360 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17361 | rm -f conftest.er1 |
| 17362 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17364 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17365 | { ac_try='test -z "$ac_c_werror_flag" |
| 17366 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17368 | (eval $ac_try) 2>&5 |
| 17369 | ac_status=$? |
| 17370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17371 | (exit $ac_status); }; } && |
| 17372 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17374 | (eval $ac_try) 2>&5 |
| 17375 | ac_status=$? |
| 17376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17377 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17378 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17379 | else |
| 17380 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17382 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17383 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17384 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17385 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17386 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17387 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 17388 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17389 | 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] | 17390 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17391 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17392 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17393 | |
| 17394 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17395 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17396 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 17397 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 17398 | if test "${ac_cv_c_const+set}" = set; then |
| 17399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17400 | else |
| 17401 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17402 | /* confdefs.h. */ |
| 17403 | _ACEOF |
| 17404 | cat confdefs.h >>conftest.$ac_ext |
| 17405 | cat >>conftest.$ac_ext <<_ACEOF |
| 17406 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17407 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17408 | int |
| 17409 | main () |
| 17410 | { |
| 17411 | /* FIXME: Include the comments suggested by Paul. */ |
| 17412 | #ifndef __cplusplus |
| 17413 | /* Ultrix mips cc rejects this. */ |
| 17414 | typedef int charset[2]; |
| 17415 | const charset x; |
| 17416 | /* SunOS 4.1.1 cc rejects this. */ |
| 17417 | char const *const *ccp; |
| 17418 | char **p; |
| 17419 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 17420 | struct point {int x, y;}; |
| 17421 | static struct point const zero = {0,0}; |
| 17422 | /* AIX XL C 1.02.0.0 rejects this. |
| 17423 | It does not let you subtract one const X* pointer from another in |
| 17424 | an arm of an if-expression whose if-part is not a constant |
| 17425 | expression */ |
| 17426 | const char *g = "string"; |
| 17427 | ccp = &g + (g ? g-g : 0); |
| 17428 | /* HPUX 7.0 cc rejects these. */ |
| 17429 | ++ccp; |
| 17430 | p = (char**) ccp; |
| 17431 | ccp = (char const *const *) p; |
| 17432 | { /* SCO 3.2v4 cc rejects this. */ |
| 17433 | char *t; |
| 17434 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17435 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17436 | *t++ = 0; |
| 17437 | } |
| 17438 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 17439 | int x[] = {25, 17}; |
| 17440 | const int *foo = &x[0]; |
| 17441 | ++foo; |
| 17442 | } |
| 17443 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 17444 | typedef const int *iptr; |
| 17445 | iptr p = 0; |
| 17446 | ++p; |
| 17447 | } |
| 17448 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 17449 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 17450 | struct s { int j; const int *ap[3]; }; |
| 17451 | struct s *b; b->j = 5; |
| 17452 | } |
| 17453 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 17454 | const int foo = 10; |
| 17455 | } |
| 17456 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17457 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17458 | ; |
| 17459 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17460 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17461 | _ACEOF |
| 17462 | rm -f conftest.$ac_objext |
| 17463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17464 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17465 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17466 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17467 | rm -f conftest.er1 |
| 17468 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17470 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17471 | { ac_try='test -z "$ac_c_werror_flag" |
| 17472 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17474 | (eval $ac_try) 2>&5 |
| 17475 | ac_status=$? |
| 17476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17477 | (exit $ac_status); }; } && |
| 17478 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17480 | (eval $ac_try) 2>&5 |
| 17481 | ac_status=$? |
| 17482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17483 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17484 | ac_cv_c_const=yes |
| 17485 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17486 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17488 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17489 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17490 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17491 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17492 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17493 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 17494 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17495 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17496 | |
| 17497 | cat >>confdefs.h <<\_ACEOF |
| 17498 | #define const |
| 17499 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17500 | |
| 17501 | fi |
| 17502 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17503 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17504 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17505 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 17506 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 17507 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17508 | /* confdefs.h. */ |
| 17509 | _ACEOF |
| 17510 | cat confdefs.h >>conftest.$ac_ext |
| 17511 | cat >>conftest.$ac_ext <<_ACEOF |
| 17512 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17513 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17514 | int |
| 17515 | main () |
| 17516 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17517 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17518 | ; |
| 17519 | return 0; |
| 17520 | } |
| 17521 | _ACEOF |
| 17522 | rm -f conftest.$ac_objext |
| 17523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17524 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17525 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17527 | rm -f conftest.er1 |
| 17528 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17530 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17531 | { ac_try='test -z "$ac_c_werror_flag" |
| 17532 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17534 | (eval $ac_try) 2>&5 |
| 17535 | ac_status=$? |
| 17536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17537 | (exit $ac_status); }; } && |
| 17538 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17540 | (eval $ac_try) 2>&5 |
| 17541 | ac_status=$? |
| 17542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17543 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17544 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17545 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17546 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17548 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17549 | |
| 17550 | cat >>confdefs.h <<\_ACEOF |
| 17551 | #define volatile |
| 17552 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17553 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17554 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17555 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17556 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17557 | echo "$as_me:$LINENO: result: $works" >&5 |
| 17558 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17559 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17560 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17561 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 17562 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 17563 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17564 | /* confdefs.h. */ |
| 17565 | _ACEOF |
| 17566 | cat confdefs.h >>conftest.$ac_ext |
| 17567 | cat >>conftest.$ac_ext <<_ACEOF |
| 17568 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 17569 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17570 | int |
| 17571 | main () |
| 17572 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17573 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17574 | ; |
| 17575 | return 0; |
| 17576 | } |
| 17577 | _ACEOF |
| 17578 | rm -f conftest.$ac_objext |
| 17579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17580 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17581 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17582 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17583 | rm -f conftest.er1 |
| 17584 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17586 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17587 | { ac_try='test -z "$ac_c_werror_flag" |
| 17588 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17590 | (eval $ac_try) 2>&5 |
| 17591 | ac_status=$? |
| 17592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17593 | (exit $ac_status); }; } && |
| 17594 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17596 | (eval $ac_try) 2>&5 |
| 17597 | ac_status=$? |
| 17598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17599 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17600 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 17601 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17602 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17603 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17604 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17605 | |
| 17606 | cat >>confdefs.h <<\_ACEOF |
| 17607 | #define signed |
| 17608 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17609 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17610 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17611 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17612 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17613 | echo "$as_me:$LINENO: result: $works" >&5 |
| 17614 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17615 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17616 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17617 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 17618 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 17619 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17620 | /* confdefs.h. */ |
| 17621 | _ACEOF |
| 17622 | cat confdefs.h >>conftest.$ac_ext |
| 17623 | cat >>conftest.$ac_ext <<_ACEOF |
| 17624 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17625 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17626 | int |
| 17627 | main () |
| 17628 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17629 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17630 | ; |
| 17631 | return 0; |
| 17632 | } |
| 17633 | _ACEOF |
| 17634 | rm -f conftest.$ac_objext |
| 17635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17636 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17637 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17638 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17639 | rm -f conftest.er1 |
| 17640 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17642 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17643 | { ac_try='test -z "$ac_c_werror_flag" |
| 17644 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17646 | (eval $ac_try) 2>&5 |
| 17647 | ac_status=$? |
| 17648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17649 | (exit $ac_status); }; } && |
| 17650 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17652 | (eval $ac_try) 2>&5 |
| 17653 | ac_status=$? |
| 17654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17655 | (exit $ac_status); }; }; then |
| 17656 | |
| 17657 | |
| 17658 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17659 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17660 | _ACEOF |
| 17661 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17662 | have_prototypes=yes |
| 17663 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17664 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17665 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17667 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17668 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17670 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 17671 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17672 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17673 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17674 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 17675 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 17676 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17677 | /* confdefs.h. */ |
| 17678 | _ACEOF |
| 17679 | cat confdefs.h >>conftest.$ac_ext |
| 17680 | cat >>conftest.$ac_ext <<_ACEOF |
| 17681 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17682 | |
| 17683 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 17684 | int foo(int x, ...) { |
| 17685 | va_list va; |
| 17686 | va_start(va, x); |
| 17687 | va_arg(va, int); |
| 17688 | va_arg(va, char *); |
| 17689 | va_arg(va, double); |
| 17690 | return 0; |
| 17691 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17692 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17693 | int |
| 17694 | main () |
| 17695 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 17696 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17697 | ; |
| 17698 | return 0; |
| 17699 | } |
| 17700 | _ACEOF |
| 17701 | rm -f conftest.$ac_objext |
| 17702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17703 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17704 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17705 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17706 | rm -f conftest.er1 |
| 17707 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17709 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17710 | { ac_try='test -z "$ac_c_werror_flag" |
| 17711 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17713 | (eval $ac_try) 2>&5 |
| 17714 | ac_status=$? |
| 17715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17716 | (exit $ac_status); }; } && |
| 17717 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17719 | (eval $ac_try) 2>&5 |
| 17720 | ac_status=$? |
| 17721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17722 | (exit $ac_status); }; }; then |
| 17723 | |
| 17724 | |
| 17725 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17726 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17727 | _ACEOF |
| 17728 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17729 | works=yes |
| 17730 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17731 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17732 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17734 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17735 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17736 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17737 | echo "$as_me:$LINENO: result: $works" >&5 |
| 17738 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17739 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17740 | # check for socketpair |
| 17741 | echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 17742 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6 |
| 17743 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17744 | /* confdefs.h. */ |
| 17745 | _ACEOF |
| 17746 | cat confdefs.h >>conftest.$ac_ext |
| 17747 | cat >>conftest.$ac_ext <<_ACEOF |
| 17748 | /* end confdefs.h. */ |
| 17749 | |
| 17750 | #include <sys/types.h> |
| 17751 | #include <sys/socket.h> |
| 17752 | |
| 17753 | int |
| 17754 | main () |
| 17755 | { |
| 17756 | void *x=socketpair |
| 17757 | ; |
| 17758 | return 0; |
| 17759 | } |
| 17760 | _ACEOF |
| 17761 | rm -f conftest.$ac_objext |
| 17762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17763 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17764 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17766 | rm -f conftest.er1 |
| 17767 | cat conftest.err >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17769 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17770 | { ac_try='test -z "$ac_c_werror_flag" |
| 17771 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17773 | (eval $ac_try) 2>&5 |
| 17774 | ac_status=$? |
| 17775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17776 | (exit $ac_status); }; } && |
| 17777 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17779 | (eval $ac_try) 2>&5 |
| 17780 | ac_status=$? |
| 17781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17782 | (exit $ac_status); }; }; then |
| 17783 | |
| 17784 | cat >>confdefs.h <<\_ACEOF |
| 17785 | #define HAVE_SOCKETPAIR 1 |
| 17786 | _ACEOF |
| 17787 | |
| 17788 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17789 | echo "${ECHO_T}yes" >&6 |
| 17790 | else |
| 17791 | echo "$as_me: failed program was:" >&5 |
| 17792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17793 | |
| 17794 | echo "$as_me:$LINENO: result: no" >&5 |
| 17795 | echo "${ECHO_T}no" >&6 |
| 17796 | |
| 17797 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17798 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17799 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17800 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17801 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 17802 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 17803 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17804 | /* confdefs.h. */ |
| 17805 | _ACEOF |
| 17806 | cat confdefs.h >>conftest.$ac_ext |
| 17807 | cat >>conftest.$ac_ext <<_ACEOF |
| 17808 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17809 | #include <sys/types.h> |
| 17810 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17811 | int |
| 17812 | main () |
| 17813 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17814 | struct sockaddr x; |
| 17815 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17816 | ; |
| 17817 | return 0; |
| 17818 | } |
| 17819 | _ACEOF |
| 17820 | rm -f conftest.$ac_objext |
| 17821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17822 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17823 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17825 | rm -f conftest.er1 |
| 17826 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17828 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17829 | { ac_try='test -z "$ac_c_werror_flag" |
| 17830 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17832 | (eval $ac_try) 2>&5 |
| 17833 | ac_status=$? |
| 17834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17835 | (exit $ac_status); }; } && |
| 17836 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17838 | (eval $ac_try) 2>&5 |
| 17839 | ac_status=$? |
| 17840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17841 | (exit $ac_status); }; }; then |
| 17842 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17843 | echo "${ECHO_T}yes" >&6 |
| 17844 | |
| 17845 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17846 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17847 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17848 | |
| 17849 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17850 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17852 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17853 | echo "$as_me:$LINENO: result: no" >&5 |
| 17854 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17855 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17857 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17858 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17859 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 17860 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 17861 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17862 | /* confdefs.h. */ |
| 17863 | _ACEOF |
| 17864 | cat confdefs.h >>conftest.$ac_ext |
| 17865 | cat >>conftest.$ac_ext <<_ACEOF |
| 17866 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17867 | |
| 17868 | #ifdef HAVE_STDARG_PROTOTYPES |
| 17869 | #include <stdarg.h> |
| 17870 | #else |
| 17871 | #include <varargs.h> |
| 17872 | #endif |
| 17873 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17874 | int |
| 17875 | main () |
| 17876 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17877 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17878 | ; |
| 17879 | return 0; |
| 17880 | } |
| 17881 | _ACEOF |
| 17882 | rm -f conftest.$ac_objext |
| 17883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17884 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17885 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17886 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17887 | rm -f conftest.er1 |
| 17888 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17890 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17891 | { ac_try='test -z "$ac_c_werror_flag" |
| 17892 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17894 | (eval $ac_try) 2>&5 |
| 17895 | ac_status=$? |
| 17896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17897 | (exit $ac_status); }; } && |
| 17898 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17900 | (eval $ac_try) 2>&5 |
| 17901 | ac_status=$? |
| 17902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17903 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17904 | : |
| 17905 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17906 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17908 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17909 | |
| 17910 | |
| 17911 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17912 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17913 | _ACEOF |
| 17914 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17915 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17916 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17917 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17919 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 17920 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17921 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17922 | # 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] | 17923 | |
| 17924 | |
| 17925 | |
| 17926 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 17927 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 17928 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 17929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17930 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17931 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17932 | /* confdefs.h. */ |
| 17933 | _ACEOF |
| 17934 | cat confdefs.h >>conftest.$ac_ext |
| 17935 | cat >>conftest.$ac_ext <<_ACEOF |
| 17936 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17937 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17938 | which can conflict with char gethostbyname_r (); below. |
| 17939 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 17940 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 17941 | including <limits.h> includes <sys/time.h> and causes problems |
| 17942 | checking for functions defined therein. */ |
| 17943 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17944 | # include <limits.h> |
| 17945 | #else |
| 17946 | # include <assert.h> |
| 17947 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17948 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17949 | #ifdef __cplusplus |
| 17950 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17951 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17952 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17953 | /* 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] | 17954 | builtin and then its argument prototype would still apply. */ |
| 17955 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17956 | /* The GNU C library defines this for functions which it implements |
| 17957 | to always fail with ENOSYS. Some functions are actually named |
| 17958 | something starting with __ and the normal name is an alias. */ |
| 17959 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 17960 | choke me |
| 17961 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17962 | char (*f) () = gethostbyname_r; |
| 17963 | #endif |
| 17964 | #ifdef __cplusplus |
| 17965 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17966 | #endif |
| 17967 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17968 | int |
| 17969 | main () |
| 17970 | { |
| 17971 | return f != gethostbyname_r; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17972 | ; |
| 17973 | return 0; |
| 17974 | } |
| 17975 | _ACEOF |
| 17976 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17977 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17978 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17979 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17980 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17981 | rm -f conftest.er1 |
| 17982 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17984 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17985 | { ac_try='test -z "$ac_c_werror_flag" |
| 17986 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17988 | (eval $ac_try) 2>&5 |
| 17989 | ac_status=$? |
| 17990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17991 | (exit $ac_status); }; } && |
| 17992 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17994 | (eval $ac_try) 2>&5 |
| 17995 | ac_status=$? |
| 17996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17997 | (exit $ac_status); }; }; then |
| 17998 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17999 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18000 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18002 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18003 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18004 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18005 | rm -f conftest.err conftest.$ac_objext \ |
| 18006 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18007 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18008 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 18009 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 18010 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18011 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18012 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18013 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18014 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18015 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18016 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 18017 | 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] | 18018 | OLD_CFLAGS=$CFLAGS |
| 18019 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18020 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18021 | /* confdefs.h. */ |
| 18022 | _ACEOF |
| 18023 | cat confdefs.h >>conftest.$ac_ext |
| 18024 | cat >>conftest.$ac_ext <<_ACEOF |
| 18025 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18026 | |
| 18027 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18028 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18029 | int |
| 18030 | main () |
| 18031 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18032 | |
| 18033 | char *name; |
| 18034 | struct hostent *he, *res; |
| 18035 | char buffer[2048]; |
| 18036 | int buflen = 2048; |
| 18037 | int h_errnop; |
| 18038 | |
| 18039 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18040 | |
| 18041 | ; |
| 18042 | return 0; |
| 18043 | } |
| 18044 | _ACEOF |
| 18045 | rm -f conftest.$ac_objext |
| 18046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18047 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18048 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18049 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18050 | rm -f conftest.er1 |
| 18051 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18053 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18054 | { ac_try='test -z "$ac_c_werror_flag" |
| 18055 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18057 | (eval $ac_try) 2>&5 |
| 18058 | ac_status=$? |
| 18059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18060 | (exit $ac_status); }; } && |
| 18061 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18063 | (eval $ac_try) 2>&5 |
| 18064 | ac_status=$? |
| 18065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18066 | (exit $ac_status); }; }; then |
| 18067 | |
| 18068 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 18069 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18070 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 18071 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18072 | |
| 18073 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18074 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18075 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18076 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18077 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18078 | echo "${ECHO_T}yes" >&6 |
| 18079 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18080 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18081 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18083 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18084 | |
| 18085 | echo "$as_me:$LINENO: result: no" >&5 |
| 18086 | echo "${ECHO_T}no" >&6 |
| 18087 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 18088 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 18089 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18090 | /* confdefs.h. */ |
| 18091 | _ACEOF |
| 18092 | cat confdefs.h >>conftest.$ac_ext |
| 18093 | cat >>conftest.$ac_ext <<_ACEOF |
| 18094 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18095 | |
| 18096 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18097 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18098 | int |
| 18099 | main () |
| 18100 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18101 | |
| 18102 | char *name; |
| 18103 | struct hostent *he; |
| 18104 | char buffer[2048]; |
| 18105 | int buflen = 2048; |
| 18106 | int h_errnop; |
| 18107 | |
| 18108 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18109 | |
| 18110 | ; |
| 18111 | return 0; |
| 18112 | } |
| 18113 | _ACEOF |
| 18114 | rm -f conftest.$ac_objext |
| 18115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18116 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18117 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18118 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18119 | rm -f conftest.er1 |
| 18120 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18122 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18123 | { ac_try='test -z "$ac_c_werror_flag" |
| 18124 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18126 | (eval $ac_try) 2>&5 |
| 18127 | ac_status=$? |
| 18128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18129 | (exit $ac_status); }; } && |
| 18130 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18132 | (eval $ac_try) 2>&5 |
| 18133 | ac_status=$? |
| 18134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18135 | (exit $ac_status); }; }; then |
| 18136 | |
| 18137 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 18138 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18139 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 18140 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18141 | |
| 18142 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18143 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18144 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18145 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18146 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18147 | echo "${ECHO_T}yes" >&6 |
| 18148 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18149 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18150 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18152 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18153 | |
| 18154 | echo "$as_me:$LINENO: result: no" >&5 |
| 18155 | echo "${ECHO_T}no" >&6 |
| 18156 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 18157 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 18158 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18159 | /* confdefs.h. */ |
| 18160 | _ACEOF |
| 18161 | cat confdefs.h >>conftest.$ac_ext |
| 18162 | cat >>conftest.$ac_ext <<_ACEOF |
| 18163 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18164 | |
| 18165 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18166 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18167 | int |
| 18168 | main () |
| 18169 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18170 | |
| 18171 | char *name; |
| 18172 | struct hostent *he; |
| 18173 | struct hostent_data data; |
| 18174 | |
| 18175 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18176 | |
| 18177 | ; |
| 18178 | return 0; |
| 18179 | } |
| 18180 | _ACEOF |
| 18181 | rm -f conftest.$ac_objext |
| 18182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18183 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18184 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18185 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18186 | rm -f conftest.er1 |
| 18187 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18189 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18190 | { ac_try='test -z "$ac_c_werror_flag" |
| 18191 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18193 | (eval $ac_try) 2>&5 |
| 18194 | ac_status=$? |
| 18195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18196 | (exit $ac_status); }; } && |
| 18197 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18199 | (eval $ac_try) 2>&5 |
| 18200 | ac_status=$? |
| 18201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18202 | (exit $ac_status); }; }; then |
| 18203 | |
| 18204 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 18205 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18206 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 18207 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18208 | |
| 18209 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18210 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18211 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18212 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18213 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18214 | echo "${ECHO_T}yes" >&6 |
| 18215 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18216 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18217 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18219 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18220 | |
| 18221 | echo "$as_me:$LINENO: result: no" >&5 |
| 18222 | echo "${ECHO_T}no" >&6 |
| 18223 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18224 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18225 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18226 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18227 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18228 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18229 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18230 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18231 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18232 | CFLAGS=$OLD_CFLAGS |
| 18233 | |
| 18234 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18235 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18236 | |
| 18237 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18238 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18239 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18240 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18241 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 18242 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 18243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18244 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18245 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18246 | /* confdefs.h. */ |
| 18247 | _ACEOF |
| 18248 | cat confdefs.h >>conftest.$ac_ext |
| 18249 | cat >>conftest.$ac_ext <<_ACEOF |
| 18250 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18251 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18252 | which can conflict with char $ac_func (); below. |
| 18253 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 18254 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 18255 | including <limits.h> includes <sys/time.h> and causes problems |
| 18256 | checking for functions defined therein. */ |
| 18257 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18258 | # include <limits.h> |
| 18259 | #else |
| 18260 | # include <assert.h> |
| 18261 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18262 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18263 | #ifdef __cplusplus |
| 18264 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18265 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18266 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18267 | /* 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] | 18268 | builtin and then its argument prototype would still apply. */ |
| 18269 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18270 | /* The GNU C library defines this for functions which it implements |
| 18271 | to always fail with ENOSYS. Some functions are actually named |
| 18272 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18273 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18274 | choke me |
| 18275 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18276 | char (*f) () = $ac_func; |
| 18277 | #endif |
| 18278 | #ifdef __cplusplus |
| 18279 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18280 | #endif |
| 18281 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18282 | int |
| 18283 | main () |
| 18284 | { |
| 18285 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18286 | ; |
| 18287 | return 0; |
| 18288 | } |
| 18289 | _ACEOF |
| 18290 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18292 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18293 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18295 | rm -f conftest.er1 |
| 18296 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18298 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18299 | { ac_try='test -z "$ac_c_werror_flag" |
| 18300 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18302 | (eval $ac_try) 2>&5 |
| 18303 | ac_status=$? |
| 18304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18305 | (exit $ac_status); }; } && |
| 18306 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18308 | (eval $ac_try) 2>&5 |
| 18309 | ac_status=$? |
| 18310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18311 | (exit $ac_status); }; }; then |
| 18312 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18313 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18314 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18316 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18317 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18318 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18319 | rm -f conftest.err conftest.$ac_objext \ |
| 18320 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18321 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18322 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 18323 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 18324 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18325 | cat >>confdefs.h <<_ACEOF |
| 18326 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18327 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18328 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18329 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18330 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18331 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18332 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18333 | fi |
| 18334 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18335 | |
| 18336 | |
| 18337 | |
| 18338 | |
| 18339 | |
| 18340 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18341 | # checks for system services |
| 18342 | # (none yet) |
| 18343 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18344 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18345 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 18346 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 18347 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 18348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18349 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18350 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18351 | /* confdefs.h. */ |
| 18352 | _ACEOF |
| 18353 | cat confdefs.h >>conftest.$ac_ext |
| 18354 | cat >>conftest.$ac_ext <<_ACEOF |
| 18355 | /* end confdefs.h. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18356 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18357 | which can conflict with char __fpu_control (); below. |
| 18358 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 18359 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 18360 | including <limits.h> includes <sys/time.h> and causes problems |
| 18361 | checking for functions defined therein. */ |
| 18362 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18363 | # include <limits.h> |
| 18364 | #else |
| 18365 | # include <assert.h> |
| 18366 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18367 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18368 | #ifdef __cplusplus |
| 18369 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18370 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18371 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18372 | /* 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] | 18373 | builtin and then its argument prototype would still apply. */ |
| 18374 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18375 | /* The GNU C library defines this for functions which it implements |
| 18376 | to always fail with ENOSYS. Some functions are actually named |
| 18377 | something starting with __ and the normal name is an alias. */ |
| 18378 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 18379 | choke me |
| 18380 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18381 | char (*f) () = __fpu_control; |
| 18382 | #endif |
| 18383 | #ifdef __cplusplus |
| 18384 | } |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18385 | #endif |
| 18386 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18387 | int |
| 18388 | main () |
| 18389 | { |
| 18390 | return f != __fpu_control; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18391 | ; |
| 18392 | return 0; |
| 18393 | } |
| 18394 | _ACEOF |
| 18395 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18396 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18397 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18398 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18399 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18400 | rm -f conftest.er1 |
| 18401 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18403 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18404 | { ac_try='test -z "$ac_c_werror_flag" |
| 18405 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18407 | (eval $ac_try) 2>&5 |
| 18408 | ac_status=$? |
| 18409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18410 | (exit $ac_status); }; } && |
| 18411 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18413 | (eval $ac_try) 2>&5 |
| 18414 | ac_status=$? |
| 18415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18416 | (exit $ac_status); }; }; then |
| 18417 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18418 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18419 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18421 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18422 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18423 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18424 | rm -f conftest.err conftest.$ac_objext \ |
| 18425 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18426 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18427 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 18428 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 18429 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18430 | : |
| 18431 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18432 | |
| 18433 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 18434 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 18435 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 18436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18437 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18438 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18439 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18440 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18441 | /* confdefs.h. */ |
| 18442 | _ACEOF |
| 18443 | cat confdefs.h >>conftest.$ac_ext |
| 18444 | cat >>conftest.$ac_ext <<_ACEOF |
| 18445 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18446 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18447 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18448 | #ifdef __cplusplus |
| 18449 | extern "C" |
| 18450 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18451 | /* 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] | 18452 | builtin and then its argument prototype would still apply. */ |
| 18453 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18454 | int |
| 18455 | main () |
| 18456 | { |
| 18457 | __fpu_control (); |
| 18458 | ; |
| 18459 | return 0; |
| 18460 | } |
| 18461 | _ACEOF |
| 18462 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18463 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18464 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18465 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18466 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18467 | rm -f conftest.er1 |
| 18468 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18470 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18471 | { ac_try='test -z "$ac_c_werror_flag" |
| 18472 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18474 | (eval $ac_try) 2>&5 |
| 18475 | ac_status=$? |
| 18476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18477 | (exit $ac_status); }; } && |
| 18478 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18480 | (eval $ac_try) 2>&5 |
| 18481 | ac_status=$? |
| 18482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18483 | (exit $ac_status); }; }; then |
| 18484 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18485 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18486 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18488 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18489 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18490 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18491 | rm -f conftest.err conftest.$ac_objext \ |
| 18492 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18493 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18494 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18495 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 18496 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 18497 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 18498 | cat >>confdefs.h <<_ACEOF |
| 18499 | #define HAVE_LIBIEEE 1 |
| 18500 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18501 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18502 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18503 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18504 | fi |
| 18505 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18506 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18507 | fi |
| 18508 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18509 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18510 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18511 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 18512 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 18513 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18514 | # Check whether --with-fpectl or --without-fpectl was given. |
| 18515 | if test "${with_fpectl+set}" = set; then |
| 18516 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18517 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18518 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18519 | then |
| 18520 | |
| 18521 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18522 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18523 | _ACEOF |
| 18524 | |
| 18525 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18526 | echo "${ECHO_T}yes" >&6 |
| 18527 | else echo "$as_me:$LINENO: result: no" >&5 |
| 18528 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18529 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18530 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18531 | echo "$as_me:$LINENO: result: no" >&5 |
| 18532 | echo "${ECHO_T}no" >&6 |
| 18533 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18534 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18535 | # check for --with-libm=... |
| 18536 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 18537 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 18538 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 18539 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 18540 | *) LIBM=-lm |
| 18541 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18542 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 18543 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 18544 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18545 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18546 | if test "${with_libm+set}" = set; then |
| 18547 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18548 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18549 | if test "$withval" = no |
| 18550 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18551 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 18552 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18553 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18554 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18555 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 18556 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 18557 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 18558 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 18559 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18560 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18561 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18562 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 18563 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 18564 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18565 | |
| 18566 | # check for --with-libc=... |
| 18567 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18568 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 18569 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 18570 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18571 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18572 | if test "${with_libc+set}" = set; then |
| 18573 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18574 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18575 | if test "$withval" = no |
| 18576 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18577 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 18578 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18579 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18580 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18581 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 18582 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 18583 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 18584 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 18585 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18586 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18587 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18588 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 18589 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 18590 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18591 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18592 | # check for hypot() in math library |
| 18593 | LIBS_SAVE=$LIBS |
| 18594 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18595 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18596 | for ac_func in hypot |
| 18597 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18598 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18599 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18600 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 18601 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 18602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18603 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18604 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18605 | /* confdefs.h. */ |
| 18606 | _ACEOF |
| 18607 | cat confdefs.h >>conftest.$ac_ext |
| 18608 | cat >>conftest.$ac_ext <<_ACEOF |
| 18609 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18610 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18611 | which can conflict with char $ac_func (); below. |
| 18612 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 18613 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 18614 | including <limits.h> includes <sys/time.h> and causes problems |
| 18615 | checking for functions defined therein. */ |
| 18616 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18617 | # include <limits.h> |
| 18618 | #else |
| 18619 | # include <assert.h> |
| 18620 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18621 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18622 | #ifdef __cplusplus |
| 18623 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18624 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18625 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18626 | /* 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] | 18627 | builtin and then its argument prototype would still apply. */ |
| 18628 | char $ac_func (); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18629 | /* The GNU C library defines this for functions which it implements |
| 18630 | to always fail with ENOSYS. Some functions are actually named |
| 18631 | something starting with __ and the normal name is an alias. */ |
| 18632 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 18633 | choke me |
| 18634 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18635 | char (*f) () = $ac_func; |
| 18636 | #endif |
| 18637 | #ifdef __cplusplus |
| 18638 | } |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18639 | #endif |
| 18640 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18641 | int |
| 18642 | main () |
| 18643 | { |
| 18644 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18645 | ; |
| 18646 | return 0; |
| 18647 | } |
| 18648 | _ACEOF |
| 18649 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18651 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18652 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18653 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18654 | rm -f conftest.er1 |
| 18655 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18657 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18658 | { ac_try='test -z "$ac_c_werror_flag" |
| 18659 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18661 | (eval $ac_try) 2>&5 |
| 18662 | ac_status=$? |
| 18663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18664 | (exit $ac_status); }; } && |
| 18665 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18667 | (eval $ac_try) 2>&5 |
| 18668 | ac_status=$? |
| 18669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18670 | (exit $ac_status); }; }; then |
| 18671 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 18672 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18673 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18674 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18675 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18676 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18677 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18678 | rm -f conftest.err conftest.$ac_objext \ |
| 18679 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18680 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18681 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 18682 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 18683 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18684 | cat >>confdefs.h <<_ACEOF |
| 18685 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18686 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18687 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18688 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18689 | case $LIBOBJS in |
| 18690 | "$ac_func.$ac_objext" | \ |
| 18691 | *" $ac_func.$ac_objext" | \ |
| 18692 | "$ac_func.$ac_objext "* | \ |
| 18693 | *" $ac_func.$ac_objext "* ) ;; |
| 18694 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
| 18695 | esac |
| 18696 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 18697 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 18698 | done |
| 18699 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18700 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18701 | LIBS=$LIBS_SAVE |
| 18702 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18703 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18704 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 18705 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 18706 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 18707 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 18708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18709 | fi |
| 18710 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 18711 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18712 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18713 | # Is the header compilable? |
| 18714 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 18715 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 18716 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18717 | /* confdefs.h. */ |
| 18718 | _ACEOF |
| 18719 | cat confdefs.h >>conftest.$ac_ext |
| 18720 | cat >>conftest.$ac_ext <<_ACEOF |
| 18721 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18722 | $ac_includes_default |
| 18723 | #include <wchar.h> |
| 18724 | _ACEOF |
| 18725 | rm -f conftest.$ac_objext |
| 18726 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18727 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18728 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18729 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18730 | rm -f conftest.er1 |
| 18731 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18733 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18734 | { ac_try='test -z "$ac_c_werror_flag" |
| 18735 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18737 | (eval $ac_try) 2>&5 |
| 18738 | ac_status=$? |
| 18739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18740 | (exit $ac_status); }; } && |
| 18741 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18743 | (eval $ac_try) 2>&5 |
| 18744 | ac_status=$? |
| 18745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18746 | (exit $ac_status); }; }; then |
| 18747 | ac_header_compiler=yes |
| 18748 | else |
| 18749 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18750 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18751 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18752 | ac_header_compiler=no |
| 18753 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18754 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18755 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 18756 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 18757 | |
| 18758 | # Is the header present? |
| 18759 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 18760 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 18761 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18762 | /* confdefs.h. */ |
| 18763 | _ACEOF |
| 18764 | cat confdefs.h >>conftest.$ac_ext |
| 18765 | cat >>conftest.$ac_ext <<_ACEOF |
| 18766 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18767 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18768 | _ACEOF |
| 18769 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 18770 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 18771 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18772 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18773 | rm -f conftest.er1 |
| 18774 | cat conftest.err >&5 |
| 18775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18776 | (exit $ac_status); } >/dev/null; then |
| 18777 | if test -s conftest.err; then |
| 18778 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18779 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18780 | else |
| 18781 | ac_cpp_err= |
| 18782 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18783 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18784 | ac_cpp_err=yes |
| 18785 | fi |
| 18786 | if test -z "$ac_cpp_err"; then |
| 18787 | ac_header_preproc=yes |
| 18788 | else |
| 18789 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18791 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18792 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18793 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18794 | rm -f conftest.err conftest.$ac_ext |
| 18795 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 18796 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 18797 | |
| 18798 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18799 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 18800 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18801 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 18802 | 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] | 18803 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 18804 | echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} |
| 18805 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 18806 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18807 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 18808 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 18809 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18810 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 18811 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 18812 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 18813 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 18814 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 18815 | 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] | 18816 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 18817 | 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] | 18818 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 18819 | 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] | 18820 | ( |
| 18821 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 18822 | ## ------------------------------------------------ ## |
| 18823 | ## Report this to http://www.python.org/python-bugs ## |
| 18824 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18825 | _ASBOX |
| 18826 | ) | |
| 18827 | sed "s/^/$as_me: WARNING: /" >&2 |
| 18828 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18829 | esac |
| 18830 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 18831 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 18832 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 18833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18834 | else |
| 18835 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18836 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18837 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 18838 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 18839 | |
| 18840 | fi |
| 18841 | if test $ac_cv_header_wchar_h = yes; then |
| 18842 | |
| 18843 | |
| 18844 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18845 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18846 | _ACEOF |
| 18847 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 18848 | wchar_h="yes" |
| 18849 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18850 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18851 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18852 | |
| 18853 | fi |
| 18854 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18855 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18856 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18857 | # determine wchar_t size |
| 18858 | if test "$wchar_h" = yes |
| 18859 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18860 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 18861 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 18862 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 18863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18864 | else |
| 18865 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18866 | /* confdefs.h. */ |
| 18867 | _ACEOF |
| 18868 | cat confdefs.h >>conftest.$ac_ext |
| 18869 | cat >>conftest.$ac_ext <<_ACEOF |
| 18870 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18871 | #include <wchar.h> |
| 18872 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18873 | int |
| 18874 | main () |
| 18875 | { |
| 18876 | if ((wchar_t *) 0) |
| 18877 | return 0; |
| 18878 | if (sizeof (wchar_t)) |
| 18879 | return 0; |
| 18880 | ; |
| 18881 | return 0; |
| 18882 | } |
| 18883 | _ACEOF |
| 18884 | rm -f conftest.$ac_objext |
| 18885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18886 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18887 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18888 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18889 | rm -f conftest.er1 |
| 18890 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18892 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18893 | { ac_try='test -z "$ac_c_werror_flag" |
| 18894 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18896 | (eval $ac_try) 2>&5 |
| 18897 | ac_status=$? |
| 18898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18899 | (exit $ac_status); }; } && |
| 18900 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18902 | (eval $ac_try) 2>&5 |
| 18903 | ac_status=$? |
| 18904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18905 | (exit $ac_status); }; }; then |
| 18906 | ac_cv_type_wchar_t=yes |
| 18907 | else |
| 18908 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18910 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18911 | ac_cv_type_wchar_t=no |
| 18912 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18913 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18914 | fi |
| 18915 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 18916 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 18917 | |
| 18918 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 18919 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 18920 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 18921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18922 | else |
| 18923 | if test "$ac_cv_type_wchar_t" = yes; then |
| 18924 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 18925 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 18926 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 18927 | # This bug is HP SR number 8606223364. |
| 18928 | if test "$cross_compiling" = yes; then |
| 18929 | # Depending upon the size, compute the lo and hi bounds. |
| 18930 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18931 | /* confdefs.h. */ |
| 18932 | _ACEOF |
| 18933 | cat confdefs.h >>conftest.$ac_ext |
| 18934 | cat >>conftest.$ac_ext <<_ACEOF |
| 18935 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18936 | #include <wchar.h> |
| 18937 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18938 | int |
| 18939 | main () |
| 18940 | { |
| 18941 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 18942 | test_array [0] = 0 |
| 18943 | |
| 18944 | ; |
| 18945 | return 0; |
| 18946 | } |
| 18947 | _ACEOF |
| 18948 | rm -f conftest.$ac_objext |
| 18949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18950 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18951 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18952 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18953 | rm -f conftest.er1 |
| 18954 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18956 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18957 | { ac_try='test -z "$ac_c_werror_flag" |
| 18958 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18960 | (eval $ac_try) 2>&5 |
| 18961 | ac_status=$? |
| 18962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18963 | (exit $ac_status); }; } && |
| 18964 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18966 | (eval $ac_try) 2>&5 |
| 18967 | ac_status=$? |
| 18968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18969 | (exit $ac_status); }; }; then |
| 18970 | ac_lo=0 ac_mid=0 |
| 18971 | while :; do |
| 18972 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18973 | /* confdefs.h. */ |
| 18974 | _ACEOF |
| 18975 | cat confdefs.h >>conftest.$ac_ext |
| 18976 | cat >>conftest.$ac_ext <<_ACEOF |
| 18977 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18978 | #include <wchar.h> |
| 18979 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18980 | int |
| 18981 | main () |
| 18982 | { |
| 18983 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 18984 | test_array [0] = 0 |
| 18985 | |
| 18986 | ; |
| 18987 | return 0; |
| 18988 | } |
| 18989 | _ACEOF |
| 18990 | rm -f conftest.$ac_objext |
| 18991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18992 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18993 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18995 | rm -f conftest.er1 |
| 18996 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18998 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18999 | { ac_try='test -z "$ac_c_werror_flag" |
| 19000 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19002 | (eval $ac_try) 2>&5 |
| 19003 | ac_status=$? |
| 19004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19005 | (exit $ac_status); }; } && |
| 19006 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19008 | (eval $ac_try) 2>&5 |
| 19009 | ac_status=$? |
| 19010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19011 | (exit $ac_status); }; }; then |
| 19012 | ac_hi=$ac_mid; break |
| 19013 | else |
| 19014 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19016 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19017 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19018 | if test $ac_lo -le $ac_mid; then |
| 19019 | ac_lo= ac_hi= |
| 19020 | break |
| 19021 | fi |
| 19022 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19023 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19025 | done |
| 19026 | else |
| 19027 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19029 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19030 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19031 | /* confdefs.h. */ |
| 19032 | _ACEOF |
| 19033 | cat confdefs.h >>conftest.$ac_ext |
| 19034 | cat >>conftest.$ac_ext <<_ACEOF |
| 19035 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19036 | #include <wchar.h> |
| 19037 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19038 | int |
| 19039 | main () |
| 19040 | { |
| 19041 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 19042 | test_array [0] = 0 |
| 19043 | |
| 19044 | ; |
| 19045 | return 0; |
| 19046 | } |
| 19047 | _ACEOF |
| 19048 | rm -f conftest.$ac_objext |
| 19049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19050 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19051 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19052 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19053 | rm -f conftest.er1 |
| 19054 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19056 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19057 | { ac_try='test -z "$ac_c_werror_flag" |
| 19058 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19060 | (eval $ac_try) 2>&5 |
| 19061 | ac_status=$? |
| 19062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19063 | (exit $ac_status); }; } && |
| 19064 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19066 | (eval $ac_try) 2>&5 |
| 19067 | ac_status=$? |
| 19068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19069 | (exit $ac_status); }; }; then |
| 19070 | ac_hi=-1 ac_mid=-1 |
| 19071 | while :; do |
| 19072 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19073 | /* confdefs.h. */ |
| 19074 | _ACEOF |
| 19075 | cat confdefs.h >>conftest.$ac_ext |
| 19076 | cat >>conftest.$ac_ext <<_ACEOF |
| 19077 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19078 | #include <wchar.h> |
| 19079 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19080 | int |
| 19081 | main () |
| 19082 | { |
| 19083 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 19084 | test_array [0] = 0 |
| 19085 | |
| 19086 | ; |
| 19087 | return 0; |
| 19088 | } |
| 19089 | _ACEOF |
| 19090 | rm -f conftest.$ac_objext |
| 19091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19092 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19093 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19094 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19095 | rm -f conftest.er1 |
| 19096 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19098 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19099 | { ac_try='test -z "$ac_c_werror_flag" |
| 19100 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19102 | (eval $ac_try) 2>&5 |
| 19103 | ac_status=$? |
| 19104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19105 | (exit $ac_status); }; } && |
| 19106 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19108 | (eval $ac_try) 2>&5 |
| 19109 | ac_status=$? |
| 19110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19111 | (exit $ac_status); }; }; then |
| 19112 | ac_lo=$ac_mid; break |
| 19113 | else |
| 19114 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19116 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19117 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19118 | if test $ac_mid -le $ac_hi; then |
| 19119 | ac_lo= ac_hi= |
| 19120 | break |
| 19121 | fi |
| 19122 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19123 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19124 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19125 | done |
| 19126 | else |
| 19127 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19128 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19129 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19130 | ac_lo= ac_hi= |
| 19131 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19132 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
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 | # Binary search between lo and hi bounds. |
| 19136 | while test "x$ac_lo" != "x$ac_hi"; do |
| 19137 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 19138 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19139 | /* confdefs.h. */ |
| 19140 | _ACEOF |
| 19141 | cat confdefs.h >>conftest.$ac_ext |
| 19142 | cat >>conftest.$ac_ext <<_ACEOF |
| 19143 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19144 | #include <wchar.h> |
| 19145 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19146 | int |
| 19147 | main () |
| 19148 | { |
| 19149 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 19150 | test_array [0] = 0 |
| 19151 | |
| 19152 | ; |
| 19153 | return 0; |
| 19154 | } |
| 19155 | _ACEOF |
| 19156 | rm -f conftest.$ac_objext |
| 19157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19158 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19159 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19160 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19161 | rm -f conftest.er1 |
| 19162 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19164 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19165 | { ac_try='test -z "$ac_c_werror_flag" |
| 19166 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19168 | (eval $ac_try) 2>&5 |
| 19169 | ac_status=$? |
| 19170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19171 | (exit $ac_status); }; } && |
| 19172 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19174 | (eval $ac_try) 2>&5 |
| 19175 | ac_status=$? |
| 19176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19177 | (exit $ac_status); }; }; then |
| 19178 | ac_hi=$ac_mid |
| 19179 | else |
| 19180 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19182 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19183 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 19184 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19185 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19186 | done |
| 19187 | case $ac_lo in |
| 19188 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19189 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 19190 | See \`config.log' for more details." >&5 |
| 19191 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 19192 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19193 | { (exit 1); exit 1; }; } ;; |
| 19194 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19195 | else |
| 19196 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19197 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 19198 | See \`config.log' for more details." >&5 |
| 19199 | echo "$as_me: error: cannot run test program while cross compiling |
| 19200 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19201 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19202 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19203 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19204 | /* confdefs.h. */ |
| 19205 | _ACEOF |
| 19206 | cat confdefs.h >>conftest.$ac_ext |
| 19207 | cat >>conftest.$ac_ext <<_ACEOF |
| 19208 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19209 | #include <wchar.h> |
| 19210 | |
| 19211 | long longval () { return (long) (sizeof (wchar_t)); } |
| 19212 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19213 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19214 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19215 | int |
| 19216 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19217 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19218 | |
| 19219 | FILE *f = fopen ("conftest.val", "w"); |
| 19220 | if (! f) |
| 19221 | exit (1); |
| 19222 | if (((long) (sizeof (wchar_t))) < 0) |
| 19223 | { |
| 19224 | long i = longval (); |
| 19225 | if (i != ((long) (sizeof (wchar_t)))) |
| 19226 | exit (1); |
| 19227 | fprintf (f, "%ld\n", i); |
| 19228 | } |
| 19229 | else |
| 19230 | { |
| 19231 | unsigned long i = ulongval (); |
| 19232 | if (i != ((long) (sizeof (wchar_t)))) |
| 19233 | exit (1); |
| 19234 | fprintf (f, "%lu\n", i); |
| 19235 | } |
| 19236 | exit (ferror (f) || fclose (f) != 0); |
| 19237 | |
| 19238 | ; |
| 19239 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19240 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19241 | _ACEOF |
| 19242 | rm -f conftest$ac_exeext |
| 19243 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19244 | (eval $ac_link) 2>&5 |
| 19245 | ac_status=$? |
| 19246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19247 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19249 | (eval $ac_try) 2>&5 |
| 19250 | ac_status=$? |
| 19251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19252 | (exit $ac_status); }; }; then |
| 19253 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19254 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19255 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19256 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19258 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19259 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19260 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 19261 | See \`config.log' for more details." >&5 |
| 19262 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 19263 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19264 | { (exit 1); exit 1; }; } |
| 19265 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19266 | 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] | 19267 | fi |
| 19268 | fi |
| 19269 | rm -f conftest.val |
| 19270 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19271 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19272 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19273 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19274 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 19275 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 19276 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19277 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19278 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19279 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19280 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19281 | fi |
| 19282 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 19283 | echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 19284 | echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6 |
| 19285 | have_ucs4_tcl=no |
| 19286 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19287 | /* confdefs.h. */ |
| 19288 | _ACEOF |
| 19289 | cat confdefs.h >>conftest.$ac_ext |
| 19290 | cat >>conftest.$ac_ext <<_ACEOF |
| 19291 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 19292 | |
| 19293 | #include <tcl.h> |
| 19294 | #if TCL_UTF_MAX != 6 |
| 19295 | # error "NOT UCS4_TCL" |
| 19296 | #endif |
| 19297 | int |
| 19298 | main () |
| 19299 | { |
| 19300 | |
| 19301 | ; |
| 19302 | return 0; |
| 19303 | } |
| 19304 | _ACEOF |
| 19305 | rm -f conftest.$ac_objext |
| 19306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19307 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 19308 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19309 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19310 | rm -f conftest.er1 |
| 19311 | cat conftest.err >&5 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 19312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19313 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19314 | { ac_try='test -z "$ac_c_werror_flag" |
| 19315 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19317 | (eval $ac_try) 2>&5 |
| 19318 | ac_status=$? |
| 19319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19320 | (exit $ac_status); }; } && |
| 19321 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 19322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19323 | (eval $ac_try) 2>&5 |
| 19324 | ac_status=$? |
| 19325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19326 | (exit $ac_status); }; }; then |
| 19327 | |
| 19328 | |
| 19329 | cat >>confdefs.h <<\_ACEOF |
| 19330 | #define HAVE_UCS4_TCL 1 |
| 19331 | _ACEOF |
| 19332 | |
| 19333 | have_ucs4_tcl=yes |
| 19334 | |
| 19335 | else |
| 19336 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19337 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19338 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 19339 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 19341 | echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 19342 | echo "${ECHO_T}$have_ucs4_tcl" >&6 |
| 19343 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19344 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 19345 | if test "$wchar_h" = yes |
| 19346 | then |
| 19347 | # check whether wchar_t is signed or not |
| 19348 | echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 19349 | echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6 |
| 19350 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
| 19351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19352 | else |
| 19353 | |
| 19354 | if test "$cross_compiling" = yes; then |
| 19355 | ac_cv_wchar_t_signed=yes |
| 19356 | else |
| 19357 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19358 | /* confdefs.h. */ |
| 19359 | _ACEOF |
| 19360 | cat confdefs.h >>conftest.$ac_ext |
| 19361 | cat >>conftest.$ac_ext <<_ACEOF |
| 19362 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 19363 | |
| 19364 | #include <wchar.h> |
| 19365 | int main() |
| 19366 | { |
| 19367 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0); |
| 19368 | } |
| 19369 | |
| 19370 | _ACEOF |
| 19371 | rm -f conftest$ac_exeext |
| 19372 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19373 | (eval $ac_link) 2>&5 |
| 19374 | ac_status=$? |
| 19375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19376 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19378 | (eval $ac_try) 2>&5 |
| 19379 | ac_status=$? |
| 19380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19381 | (exit $ac_status); }; }; then |
| 19382 | ac_cv_wchar_t_signed=yes |
| 19383 | else |
| 19384 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19385 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19387 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 19388 | ( exit $ac_status ) |
| 19389 | ac_cv_wchar_t_signed=no |
| 19390 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19391 | 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] | 19392 | fi |
| 19393 | fi |
| 19394 | |
| 19395 | echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 19396 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6 |
| 19397 | fi |
| 19398 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19399 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 19400 | 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] | 19401 | # Check whether --enable-unicode or --disable-unicode was given. |
| 19402 | if test "${enable_unicode+set}" = set; then |
| 19403 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19404 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19405 | else |
| 19406 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19407 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19408 | |
| 19409 | if test $enable_unicode = yes |
| 19410 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 19411 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 19412 | case "$have_ucs4_tcl" in |
| 19413 | yes) enable_unicode="ucs4" |
| 19414 | ;; |
| 19415 | *) enable_unicode="ucs2" |
| 19416 | ;; |
| 19417 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19418 | fi |
| 19419 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 19420 | |
| 19421 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19422 | case "$enable_unicode" in |
| 19423 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19424 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19425 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19426 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19427 | |
| 19428 | ;; |
| 19429 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19430 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19431 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19432 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19433 | |
| 19434 | ;; |
| 19435 | esac |
| 19436 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19437 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19438 | |
| 19439 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 19440 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19441 | if test "$enable_unicode" = "no" |
| 19442 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 19443 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19444 | echo "$as_me:$LINENO: result: not used" >&5 |
| 19445 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19446 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 19447 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19448 | |
| 19449 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19450 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19451 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19452 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 19453 | |
| 19454 | # wchar_t is only usable if it maps to an unsigned type |
| 19455 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 19456 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19457 | then |
| 19458 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19459 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19460 | cat >>confdefs.h <<\_ACEOF |
| 19461 | #define HAVE_USABLE_WCHAR_T 1 |
| 19462 | _ACEOF |
| 19463 | |
| 19464 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19465 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19466 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19467 | |
| 19468 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 19469 | then |
| 19470 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19471 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19472 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19473 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19474 | |
| 19475 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 19476 | then |
| 19477 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19478 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19479 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19480 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19481 | |
| 19482 | else |
| 19483 | PY_UNICODE_TYPE="no type found" |
| 19484 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19485 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 19486 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19487 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19488 | |
| 19489 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19490 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 19491 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 19492 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 19493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19494 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19495 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 19496 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19497 | /* confdefs.h. */ |
| 19498 | _ACEOF |
| 19499 | cat confdefs.h >>conftest.$ac_ext |
| 19500 | cat >>conftest.$ac_ext <<_ACEOF |
| 19501 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19502 | #include <sys/types.h> |
| 19503 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19504 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19505 | int |
| 19506 | main () |
| 19507 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19508 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 19509 | bogus endian macros |
| 19510 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19511 | |
| 19512 | ; |
| 19513 | return 0; |
| 19514 | } |
| 19515 | _ACEOF |
| 19516 | rm -f conftest.$ac_objext |
| 19517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19518 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19519 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19521 | rm -f conftest.er1 |
| 19522 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19524 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19525 | { ac_try='test -z "$ac_c_werror_flag" |
| 19526 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19528 | (eval $ac_try) 2>&5 |
| 19529 | ac_status=$? |
| 19530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19531 | (exit $ac_status); }; } && |
| 19532 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19538 | # 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] | 19539 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19540 | /* confdefs.h. */ |
| 19541 | _ACEOF |
| 19542 | cat confdefs.h >>conftest.$ac_ext |
| 19543 | cat >>conftest.$ac_ext <<_ACEOF |
| 19544 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19545 | #include <sys/types.h> |
| 19546 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19547 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19548 | int |
| 19549 | main () |
| 19550 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19551 | #if BYTE_ORDER != BIG_ENDIAN |
| 19552 | not big endian |
| 19553 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19554 | |
| 19555 | ; |
| 19556 | return 0; |
| 19557 | } |
| 19558 | _ACEOF |
| 19559 | rm -f conftest.$ac_objext |
| 19560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19561 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19562 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19563 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19564 | rm -f conftest.er1 |
| 19565 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19567 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19568 | { ac_try='test -z "$ac_c_werror_flag" |
| 19569 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19571 | (eval $ac_try) 2>&5 |
| 19572 | ac_status=$? |
| 19573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19574 | (exit $ac_status); }; } && |
| 19575 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19577 | (eval $ac_try) 2>&5 |
| 19578 | ac_status=$? |
| 19579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19580 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19581 | ac_cv_c_bigendian=yes |
| 19582 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19583 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19585 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19586 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19587 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19589 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19590 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19591 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19592 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19593 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19594 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19595 | # 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] | 19596 | ac_cv_c_bigendian=unknown |
| 19597 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19598 | /* confdefs.h. */ |
| 19599 | _ACEOF |
| 19600 | cat confdefs.h >>conftest.$ac_ext |
| 19601 | cat >>conftest.$ac_ext <<_ACEOF |
| 19602 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19603 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 19604 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 19605 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 19606 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 19607 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 19608 | 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] | 19609 | int |
| 19610 | main () |
| 19611 | { |
| 19612 | _ascii (); _ebcdic (); |
| 19613 | ; |
| 19614 | return 0; |
| 19615 | } |
| 19616 | _ACEOF |
| 19617 | rm -f conftest.$ac_objext |
| 19618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19619 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19620 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19622 | rm -f conftest.er1 |
| 19623 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19625 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19626 | { ac_try='test -z "$ac_c_werror_flag" |
| 19627 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19629 | (eval $ac_try) 2>&5 |
| 19630 | ac_status=$? |
| 19631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19632 | (exit $ac_status); }; } && |
| 19633 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19635 | (eval $ac_try) 2>&5 |
| 19636 | ac_status=$? |
| 19637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19638 | (exit $ac_status); }; }; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19639 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19640 | ac_cv_c_bigendian=yes |
| 19641 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19642 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19643 | if test "$ac_cv_c_bigendian" = unknown; then |
| 19644 | ac_cv_c_bigendian=no |
| 19645 | else |
| 19646 | # finding both strings is unlikely to happen, but who knows? |
| 19647 | ac_cv_c_bigendian=unknown |
| 19648 | fi |
| 19649 | fi |
| 19650 | else |
| 19651 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19653 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19654 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19655 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19656 | else |
| 19657 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19658 | /* confdefs.h. */ |
| 19659 | _ACEOF |
| 19660 | cat confdefs.h >>conftest.$ac_ext |
| 19661 | cat >>conftest.$ac_ext <<_ACEOF |
| 19662 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19663 | int |
| 19664 | main () |
| 19665 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19666 | /* Are we little or big endian? From Harbison&Steele. */ |
| 19667 | union |
| 19668 | { |
| 19669 | long l; |
| 19670 | char c[sizeof (long)]; |
| 19671 | } u; |
| 19672 | u.l = 1; |
| 19673 | exit (u.c[sizeof (long) - 1] == 1); |
| 19674 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19675 | _ACEOF |
| 19676 | rm -f conftest$ac_exeext |
| 19677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19678 | (eval $ac_link) 2>&5 |
| 19679 | ac_status=$? |
| 19680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19681 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19683 | (eval $ac_try) 2>&5 |
| 19684 | ac_status=$? |
| 19685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19686 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19687 | ac_cv_c_bigendian=no |
| 19688 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19689 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19690 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19692 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19693 | ( exit $ac_status ) |
| 19694 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19695 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19696 | 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] | 19697 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19698 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19699 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19700 | fi |
| 19701 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 19702 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 19703 | case $ac_cv_c_bigendian in |
| 19704 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19705 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19706 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19707 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19708 | _ACEOF |
| 19709 | ;; |
| 19710 | no) |
| 19711 | ;; |
| 19712 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19713 | { { echo "$as_me:$LINENO: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19714 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19715 | echo "$as_me: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19716 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 19717 | { (exit 1); exit 1; }; } ;; |
| 19718 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19719 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19720 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19721 | # Check whether right shifting a negative integer extends the sign bit |
| 19722 | # 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] | 19723 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 19724 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 19725 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 19726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19727 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19728 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19729 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 19730 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19731 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19732 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19733 | /* confdefs.h. */ |
| 19734 | _ACEOF |
| 19735 | cat confdefs.h >>conftest.$ac_ext |
| 19736 | cat >>conftest.$ac_ext <<_ACEOF |
| 19737 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19738 | |
| 19739 | int main() |
| 19740 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19741 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19742 | } |
| 19743 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19744 | _ACEOF |
| 19745 | rm -f conftest$ac_exeext |
| 19746 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19747 | (eval $ac_link) 2>&5 |
| 19748 | ac_status=$? |
| 19749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19750 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19752 | (eval $ac_try) 2>&5 |
| 19753 | ac_status=$? |
| 19754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19755 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19756 | ac_cv_rshift_extends_sign=yes |
| 19757 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19758 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19759 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19761 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19762 | ( exit $ac_status ) |
| 19763 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19764 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19765 | 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] | 19766 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19767 | fi |
| 19768 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19769 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 19770 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19771 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19772 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19773 | |
| 19774 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19775 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19776 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19777 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19778 | fi |
| 19779 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19780 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19781 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 19782 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 19783 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 19784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19785 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19786 | |
| 19787 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19788 | /* confdefs.h. */ |
| 19789 | _ACEOF |
| 19790 | cat confdefs.h >>conftest.$ac_ext |
| 19791 | cat >>conftest.$ac_ext <<_ACEOF |
| 19792 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19793 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19794 | int |
| 19795 | main () |
| 19796 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19797 | |
| 19798 | FILE *f = fopen("/dev/null", "r"); |
| 19799 | flockfile(f); |
| 19800 | getc_unlocked(f); |
| 19801 | funlockfile(f); |
| 19802 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19803 | ; |
| 19804 | return 0; |
| 19805 | } |
| 19806 | _ACEOF |
| 19807 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19808 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19809 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19810 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19812 | rm -f conftest.er1 |
| 19813 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19815 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19816 | { ac_try='test -z "$ac_c_werror_flag" |
| 19817 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19819 | (eval $ac_try) 2>&5 |
| 19820 | ac_status=$? |
| 19821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19822 | (exit $ac_status); }; } && |
| 19823 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19825 | (eval $ac_try) 2>&5 |
| 19826 | ac_status=$? |
| 19827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19828 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19829 | ac_cv_have_getc_unlocked=yes |
| 19830 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19831 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19833 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19834 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19835 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19836 | rm -f conftest.err conftest.$ac_objext \ |
| 19837 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19838 | fi |
| 19839 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19840 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 19841 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19842 | if test "$ac_cv_have_getc_unlocked" = yes |
| 19843 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19844 | |
| 19845 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19846 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19847 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19848 | |
| 19849 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19850 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 19851 | # check where readline lives |
| 19852 | |
| 19853 | echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
| 19854 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 |
| 19855 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
| 19856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19857 | else |
| 19858 | ac_check_lib_save_LIBS=$LIBS |
| 19859 | LIBS="-lreadline $LIBS" |
| 19860 | cat >conftest.$ac_ext <<_ACEOF |
| 19861 | /* confdefs.h. */ |
| 19862 | _ACEOF |
| 19863 | cat confdefs.h >>conftest.$ac_ext |
| 19864 | cat >>conftest.$ac_ext <<_ACEOF |
| 19865 | /* end confdefs.h. */ |
| 19866 | |
| 19867 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19868 | #ifdef __cplusplus |
| 19869 | extern "C" |
| 19870 | #endif |
| 19871 | /* We use char because int might match the return type of a gcc2 |
| 19872 | builtin and then its argument prototype would still apply. */ |
| 19873 | char readline (); |
| 19874 | int |
| 19875 | main () |
| 19876 | { |
| 19877 | readline (); |
| 19878 | ; |
| 19879 | return 0; |
| 19880 | } |
| 19881 | _ACEOF |
| 19882 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19883 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19884 | (eval $ac_link) 2>conftest.er1 |
| 19885 | ac_status=$? |
| 19886 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19887 | rm -f conftest.er1 |
| 19888 | cat conftest.err >&5 |
| 19889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19890 | (exit $ac_status); } && |
| 19891 | { ac_try='test -z "$ac_c_werror_flag" |
| 19892 | || test ! -s conftest.err' |
| 19893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19894 | (eval $ac_try) 2>&5 |
| 19895 | ac_status=$? |
| 19896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19897 | (exit $ac_status); }; } && |
| 19898 | { ac_try='test -s conftest$ac_exeext' |
| 19899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19900 | (eval $ac_try) 2>&5 |
| 19901 | ac_status=$? |
| 19902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19903 | (exit $ac_status); }; }; then |
| 19904 | ac_cv_lib_readline_readline=yes |
| 19905 | else |
| 19906 | echo "$as_me: failed program was:" >&5 |
| 19907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19908 | |
| 19909 | ac_cv_lib_readline_readline=no |
| 19910 | fi |
| 19911 | rm -f conftest.err conftest.$ac_objext \ |
| 19912 | conftest$ac_exeext conftest.$ac_ext |
| 19913 | LIBS=$ac_check_lib_save_LIBS |
| 19914 | fi |
| 19915 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
| 19916 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 |
| 19917 | if test $ac_cv_lib_readline_readline = yes; then |
| 19918 | cat >>confdefs.h <<_ACEOF |
| 19919 | #define HAVE_LIBREADLINE 1 |
| 19920 | _ACEOF |
| 19921 | |
| 19922 | LIBS="-lreadline $LIBS" |
| 19923 | |
| 19924 | fi |
| 19925 | |
| 19926 | if test "$ac_cv_have_readline_readline" = no |
| 19927 | then |
| 19928 | |
| 19929 | echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5 |
| 19930 | echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6 |
| 19931 | if test "${ac_cv_lib_termcap_readline+set}" = set; then |
| 19932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19933 | else |
| 19934 | ac_check_lib_save_LIBS=$LIBS |
| 19935 | LIBS="-ltermcap $LIBS" |
| 19936 | cat >conftest.$ac_ext <<_ACEOF |
| 19937 | /* confdefs.h. */ |
| 19938 | _ACEOF |
| 19939 | cat confdefs.h >>conftest.$ac_ext |
| 19940 | cat >>conftest.$ac_ext <<_ACEOF |
| 19941 | /* end confdefs.h. */ |
| 19942 | |
| 19943 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19944 | #ifdef __cplusplus |
| 19945 | extern "C" |
| 19946 | #endif |
| 19947 | /* We use char because int might match the return type of a gcc2 |
| 19948 | builtin and then its argument prototype would still apply. */ |
| 19949 | char readline (); |
| 19950 | int |
| 19951 | main () |
| 19952 | { |
| 19953 | readline (); |
| 19954 | ; |
| 19955 | return 0; |
| 19956 | } |
| 19957 | _ACEOF |
| 19958 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19959 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19960 | (eval $ac_link) 2>conftest.er1 |
| 19961 | ac_status=$? |
| 19962 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19963 | rm -f conftest.er1 |
| 19964 | cat conftest.err >&5 |
| 19965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19966 | (exit $ac_status); } && |
| 19967 | { ac_try='test -z "$ac_c_werror_flag" |
| 19968 | || test ! -s conftest.err' |
| 19969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19970 | (eval $ac_try) 2>&5 |
| 19971 | ac_status=$? |
| 19972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19973 | (exit $ac_status); }; } && |
| 19974 | { ac_try='test -s conftest$ac_exeext' |
| 19975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19976 | (eval $ac_try) 2>&5 |
| 19977 | ac_status=$? |
| 19978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19979 | (exit $ac_status); }; }; then |
| 19980 | ac_cv_lib_termcap_readline=yes |
| 19981 | else |
| 19982 | echo "$as_me: failed program was:" >&5 |
| 19983 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19984 | |
| 19985 | ac_cv_lib_termcap_readline=no |
| 19986 | fi |
| 19987 | rm -f conftest.err conftest.$ac_objext \ |
| 19988 | conftest$ac_exeext conftest.$ac_ext |
| 19989 | LIBS=$ac_check_lib_save_LIBS |
| 19990 | fi |
| 19991 | echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5 |
| 19992 | echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6 |
| 19993 | if test $ac_cv_lib_termcap_readline = yes; then |
| 19994 | cat >>confdefs.h <<_ACEOF |
| 19995 | #define HAVE_LIBTERMCAP 1 |
| 19996 | _ACEOF |
| 19997 | |
| 19998 | LIBS="-ltermcap $LIBS" |
| 19999 | |
| 20000 | fi |
| 20001 | |
| 20002 | fi |
| 20003 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20004 | # check for readline 2.1 |
| 20005 | echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 20006 | echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6 |
| 20007 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then |
| 20008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20009 | else |
| 20010 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 20011 | LIBS="-lreadline $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20012 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20013 | /* confdefs.h. */ |
| 20014 | _ACEOF |
| 20015 | cat confdefs.h >>conftest.$ac_ext |
| 20016 | cat >>conftest.$ac_ext <<_ACEOF |
| 20017 | /* end confdefs.h. */ |
| 20018 | |
| 20019 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 20020 | #ifdef __cplusplus |
| 20021 | extern "C" |
| 20022 | #endif |
| 20023 | /* We use char because int might match the return type of a gcc2 |
| 20024 | builtin and then its argument prototype would still apply. */ |
| 20025 | char rl_callback_handler_install (); |
| 20026 | int |
| 20027 | main () |
| 20028 | { |
| 20029 | rl_callback_handler_install (); |
| 20030 | ; |
| 20031 | return 0; |
| 20032 | } |
| 20033 | _ACEOF |
| 20034 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20035 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20036 | (eval $ac_link) 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20037 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20039 | rm -f conftest.er1 |
| 20040 | cat conftest.err >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20042 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20043 | { ac_try='test -z "$ac_c_werror_flag" |
| 20044 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20046 | (eval $ac_try) 2>&5 |
| 20047 | ac_status=$? |
| 20048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20049 | (exit $ac_status); }; } && |
| 20050 | { ac_try='test -s conftest$ac_exeext' |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20052 | (eval $ac_try) 2>&5 |
| 20053 | ac_status=$? |
| 20054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20055 | (exit $ac_status); }; }; then |
| 20056 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 20057 | else |
| 20058 | echo "$as_me: failed program was:" >&5 |
| 20059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20060 | |
| 20061 | ac_cv_lib_readline_rl_callback_handler_install=no |
| 20062 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20063 | rm -f conftest.err conftest.$ac_objext \ |
| 20064 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20065 | LIBS=$ac_check_lib_save_LIBS |
| 20066 | fi |
| 20067 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 20068 | echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6 |
| 20069 | if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then |
| 20070 | |
| 20071 | cat >>confdefs.h <<\_ACEOF |
| 20072 | #define HAVE_RL_CALLBACK 1 |
| 20073 | _ACEOF |
| 20074 | |
| 20075 | fi |
| 20076 | |
| 20077 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 20078 | # check for readline 2.2 |
| 20079 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20080 | /* confdefs.h. */ |
| 20081 | _ACEOF |
| 20082 | cat confdefs.h >>conftest.$ac_ext |
| 20083 | cat >>conftest.$ac_ext <<_ACEOF |
| 20084 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 20085 | #include <readline/readline.h> |
| 20086 | _ACEOF |
| 20087 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 20088 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20089 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20090 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 20091 | rm -f conftest.er1 |
| 20092 | cat conftest.err >&5 |
| 20093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20094 | (exit $ac_status); } >/dev/null; then |
| 20095 | if test -s conftest.err; then |
| 20096 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20097 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 20098 | else |
| 20099 | ac_cpp_err= |
| 20100 | fi |
| 20101 | else |
| 20102 | ac_cpp_err=yes |
| 20103 | fi |
| 20104 | if test -z "$ac_cpp_err"; then |
| 20105 | have_readline=yes |
| 20106 | else |
| 20107 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20109 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 20110 | have_readline=no |
| 20111 | fi |
| 20112 | rm -f conftest.err conftest.$ac_ext |
| 20113 | if test $have_readline = yes |
| 20114 | then |
| 20115 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20116 | /* confdefs.h. */ |
| 20117 | _ACEOF |
| 20118 | cat confdefs.h >>conftest.$ac_ext |
| 20119 | cat >>conftest.$ac_ext <<_ACEOF |
| 20120 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 20121 | #include <readline/readline.h> |
| 20122 | |
| 20123 | _ACEOF |
| 20124 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20125 | $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] | 20126 | |
| 20127 | cat >>confdefs.h <<\_ACEOF |
| 20128 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 20129 | _ACEOF |
| 20130 | |
| 20131 | fi |
| 20132 | rm -f conftest* |
| 20133 | |
| 20134 | fi |
| 20135 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20136 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20137 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 20138 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 20139 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 20140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 20141 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20142 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 20143 | LIBS="-lreadline $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20144 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20145 | /* confdefs.h. */ |
| 20146 | _ACEOF |
| 20147 | cat confdefs.h >>conftest.$ac_ext |
| 20148 | cat >>conftest.$ac_ext <<_ACEOF |
| 20149 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20150 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 20151 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20152 | #ifdef __cplusplus |
| 20153 | extern "C" |
| 20154 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 20155 | /* 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] | 20156 | builtin and then its argument prototype would still apply. */ |
| 20157 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20158 | int |
| 20159 | main () |
| 20160 | { |
| 20161 | rl_pre_input_hook (); |
| 20162 | ; |
| 20163 | return 0; |
| 20164 | } |
| 20165 | _ACEOF |
| 20166 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20167 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20168 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20169 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20170 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20171 | rm -f conftest.er1 |
| 20172 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20174 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20175 | { ac_try='test -z "$ac_c_werror_flag" |
| 20176 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20178 | (eval $ac_try) 2>&5 |
| 20179 | ac_status=$? |
| 20180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20181 | (exit $ac_status); }; } && |
| 20182 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20184 | (eval $ac_try) 2>&5 |
| 20185 | ac_status=$? |
| 20186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20187 | (exit $ac_status); }; }; then |
| 20188 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20189 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20190 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20191 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20192 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20193 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20194 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20195 | rm -f conftest.err conftest.$ac_objext \ |
| 20196 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20197 | LIBS=$ac_check_lib_save_LIBS |
| 20198 | fi |
| 20199 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 20200 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 20201 | 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] | 20202 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20203 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20204 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20205 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20206 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20207 | fi |
| 20208 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20209 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20210 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20211 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 20212 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 20213 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 20214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20215 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20216 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 20217 | LIBS="-lreadline $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20218 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20219 | /* confdefs.h. */ |
| 20220 | _ACEOF |
| 20221 | cat confdefs.h >>conftest.$ac_ext |
| 20222 | cat >>conftest.$ac_ext <<_ACEOF |
| 20223 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20224 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20225 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20226 | #ifdef __cplusplus |
| 20227 | extern "C" |
| 20228 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20229 | /* 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] | 20230 | builtin and then its argument prototype would still apply. */ |
| 20231 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20232 | int |
| 20233 | main () |
| 20234 | { |
| 20235 | rl_completion_matches (); |
| 20236 | ; |
| 20237 | return 0; |
| 20238 | } |
| 20239 | _ACEOF |
| 20240 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20242 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20243 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20244 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20245 | rm -f conftest.er1 |
| 20246 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20248 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20249 | { ac_try='test -z "$ac_c_werror_flag" |
| 20250 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20252 | (eval $ac_try) 2>&5 |
| 20253 | ac_status=$? |
| 20254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20255 | (exit $ac_status); }; } && |
| 20256 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20258 | (eval $ac_try) 2>&5 |
| 20259 | ac_status=$? |
| 20260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20261 | (exit $ac_status); }; }; then |
| 20262 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 20263 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20264 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20266 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20267 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 20268 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20269 | rm -f conftest.err conftest.$ac_objext \ |
| 20270 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20271 | LIBS=$ac_check_lib_save_LIBS |
| 20272 | fi |
| 20273 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 20274 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 20275 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20276 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20277 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 20278 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20279 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 20280 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 20281 | fi |
| 20282 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20283 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20284 | # also in readline 4.2 |
| 20285 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20286 | /* confdefs.h. */ |
| 20287 | _ACEOF |
| 20288 | cat confdefs.h >>conftest.$ac_ext |
| 20289 | cat >>conftest.$ac_ext <<_ACEOF |
| 20290 | /* end confdefs.h. */ |
| 20291 | #include <readline/readline.h> |
| 20292 | _ACEOF |
| 20293 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 20294 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20295 | ac_status=$? |
| 20296 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20297 | rm -f conftest.er1 |
| 20298 | cat conftest.err >&5 |
| 20299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20300 | (exit $ac_status); } >/dev/null; then |
| 20301 | if test -s conftest.err; then |
| 20302 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20303 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20304 | else |
| 20305 | ac_cpp_err= |
| 20306 | fi |
| 20307 | else |
| 20308 | ac_cpp_err=yes |
| 20309 | fi |
| 20310 | if test -z "$ac_cpp_err"; then |
| 20311 | have_readline=yes |
| 20312 | else |
| 20313 | echo "$as_me: failed program was:" >&5 |
| 20314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20315 | |
| 20316 | have_readline=no |
| 20317 | fi |
| 20318 | rm -f conftest.err conftest.$ac_ext |
| 20319 | if test $have_readline = yes |
| 20320 | then |
| 20321 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20322 | /* confdefs.h. */ |
| 20323 | _ACEOF |
| 20324 | cat confdefs.h >>conftest.$ac_ext |
| 20325 | cat >>conftest.$ac_ext <<_ACEOF |
| 20326 | /* end confdefs.h. */ |
| 20327 | #include <readline/readline.h> |
| 20328 | |
| 20329 | _ACEOF |
| 20330 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 20331 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 20332 | |
| 20333 | cat >>confdefs.h <<\_ACEOF |
| 20334 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 20335 | _ACEOF |
| 20336 | |
| 20337 | fi |
| 20338 | rm -f conftest* |
| 20339 | |
| 20340 | fi |
| 20341 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20342 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 20343 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 20344 | if test "${ac_cv_broken_nice+set}" = set; then |
| 20345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20346 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20347 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 20348 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 20349 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 20350 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20351 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20352 | /* confdefs.h. */ |
| 20353 | _ACEOF |
| 20354 | cat confdefs.h >>conftest.$ac_ext |
| 20355 | cat >>conftest.$ac_ext <<_ACEOF |
| 20356 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 20357 | |
| 20358 | int main() |
| 20359 | { |
| 20360 | int val1 = nice(1); |
| 20361 | if (val1 != -1 && val1 == nice(2)) |
| 20362 | exit(0); |
| 20363 | exit(1); |
| 20364 | } |
| 20365 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20366 | _ACEOF |
| 20367 | rm -f conftest$ac_exeext |
| 20368 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20369 | (eval $ac_link) 2>&5 |
| 20370 | ac_status=$? |
| 20371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20372 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20374 | (eval $ac_try) 2>&5 |
| 20375 | ac_status=$? |
| 20376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20377 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 20378 | ac_cv_broken_nice=yes |
| 20379 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20380 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20381 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20382 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20383 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20384 | ( exit $ac_status ) |
| 20385 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 20386 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20387 | 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] | 20388 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 20389 | fi |
| 20390 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20391 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 20392 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 20393 | if test "$ac_cv_broken_nice" = yes |
| 20394 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20395 | |
| 20396 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 20397 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20398 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 20399 | |
| 20400 | fi |
| 20401 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 20402 | echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 20403 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6 |
| 20404 | if test "$cross_compiling" = yes; then |
| 20405 | ac_cv_broken_poll=no |
| 20406 | else |
| 20407 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 20408 | /* confdefs.h. */ |
| 20409 | _ACEOF |
| 20410 | cat confdefs.h >>conftest.$ac_ext |
| 20411 | cat >>conftest.$ac_ext <<_ACEOF |
| 20412 | /* end confdefs.h. */ |
| 20413 | |
| 20414 | #include <poll.h> |
| 20415 | |
| 20416 | int main (void) |
| 20417 | { |
| 20418 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
| 20419 | |
| 20420 | close (42); |
| 20421 | |
| 20422 | int poll_test = poll (&poll_struct, 1, 0); |
| 20423 | |
| 20424 | if (poll_test < 0) |
| 20425 | { |
| 20426 | exit(0); |
| 20427 | } |
| 20428 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
| 20429 | { |
| 20430 | exit(0); |
| 20431 | } |
| 20432 | else |
| 20433 | { |
| 20434 | exit(1); |
| 20435 | } |
| 20436 | } |
| 20437 | |
| 20438 | _ACEOF |
| 20439 | rm -f conftest$ac_exeext |
| 20440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20441 | (eval $ac_link) 2>&5 |
| 20442 | ac_status=$? |
| 20443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20444 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20446 | (eval $ac_try) 2>&5 |
| 20447 | ac_status=$? |
| 20448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20449 | (exit $ac_status); }; }; then |
| 20450 | ac_cv_broken_poll=yes |
| 20451 | else |
| 20452 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20453 | echo "$as_me: failed program was:" >&5 |
| 20454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20455 | |
| 20456 | ( exit $ac_status ) |
| 20457 | ac_cv_broken_poll=no |
| 20458 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20459 | 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] | 20460 | fi |
| 20461 | echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 20462 | echo "${ECHO_T}$ac_cv_broken_poll" >&6 |
| 20463 | if test "$ac_cv_broken_poll" = yes |
| 20464 | then |
| 20465 | |
| 20466 | cat >>confdefs.h <<\_ACEOF |
| 20467 | #define HAVE_BROKEN_POLL 1 |
| 20468 | _ACEOF |
| 20469 | |
| 20470 | fi |
| 20471 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20472 | # Before we can test tzset, we need to check if struct tm has a tm_zone |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 20473 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 20474 | # tzname[] |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20475 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 20476 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 20477 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 20478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20479 | else |
| 20480 | cat >conftest.$ac_ext <<_ACEOF |
| 20481 | /* confdefs.h. */ |
| 20482 | _ACEOF |
| 20483 | cat confdefs.h >>conftest.$ac_ext |
| 20484 | cat >>conftest.$ac_ext <<_ACEOF |
| 20485 | /* end confdefs.h. */ |
| 20486 | #include <sys/types.h> |
| 20487 | #include <$ac_cv_struct_tm> |
| 20488 | |
| 20489 | |
| 20490 | int |
| 20491 | main () |
| 20492 | { |
| 20493 | static struct tm ac_aggr; |
| 20494 | if (ac_aggr.tm_zone) |
| 20495 | return 0; |
| 20496 | ; |
| 20497 | return 0; |
| 20498 | } |
| 20499 | _ACEOF |
| 20500 | rm -f conftest.$ac_objext |
| 20501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20502 | (eval $ac_compile) 2>conftest.er1 |
| 20503 | ac_status=$? |
| 20504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20505 | rm -f conftest.er1 |
| 20506 | cat conftest.err >&5 |
| 20507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20508 | (exit $ac_status); } && |
| 20509 | { ac_try='test -z "$ac_c_werror_flag" |
| 20510 | || test ! -s conftest.err' |
| 20511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20512 | (eval $ac_try) 2>&5 |
| 20513 | ac_status=$? |
| 20514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20515 | (exit $ac_status); }; } && |
| 20516 | { ac_try='test -s conftest.$ac_objext' |
| 20517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20518 | (eval $ac_try) 2>&5 |
| 20519 | ac_status=$? |
| 20520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20521 | (exit $ac_status); }; }; then |
| 20522 | ac_cv_member_struct_tm_tm_zone=yes |
| 20523 | else |
| 20524 | echo "$as_me: failed program was:" >&5 |
| 20525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20526 | |
| 20527 | cat >conftest.$ac_ext <<_ACEOF |
| 20528 | /* confdefs.h. */ |
| 20529 | _ACEOF |
| 20530 | cat confdefs.h >>conftest.$ac_ext |
| 20531 | cat >>conftest.$ac_ext <<_ACEOF |
| 20532 | /* end confdefs.h. */ |
| 20533 | #include <sys/types.h> |
| 20534 | #include <$ac_cv_struct_tm> |
| 20535 | |
| 20536 | |
| 20537 | int |
| 20538 | main () |
| 20539 | { |
| 20540 | static struct tm ac_aggr; |
| 20541 | if (sizeof ac_aggr.tm_zone) |
| 20542 | return 0; |
| 20543 | ; |
| 20544 | return 0; |
| 20545 | } |
| 20546 | _ACEOF |
| 20547 | rm -f conftest.$ac_objext |
| 20548 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20549 | (eval $ac_compile) 2>conftest.er1 |
| 20550 | ac_status=$? |
| 20551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20552 | rm -f conftest.er1 |
| 20553 | cat conftest.err >&5 |
| 20554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20555 | (exit $ac_status); } && |
| 20556 | { ac_try='test -z "$ac_c_werror_flag" |
| 20557 | || test ! -s conftest.err' |
| 20558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20559 | (eval $ac_try) 2>&5 |
| 20560 | ac_status=$? |
| 20561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20562 | (exit $ac_status); }; } && |
| 20563 | { ac_try='test -s conftest.$ac_objext' |
| 20564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20565 | (eval $ac_try) 2>&5 |
| 20566 | ac_status=$? |
| 20567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20568 | (exit $ac_status); }; }; then |
| 20569 | ac_cv_member_struct_tm_tm_zone=yes |
| 20570 | else |
| 20571 | echo "$as_me: failed program was:" >&5 |
| 20572 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20573 | |
| 20574 | ac_cv_member_struct_tm_tm_zone=no |
| 20575 | fi |
| 20576 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20577 | fi |
| 20578 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20579 | fi |
| 20580 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 20581 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 20582 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 20583 | |
| 20584 | cat >>confdefs.h <<_ACEOF |
| 20585 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 20586 | _ACEOF |
| 20587 | |
| 20588 | |
| 20589 | fi |
| 20590 | |
| 20591 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 20592 | |
| 20593 | cat >>confdefs.h <<\_ACEOF |
| 20594 | #define HAVE_TM_ZONE 1 |
| 20595 | _ACEOF |
| 20596 | |
| 20597 | else |
| 20598 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 20599 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 20600 | if test "${ac_cv_var_tzname+set}" = set; then |
| 20601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20602 | else |
| 20603 | cat >conftest.$ac_ext <<_ACEOF |
| 20604 | /* confdefs.h. */ |
| 20605 | _ACEOF |
| 20606 | cat confdefs.h >>conftest.$ac_ext |
| 20607 | cat >>conftest.$ac_ext <<_ACEOF |
| 20608 | /* end confdefs.h. */ |
| 20609 | #include <time.h> |
| 20610 | #ifndef tzname /* For SGI. */ |
| 20611 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
| 20612 | #endif |
| 20613 | |
| 20614 | int |
| 20615 | main () |
| 20616 | { |
| 20617 | atoi(*tzname); |
| 20618 | ; |
| 20619 | return 0; |
| 20620 | } |
| 20621 | _ACEOF |
| 20622 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20623 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20624 | (eval $ac_link) 2>conftest.er1 |
| 20625 | ac_status=$? |
| 20626 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20627 | rm -f conftest.er1 |
| 20628 | cat conftest.err >&5 |
| 20629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20630 | (exit $ac_status); } && |
| 20631 | { ac_try='test -z "$ac_c_werror_flag" |
| 20632 | || test ! -s conftest.err' |
| 20633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20634 | (eval $ac_try) 2>&5 |
| 20635 | ac_status=$? |
| 20636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20637 | (exit $ac_status); }; } && |
| 20638 | { ac_try='test -s conftest$ac_exeext' |
| 20639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20640 | (eval $ac_try) 2>&5 |
| 20641 | ac_status=$? |
| 20642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20643 | (exit $ac_status); }; }; then |
| 20644 | ac_cv_var_tzname=yes |
| 20645 | else |
| 20646 | echo "$as_me: failed program was:" >&5 |
| 20647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20648 | |
| 20649 | ac_cv_var_tzname=no |
| 20650 | fi |
| 20651 | rm -f conftest.err conftest.$ac_objext \ |
| 20652 | conftest$ac_exeext conftest.$ac_ext |
| 20653 | fi |
| 20654 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 20655 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
| 20656 | if test $ac_cv_var_tzname = yes; then |
| 20657 | |
| 20658 | cat >>confdefs.h <<\_ACEOF |
| 20659 | #define HAVE_TZNAME 1 |
| 20660 | _ACEOF |
| 20661 | |
| 20662 | fi |
| 20663 | fi |
| 20664 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 20665 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 20666 | # check tzset(3) exists and works like we expect it to |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20667 | echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 20668 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6 |
| 20669 | if test "${ac_cv_working_tzset+set}" = set; then |
| 20670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20671 | else |
| 20672 | |
| 20673 | if test "$cross_compiling" = yes; then |
| 20674 | ac_cv_working_tzset=no |
| 20675 | else |
| 20676 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20677 | /* confdefs.h. */ |
| 20678 | _ACEOF |
| 20679 | cat confdefs.h >>conftest.$ac_ext |
| 20680 | cat >>conftest.$ac_ext <<_ACEOF |
| 20681 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20682 | |
| 20683 | #include <stdlib.h> |
| 20684 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20685 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20686 | |
| 20687 | #if HAVE_TZNAME |
| 20688 | extern char *tzname[]; |
| 20689 | #endif |
| 20690 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20691 | int main() |
| 20692 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20693 | /* Note that we need to ensure that not only does tzset(3) |
| 20694 | do 'something' with localtime, but it works as documented |
| 20695 | in the library reference and as expected by the test suite. |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 20696 | This includes making sure that tzname is set properly if |
| 20697 | tm->tm_zone does not exist since it is the alternative way |
| 20698 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20699 | |
| 20700 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 20701 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20702 | */ |
| 20703 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 20704 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20705 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 20706 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 20707 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20708 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20709 | if (localtime(&groundhogday)->tm_hour != 0) |
| 20710 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20711 | #if HAVE_TZNAME |
| 20712 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 20713 | if (strcmp(tzname[0], "UTC") || |
| 20714 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 20715 | exit(1); |
| 20716 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20717 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 20718 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20719 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20720 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20721 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20722 | #if HAVE_TZNAME |
| 20723 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 20724 | exit(1); |
| 20725 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20726 | |
| 20727 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 20728 | tzset(); |
| 20729 | if (localtime(&groundhogday)->tm_hour != 11) |
| 20730 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20731 | #if HAVE_TZNAME |
| 20732 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 20733 | exit(1); |
| 20734 | #endif |
| 20735 | |
| 20736 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20737 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 20738 | exit(1); |
| 20739 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 20740 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20741 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20742 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20743 | exit(0); |
| 20744 | } |
| 20745 | |
| 20746 | _ACEOF |
| 20747 | rm -f conftest$ac_exeext |
| 20748 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20749 | (eval $ac_link) 2>&5 |
| 20750 | ac_status=$? |
| 20751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20752 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20754 | (eval $ac_try) 2>&5 |
| 20755 | ac_status=$? |
| 20756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20757 | (exit $ac_status); }; }; then |
| 20758 | ac_cv_working_tzset=yes |
| 20759 | else |
| 20760 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20761 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20763 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20764 | ( exit $ac_status ) |
| 20765 | ac_cv_working_tzset=no |
| 20766 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20767 | 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] | 20768 | fi |
| 20769 | fi |
| 20770 | |
| 20771 | echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 20772 | echo "${ECHO_T}$ac_cv_working_tzset" >&6 |
| 20773 | if test "$ac_cv_working_tzset" = yes |
| 20774 | then |
| 20775 | |
| 20776 | cat >>confdefs.h <<\_ACEOF |
| 20777 | #define HAVE_WORKING_TZSET 1 |
| 20778 | _ACEOF |
| 20779 | |
| 20780 | fi |
| 20781 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20782 | # Look for subsecond timestamps in struct stat |
| 20783 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 20784 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 20785 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 20786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20787 | else |
| 20788 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20789 | /* confdefs.h. */ |
| 20790 | _ACEOF |
| 20791 | cat confdefs.h >>conftest.$ac_ext |
| 20792 | cat >>conftest.$ac_ext <<_ACEOF |
| 20793 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20794 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20795 | int |
| 20796 | main () |
| 20797 | { |
| 20798 | |
| 20799 | struct stat st; |
| 20800 | st.st_mtim.tv_nsec = 1; |
| 20801 | |
| 20802 | ; |
| 20803 | return 0; |
| 20804 | } |
| 20805 | _ACEOF |
| 20806 | rm -f conftest.$ac_objext |
| 20807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20808 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20809 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20810 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20811 | rm -f conftest.er1 |
| 20812 | cat conftest.err >&5 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20814 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20815 | { ac_try='test -z "$ac_c_werror_flag" |
| 20816 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20818 | (eval $ac_try) 2>&5 |
| 20819 | ac_status=$? |
| 20820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20821 | (exit $ac_status); }; } && |
| 20822 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20824 | (eval $ac_try) 2>&5 |
| 20825 | ac_status=$? |
| 20826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20827 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 20828 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20829 | else |
| 20830 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20831 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20832 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20833 | ac_cv_stat_tv_nsec=no |
| 20834 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20835 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20836 | fi |
| 20837 | |
| 20838 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 20839 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 20840 | if test "$ac_cv_stat_tv_nsec" = yes |
| 20841 | then |
| 20842 | |
| 20843 | cat >>confdefs.h <<\_ACEOF |
| 20844 | #define HAVE_STAT_TV_NSEC 1 |
| 20845 | _ACEOF |
| 20846 | |
| 20847 | fi |
| 20848 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 20849 | # Look for BSD style subsecond timestamps in struct stat |
| 20850 | echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 20851 | echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6 |
| 20852 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
| 20853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20854 | else |
| 20855 | cat >conftest.$ac_ext <<_ACEOF |
| 20856 | /* confdefs.h. */ |
| 20857 | _ACEOF |
| 20858 | cat confdefs.h >>conftest.$ac_ext |
| 20859 | cat >>conftest.$ac_ext <<_ACEOF |
| 20860 | /* end confdefs.h. */ |
| 20861 | #include <sys/stat.h> |
| 20862 | int |
| 20863 | main () |
| 20864 | { |
| 20865 | |
| 20866 | struct stat st; |
| 20867 | st.st_mtimespec.tv_nsec = 1; |
| 20868 | |
| 20869 | ; |
| 20870 | return 0; |
| 20871 | } |
| 20872 | _ACEOF |
| 20873 | rm -f conftest.$ac_objext |
| 20874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20875 | (eval $ac_compile) 2>conftest.er1 |
| 20876 | ac_status=$? |
| 20877 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20878 | rm -f conftest.er1 |
| 20879 | cat conftest.err >&5 |
| 20880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20881 | (exit $ac_status); } && |
| 20882 | { ac_try='test -z "$ac_c_werror_flag" |
| 20883 | || test ! -s conftest.err' |
| 20884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20885 | (eval $ac_try) 2>&5 |
| 20886 | ac_status=$? |
| 20887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20888 | (exit $ac_status); }; } && |
| 20889 | { ac_try='test -s conftest.$ac_objext' |
| 20890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20891 | (eval $ac_try) 2>&5 |
| 20892 | ac_status=$? |
| 20893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20894 | (exit $ac_status); }; }; then |
| 20895 | ac_cv_stat_tv_nsec2=yes |
| 20896 | else |
| 20897 | echo "$as_me: failed program was:" >&5 |
| 20898 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20899 | |
| 20900 | ac_cv_stat_tv_nsec2=no |
| 20901 | fi |
| 20902 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20903 | fi |
| 20904 | |
| 20905 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 20906 | echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6 |
| 20907 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 20908 | then |
| 20909 | |
| 20910 | cat >>confdefs.h <<\_ACEOF |
| 20911 | #define HAVE_STAT_TV_NSEC2 1 |
| 20912 | _ACEOF |
| 20913 | |
| 20914 | fi |
| 20915 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20916 | # 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] | 20917 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 20918 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 20919 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 20920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20921 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20922 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20923 | /* confdefs.h. */ |
| 20924 | _ACEOF |
| 20925 | cat confdefs.h >>conftest.$ac_ext |
| 20926 | cat >>conftest.$ac_ext <<_ACEOF |
| 20927 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20928 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20929 | int |
| 20930 | main () |
| 20931 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20932 | |
| 20933 | int rtn; |
| 20934 | rtn = mvwdelch(0,0,0); |
| 20935 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20936 | ; |
| 20937 | return 0; |
| 20938 | } |
| 20939 | _ACEOF |
| 20940 | rm -f conftest.$ac_objext |
| 20941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20942 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20943 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20945 | rm -f conftest.er1 |
| 20946 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20948 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20949 | { ac_try='test -z "$ac_c_werror_flag" |
| 20950 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20952 | (eval $ac_try) 2>&5 |
| 20953 | ac_status=$? |
| 20954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20955 | (exit $ac_status); }; } && |
| 20956 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20958 | (eval $ac_try) 2>&5 |
| 20959 | ac_status=$? |
| 20960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20961 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20962 | ac_cv_mvwdelch_is_expression=yes |
| 20963 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20964 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20967 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20968 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20969 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20970 | fi |
| 20971 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20972 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 20973 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20974 | |
| 20975 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 20976 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20977 | |
| 20978 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20979 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20980 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20981 | |
| 20982 | fi |
| 20983 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20984 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 20985 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 20986 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 20987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20988 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20989 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20990 | /* confdefs.h. */ |
| 20991 | _ACEOF |
| 20992 | cat confdefs.h >>conftest.$ac_ext |
| 20993 | cat >>conftest.$ac_ext <<_ACEOF |
| 20994 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20995 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20996 | int |
| 20997 | main () |
| 20998 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20999 | |
| 21000 | WINDOW *w; |
| 21001 | w->_flags = 0; |
| 21002 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21003 | ; |
| 21004 | return 0; |
| 21005 | } |
| 21006 | _ACEOF |
| 21007 | rm -f conftest.$ac_objext |
| 21008 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21009 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21010 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21011 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21012 | rm -f conftest.er1 |
| 21013 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21015 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21016 | { ac_try='test -z "$ac_c_werror_flag" |
| 21017 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21019 | (eval $ac_try) 2>&5 |
| 21020 | ac_status=$? |
| 21021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21022 | (exit $ac_status); }; } && |
| 21023 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21025 | (eval $ac_try) 2>&5 |
| 21026 | ac_status=$? |
| 21027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21028 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21029 | ac_cv_window_has_flags=yes |
| 21030 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21031 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21033 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21034 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21035 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21036 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21037 | fi |
| 21038 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21039 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 21040 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21041 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21042 | |
| 21043 | if test "$ac_cv_window_has_flags" = yes |
| 21044 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21045 | |
| 21046 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21047 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21048 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21049 | |
| 21050 | fi |
| 21051 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 21052 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 21053 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
| 21054 | |
| 21055 | if test -e /dev/ptmx |
| 21056 | then |
| 21057 | echo "$as_me:$LINENO: result: yes" >&5 |
| 21058 | echo "${ECHO_T}yes" >&6 |
| 21059 | |
| 21060 | cat >>confdefs.h <<\_ACEOF |
| 21061 | #define HAVE_DEV_PTMX 1 |
| 21062 | _ACEOF |
| 21063 | |
| 21064 | else |
| 21065 | echo "$as_me:$LINENO: result: no" >&5 |
| 21066 | echo "${ECHO_T}no" >&6 |
| 21067 | fi |
| 21068 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 21069 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 21070 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
| 21071 | |
| 21072 | if test -e /dev/ptc |
| 21073 | then |
| 21074 | echo "$as_me:$LINENO: result: yes" >&5 |
| 21075 | echo "${ECHO_T}yes" >&6 |
| 21076 | |
| 21077 | cat >>confdefs.h <<\_ACEOF |
| 21078 | #define HAVE_DEV_PTC 1 |
| 21079 | _ACEOF |
| 21080 | |
| 21081 | else |
| 21082 | echo "$as_me:$LINENO: result: no" >&5 |
| 21083 | echo "${ECHO_T}no" >&6 |
| 21084 | fi |
| 21085 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21086 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 21087 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 21088 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 21089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 21090 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21091 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21092 | /* confdefs.h. */ |
| 21093 | _ACEOF |
| 21094 | cat confdefs.h >>conftest.$ac_ext |
| 21095 | cat >>conftest.$ac_ext <<_ACEOF |
| 21096 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 21097 | |
| 21098 | #ifdef HAVE_SYS_TYPES_H |
| 21099 | #include <sys/types.h> |
| 21100 | #endif |
| 21101 | #ifdef HAVE_SYS_SOCKET_H |
| 21102 | #include <sys/socket.h> |
| 21103 | #endif |
| 21104 | |
| 21105 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21106 | int |
| 21107 | main () |
| 21108 | { |
| 21109 | if ((socklen_t *) 0) |
| 21110 | return 0; |
| 21111 | if (sizeof (socklen_t)) |
| 21112 | return 0; |
| 21113 | ; |
| 21114 | return 0; |
| 21115 | } |
| 21116 | _ACEOF |
| 21117 | rm -f conftest.$ac_objext |
| 21118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21119 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21120 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21122 | rm -f conftest.er1 |
| 21123 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21125 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21126 | { ac_try='test -z "$ac_c_werror_flag" |
| 21127 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21129 | (eval $ac_try) 2>&5 |
| 21130 | ac_status=$? |
| 21131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21132 | (exit $ac_status); }; } && |
| 21133 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21135 | (eval $ac_try) 2>&5 |
| 21136 | ac_status=$? |
| 21137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21138 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 21139 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 21140 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21141 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21143 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21144 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 21145 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21146 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21147 | fi |
| 21148 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 21149 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 21150 | if test $ac_cv_type_socklen_t = yes; then |
| 21151 | : |
| 21152 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 21153 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 21154 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 21155 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21156 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 21157 | |
| 21158 | fi |
| 21159 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21160 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21161 | |
| 21162 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 21163 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 21164 | do |
| 21165 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 21166 | done |
| 21167 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21168 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 21169 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21170 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 21171 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 21172 | for dir in $SRCDIRS; do |
| 21173 | if test ! -d $dir; then |
| 21174 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 21175 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 21176 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21177 | echo "$as_me:$LINENO: result: done" >&5 |
| 21178 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 21179 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21180 | # generate output files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21181 | 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] | 21182 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21183 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21184 | # This file is a shell script that caches the results of configure |
| 21185 | # 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] | 21186 | # scripts and configure runs, see configure's option --config-cache. |
| 21187 | # It is not useful on other systems. If it contains results you don't |
| 21188 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21189 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21190 | # config.status only pays attention to the cache file if you give it |
| 21191 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21192 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21193 | # `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] | 21194 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 21195 | # following values. |
| 21196 | |
| 21197 | _ACEOF |
| 21198 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 21199 | # The following way of writing the cache mishandles newlines in values, |
| 21200 | # but we know of no workaround that is simple, portable, and efficient. |
| 21201 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 21202 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 21203 | # 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] | 21204 | { |
| 21205 | (set) 2>&1 | |
| 21206 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 21207 | *ac_space=\ *) |
| 21208 | # `set' does not quote correctly, so add quotes (double-quote |
| 21209 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 21210 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21211 | "s/'/'\\\\''/g; |
| 21212 | 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] | 21213 | ;; |
| 21214 | *) |
| 21215 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 21216 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21217 | "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] | 21218 | ;; |
| 21219 | esac; |
| 21220 | } | |
| 21221 | sed ' |
| 21222 | t clear |
| 21223 | : clear |
| 21224 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 21225 | t end |
| 21226 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 21227 | : end' >>confcache |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21228 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 21229 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21230 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 21231 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 21232 | else |
| 21233 | echo "not updating unwritable cache $cache_file" |
| 21234 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21235 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 21236 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 21237 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21238 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 21239 | # Let make expand exec_prefix. |
| 21240 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 21241 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21242 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 21243 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 21244 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 21245 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21246 | if test "x$srcdir" = x.; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21247 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21248 | s/:*\$(srcdir):*/:/; |
| 21249 | s/:*\${srcdir}:*/:/; |
| 21250 | s/:*@srcdir@:*/:/; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21251 | s/^\([^=]*=[ ]*\):*/\1/; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21252 | s/:*$//; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21253 | s/^[^=]*=[ ]*$//; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21254 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21255 | fi |
| 21256 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21257 | DEFS=-DHAVE_CONFIG_H |
| 21258 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21259 | ac_libobjs= |
| 21260 | ac_ltlibobjs= |
| 21261 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 21262 | # 1. Remove the extension, and $U if already installed. |
| 21263 | ac_i=`echo "$ac_i" | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21264 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21265 | # 2. Add them. |
| 21266 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 21267 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 21268 | done |
| 21269 | LIBOBJS=$ac_libobjs |
| 21270 | |
| 21271 | LTLIBOBJS=$ac_ltlibobjs |
| 21272 | |
| 21273 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21274 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21275 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21276 | ac_clean_files_save=$ac_clean_files |
| 21277 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 21278 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 21279 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 21280 | cat >$CONFIG_STATUS <<_ACEOF |
| 21281 | #! $SHELL |
| 21282 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21283 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21284 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21285 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21286 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21287 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21288 | ac_cs_recheck=false |
| 21289 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21290 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 21291 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21292 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21293 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21294 | ## --------------------- ## |
| 21295 | ## M4sh Initialization. ## |
| 21296 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21297 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21298 | # Be Bourne compatible |
| 21299 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 21300 | emulate sh |
| 21301 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21302 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 21303 | # is contrary to our usage. Disable this feature. |
| 21304 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21305 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 21306 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21307 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21308 | DUALCASE=1; export DUALCASE # for MKS sh |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21309 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21310 | # Support unset when possible. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21311 | 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] | 21312 | as_unset=unset |
| 21313 | else |
| 21314 | as_unset=false |
| 21315 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21316 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21317 | |
| 21318 | # Work around bugs in pre-3.0 UWIN ksh. |
| 21319 | $as_unset ENV MAIL MAILPATH |
| 21320 | PS1='$ ' |
| 21321 | PS2='> ' |
| 21322 | PS4='+ ' |
| 21323 | |
| 21324 | # NLS nuisances. |
| 21325 | for as_var in \ |
| 21326 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 21327 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 21328 | LC_TELEPHONE LC_TIME |
| 21329 | do |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21330 | 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] | 21331 | eval $as_var=C; export $as_var |
| 21332 | else |
| 21333 | $as_unset $as_var |
| 21334 | fi |
| 21335 | done |
| 21336 | |
| 21337 | # Required to use basename. |
| 21338 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 21339 | as_expr=expr |
| 21340 | else |
| 21341 | as_expr=false |
| 21342 | fi |
| 21343 | |
| 21344 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 21345 | as_basename=basename |
| 21346 | else |
| 21347 | as_basename=false |
| 21348 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21349 | |
| 21350 | |
| 21351 | # Name of the executable. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21352 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21353 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 21354 | X"$0" : 'X\(//\)$' \| \ |
| 21355 | X"$0" : 'X\(/\)$' \| \ |
| 21356 | . : '\(.\)' 2>/dev/null || |
| 21357 | echo X/"$0" | |
| 21358 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 21359 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 21360 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 21361 | s/.*/./; q'` |
| 21362 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21363 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21364 | # PATH needs CR, and LINENO needs CR and PATH. |
| 21365 | # Avoid depending upon Character Ranges. |
| 21366 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 21367 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 21368 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 21369 | as_cr_digits='0123456789' |
| 21370 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 21371 | |
| 21372 | # The user is always right. |
| 21373 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21374 | echo "#! /bin/sh" >conf$$.sh |
| 21375 | echo "exit 0" >>conf$$.sh |
| 21376 | chmod +x conf$$.sh |
| 21377 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21378 | PATH_SEPARATOR=';' |
| 21379 | else |
| 21380 | PATH_SEPARATOR=: |
| 21381 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21382 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21383 | fi |
| 21384 | |
| 21385 | |
| 21386 | as_lineno_1=$LINENO |
| 21387 | as_lineno_2=$LINENO |
| 21388 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 21389 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 21390 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 21391 | # Find who we are. Look in the path if we contain no path at all |
| 21392 | # relative or not. |
| 21393 | case $0 in |
| 21394 | *[\\/]* ) as_myself=$0 ;; |
| 21395 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21396 | for as_dir in $PATH |
| 21397 | do |
| 21398 | IFS=$as_save_IFS |
| 21399 | test -z "$as_dir" && as_dir=. |
| 21400 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 21401 | done |
| 21402 | |
| 21403 | ;; |
| 21404 | esac |
| 21405 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 21406 | # in which case we are not to be found in the path. |
| 21407 | if test "x$as_myself" = x; then |
| 21408 | as_myself=$0 |
| 21409 | fi |
| 21410 | if test ! -f "$as_myself"; then |
| 21411 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 21412 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 21413 | { (exit 1); exit 1; }; } |
| 21414 | fi |
| 21415 | case $CONFIG_SHELL in |
| 21416 | '') |
| 21417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21418 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 21419 | do |
| 21420 | IFS=$as_save_IFS |
| 21421 | test -z "$as_dir" && as_dir=. |
| 21422 | for as_base in sh bash ksh sh5; do |
| 21423 | case $as_dir in |
| 21424 | /*) |
| 21425 | if ("$as_dir/$as_base" -c ' |
| 21426 | as_lineno_1=$LINENO |
| 21427 | as_lineno_2=$LINENO |
| 21428 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 21429 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 21430 | 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] | 21431 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 21432 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21433 | CONFIG_SHELL=$as_dir/$as_base |
| 21434 | export CONFIG_SHELL |
| 21435 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 21436 | fi;; |
| 21437 | esac |
| 21438 | done |
| 21439 | done |
| 21440 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21441 | esac |
| 21442 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21443 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 21444 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 21445 | # line-number line before each line; the second 'sed' does the real |
| 21446 | # work. The second script uses 'N' to pair each line-number line |
| 21447 | # with the numbered line, and appends trailing '-' during |
| 21448 | # substitution so that $LINENO is not a special case at line end. |
| 21449 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 21450 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 21451 | sed '=' <$as_myself | |
| 21452 | sed ' |
| 21453 | N |
| 21454 | s,$,-, |
| 21455 | : loop |
| 21456 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 21457 | t loop |
| 21458 | s,-$,, |
| 21459 | s,^['$as_cr_digits']*\n,, |
| 21460 | ' >$as_me.lineno && |
| 21461 | chmod +x $as_me.lineno || |
| 21462 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 21463 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 21464 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21465 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21466 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 21467 | # (the dirname of $[0] is not the place where we might find the |
| 21468 | # original and so on. Autoconf is especially sensible to this). |
| 21469 | . ./$as_me.lineno |
| 21470 | # Exit status is that of the last command. |
| 21471 | exit |
| 21472 | } |
| 21473 | |
| 21474 | |
| 21475 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 21476 | *c*,-n*) ECHO_N= ECHO_C=' |
| 21477 | ' ECHO_T=' ' ;; |
| 21478 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 21479 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 21480 | esac |
| 21481 | |
| 21482 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 21483 | as_expr=expr |
| 21484 | else |
| 21485 | as_expr=false |
| 21486 | fi |
| 21487 | |
| 21488 | rm -f conf$$ conf$$.exe conf$$.file |
| 21489 | echo >conf$$.file |
| 21490 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 21491 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 21492 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 21493 | if test -f conf$$.exe; then |
| 21494 | # Don't use ln at all; we don't have any links |
| 21495 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21496 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21497 | as_ln_s='ln -s' |
| 21498 | fi |
| 21499 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 21500 | as_ln_s=ln |
| 21501 | else |
| 21502 | as_ln_s='cp -p' |
| 21503 | fi |
| 21504 | rm -f conf$$ conf$$.exe conf$$.file |
| 21505 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21506 | if mkdir -p . 2>/dev/null; then |
| 21507 | as_mkdir_p=: |
| 21508 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21509 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21510 | as_mkdir_p=false |
| 21511 | fi |
| 21512 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21513 | as_executable_p="test -f" |
| 21514 | |
| 21515 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21516 | 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] | 21517 | |
| 21518 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21519 | 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] | 21520 | |
| 21521 | |
| 21522 | # IFS |
| 21523 | # We need space, tab and new line, in precisely that order. |
| 21524 | as_nl=' |
| 21525 | ' |
| 21526 | IFS=" $as_nl" |
| 21527 | |
| 21528 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21529 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21530 | |
| 21531 | exec 6>&1 |
| 21532 | |
| 21533 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 21534 | # report actual input values of CONFIG_FILES etc. instead of their |
| 21535 | # values after options handling. Logging --version etc. is OK. |
| 21536 | exec 5>>config.log |
| 21537 | { |
| 21538 | echo |
| 21539 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 21540 | ## Running $as_me. ## |
| 21541 | _ASBOX |
| 21542 | } >&5 |
| 21543 | cat >&5 <<_CSEOF |
| 21544 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 21545 | This file was extended by python $as_me 2.5, which was |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21546 | generated by GNU Autoconf 2.59. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21547 | |
| 21548 | CONFIG_FILES = $CONFIG_FILES |
| 21549 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 21550 | CONFIG_LINKS = $CONFIG_LINKS |
| 21551 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 21552 | $ $0 $@ |
| 21553 | |
| 21554 | _CSEOF |
| 21555 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 21556 | echo >&5 |
| 21557 | _ACEOF |
| 21558 | |
| 21559 | # Files that config.status was made for. |
| 21560 | if test -n "$ac_config_files"; then |
| 21561 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 21562 | fi |
| 21563 | |
| 21564 | if test -n "$ac_config_headers"; then |
| 21565 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 21566 | fi |
| 21567 | |
| 21568 | if test -n "$ac_config_links"; then |
| 21569 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 21570 | fi |
| 21571 | |
| 21572 | if test -n "$ac_config_commands"; then |
| 21573 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 21574 | fi |
| 21575 | |
| 21576 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21577 | |
| 21578 | ac_cs_usage="\ |
| 21579 | \`$as_me' instantiates files from templates according to the |
| 21580 | current configuration. |
| 21581 | |
| 21582 | Usage: $0 [OPTIONS] [FILE]... |
| 21583 | |
| 21584 | -h, --help print this help, then exit |
| 21585 | -V, --version print version number, then exit |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21586 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21587 | -d, --debug don't remove temporary files |
| 21588 | --recheck update $as_me by reconfiguring in the same conditions |
| 21589 | --file=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21590 | instantiate the configuration file FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21591 | --header=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21592 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21593 | |
| 21594 | Configuration files: |
| 21595 | $config_files |
| 21596 | |
| 21597 | Configuration headers: |
| 21598 | $config_headers |
| 21599 | |
| 21600 | Report bugs to <bug-autoconf@gnu.org>." |
| 21601 | _ACEOF |
| 21602 | |
| 21603 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21604 | ac_cs_version="\\ |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 21605 | python config.status 2.5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21606 | configured by $0, generated by GNU Autoconf 2.59, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21607 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 21608 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21609 | Copyright (C) 2003 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21610 | This config.status script is free software; the Free Software Foundation |
| 21611 | gives unlimited permission to copy, distribute and modify it." |
| 21612 | srcdir=$srcdir |
| 21613 | INSTALL="$INSTALL" |
| 21614 | _ACEOF |
| 21615 | |
| 21616 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21617 | # If no file are specified by the user, then we need to provide default |
| 21618 | # value. By we need to know if files were specified by the user. |
| 21619 | ac_need_defaults=: |
| 21620 | while test $# != 0 |
| 21621 | do |
| 21622 | case $1 in |
| 21623 | --*=*) |
| 21624 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 21625 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21626 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21627 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21628 | -*) |
| 21629 | ac_option=$1 |
| 21630 | ac_optarg=$2 |
| 21631 | ac_shift=shift |
| 21632 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21633 | *) # This is not an option, so the user has probably given explicit |
| 21634 | # arguments. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21635 | ac_option=$1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21636 | ac_need_defaults=false;; |
| 21637 | esac |
| 21638 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21639 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21640 | # Handling of the options. |
| 21641 | _ACEOF |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 21642 | cat >>$CONFIG_STATUS <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21643 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 21644 | ac_cs_recheck=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21645 | --version | --vers* | -V ) |
| 21646 | echo "$ac_cs_version"; exit 0 ;; |
| 21647 | --he | --h) |
| 21648 | # Conflict between --help and --header |
| 21649 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 21650 | Try \`$0 --help' for more information." >&5 |
| 21651 | echo "$as_me: error: ambiguous option: $1 |
| 21652 | Try \`$0 --help' for more information." >&2;} |
| 21653 | { (exit 1); exit 1; }; };; |
| 21654 | --help | --hel | -h ) |
| 21655 | echo "$ac_cs_usage"; exit 0 ;; |
| 21656 | --debug | --d* | -d ) |
| 21657 | debug=: ;; |
| 21658 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21659 | $ac_shift |
| 21660 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21661 | ac_need_defaults=false;; |
| 21662 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21663 | $ac_shift |
| 21664 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21665 | ac_need_defaults=false;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21666 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 21667 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 21668 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21669 | |
| 21670 | # This is an error. |
| 21671 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 21672 | Try \`$0 --help' for more information." >&5 |
| 21673 | echo "$as_me: error: unrecognized option: $1 |
| 21674 | Try \`$0 --help' for more information." >&2;} |
| 21675 | { (exit 1); exit 1; }; } ;; |
| 21676 | |
| 21677 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 21678 | |
| 21679 | esac |
| 21680 | shift |
| 21681 | done |
| 21682 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21683 | ac_configure_extra_args= |
| 21684 | |
| 21685 | if $ac_cs_silent; then |
| 21686 | exec 6>/dev/null |
| 21687 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 21688 | fi |
| 21689 | |
| 21690 | _ACEOF |
| 21691 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21692 | if \$ac_cs_recheck; then |
| 21693 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 21694 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 21695 | fi |
| 21696 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21697 | _ACEOF |
| 21698 | |
| 21699 | |
| 21700 | |
| 21701 | |
| 21702 | |
| 21703 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21704 | for ac_config_target in $ac_config_targets |
| 21705 | do |
| 21706 | case "$ac_config_target" in |
| 21707 | # Handling of arguments. |
| 21708 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 21709 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 21710 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 21711 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 21712 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 21713 | { (exit 1); exit 1; }; };; |
| 21714 | esac |
| 21715 | done |
| 21716 | |
| 21717 | # If the user did not use the arguments to specify the items to instantiate, |
| 21718 | # then the envvar interface is used. Set only those that are not. |
| 21719 | # We use the long form for the default assignment because of an extremely |
| 21720 | # bizarre bug on SunOS 4.1.3. |
| 21721 | if $ac_need_defaults; then |
| 21722 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 21723 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 21724 | fi |
| 21725 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21726 | # Have a temporary directory for convenience. Make it in the build tree |
| 21727 | # simply because there is no reason to put it here, and in addition, |
| 21728 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21729 | # Create a temporary directory, and hook for its removal unless debugging. |
| 21730 | $debug || |
| 21731 | { |
| 21732 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 21733 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 21734 | } |
| 21735 | |
| 21736 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21737 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21738 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21739 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21740 | test -n "$tmp" && test -d "$tmp" |
| 21741 | } || |
| 21742 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21743 | tmp=./confstat$$-$RANDOM |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21744 | (umask 077 && mkdir $tmp) |
| 21745 | } || |
| 21746 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21747 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21748 | { (exit 1); exit 1; } |
| 21749 | } |
| 21750 | |
| 21751 | _ACEOF |
| 21752 | |
| 21753 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21754 | |
| 21755 | # |
| 21756 | # CONFIG_FILES section. |
| 21757 | # |
| 21758 | |
| 21759 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 21760 | # This happens for instance when ./config.status config.h |
| 21761 | if test -n "\$CONFIG_FILES"; then |
| 21762 | # Protect against being on the right side of a sed subst in config.status. |
| 21763 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 21764 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 21765 | s,@SHELL@,$SHELL,;t t |
| 21766 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 21767 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 21768 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 21769 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 21770 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 21771 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 21772 | s,@exec_prefix@,$exec_prefix,;t t |
| 21773 | s,@prefix@,$prefix,;t t |
| 21774 | s,@program_transform_name@,$program_transform_name,;t t |
| 21775 | s,@bindir@,$bindir,;t t |
| 21776 | s,@sbindir@,$sbindir,;t t |
| 21777 | s,@libexecdir@,$libexecdir,;t t |
| 21778 | s,@datadir@,$datadir,;t t |
| 21779 | s,@sysconfdir@,$sysconfdir,;t t |
| 21780 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 21781 | s,@localstatedir@,$localstatedir,;t t |
| 21782 | s,@libdir@,$libdir,;t t |
| 21783 | s,@includedir@,$includedir,;t t |
| 21784 | s,@oldincludedir@,$oldincludedir,;t t |
| 21785 | s,@infodir@,$infodir,;t t |
| 21786 | s,@mandir@,$mandir,;t t |
| 21787 | s,@build_alias@,$build_alias,;t t |
| 21788 | s,@host_alias@,$host_alias,;t t |
| 21789 | s,@target_alias@,$target_alias,;t t |
| 21790 | s,@DEFS@,$DEFS,;t t |
| 21791 | s,@ECHO_C@,$ECHO_C,;t t |
| 21792 | s,@ECHO_N@,$ECHO_N,;t t |
| 21793 | s,@ECHO_T@,$ECHO_T,;t t |
| 21794 | s,@LIBS@,$LIBS,;t t |
| 21795 | s,@VERSION@,$VERSION,;t t |
| 21796 | s,@SOVERSION@,$SOVERSION,;t t |
| 21797 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 21798 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 21799 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 21800 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 21801 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 21802 | s,@MACHDEP@,$MACHDEP,;t t |
| 21803 | s,@SGI_ABI@,$SGI_ABI,;t t |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 21804 | s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 21805 | s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 21806 | 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] | 21807 | s,@CXX@,$CXX,;t t |
| 21808 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 21809 | s,@EXEEXT@,$EXEEXT,;t t |
| 21810 | s,@CC@,$CC,;t t |
| 21811 | s,@CFLAGS@,$CFLAGS,;t t |
| 21812 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 21813 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 21814 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 21815 | s,@OBJEXT@,$OBJEXT,;t t |
| 21816 | s,@CPP@,$CPP,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21817 | s,@EGREP@,$EGREP,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21818 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 21819 | s,@LIBRARY@,$LIBRARY,;t t |
| 21820 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 21821 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 21822 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 21823 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 21824 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 21825 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 21826 | s,@LINKCC@,$LINKCC,;t t |
| 21827 | s,@RANLIB@,$RANLIB,;t t |
| 21828 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 21829 | s,@AR@,$AR,;t t |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 21830 | s,@SVNVERSION@,$SVNVERSION,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21831 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 21832 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 21833 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 21834 | s,@LN@,$LN,;t t |
| 21835 | s,@OPT@,$OPT,;t t |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 21836 | s,@BASECFLAGS@,$BASECFLAGS,;t t |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 21837 | s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21838 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 21839 | s,@SO@,$SO,;t t |
| 21840 | s,@LDSHARED@,$LDSHARED,;t t |
| 21841 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 21842 | s,@CCSHARED@,$CCSHARED,;t t |
| 21843 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 21844 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 21845 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21846 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 21847 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 21848 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 21849 | s,@LDLAST@,$LDLAST,;t t |
| 21850 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 21851 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 21852 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 21853 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 21854 | s,@TRUE@,$TRUE,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21855 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 21856 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 21857 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 21858 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 21859 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 21860 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 21861 | s,@LIBM@,$LIBM,;t t |
| 21862 | s,@LIBC@,$LIBC,;t t |
| 21863 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 21864 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 21865 | s,@SRCDIRS@,$SRCDIRS,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21866 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21867 | CEOF |
| 21868 | |
| 21869 | _ACEOF |
| 21870 | |
| 21871 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21872 | # Split the substitutions into bite-sized pieces for seds with |
| 21873 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 21874 | ac_max_sed_lines=48 |
| 21875 | ac_sed_frag=1 # Number of current file. |
| 21876 | ac_beg=1 # First line for current file. |
| 21877 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 21878 | ac_more_lines=: |
| 21879 | ac_sed_cmds= |
| 21880 | while $ac_more_lines; do |
| 21881 | if test $ac_beg -gt 1; then |
| 21882 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 21883 | else |
| 21884 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 21885 | fi |
| 21886 | if test ! -s $tmp/subs.frag; then |
| 21887 | ac_more_lines=false |
| 21888 | else |
| 21889 | # The purpose of the label and of the branching condition is to |
| 21890 | # speed up the sed processing (if there are no `@' at all, there |
| 21891 | # is no need to browse any of the substitutions). |
| 21892 | # These are the two extra sed commands mentioned above. |
| 21893 | (echo ':t |
| 21894 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 21895 | if test -z "$ac_sed_cmds"; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21896 | 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] | 21897 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21898 | 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] | 21899 | fi |
| 21900 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 21901 | ac_beg=$ac_end |
| 21902 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 21903 | fi |
| 21904 | done |
| 21905 | if test -z "$ac_sed_cmds"; then |
| 21906 | ac_sed_cmds=cat |
| 21907 | fi |
| 21908 | fi # test -n "$CONFIG_FILES" |
| 21909 | |
| 21910 | _ACEOF |
| 21911 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21912 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 21913 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 21914 | case $ac_file in |
| 21915 | - | *:- | *:-:* ) # input from stdin |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21916 | cat >$tmp/stdin |
| 21917 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 21918 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21919 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21920 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21921 | * ) ac_file_in=$ac_file.in ;; |
| 21922 | esac |
| 21923 | |
| 21924 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 21925 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 21926 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21927 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21928 | X"$ac_file" : 'X\(//\)$' \| \ |
| 21929 | X"$ac_file" : 'X\(/\)' \| \ |
| 21930 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21931 | echo X"$ac_file" | |
| 21932 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21933 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21934 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21935 | /^X\(\/\).*/{ s//\1/; q; } |
| 21936 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21937 | { if $as_mkdir_p; then |
| 21938 | mkdir -p "$ac_dir" |
| 21939 | else |
| 21940 | as_dir="$ac_dir" |
| 21941 | as_dirs= |
| 21942 | while test ! -d "$as_dir"; do |
| 21943 | as_dirs="$as_dir $as_dirs" |
| 21944 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 21945 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21946 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21947 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21948 | X"$as_dir" : 'X\(/\)' \| \ |
| 21949 | . : '\(.\)' 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21950 | echo X"$as_dir" | |
| 21951 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21952 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21953 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21954 | /^X\(\/\).*/{ s//\1/; q; } |
| 21955 | s/.*/./; q'` |
| 21956 | done |
| 21957 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 21958 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 21959 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 21960 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21961 | |
| 21962 | ac_builddir=. |
| 21963 | |
| 21964 | if test "$ac_dir" != .; then |
| 21965 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 21966 | # A "../" for each directory in $ac_dir_suffix. |
| 21967 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 21968 | else |
| 21969 | ac_dir_suffix= ac_top_builddir= |
| 21970 | fi |
| 21971 | |
| 21972 | case $srcdir in |
| 21973 | .) # No --srcdir option. We are building in place. |
| 21974 | ac_srcdir=. |
| 21975 | if test -z "$ac_top_builddir"; then |
| 21976 | ac_top_srcdir=. |
| 21977 | else |
| 21978 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 21979 | fi ;; |
| 21980 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 21981 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 21982 | ac_top_srcdir=$srcdir ;; |
| 21983 | *) # Relative path. |
| 21984 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 21985 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 21986 | esac |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21987 | |
| 21988 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 21989 | # the directories may not exist. |
| 21990 | case `pwd` in |
| 21991 | .) ac_abs_builddir="$ac_dir";; |
| 21992 | *) |
| 21993 | case "$ac_dir" in |
| 21994 | .) ac_abs_builddir=`pwd`;; |
| 21995 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 21996 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 21997 | esac;; |
| 21998 | esac |
| 21999 | case $ac_abs_builddir in |
| 22000 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 22001 | *) |
| 22002 | case ${ac_top_builddir}. in |
| 22003 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 22004 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 22005 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 22006 | esac;; |
| 22007 | esac |
| 22008 | case $ac_abs_builddir in |
| 22009 | .) ac_abs_srcdir=$ac_srcdir;; |
| 22010 | *) |
| 22011 | case $ac_srcdir in |
| 22012 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 22013 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 22014 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 22015 | esac;; |
| 22016 | esac |
| 22017 | case $ac_abs_builddir in |
| 22018 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 22019 | *) |
| 22020 | case $ac_top_srcdir in |
| 22021 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 22022 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 22023 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 22024 | esac;; |
| 22025 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22026 | |
| 22027 | |
| 22028 | case $INSTALL in |
| 22029 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 22030 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 22031 | esac |
| 22032 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22033 | if test x"$ac_file" != x-; then |
| 22034 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 22035 | echo "$as_me: creating $ac_file" >&6;} |
| 22036 | rm -f "$ac_file" |
| 22037 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22038 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 22039 | # use $as_me), people would be surprised to read: |
| 22040 | # /* config.h. Generated by config.status. */ |
| 22041 | if test x"$ac_file" = x-; then |
| 22042 | configure_input= |
| 22043 | else |
| 22044 | configure_input="$ac_file. " |
| 22045 | fi |
| 22046 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22047 | sed 's,.*/,,'` by configure." |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22048 | |
| 22049 | # First look for the input files in the build tree, otherwise in the |
| 22050 | # src tree. |
| 22051 | ac_file_inputs=`IFS=: |
| 22052 | for f in $ac_file_in; do |
| 22053 | case $f in |
| 22054 | -) echo $tmp/stdin ;; |
| 22055 | [\\/$]*) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22056 | # Absolute (can't be DOS-style, as IFS=:) |
| 22057 | 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] | 22058 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 22059 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22060 | echo "$f";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22061 | *) # Relative |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22062 | if test -f "$f"; then |
| 22063 | # Build tree |
| 22064 | echo "$f" |
| 22065 | elif test -f "$srcdir/$f"; then |
| 22066 | # Source tree |
| 22067 | echo "$srcdir/$f" |
| 22068 | else |
| 22069 | # /dev/null tree |
| 22070 | { { 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] | 22071 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 22072 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22073 | fi;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22074 | esac |
| 22075 | done` || { (exit 1); exit 1; } |
| 22076 | _ACEOF |
| 22077 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22078 | sed "$ac_vpsub |
| 22079 | $extrasub |
| 22080 | _ACEOF |
| 22081 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22082 | :t |
| 22083 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 22084 | s,@configure_input@,$configure_input,;t t |
| 22085 | s,@srcdir@,$ac_srcdir,;t t |
| 22086 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 22087 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 22088 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 22089 | s,@builddir@,$ac_builddir,;t t |
| 22090 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 22091 | s,@top_builddir@,$ac_top_builddir,;t t |
| 22092 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 22093 | s,@INSTALL@,$ac_INSTALL,;t t |
| 22094 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 22095 | rm -f $tmp/stdin |
| 22096 | if test x"$ac_file" != x-; then |
| 22097 | mv $tmp/out $ac_file |
| 22098 | else |
| 22099 | cat $tmp/out |
| 22100 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22101 | fi |
| 22102 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22103 | done |
| 22104 | _ACEOF |
| 22105 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22106 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22107 | # |
| 22108 | # CONFIG_HEADER section. |
| 22109 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22110 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22111 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 22112 | # 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] | 22113 | # |
| 22114 | # ac_d sets the value in "#define NAME VALUE" lines. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22115 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 22116 | ac_dB='[ ].*$,\1#\2' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22117 | ac_dC=' ' |
| 22118 | ac_dD=',;t' |
| 22119 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22120 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22121 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22122 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22123 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22124 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22125 | 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] | 22126 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22127 | case $ac_file in |
| 22128 | - | *:- | *:-:* ) # input from stdin |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22129 | cat >$tmp/stdin |
| 22130 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 22131 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22132 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22133 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22134 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22135 | esac |
| 22136 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22137 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 22138 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22139 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22140 | # First look for the input files in the build tree, otherwise in the |
| 22141 | # src tree. |
| 22142 | ac_file_inputs=`IFS=: |
| 22143 | for f in $ac_file_in; do |
| 22144 | case $f in |
| 22145 | -) echo $tmp/stdin ;; |
| 22146 | [\\/$]*) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22147 | # Absolute (can't be DOS-style, as IFS=:) |
| 22148 | 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] | 22149 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 22150 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22151 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 22152 | echo "$f";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22153 | *) # Relative |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22154 | if test -f "$f"; then |
| 22155 | # Build tree |
| 22156 | echo "$f" |
| 22157 | elif test -f "$srcdir/$f"; then |
| 22158 | # Source tree |
| 22159 | echo "$srcdir/$f" |
| 22160 | else |
| 22161 | # /dev/null tree |
| 22162 | { { 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] | 22163 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 22164 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22165 | fi;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22166 | esac |
| 22167 | done` || { (exit 1); exit 1; } |
| 22168 | # Remove the trailing spaces. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22169 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22170 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22171 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22172 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22173 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 22174 | # `conftest.undefs', that substitutes the proper values into |
| 22175 | # config.h.in to produce config.h. The first handles `#define' |
| 22176 | # templates, and the second `#undef' templates. |
| 22177 | # And first: Protect against being on the right side of a sed subst in |
| 22178 | # config.status. Protect against being in an unquoted here document |
| 22179 | # in config.status. |
| 22180 | rm -f conftest.defines conftest.undefs |
| 22181 | # Using a here document instead of a string reduces the quoting nightmare. |
| 22182 | # Putting comments in sed scripts is not portable. |
| 22183 | # |
| 22184 | # `end' is used to avoid that the second main sed command (meant for |
| 22185 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 22186 | # See the Autoconf documentation for `clear'. |
| 22187 | cat >confdef2sed.sed <<\_ACEOF |
| 22188 | s/[\\&,]/\\&/g |
| 22189 | s,[\\$`],\\&,g |
| 22190 | t clear |
| 22191 | : clear |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22192 | 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] | 22193 | t end |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22194 | 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] | 22195 | : end |
| 22196 | _ACEOF |
| 22197 | # If some macros were called several times there might be several times |
| 22198 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 22199 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 22200 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 22201 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 22202 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22203 | |
| 22204 | # This sed command replaces #undef with comments. This is necessary, for |
| 22205 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 22206 | # 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] | 22207 | cat >>conftest.undefs <<\_ACEOF |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22208 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22209 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22210 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22211 | # Break up conftest.defines because some shells have a limit on the size |
| 22212 | # of here documents, and old seds have small limits too (100 cmds). |
| 22213 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22214 | 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] | 22215 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 22216 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22217 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22218 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22219 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22220 | # Write a limited-size here document to $tmp/defines.sed. |
| 22221 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 22222 | # Speed up: don't consider the non `#define' lines. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22223 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22224 | # Work around the forget-to-reset-the-flag bug. |
| 22225 | echo 't clr' >>$CONFIG_STATUS |
| 22226 | echo ': clr' >>$CONFIG_STATUS |
| 22227 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22228 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22229 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 22230 | rm -f $tmp/in |
| 22231 | mv $tmp/out $tmp/in |
| 22232 | ' >>$CONFIG_STATUS |
| 22233 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 22234 | rm -f conftest.defines |
| 22235 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22236 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22237 | rm -f conftest.defines |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22238 | echo ' fi # grep' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22239 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22240 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22241 | # Break up conftest.undefs because some shells have a limit on the size |
| 22242 | # of here documents, and old seds have small limits too (100 cmds). |
| 22243 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 22244 | rm -f conftest.tail |
| 22245 | while grep . conftest.undefs >/dev/null |
| 22246 | do |
| 22247 | # Write a limited-size here document to $tmp/undefs.sed. |
| 22248 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 22249 | # Speed up: don't consider the non `#undef' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22250 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22251 | # Work around the forget-to-reset-the-flag bug. |
| 22252 | echo 't clr' >>$CONFIG_STATUS |
| 22253 | echo ': clr' >>$CONFIG_STATUS |
| 22254 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 22255 | echo 'CEOF |
| 22256 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 22257 | rm -f $tmp/in |
| 22258 | mv $tmp/out $tmp/in |
| 22259 | ' >>$CONFIG_STATUS |
| 22260 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 22261 | rm -f conftest.undefs |
| 22262 | mv conftest.tail conftest.undefs |
| 22263 | done |
| 22264 | rm -f conftest.undefs |
| 22265 | |
| 22266 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22267 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 22268 | # use $as_me), people would be surprised to read: |
| 22269 | # /* config.h. Generated by config.status. */ |
| 22270 | if test x"$ac_file" = x-; then |
| 22271 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22272 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22273 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22274 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22275 | cat $tmp/in >>$tmp/config.h |
| 22276 | rm -f $tmp/in |
| 22277 | if test x"$ac_file" != x-; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22278 | 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] | 22279 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 22280 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 22281 | else |
| 22282 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 22283 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22284 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 22285 | X"$ac_file" : 'X\(//\)$' \| \ |
| 22286 | X"$ac_file" : 'X\(/\)' \| \ |
| 22287 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22288 | echo X"$ac_file" | |
| 22289 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22290 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22291 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22292 | /^X\(\/\).*/{ s//\1/; q; } |
| 22293 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22294 | { if $as_mkdir_p; then |
| 22295 | mkdir -p "$ac_dir" |
| 22296 | else |
| 22297 | as_dir="$ac_dir" |
| 22298 | as_dirs= |
| 22299 | while test ! -d "$as_dir"; do |
| 22300 | as_dirs="$as_dir $as_dirs" |
| 22301 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 22302 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22303 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22304 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22305 | X"$as_dir" : 'X\(/\)' \| \ |
| 22306 | . : '\(.\)' 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22307 | echo X"$as_dir" | |
| 22308 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22309 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22310 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22311 | /^X\(\/\).*/{ s//\1/; q; } |
| 22312 | s/.*/./; q'` |
| 22313 | done |
| 22314 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 22315 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 22316 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 22317 | { (exit 1); exit 1; }; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22318 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22319 | rm -f $ac_file |
| 22320 | mv $tmp/config.h $ac_file |
| 22321 | fi |
| 22322 | else |
| 22323 | cat $tmp/config.h |
| 22324 | rm -f $tmp/config.h |
| 22325 | fi |
| 22326 | done |
| 22327 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22328 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22329 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22330 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22331 | { (exit 0); exit 0; } |
| 22332 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22333 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22334 | ac_clean_files=$ac_clean_files_save |
| 22335 | |
| 22336 | |
| 22337 | # configure is writing to config.log, and then calls config.status. |
| 22338 | # config.status does its own redirection, appending to config.log. |
| 22339 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 22340 | # by configure, so config.status won't be able to write to it; its |
| 22341 | # output is simply discarded. So we exec the FD to /dev/null, |
| 22342 | # effectively closing config.log, so it can be properly (re)opened and |
| 22343 | # appended to by config.status. When coming back to configure, we |
| 22344 | # need to make the FD available again. |
| 22345 | if test "$no_create" != yes; then |
| 22346 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22347 | ac_config_status_args= |
| 22348 | test "$silent" = yes && |
| 22349 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22350 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22351 | $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] | 22352 | exec 5>>config.log |
| 22353 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 22354 | # would make configure fail if this is the last instruction. |
| 22355 | $ac_cs_success || { (exit 1); exit 1; } |
| 22356 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22357 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 22358 | |
| 22359 | echo "creating Setup" |
| 22360 | if test ! -f Modules/Setup |
| 22361 | then |
| 22362 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 22363 | fi |
| 22364 | |
| 22365 | echo "creating Setup.local" |
| 22366 | if test ! -f Modules/Setup.local |
| 22367 | then |
| 22368 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 22369 | fi |
| 22370 | |
| 22371 | echo "creating Makefile" |
| 22372 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 22373 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 22374 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 22375 | mv config.c Modules |