Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 52456 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.59 for python 2.6. |
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' |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 273 | PACKAGE_VERSION='2.6' |
| 274 | PACKAGE_STRING='python 2.6' |
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 | |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +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 UNIVERSALSDK PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR FRAMEWORKINSTALLFIRST FRAMEWORKINSTALLLAST FRAMEWORKALTINSTALLFIRST FRAMEWORKALTINSTALLLAST FRAMEWORKUNIXTOOLSPREFIX MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET EXPORT_MACOSX_DEPLOYMENT_TARGET CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX MAINCC 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 |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 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 |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +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 |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 740 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 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 |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 784 | \`configure' configures python 2.6 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 |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 841 | short | recursive ) echo "Configuration of python 2.6:";; |
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] |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 848 | --enable-universalsdk[SDKDIR] |
| 849 | Build agains Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 850 | --enable-framework[=INSTALLDIR] |
| 851 | Build (MacOSX|Darwin) framework |
| 852 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 853 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 854 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 855 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 856 | --disable-ipv6 Disable ipv6 support |
| 857 | --enable-unicode[=ucs[24]] |
| 858 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 859 | |
| 860 | Optional Packages: |
| 861 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 862 | --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] | 863 | --without-gcc never use gcc |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 864 | --with-cxx-main=<compiler> |
| 865 | compile main() and link python executable with C++ |
| 866 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 867 | --with-suffix=.exe set executable suffix |
| 868 | --with-pydebug build with Py_DEBUG defined |
| 869 | --with-libs='lib1 ...' link against additional libs |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 870 | --with-system-ffi build _ctypes module using an installed ffi library |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 871 | --with-signal-module disable/enable signal module |
| 872 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 873 | --with(out)-threads[=DIRECTORY] |
| 874 | disable/enable thread support |
| 875 | --with(out)-thread[=DIRECTORY] |
| 876 | deprecated; use --with(out)-threads |
| 877 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 878 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 879 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 880 | --with(out)-pymalloc disable/enable specialized mallocs |
| 881 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 882 | --with-fpectl enable SIGFPE catching |
| 883 | --with-libm=STRING math library |
| 884 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 885 | |
| 886 | Some influential environment variables: |
| 887 | CC C compiler command |
| 888 | CFLAGS C compiler flags |
| 889 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 890 | nonstandard directory <lib dir> |
| 891 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 892 | headers in a nonstandard directory <include dir> |
| 893 | CPP C preprocessor |
| 894 | |
| 895 | Use these variables to override the choices made by `configure' or to help |
| 896 | it to find libraries and programs with nonstandard names/locations. |
| 897 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 898 | Report bugs to <http://www.python.org/python-bugs>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 899 | _ACEOF |
| 900 | fi |
| 901 | |
| 902 | if test "$ac_init_help" = "recursive"; then |
| 903 | # If there are subdirs, report their specific --help. |
| 904 | ac_popdir=`pwd` |
| 905 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 906 | test -d $ac_dir || continue |
| 907 | ac_builddir=. |
| 908 | |
| 909 | if test "$ac_dir" != .; then |
| 910 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 911 | # A "../" for each directory in $ac_dir_suffix. |
| 912 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 913 | else |
| 914 | ac_dir_suffix= ac_top_builddir= |
| 915 | fi |
| 916 | |
| 917 | case $srcdir in |
| 918 | .) # No --srcdir option. We are building in place. |
| 919 | ac_srcdir=. |
| 920 | if test -z "$ac_top_builddir"; then |
| 921 | ac_top_srcdir=. |
| 922 | else |
| 923 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 924 | fi ;; |
| 925 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 926 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 927 | ac_top_srcdir=$srcdir ;; |
| 928 | *) # Relative path. |
| 929 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 930 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 931 | esac |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 932 | |
| 933 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 934 | # the directories may not exist. |
| 935 | case `pwd` in |
| 936 | .) ac_abs_builddir="$ac_dir";; |
| 937 | *) |
| 938 | case "$ac_dir" in |
| 939 | .) ac_abs_builddir=`pwd`;; |
| 940 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 941 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 942 | esac;; |
| 943 | esac |
| 944 | case $ac_abs_builddir in |
| 945 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 946 | *) |
| 947 | case ${ac_top_builddir}. in |
| 948 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 949 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 950 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 951 | esac;; |
| 952 | esac |
| 953 | case $ac_abs_builddir in |
| 954 | .) ac_abs_srcdir=$ac_srcdir;; |
| 955 | *) |
| 956 | case $ac_srcdir in |
| 957 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 958 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 959 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 960 | esac;; |
| 961 | esac |
| 962 | case $ac_abs_builddir in |
| 963 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 964 | *) |
| 965 | case $ac_top_srcdir in |
| 966 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 967 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 968 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 969 | esac;; |
| 970 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 971 | |
| 972 | cd $ac_dir |
| 973 | # Check for guested configure; otherwise get Cygnus style configure. |
| 974 | if test -f $ac_srcdir/configure.gnu; then |
| 975 | echo |
| 976 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 977 | elif test -f $ac_srcdir/configure; then |
| 978 | echo |
| 979 | $SHELL $ac_srcdir/configure --help=recursive |
| 980 | elif test -f $ac_srcdir/configure.ac || |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 981 | test -f $ac_srcdir/configure.in; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 982 | echo |
| 983 | $ac_configure --help |
| 984 | else |
| 985 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 986 | fi |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 987 | cd $ac_popdir |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 988 | done |
| 989 | fi |
| 990 | |
| 991 | test -n "$ac_init_help" && exit 0 |
| 992 | if $ac_init_version; then |
| 993 | cat <<\_ACEOF |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 994 | python configure 2.6 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 995 | generated by GNU Autoconf 2.59 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 996 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 997 | Copyright (C) 2003 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 998 | This configure script is free software; the Free Software Foundation |
| 999 | gives unlimited permission to copy, distribute and modify it. |
| 1000 | _ACEOF |
| 1001 | exit 0 |
| 1002 | fi |
| 1003 | exec 5>config.log |
| 1004 | cat >&5 <<_ACEOF |
| 1005 | This file contains any messages produced by compilers while |
| 1006 | running configure, to aid debugging if configure makes a mistake. |
| 1007 | |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 1008 | It was created by python $as_me 2.6, which was |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1009 | generated by GNU Autoconf 2.59. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1010 | |
| 1011 | $ $0 $@ |
| 1012 | |
| 1013 | _ACEOF |
| 1014 | { |
| 1015 | cat <<_ASUNAME |
| 1016 | ## --------- ## |
| 1017 | ## Platform. ## |
| 1018 | ## --------- ## |
| 1019 | |
| 1020 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1021 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1022 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1023 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1024 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1025 | |
| 1026 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1027 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1028 | |
| 1029 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1030 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1031 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1032 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1033 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1034 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1035 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1036 | |
| 1037 | _ASUNAME |
| 1038 | |
| 1039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1040 | for as_dir in $PATH |
| 1041 | do |
| 1042 | IFS=$as_save_IFS |
| 1043 | test -z "$as_dir" && as_dir=. |
| 1044 | echo "PATH: $as_dir" |
| 1045 | done |
| 1046 | |
| 1047 | } >&5 |
| 1048 | |
| 1049 | cat >&5 <<_ACEOF |
| 1050 | |
| 1051 | |
| 1052 | ## ----------- ## |
| 1053 | ## Core tests. ## |
| 1054 | ## ----------- ## |
| 1055 | |
| 1056 | _ACEOF |
| 1057 | |
| 1058 | |
| 1059 | # Keep a trace of the command line. |
| 1060 | # 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] | 1061 | # 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] | 1062 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1063 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1064 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1065 | ac_configure_args0= |
| 1066 | ac_configure_args1= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1067 | ac_sep= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1068 | ac_must_keep_next=false |
| 1069 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1070 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1071 | for ac_arg |
| 1072 | do |
| 1073 | case $ac_arg in |
| 1074 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1075 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1076 | | -silent | --silent | --silen | --sile | --sil) |
| 1077 | continue ;; |
| 1078 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1079 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1080 | esac |
| 1081 | case $ac_pass in |
| 1082 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1083 | 2) |
| 1084 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1085 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1086 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1087 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1088 | case $ac_arg in |
| 1089 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1090 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1091 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1092 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1093 | case "$ac_configure_args0 " in |
| 1094 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1095 | esac |
| 1096 | ;; |
| 1097 | -* ) ac_must_keep_next=true ;; |
| 1098 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1099 | fi |
| 1100 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1101 | # Get rid of the leading space. |
| 1102 | ac_sep=" " |
| 1103 | ;; |
| 1104 | esac |
| 1105 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1106 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1107 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1108 | $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] | 1109 | |
| 1110 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1111 | # config.log. We remove comments because anyway the quotes in there |
| 1112 | # would cause problems or look ugly. |
| 1113 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1114 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1115 | trap 'exit_status=$? |
| 1116 | # Save into config.log some information that might help in debugging. |
| 1117 | { |
| 1118 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1119 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1120 | cat <<\_ASBOX |
| 1121 | ## ---------------- ## |
| 1122 | ## Cache variables. ## |
| 1123 | ## ---------------- ## |
| 1124 | _ASBOX |
| 1125 | echo |
| 1126 | # The following way of writing the cache mishandles newlines in values, |
| 1127 | { |
| 1128 | (set) 2>&1 | |
| 1129 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1130 | *ac_space=\ *) |
| 1131 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1132 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1133 | 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] | 1134 | ;; |
| 1135 | *) |
| 1136 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1137 | "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] | 1138 | ;; |
| 1139 | esac; |
| 1140 | } |
| 1141 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1142 | |
| 1143 | cat <<\_ASBOX |
| 1144 | ## ----------------- ## |
| 1145 | ## Output variables. ## |
| 1146 | ## ----------------- ## |
| 1147 | _ASBOX |
| 1148 | echo |
| 1149 | for ac_var in $ac_subst_vars |
| 1150 | do |
| 1151 | eval ac_val=$`echo $ac_var` |
| 1152 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1153 | done | sort |
| 1154 | echo |
| 1155 | |
| 1156 | if test -n "$ac_subst_files"; then |
| 1157 | cat <<\_ASBOX |
| 1158 | ## ------------- ## |
| 1159 | ## Output files. ## |
| 1160 | ## ------------- ## |
| 1161 | _ASBOX |
| 1162 | echo |
| 1163 | for ac_var in $ac_subst_files |
| 1164 | do |
| 1165 | eval ac_val=$`echo $ac_var` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1166 | echo "$ac_var='"'"'$ac_val'"'"'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1167 | done | sort |
| 1168 | echo |
| 1169 | fi |
| 1170 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1171 | if test -s confdefs.h; then |
| 1172 | cat <<\_ASBOX |
| 1173 | ## ----------- ## |
| 1174 | ## confdefs.h. ## |
| 1175 | ## ----------- ## |
| 1176 | _ASBOX |
| 1177 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1178 | sed "/^$/d" confdefs.h | sort |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1179 | echo |
| 1180 | fi |
| 1181 | test "$ac_signal" != 0 && |
| 1182 | echo "$as_me: caught signal $ac_signal" |
| 1183 | echo "$as_me: exit $exit_status" |
| 1184 | } >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1185 | rm -f core *.core && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1186 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1187 | exit $exit_status |
| 1188 | ' 0 |
| 1189 | for ac_signal in 1 2 13 15; do |
| 1190 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1191 | done |
| 1192 | ac_signal=0 |
| 1193 | |
| 1194 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1195 | rm -rf conftest* confdefs.h |
| 1196 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1197 | echo >confdefs.h |
| 1198 | |
| 1199 | # Predefined preprocessor variables. |
| 1200 | |
| 1201 | cat >>confdefs.h <<_ACEOF |
| 1202 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1203 | _ACEOF |
| 1204 | |
| 1205 | |
| 1206 | cat >>confdefs.h <<_ACEOF |
| 1207 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1208 | _ACEOF |
| 1209 | |
| 1210 | |
| 1211 | cat >>confdefs.h <<_ACEOF |
| 1212 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1213 | _ACEOF |
| 1214 | |
| 1215 | |
| 1216 | cat >>confdefs.h <<_ACEOF |
| 1217 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1218 | _ACEOF |
| 1219 | |
| 1220 | |
| 1221 | cat >>confdefs.h <<_ACEOF |
| 1222 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1223 | _ACEOF |
| 1224 | |
| 1225 | |
| 1226 | # 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] | 1227 | # Prefer explicitly selected file to automatically selected ones. |
| 1228 | if test -z "$CONFIG_SITE"; then |
| 1229 | if test "x$prefix" != xNONE; then |
| 1230 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1231 | else |
| 1232 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1233 | fi |
| 1234 | fi |
| 1235 | for ac_site_file in $CONFIG_SITE; do |
| 1236 | if test -r "$ac_site_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1237 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1238 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1239 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1240 | . "$ac_site_file" |
| 1241 | fi |
| 1242 | done |
| 1243 | |
| 1244 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1245 | # Some versions of bash will fail to source /dev/null (special |
| 1246 | # files actually), so we avoid doing that. |
| 1247 | if test -f "$cache_file"; then |
| 1248 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1249 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1250 | case $cache_file in |
| 1251 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1252 | *) . ./$cache_file;; |
| 1253 | esac |
| 1254 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1255 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1256 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1257 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1258 | >$cache_file |
| 1259 | fi |
| 1260 | |
| 1261 | # Check that the precious variables saved in the cache have kept the same |
| 1262 | # value. |
| 1263 | ac_cache_corrupted=false |
| 1264 | for ac_var in `(set) 2>&1 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1265 | 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] | 1266 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1267 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1268 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1269 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1270 | case $ac_old_set,$ac_new_set in |
| 1271 | set,) |
| 1272 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1273 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1274 | ac_cache_corrupted=: ;; |
| 1275 | ,set) |
| 1276 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1277 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1278 | ac_cache_corrupted=: ;; |
| 1279 | ,);; |
| 1280 | *) |
| 1281 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1282 | { 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] | 1283 | 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] | 1284 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1285 | echo "$as_me: former value: $ac_old_val" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1286 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1287 | echo "$as_me: current value: $ac_new_val" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1288 | ac_cache_corrupted=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1289 | fi;; |
| 1290 | esac |
| 1291 | # Pass precious variables to config.status. |
| 1292 | if test "$ac_new_set" = set; then |
| 1293 | case $ac_new_val in |
| 1294 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1295 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1296 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1297 | esac |
| 1298 | case " $ac_configure_args " in |
| 1299 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1300 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1301 | esac |
| 1302 | fi |
| 1303 | done |
| 1304 | if $ac_cache_corrupted; then |
| 1305 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1306 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1307 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1308 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1309 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1310 | fi |
| 1311 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1312 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1313 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1316 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1317 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1318 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1319 | |
| 1320 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1321 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1322 | |
| 1323 | |
| 1324 | |
| 1325 | |
| 1326 | |
| 1327 | |
| 1328 | |
| 1329 | |
| 1330 | |
| 1331 | |
| 1332 | |
| 1333 | |
| 1334 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1335 | |
| 1336 | |
| 1337 | |
| 1338 | |
| 1339 | |
| 1340 | |
| 1341 | |
| 1342 | |
| 1343 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1344 | |
| 1345 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1346 | |
| 1347 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1348 | |
| 1349 | |
| 1350 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1351 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1352 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1353 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1354 | # with other autoconf-based packages that include Python.h |
| 1355 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1356 | rm confdefs.h |
| 1357 | mv confdefs.h.new confdefs.h |
| 1358 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1359 | |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 1360 | VERSION=2.6 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1361 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1362 | |
| 1363 | SOVERSION=1.0 |
| 1364 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1365 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1366 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1367 | |
| 1368 | cat >>confdefs.h <<\_ACEOF |
| 1369 | #define _GNU_SOURCE 1 |
| 1370 | _ACEOF |
| 1371 | |
| 1372 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1373 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1374 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1375 | # them. |
| 1376 | |
| 1377 | cat >>confdefs.h <<\_ACEOF |
| 1378 | #define _NETBSD_SOURCE 1 |
| 1379 | _ACEOF |
| 1380 | |
| 1381 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1382 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1383 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1384 | # them. |
| 1385 | |
| 1386 | cat >>confdefs.h <<\_ACEOF |
| 1387 | #define __BSD_VISIBLE 1 |
| 1388 | _ACEOF |
| 1389 | |
| 1390 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1391 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1392 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1393 | |
| 1394 | cat >>confdefs.h <<\_ACEOF |
| 1395 | #define _BSD_TYPES 1 |
| 1396 | _ACEOF |
| 1397 | |
| 1398 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1399 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1400 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1401 | # Arguments passed to configure. |
| 1402 | |
| 1403 | CONFIG_ARGS="$ac_configure_args" |
| 1404 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1405 | # Check whether --enable-universalsdk or --disable-universalsdk was given. |
| 1406 | if test "${enable_universalsdk+set}" = set; then |
| 1407 | enableval="$enable_universalsdk" |
| 1408 | |
| 1409 | case $enableval in |
| 1410 | yes) |
| 1411 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
| 1412 | ;; |
| 1413 | esac |
| 1414 | case $enableval in |
| 1415 | no) |
| 1416 | UNIVERSALSDK= |
| 1417 | enable_universalsdk= |
| 1418 | ;; |
| 1419 | *) |
| 1420 | UNIVERSALSDK=$enableval |
| 1421 | ;; |
| 1422 | esac |
| 1423 | |
| 1424 | else |
| 1425 | |
| 1426 | UNIVERSALSDK= |
| 1427 | enable_universalsdk= |
| 1428 | |
| 1429 | fi; |
| 1430 | |
| 1431 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1432 | # Check whether --enable-framework or --disable-framework was given. |
| 1433 | if test "${enable_framework+set}" = set; then |
| 1434 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1435 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1436 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1437 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1438 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1439 | esac |
| 1440 | case $enableval in |
| 1441 | no) |
| 1442 | PYTHONFRAMEWORK= |
| 1443 | PYTHONFRAMEWORKDIR=no-framework |
| 1444 | PYTHONFRAMEWORKPREFIX= |
| 1445 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 1446 | FRAMEWORKINSTALLFIRST= |
| 1447 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 1448 | FRAMEWORKALTINSTALLFIRST= |
| 1449 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 1450 | if test "x${prefix}" = "xNONE"; then |
| 1451 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1452 | else |
| 1453 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1454 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1455 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1456 | ;; |
| 1457 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1458 | PYTHONFRAMEWORK=Python |
| 1459 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1460 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1461 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 1462 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
| 1463 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 1464 | FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall" |
| 1465 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 1466 | if test "x${prefix}" = "xNONE" ; then |
| 1467 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1468 | else |
| 1469 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1470 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1471 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 1472 | |
| 1473 | # Add makefiles for Mac specific code to the list of output |
| 1474 | # files: |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 1475 | ac_config_files="$ac_config_files Mac/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 1476 | |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 1477 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 1478 | |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 1479 | ac_config_files="$ac_config_files Mac/IDLE/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 1480 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1481 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1482 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1483 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1484 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1485 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1486 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1487 | PYTHONFRAMEWORKPREFIX= |
| 1488 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 1489 | FRAMEWORKINSTALLFIRST= |
| 1490 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 1491 | FRAMEWORKALTINSTALLFIRST= |
| 1492 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 1493 | if test "x${prefix}" = "xNONE" ; then |
| 1494 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1495 | else |
| 1496 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1497 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1498 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1499 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1500 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1501 | |
| 1502 | |
| 1503 | |
| 1504 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1505 | |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 1506 | |
| 1507 | |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 1508 | |
| 1509 | |
| 1510 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1511 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1512 | ## AC_HELP_STRING(--with-dyld, |
| 1513 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1514 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1515 | # Set name for machine-dependent library files |
| 1516 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1517 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1518 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1519 | if test -z "$MACHDEP" |
| 1520 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1521 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1522 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1523 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1524 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1525 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1526 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1527 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1528 | ac_md_system=`echo $ac_sys_system | |
| 1529 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1530 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1531 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1532 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1533 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1534 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1535 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1536 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1537 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 1538 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1539 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1540 | esac |
| 1541 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1542 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1543 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 1544 | # disable features if it is defined, without any means to access these |
| 1545 | # features as extensions. For these systems, we skip the definition of |
| 1546 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 1547 | # some feature, make sure there is no alternative way to access this |
| 1548 | # feature. Also, when using wildcards, make sure you have verified the |
| 1549 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 1550 | # wildcard, and that the wildcard does not include future systems |
| 1551 | # (which may remove their limitations). |
| 1552 | case $ac_sys_system/$ac_sys_release in |
| 1553 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 1554 | # 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] | 1555 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Neal Norwitz | 4bc2c09 | 2006-09-05 02:57:01 +0000 | [diff] [blame] | 1556 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0]) |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1557 | define_xopen_source=no;; |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 1558 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 1559 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 1560 | # Marc Recht |
| 1561 | NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S) |
| 1562 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 1563 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 1564 | # of union __?sigval. Reported by Stuart Bishop. |
| 1565 | SunOS/5.6) |
| 1566 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1567 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 1568 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 1569 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 1570 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1571 | define_xopen_source=no;; |
| 1572 | # 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] | 1573 | # 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] | 1574 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 1575 | define_xopen_source=no;; |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 1576 | # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that |
| 1577 | # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently, |
| 1578 | # this is fixed in 10.3, which identifies itself as Darwin/7.* |
| 1579 | # This should hopefully be fixed in FreeBSD 4.9 |
| 1580 | FreeBSD/4.8* | Darwin/6* ) |
| 1581 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 1582 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 1583 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 1584 | # 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] | 1585 | AIX/4) |
| 1586 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 1587 | AIX/5) |
| 1588 | if test `uname -r` -eq 1; then |
| 1589 | define_xopen_source=no |
| 1590 | fi |
| 1591 | ;; |
Neal Norwitz | e8fb992 | 2006-04-04 05:32:17 +0000 | [diff] [blame] | 1592 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 1593 | # disables platform specific features beyond repair. |
Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 1594 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
Neal Norwitz | 7659f0f | 2006-06-12 02:09:03 +0000 | [diff] [blame] | 1595 | # has no effect, don't bother defining them |
Ronald Oussoren | c95f756 | 2006-08-09 14:56:33 +0000 | [diff] [blame] | 1596 | Darwin/[789].*) |
Neal Norwitz | e8fb992 | 2006-04-04 05:32:17 +0000 | [diff] [blame] | 1597 | define_xopen_source=no |
| 1598 | ;; |
Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 1599 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1600 | esac |
| 1601 | |
| 1602 | if test $define_xopen_source = yes |
| 1603 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1604 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 1605 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 1606 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 1607 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1608 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 1609 | SunOS/5.8|SunOS/5.9|SunOS/5.10) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1610 | |
| 1611 | cat >>confdefs.h <<\_ACEOF |
| 1612 | #define _XOPEN_SOURCE 500 |
| 1613 | _ACEOF |
| 1614 | |
| 1615 | ;; |
| 1616 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1617 | |
| 1618 | cat >>confdefs.h <<\_ACEOF |
| 1619 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1620 | _ACEOF |
| 1621 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1622 | ;; |
| 1623 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1624 | |
| 1625 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 1626 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 1627 | # several APIs are not declared. Since this is also needed in some |
| 1628 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 1629 | # except for Solaris 10, where it must not be defined, |
| 1630 | # as it implies XPG4.2 |
| 1631 | case $ac_sys_system/$ac_sys_release in |
| 1632 | SunOS/5.10) |
| 1633 | ;; |
| 1634 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1635 | |
| 1636 | cat >>confdefs.h <<\_ACEOF |
| 1637 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 1638 | _ACEOF |
| 1639 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 1640 | ;; |
| 1641 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1642 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 1643 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1644 | cat >>confdefs.h <<\_ACEOF |
| 1645 | #define _POSIX_C_SOURCE 200112L |
| 1646 | _ACEOF |
| 1647 | |
| 1648 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1649 | fi |
| 1650 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1651 | # |
| 1652 | # SGI compilers allow the specification of the both the ABI and the |
| 1653 | # ISA on the command line. Depending on the values of these switches, |
| 1654 | # different and often incompatable code will be generated. |
| 1655 | # |
| 1656 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1657 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1658 | # variable is also adjusted. |
| 1659 | # |
| 1660 | |
| 1661 | if test ! -z "$SGI_ABI" |
| 1662 | then |
| 1663 | CC="cc $SGI_ABI" |
| 1664 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1665 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1666 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1667 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1668 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1669 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1670 | # And add extra plat-mac for darwin |
| 1671 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1672 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1673 | echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 1674 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6 |
| 1675 | if test -z "$EXTRAPLATDIR" |
| 1676 | then |
| 1677 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1678 | darwin) |
| 1679 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 1680 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 1681 | ;; |
| 1682 | *) |
| 1683 | EXTRAPLATDIR="" |
| 1684 | EXTRAMACHDEPPATH="" |
| 1685 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1686 | esac |
| 1687 | fi |
| 1688 | echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 1689 | echo "${ECHO_T}$EXTRAPLATDIR" >&6 |
| 1690 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 1691 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 1692 | # it may influence the way we can build extensions, so distutils |
| 1693 | # needs to check it |
| 1694 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1695 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 1696 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1697 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 1698 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1699 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1700 | |
| 1701 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 1702 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 1703 | # just to get things to compile and link. Users are free to override OPT |
| 1704 | # when running configure or make. The build should not break if they do. |
| 1705 | # BASECFLAGS should generally not be messed with, however. |
| 1706 | |
| 1707 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 1708 | # on that fiddles with OPT and BASECFLAGS? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1709 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1710 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1711 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1712 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1713 | if test "${with_gcc+set}" = set; then |
| 1714 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1715 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1716 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1717 | no) CC=cc |
| 1718 | without_gcc=yes;; |
| 1719 | yes) CC=gcc |
| 1720 | without_gcc=no;; |
| 1721 | *) CC=$withval |
| 1722 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1723 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1724 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1725 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1726 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1727 | AIX*) CC=cc_r |
| 1728 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1729 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1730 | case $BE_HOST_CPU in |
| 1731 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1732 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1733 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1734 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 1735 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1736 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1737 | ;; |
| 1738 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1739 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1740 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1741 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1742 | ;; |
| 1743 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1744 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1745 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1746 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1747 | ;; |
| 1748 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1749 | AR="\$(srcdir)/Modules/ar_beos" |
| 1750 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1751 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1752 | Monterey*) |
| 1753 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1754 | without_gcc=;; |
| 1755 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1756 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1757 | fi; |
| 1758 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1759 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1760 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1761 | # If the user switches compilers, we can't believe the cache |
| 1762 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1763 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1764 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1765 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1766 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1767 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1768 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1769 | fi |
| 1770 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1771 | ac_ext=c |
| 1772 | ac_cpp='$CPP $CPPFLAGS' |
| 1773 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1774 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1776 | if test -n "$ac_tool_prefix"; then |
| 1777 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1778 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1779 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1780 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1781 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1783 | else |
| 1784 | if test -n "$CC"; then |
| 1785 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1786 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1788 | for as_dir in $PATH |
| 1789 | do |
| 1790 | IFS=$as_save_IFS |
| 1791 | test -z "$as_dir" && as_dir=. |
| 1792 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1793 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1794 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1795 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1796 | break 2 |
| 1797 | fi |
| 1798 | done |
| 1799 | done |
| 1800 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1801 | fi |
| 1802 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1803 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1804 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1805 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1806 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1807 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1808 | echo "$as_me:$LINENO: result: no" >&5 |
| 1809 | echo "${ECHO_T}no" >&6 |
| 1810 | fi |
| 1811 | |
| 1812 | fi |
| 1813 | if test -z "$ac_cv_prog_CC"; then |
| 1814 | ac_ct_CC=$CC |
| 1815 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1816 | set dummy gcc; ac_word=$2 |
| 1817 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1818 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1819 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1821 | else |
| 1822 | if test -n "$ac_ct_CC"; then |
| 1823 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1824 | else |
| 1825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1826 | for as_dir in $PATH |
| 1827 | do |
| 1828 | IFS=$as_save_IFS |
| 1829 | test -z "$as_dir" && as_dir=. |
| 1830 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1831 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1832 | ac_cv_prog_ac_ct_CC="gcc" |
| 1833 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1834 | break 2 |
| 1835 | fi |
| 1836 | done |
| 1837 | done |
| 1838 | |
| 1839 | fi |
| 1840 | fi |
| 1841 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1842 | if test -n "$ac_ct_CC"; then |
| 1843 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1844 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1845 | else |
| 1846 | echo "$as_me:$LINENO: result: no" >&5 |
| 1847 | echo "${ECHO_T}no" >&6 |
| 1848 | fi |
| 1849 | |
| 1850 | CC=$ac_ct_CC |
| 1851 | else |
| 1852 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1853 | fi |
| 1854 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1855 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1856 | if test -n "$ac_tool_prefix"; then |
| 1857 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1858 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1859 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1860 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1861 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1863 | else |
| 1864 | if test -n "$CC"; then |
| 1865 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1866 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1868 | for as_dir in $PATH |
| 1869 | do |
| 1870 | IFS=$as_save_IFS |
| 1871 | test -z "$as_dir" && as_dir=. |
| 1872 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1873 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1874 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1875 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1876 | break 2 |
| 1877 | fi |
| 1878 | done |
| 1879 | done |
| 1880 | |
| 1881 | fi |
| 1882 | fi |
| 1883 | CC=$ac_cv_prog_CC |
| 1884 | if test -n "$CC"; then |
| 1885 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1886 | echo "${ECHO_T}$CC" >&6 |
| 1887 | else |
| 1888 | echo "$as_me:$LINENO: result: no" >&5 |
| 1889 | echo "${ECHO_T}no" >&6 |
| 1890 | fi |
| 1891 | |
| 1892 | fi |
| 1893 | if test -z "$ac_cv_prog_CC"; then |
| 1894 | ac_ct_CC=$CC |
| 1895 | # Extract the first word of "cc", so it can be a program name with args. |
| 1896 | set dummy cc; ac_word=$2 |
| 1897 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1898 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1899 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1901 | else |
| 1902 | if test -n "$ac_ct_CC"; then |
| 1903 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1904 | else |
| 1905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1906 | for as_dir in $PATH |
| 1907 | do |
| 1908 | IFS=$as_save_IFS |
| 1909 | test -z "$as_dir" && as_dir=. |
| 1910 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1911 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1912 | ac_cv_prog_ac_ct_CC="cc" |
| 1913 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1914 | break 2 |
| 1915 | fi |
| 1916 | done |
| 1917 | done |
| 1918 | |
| 1919 | fi |
| 1920 | fi |
| 1921 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1922 | if test -n "$ac_ct_CC"; then |
| 1923 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1924 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1925 | else |
| 1926 | echo "$as_me:$LINENO: result: no" >&5 |
| 1927 | echo "${ECHO_T}no" >&6 |
| 1928 | fi |
| 1929 | |
| 1930 | CC=$ac_ct_CC |
| 1931 | else |
| 1932 | CC="$ac_cv_prog_CC" |
| 1933 | fi |
| 1934 | |
| 1935 | fi |
| 1936 | if test -z "$CC"; then |
| 1937 | # Extract the first word of "cc", so it can be a program name with args. |
| 1938 | set dummy cc; ac_word=$2 |
| 1939 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1940 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1941 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1943 | else |
| 1944 | if test -n "$CC"; then |
| 1945 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1946 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1947 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1949 | for as_dir in $PATH |
| 1950 | do |
| 1951 | IFS=$as_save_IFS |
| 1952 | test -z "$as_dir" && as_dir=. |
| 1953 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1954 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1955 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1956 | ac_prog_rejected=yes |
| 1957 | continue |
| 1958 | fi |
| 1959 | ac_cv_prog_CC="cc" |
| 1960 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1961 | break 2 |
| 1962 | fi |
| 1963 | done |
| 1964 | done |
| 1965 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1966 | if test $ac_prog_rejected = yes; then |
| 1967 | # We found a bogon in the path, so make sure we never use it. |
| 1968 | set dummy $ac_cv_prog_CC |
| 1969 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1970 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1971 | # We chose a different compiler from the bogus one. |
| 1972 | # However, it has the same basename, so the bogon will be chosen |
| 1973 | # first if we set CC to just the basename; use the full file name. |
| 1974 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1975 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1976 | fi |
| 1977 | fi |
| 1978 | fi |
| 1979 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1980 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1981 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1982 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1983 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1984 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1985 | echo "$as_me:$LINENO: result: no" >&5 |
| 1986 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1987 | fi |
| 1988 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1989 | fi |
| 1990 | if test -z "$CC"; then |
| 1991 | if test -n "$ac_tool_prefix"; then |
| 1992 | for ac_prog in cl |
| 1993 | do |
| 1994 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1995 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1996 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1997 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1998 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2000 | else |
| 2001 | if test -n "$CC"; then |
| 2002 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2003 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2005 | for as_dir in $PATH |
| 2006 | do |
| 2007 | IFS=$as_save_IFS |
| 2008 | test -z "$as_dir" && as_dir=. |
| 2009 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2010 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2011 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2012 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2013 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2014 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2015 | done |
| 2016 | done |
| 2017 | |
| 2018 | fi |
| 2019 | fi |
| 2020 | CC=$ac_cv_prog_CC |
| 2021 | if test -n "$CC"; then |
| 2022 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2023 | echo "${ECHO_T}$CC" >&6 |
| 2024 | else |
| 2025 | echo "$as_me:$LINENO: result: no" >&5 |
| 2026 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2027 | fi |
| 2028 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2029 | test -n "$CC" && break |
| 2030 | done |
| 2031 | fi |
| 2032 | if test -z "$CC"; then |
| 2033 | ac_ct_CC=$CC |
| 2034 | for ac_prog in cl |
| 2035 | do |
| 2036 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2037 | set dummy $ac_prog; ac_word=$2 |
| 2038 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2039 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2040 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2042 | else |
| 2043 | if test -n "$ac_ct_CC"; then |
| 2044 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2045 | else |
| 2046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2047 | for as_dir in $PATH |
| 2048 | do |
| 2049 | IFS=$as_save_IFS |
| 2050 | test -z "$as_dir" && as_dir=. |
| 2051 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2052 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2053 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2054 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2055 | break 2 |
| 2056 | fi |
| 2057 | done |
| 2058 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2059 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2060 | fi |
| 2061 | fi |
| 2062 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2063 | if test -n "$ac_ct_CC"; then |
| 2064 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2065 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2066 | else |
| 2067 | echo "$as_me:$LINENO: result: no" >&5 |
| 2068 | echo "${ECHO_T}no" >&6 |
| 2069 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2070 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2071 | test -n "$ac_ct_CC" && break |
| 2072 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2073 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2074 | CC=$ac_ct_CC |
| 2075 | fi |
| 2076 | |
| 2077 | fi |
| 2078 | |
| 2079 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2080 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2081 | See \`config.log' for more details." >&5 |
| 2082 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2083 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2084 | { (exit 1); exit 1; }; } |
| 2085 | |
| 2086 | # Provide some information about the compiler. |
| 2087 | echo "$as_me:$LINENO:" \ |
| 2088 | "checking for C compiler version" >&5 |
| 2089 | ac_compiler=`set X $ac_compile; echo $2` |
| 2090 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2091 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2092 | ac_status=$? |
| 2093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2094 | (exit $ac_status); } |
| 2095 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2096 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2097 | ac_status=$? |
| 2098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2099 | (exit $ac_status); } |
| 2100 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2101 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2102 | ac_status=$? |
| 2103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2104 | (exit $ac_status); } |
| 2105 | |
| 2106 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2107 | /* confdefs.h. */ |
| 2108 | _ACEOF |
| 2109 | cat confdefs.h >>conftest.$ac_ext |
| 2110 | cat >>conftest.$ac_ext <<_ACEOF |
| 2111 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2112 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2113 | int |
| 2114 | main () |
| 2115 | { |
| 2116 | |
| 2117 | ; |
| 2118 | return 0; |
| 2119 | } |
| 2120 | _ACEOF |
| 2121 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2122 | 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] | 2123 | # Try to create an executable without -o first, disregard a.out. |
| 2124 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2125 | # of exeext. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2126 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2127 | 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] | 2128 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2129 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2130 | (eval $ac_link_default) 2>&5 |
| 2131 | ac_status=$? |
| 2132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2133 | (exit $ac_status); }; then |
| 2134 | # Find the output, starting from the most likely. This scheme is |
| 2135 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2136 | # resort. |
| 2137 | |
| 2138 | # Be careful to initialize this variable, since it used to be cached. |
| 2139 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2140 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2141 | # b.out is created by i960 compilers. |
| 2142 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2143 | do |
| 2144 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2145 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2146 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2147 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2148 | conftest.$ac_ext ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2149 | # This is the source file. |
| 2150 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2151 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2152 | # We found the default executable, but exeext='' is most |
| 2153 | # certainly right. |
| 2154 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2155 | *.* ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2156 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2157 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2158 | # but it would be cool to find out if it's true. Does anybody |
| 2159 | # maintain Libtool? --akim. |
| 2160 | export ac_cv_exeext |
| 2161 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2162 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2163 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2164 | esac |
| 2165 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2166 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2167 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2168 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2169 | |
| 2170 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2171 | See \`config.log' for more details." >&5 |
| 2172 | echo "$as_me: error: C compiler cannot create executables |
| 2173 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2174 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2175 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2176 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2177 | ac_exeext=$ac_cv_exeext |
| 2178 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2179 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2180 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2181 | # Check the compiler produces executables we can run. If not, either |
| 2182 | # the compiler is broken, or we cross compile. |
| 2183 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2184 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2185 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2186 | # If not cross compiling, check that we can run a simple program. |
| 2187 | if test "$cross_compiling" != yes; then |
| 2188 | if { ac_try='./$ac_file' |
| 2189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2190 | (eval $ac_try) 2>&5 |
| 2191 | ac_status=$? |
| 2192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2193 | (exit $ac_status); }; }; then |
| 2194 | cross_compiling=no |
| 2195 | else |
| 2196 | if test "$cross_compiling" = maybe; then |
| 2197 | cross_compiling=yes |
| 2198 | else |
| 2199 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2200 | If you meant to cross compile, use \`--host'. |
| 2201 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2202 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2203 | If you meant to cross compile, use \`--host'. |
| 2204 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2205 | { (exit 1); exit 1; }; } |
| 2206 | fi |
| 2207 | fi |
| 2208 | fi |
| 2209 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2210 | echo "${ECHO_T}yes" >&6 |
| 2211 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2212 | 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] | 2213 | ac_clean_files=$ac_clean_files_save |
| 2214 | # Check the compiler produces executables we can run. If not, either |
| 2215 | # the compiler is broken, or we cross compile. |
| 2216 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2217 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2218 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2219 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2220 | |
| 2221 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2222 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2223 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2224 | (eval $ac_link) 2>&5 |
| 2225 | ac_status=$? |
| 2226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2227 | (exit $ac_status); }; then |
| 2228 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2229 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2230 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2231 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2232 | for ac_file in conftest.exe conftest conftest.*; do |
| 2233 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2234 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2235 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2236 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2237 | export ac_cv_exeext |
| 2238 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2239 | * ) break;; |
| 2240 | esac |
| 2241 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2242 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2243 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2244 | See \`config.log' for more details." >&5 |
| 2245 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2246 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2247 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2248 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2249 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2250 | rm -f conftest$ac_cv_exeext |
| 2251 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2252 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2253 | |
| 2254 | rm -f conftest.$ac_ext |
| 2255 | EXEEXT=$ac_cv_exeext |
| 2256 | ac_exeext=$EXEEXT |
| 2257 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2258 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2259 | if test "${ac_cv_objext+set}" = set; then |
| 2260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2261 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2262 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2263 | /* confdefs.h. */ |
| 2264 | _ACEOF |
| 2265 | cat confdefs.h >>conftest.$ac_ext |
| 2266 | cat >>conftest.$ac_ext <<_ACEOF |
| 2267 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2268 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2269 | int |
| 2270 | main () |
| 2271 | { |
| 2272 | |
| 2273 | ; |
| 2274 | return 0; |
| 2275 | } |
| 2276 | _ACEOF |
| 2277 | rm -f conftest.o conftest.obj |
| 2278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2279 | (eval $ac_compile) 2>&5 |
| 2280 | ac_status=$? |
| 2281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2282 | (exit $ac_status); }; then |
| 2283 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2284 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2285 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2286 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2287 | break;; |
| 2288 | esac |
| 2289 | done |
| 2290 | else |
| 2291 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2293 | |
| 2294 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2295 | See \`config.log' for more details." >&5 |
| 2296 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2297 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2298 | { (exit 1); exit 1; }; } |
| 2299 | fi |
| 2300 | |
| 2301 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2302 | fi |
| 2303 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2304 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2305 | OBJEXT=$ac_cv_objext |
| 2306 | ac_objext=$OBJEXT |
| 2307 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2308 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2309 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2311 | else |
| 2312 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2313 | /* confdefs.h. */ |
| 2314 | _ACEOF |
| 2315 | cat confdefs.h >>conftest.$ac_ext |
| 2316 | cat >>conftest.$ac_ext <<_ACEOF |
| 2317 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2318 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2319 | int |
| 2320 | main () |
| 2321 | { |
| 2322 | #ifndef __GNUC__ |
| 2323 | choke me |
| 2324 | #endif |
| 2325 | |
| 2326 | ; |
| 2327 | return 0; |
| 2328 | } |
| 2329 | _ACEOF |
| 2330 | rm -f conftest.$ac_objext |
| 2331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2332 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2333 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2335 | rm -f conftest.er1 |
| 2336 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2338 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2339 | { ac_try='test -z "$ac_c_werror_flag" |
| 2340 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2342 | (eval $ac_try) 2>&5 |
| 2343 | ac_status=$? |
| 2344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2345 | (exit $ac_status); }; } && |
| 2346 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2348 | (eval $ac_try) 2>&5 |
| 2349 | ac_status=$? |
| 2350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2351 | (exit $ac_status); }; }; then |
| 2352 | ac_compiler_gnu=yes |
| 2353 | else |
| 2354 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2356 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2357 | ac_compiler_gnu=no |
| 2358 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2359 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2360 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2361 | |
| 2362 | fi |
| 2363 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2364 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2365 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2366 | ac_test_CFLAGS=${CFLAGS+set} |
| 2367 | ac_save_CFLAGS=$CFLAGS |
| 2368 | CFLAGS="-g" |
| 2369 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2370 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2371 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2373 | else |
| 2374 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2375 | /* confdefs.h. */ |
| 2376 | _ACEOF |
| 2377 | cat confdefs.h >>conftest.$ac_ext |
| 2378 | cat >>conftest.$ac_ext <<_ACEOF |
| 2379 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2380 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2381 | int |
| 2382 | main () |
| 2383 | { |
| 2384 | |
| 2385 | ; |
| 2386 | return 0; |
| 2387 | } |
| 2388 | _ACEOF |
| 2389 | rm -f conftest.$ac_objext |
| 2390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2391 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2392 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2394 | rm -f conftest.er1 |
| 2395 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2397 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2398 | { ac_try='test -z "$ac_c_werror_flag" |
| 2399 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2401 | (eval $ac_try) 2>&5 |
| 2402 | ac_status=$? |
| 2403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2404 | (exit $ac_status); }; } && |
| 2405 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2407 | (eval $ac_try) 2>&5 |
| 2408 | ac_status=$? |
| 2409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2410 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2411 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2412 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2413 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2415 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2416 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2417 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2418 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2419 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2420 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2421 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2422 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2423 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2424 | elif test $ac_cv_prog_cc_g = yes; then |
| 2425 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2426 | CFLAGS="-g -O2" |
| 2427 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2428 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2429 | fi |
| 2430 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2431 | if test "$GCC" = yes; then |
| 2432 | CFLAGS="-O2" |
| 2433 | else |
| 2434 | CFLAGS= |
| 2435 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2436 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2437 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2438 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2439 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2441 | else |
| 2442 | ac_cv_prog_cc_stdc=no |
| 2443 | ac_save_CC=$CC |
| 2444 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2445 | /* confdefs.h. */ |
| 2446 | _ACEOF |
| 2447 | cat confdefs.h >>conftest.$ac_ext |
| 2448 | cat >>conftest.$ac_ext <<_ACEOF |
| 2449 | /* end confdefs.h. */ |
| 2450 | #include <stdarg.h> |
| 2451 | #include <stdio.h> |
| 2452 | #include <sys/types.h> |
| 2453 | #include <sys/stat.h> |
| 2454 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2455 | struct buf { int x; }; |
| 2456 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2457 | static char *e (p, i) |
| 2458 | char **p; |
| 2459 | int i; |
| 2460 | { |
| 2461 | return p[i]; |
| 2462 | } |
| 2463 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2464 | { |
| 2465 | char *s; |
| 2466 | va_list v; |
| 2467 | va_start (v,p); |
| 2468 | s = g (p, va_arg (v,int)); |
| 2469 | va_end (v); |
| 2470 | return s; |
| 2471 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2472 | |
| 2473 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2474 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2475 | These don't provoke an error unfortunately, instead are silently treated |
| 2476 | as 'x'. The following induces an error, until -std1 is added to get |
| 2477 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2478 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2479 | that's true only with -std1. */ |
| 2480 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2481 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2482 | int test (int i, double x); |
| 2483 | struct s1 {int (*f) (int a);}; |
| 2484 | struct s2 {int (*f) (double a);}; |
| 2485 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2486 | int argc; |
| 2487 | char **argv; |
| 2488 | int |
| 2489 | main () |
| 2490 | { |
| 2491 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2492 | ; |
| 2493 | return 0; |
| 2494 | } |
| 2495 | _ACEOF |
| 2496 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2497 | # breaks some systems' header files. |
| 2498 | # AIX -qlanglvl=ansi |
| 2499 | # Ultrix and OSF/1 -std1 |
| 2500 | # HP-UX 10.20 and later -Ae |
| 2501 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2502 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2503 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2504 | do |
| 2505 | CC="$ac_save_CC $ac_arg" |
| 2506 | rm -f conftest.$ac_objext |
| 2507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2508 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2509 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2511 | rm -f conftest.er1 |
| 2512 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2514 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2515 | { ac_try='test -z "$ac_c_werror_flag" |
| 2516 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +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); }; } && |
| 2522 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2524 | (eval $ac_try) 2>&5 |
| 2525 | ac_status=$? |
| 2526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2527 | (exit $ac_status); }; }; then |
| 2528 | ac_cv_prog_cc_stdc=$ac_arg |
| 2529 | break |
| 2530 | else |
| 2531 | echo "$as_me: failed program was:" >&5 |
| 2532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2533 | |
| 2534 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2535 | rm -f conftest.err conftest.$ac_objext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2536 | done |
| 2537 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2538 | CC=$ac_save_CC |
| 2539 | |
| 2540 | fi |
| 2541 | |
| 2542 | case "x$ac_cv_prog_cc_stdc" in |
| 2543 | x|xno) |
| 2544 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2545 | echo "${ECHO_T}none needed" >&6 ;; |
| 2546 | *) |
| 2547 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2548 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2549 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2550 | esac |
| 2551 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2552 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2553 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2554 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2555 | # the declaration of exit, since it's the most demanding environment. |
| 2556 | cat >conftest.$ac_ext <<_ACEOF |
| 2557 | #ifndef __cplusplus |
| 2558 | choke me |
| 2559 | #endif |
| 2560 | _ACEOF |
| 2561 | rm -f conftest.$ac_objext |
| 2562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2563 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2564 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2566 | rm -f conftest.er1 |
| 2567 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2569 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2570 | { ac_try='test -z "$ac_c_werror_flag" |
| 2571 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2573 | (eval $ac_try) 2>&5 |
| 2574 | ac_status=$? |
| 2575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2576 | (exit $ac_status); }; } && |
| 2577 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2579 | (eval $ac_try) 2>&5 |
| 2580 | ac_status=$? |
| 2581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2582 | (exit $ac_status); }; }; then |
| 2583 | for ac_declaration in \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2584 | '' \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2585 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2586 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2587 | 'extern "C" void exit (int) throw ();' \ |
| 2588 | 'extern "C" void exit (int);' \ |
| 2589 | 'void exit (int);' |
| 2590 | do |
| 2591 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2592 | /* confdefs.h. */ |
| 2593 | _ACEOF |
| 2594 | cat confdefs.h >>conftest.$ac_ext |
| 2595 | cat >>conftest.$ac_ext <<_ACEOF |
| 2596 | /* end confdefs.h. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 2597 | $ac_declaration |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2598 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2599 | int |
| 2600 | main () |
| 2601 | { |
| 2602 | exit (42); |
| 2603 | ; |
| 2604 | return 0; |
| 2605 | } |
| 2606 | _ACEOF |
| 2607 | rm -f conftest.$ac_objext |
| 2608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2609 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2610 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2611 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2612 | rm -f conftest.er1 |
| 2613 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2615 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2616 | { ac_try='test -z "$ac_c_werror_flag" |
| 2617 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2619 | (eval $ac_try) 2>&5 |
| 2620 | ac_status=$? |
| 2621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2622 | (exit $ac_status); }; } && |
| 2623 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2625 | (eval $ac_try) 2>&5 |
| 2626 | ac_status=$? |
| 2627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2628 | (exit $ac_status); }; }; then |
| 2629 | : |
| 2630 | else |
| 2631 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2633 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2634 | continue |
| 2635 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2636 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2637 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2638 | /* confdefs.h. */ |
| 2639 | _ACEOF |
| 2640 | cat confdefs.h >>conftest.$ac_ext |
| 2641 | cat >>conftest.$ac_ext <<_ACEOF |
| 2642 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2643 | $ac_declaration |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2644 | int |
| 2645 | main () |
| 2646 | { |
| 2647 | exit (42); |
| 2648 | ; |
| 2649 | return 0; |
| 2650 | } |
| 2651 | _ACEOF |
| 2652 | rm -f conftest.$ac_objext |
| 2653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2654 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2655 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2657 | rm -f conftest.er1 |
| 2658 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2660 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2661 | { ac_try='test -z "$ac_c_werror_flag" |
| 2662 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2664 | (eval $ac_try) 2>&5 |
| 2665 | ac_status=$? |
| 2666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2667 | (exit $ac_status); }; } && |
| 2668 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2670 | (eval $ac_try) 2>&5 |
| 2671 | ac_status=$? |
| 2672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2673 | (exit $ac_status); }; }; then |
| 2674 | break |
| 2675 | else |
| 2676 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2678 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2679 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2681 | done |
| 2682 | rm -f conftest* |
| 2683 | if test -n "$ac_declaration"; then |
| 2684 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2685 | echo $ac_declaration >>confdefs.h |
| 2686 | echo '#endif' >>confdefs.h |
| 2687 | fi |
| 2688 | |
| 2689 | else |
| 2690 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2692 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2693 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2694 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2695 | ac_ext=c |
| 2696 | ac_cpp='$CPP $CPPFLAGS' |
| 2697 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2698 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2699 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2700 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2701 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 2702 | |
| 2703 | |
| 2704 | echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5 |
| 2705 | echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6 |
| 2706 | |
| 2707 | # Check whether --with-cxx_main or --without-cxx_main was given. |
| 2708 | if test "${with_cxx_main+set}" = set; then |
| 2709 | withval="$with_cxx_main" |
| 2710 | |
| 2711 | |
| 2712 | case $withval in |
| 2713 | no) with_cxx_main=no |
| 2714 | MAINCC='$(CC)';; |
| 2715 | yes) with_cxx_main=yes |
| 2716 | MAINCC='$(CXX)';; |
| 2717 | *) with_cxx_main=yes |
| 2718 | MAINCC=$withval |
| 2719 | if test -z "$CXX" |
| 2720 | then |
| 2721 | CXX=$withval |
| 2722 | fi;; |
| 2723 | esac |
| 2724 | else |
| 2725 | |
| 2726 | with_cxx_main=no |
| 2727 | MAINCC='$(CC)' |
| 2728 | |
| 2729 | fi; |
| 2730 | echo "$as_me:$LINENO: result: $with_cxx_main" >&5 |
| 2731 | echo "${ECHO_T}$with_cxx_main" >&6 |
| 2732 | |
| 2733 | preset_cxx="$CXX" |
| 2734 | if test -z "$CXX" |
| 2735 | then |
| 2736 | case "$CC" in |
| 2737 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 2738 | set dummy g++; ac_word=$2 |
| 2739 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2740 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2741 | if test "${ac_cv_path_CXX+set}" = set; then |
| 2742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2743 | else |
| 2744 | case $CXX in |
| 2745 | [\\/]* | ?:[\\/]*) |
| 2746 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 2747 | ;; |
| 2748 | *) |
| 2749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2750 | for as_dir in notfound |
| 2751 | do |
| 2752 | IFS=$as_save_IFS |
| 2753 | test -z "$as_dir" && as_dir=. |
| 2754 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2755 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2756 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 2757 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2758 | break 2 |
| 2759 | fi |
| 2760 | done |
| 2761 | done |
| 2762 | |
| 2763 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 2764 | ;; |
| 2765 | esac |
| 2766 | fi |
| 2767 | CXX=$ac_cv_path_CXX |
| 2768 | |
| 2769 | if test -n "$CXX"; then |
| 2770 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2771 | echo "${ECHO_T}$CXX" >&6 |
| 2772 | else |
| 2773 | echo "$as_me:$LINENO: result: no" >&5 |
| 2774 | echo "${ECHO_T}no" >&6 |
| 2775 | fi |
| 2776 | ;; |
| 2777 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 2778 | set dummy c++; ac_word=$2 |
| 2779 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2780 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2781 | if test "${ac_cv_path_CXX+set}" = set; then |
| 2782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2783 | else |
| 2784 | case $CXX in |
| 2785 | [\\/]* | ?:[\\/]*) |
| 2786 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 2787 | ;; |
| 2788 | *) |
| 2789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2790 | for as_dir in notfound |
| 2791 | do |
| 2792 | IFS=$as_save_IFS |
| 2793 | test -z "$as_dir" && as_dir=. |
| 2794 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2795 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2796 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 2797 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2798 | break 2 |
| 2799 | fi |
| 2800 | done |
| 2801 | done |
| 2802 | |
| 2803 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 2804 | ;; |
| 2805 | esac |
| 2806 | fi |
| 2807 | CXX=$ac_cv_path_CXX |
| 2808 | |
| 2809 | if test -n "$CXX"; then |
| 2810 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2811 | echo "${ECHO_T}$CXX" >&6 |
| 2812 | else |
| 2813 | echo "$as_me:$LINENO: result: no" >&5 |
| 2814 | echo "${ECHO_T}no" >&6 |
| 2815 | fi |
| 2816 | ;; |
| 2817 | esac |
| 2818 | if test "$CXX" = "notfound" |
| 2819 | then |
| 2820 | CXX="" |
| 2821 | fi |
| 2822 | fi |
| 2823 | if test -z "$CXX" |
| 2824 | then |
| 2825 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 2826 | do |
| 2827 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2828 | set dummy $ac_prog; ac_word=$2 |
| 2829 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2830 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2831 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2833 | else |
| 2834 | if test -n "$CXX"; then |
| 2835 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2836 | else |
| 2837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2838 | for as_dir in $PATH |
| 2839 | do |
| 2840 | IFS=$as_save_IFS |
| 2841 | test -z "$as_dir" && as_dir=. |
| 2842 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2843 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2844 | ac_cv_prog_CXX="$ac_prog" |
| 2845 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2846 | break 2 |
| 2847 | fi |
| 2848 | done |
| 2849 | done |
| 2850 | |
| 2851 | fi |
| 2852 | fi |
| 2853 | CXX=$ac_cv_prog_CXX |
| 2854 | if test -n "$CXX"; then |
| 2855 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2856 | echo "${ECHO_T}$CXX" >&6 |
| 2857 | else |
| 2858 | echo "$as_me:$LINENO: result: no" >&5 |
| 2859 | echo "${ECHO_T}no" >&6 |
| 2860 | fi |
| 2861 | |
| 2862 | test -n "$CXX" && break |
| 2863 | done |
| 2864 | test -n "$CXX" || CXX="notfound" |
| 2865 | |
| 2866 | if test "$CXX" = "notfound" |
| 2867 | then |
| 2868 | CXX="" |
| 2869 | fi |
| 2870 | fi |
| 2871 | if test "$preset_cxx" != "$CXX" |
| 2872 | then |
| 2873 | { echo "$as_me:$LINENO: WARNING: |
| 2874 | |
| 2875 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 2876 | If this is not intended, then set CXX on the configure command line. |
| 2877 | " >&5 |
| 2878 | echo "$as_me: WARNING: |
| 2879 | |
| 2880 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 2881 | If this is not intended, then set CXX on the configure command line. |
| 2882 | " >&2;} |
| 2883 | fi |
| 2884 | |
| 2885 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2886 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2887 | |
| 2888 | ac_ext=c |
| 2889 | ac_cpp='$CPP $CPPFLAGS' |
| 2890 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2891 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2892 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2893 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2894 | 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] | 2895 | # On Suns, sometimes $CPP names a directory. |
| 2896 | if test -n "$CPP" && test -d "$CPP"; then |
| 2897 | CPP= |
| 2898 | fi |
| 2899 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2900 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2902 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2903 | # Double quotes because CPP needs to be expanded |
| 2904 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2905 | do |
| 2906 | ac_preproc_ok=false |
| 2907 | for ac_c_preproc_warn_flag in '' yes |
| 2908 | do |
| 2909 | # Use a header file that comes with gcc, so configuring glibc |
| 2910 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2911 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2912 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2913 | # 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] | 2914 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2915 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2916 | /* confdefs.h. */ |
| 2917 | _ACEOF |
| 2918 | cat confdefs.h >>conftest.$ac_ext |
| 2919 | cat >>conftest.$ac_ext <<_ACEOF |
| 2920 | /* end confdefs.h. */ |
| 2921 | #ifdef __STDC__ |
| 2922 | # include <limits.h> |
| 2923 | #else |
| 2924 | # include <assert.h> |
| 2925 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2926 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2927 | _ACEOF |
| 2928 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2929 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2930 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2931 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2932 | rm -f conftest.er1 |
| 2933 | cat conftest.err >&5 |
| 2934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2935 | (exit $ac_status); } >/dev/null; then |
| 2936 | if test -s conftest.err; then |
| 2937 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2938 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2939 | else |
| 2940 | ac_cpp_err= |
| 2941 | fi |
| 2942 | else |
| 2943 | ac_cpp_err=yes |
| 2944 | fi |
| 2945 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2946 | : |
| 2947 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2948 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2949 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2950 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2951 | # Broken: fails on valid input. |
| 2952 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2953 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2954 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2955 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2956 | # OK, works on sane cases. Now check whether non-existent headers |
| 2957 | # can be detected and how. |
| 2958 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2959 | /* confdefs.h. */ |
| 2960 | _ACEOF |
| 2961 | cat confdefs.h >>conftest.$ac_ext |
| 2962 | cat >>conftest.$ac_ext <<_ACEOF |
| 2963 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2964 | #include <ac_nonexistent.h> |
| 2965 | _ACEOF |
| 2966 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2967 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2968 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2969 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2970 | rm -f conftest.er1 |
| 2971 | cat conftest.err >&5 |
| 2972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2973 | (exit $ac_status); } >/dev/null; then |
| 2974 | if test -s conftest.err; then |
| 2975 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2976 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2977 | else |
| 2978 | ac_cpp_err= |
| 2979 | fi |
| 2980 | else |
| 2981 | ac_cpp_err=yes |
| 2982 | fi |
| 2983 | if test -z "$ac_cpp_err"; then |
| 2984 | # Broken: success on invalid input. |
| 2985 | continue |
| 2986 | else |
| 2987 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2989 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2990 | # Passes both tests. |
| 2991 | ac_preproc_ok=: |
| 2992 | break |
| 2993 | fi |
| 2994 | rm -f conftest.err conftest.$ac_ext |
| 2995 | |
| 2996 | done |
| 2997 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2998 | rm -f conftest.err conftest.$ac_ext |
| 2999 | if $ac_preproc_ok; then |
| 3000 | break |
| 3001 | fi |
| 3002 | |
| 3003 | done |
| 3004 | ac_cv_prog_CPP=$CPP |
| 3005 | |
| 3006 | fi |
| 3007 | CPP=$ac_cv_prog_CPP |
| 3008 | else |
| 3009 | ac_cv_prog_CPP=$CPP |
| 3010 | fi |
| 3011 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3012 | echo "${ECHO_T}$CPP" >&6 |
| 3013 | ac_preproc_ok=false |
| 3014 | for ac_c_preproc_warn_flag in '' yes |
| 3015 | do |
| 3016 | # Use a header file that comes with gcc, so configuring glibc |
| 3017 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3018 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3019 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3020 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3021 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3022 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3023 | /* confdefs.h. */ |
| 3024 | _ACEOF |
| 3025 | cat confdefs.h >>conftest.$ac_ext |
| 3026 | cat >>conftest.$ac_ext <<_ACEOF |
| 3027 | /* end confdefs.h. */ |
| 3028 | #ifdef __STDC__ |
| 3029 | # include <limits.h> |
| 3030 | #else |
| 3031 | # include <assert.h> |
| 3032 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3033 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3034 | _ACEOF |
| 3035 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3036 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3037 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3038 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3039 | rm -f conftest.er1 |
| 3040 | cat conftest.err >&5 |
| 3041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3042 | (exit $ac_status); } >/dev/null; then |
| 3043 | if test -s conftest.err; then |
| 3044 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3045 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3046 | else |
| 3047 | ac_cpp_err= |
| 3048 | fi |
| 3049 | else |
| 3050 | ac_cpp_err=yes |
| 3051 | fi |
| 3052 | if test -z "$ac_cpp_err"; then |
| 3053 | : |
| 3054 | else |
| 3055 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3057 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3058 | # Broken: fails on valid input. |
| 3059 | continue |
| 3060 | fi |
| 3061 | rm -f conftest.err conftest.$ac_ext |
| 3062 | |
| 3063 | # OK, works on sane cases. Now check whether non-existent headers |
| 3064 | # can be detected and how. |
| 3065 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3066 | /* confdefs.h. */ |
| 3067 | _ACEOF |
| 3068 | cat confdefs.h >>conftest.$ac_ext |
| 3069 | cat >>conftest.$ac_ext <<_ACEOF |
| 3070 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3071 | #include <ac_nonexistent.h> |
| 3072 | _ACEOF |
| 3073 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3074 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3075 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3076 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3077 | rm -f conftest.er1 |
| 3078 | cat conftest.err >&5 |
| 3079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3080 | (exit $ac_status); } >/dev/null; then |
| 3081 | if test -s conftest.err; then |
| 3082 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3083 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3084 | else |
| 3085 | ac_cpp_err= |
| 3086 | fi |
| 3087 | else |
| 3088 | ac_cpp_err=yes |
| 3089 | fi |
| 3090 | if test -z "$ac_cpp_err"; then |
| 3091 | # Broken: success on invalid input. |
| 3092 | continue |
| 3093 | else |
| 3094 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3096 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3097 | # Passes both tests. |
| 3098 | ac_preproc_ok=: |
| 3099 | break |
| 3100 | fi |
| 3101 | rm -f conftest.err conftest.$ac_ext |
| 3102 | |
| 3103 | done |
| 3104 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3105 | rm -f conftest.err conftest.$ac_ext |
| 3106 | if $ac_preproc_ok; then |
| 3107 | : |
| 3108 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3109 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3110 | See \`config.log' for more details." >&5 |
| 3111 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3112 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3113 | { (exit 1); exit 1; }; } |
| 3114 | fi |
| 3115 | |
| 3116 | ac_ext=c |
| 3117 | ac_cpp='$CPP $CPPFLAGS' |
| 3118 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3119 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3120 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3121 | |
| 3122 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3123 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3124 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3125 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3127 | else |
| 3128 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3129 | then ac_cv_prog_egrep='grep -E' |
| 3130 | else ac_cv_prog_egrep='egrep' |
| 3131 | fi |
| 3132 | fi |
| 3133 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3134 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3135 | EGREP=$ac_cv_prog_egrep |
| 3136 | |
| 3137 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3138 | |
| 3139 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3140 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 3141 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3142 | /* confdefs.h. */ |
| 3143 | _ACEOF |
| 3144 | cat confdefs.h >>conftest.$ac_ext |
| 3145 | cat >>conftest.$ac_ext <<_ACEOF |
| 3146 | /* end confdefs.h. */ |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3147 | #ifdef _AIX |
| 3148 | yes |
| 3149 | #endif |
| 3150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3151 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3152 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3153 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3154 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3155 | echo "${ECHO_T}yes" >&6 |
| 3156 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3157 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3158 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3159 | |
| 3160 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3161 | echo "$as_me:$LINENO: result: no" >&5 |
| 3162 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3163 | fi |
| 3164 | rm -f conftest* |
| 3165 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3166 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3167 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3168 | # Check for unsupported systems |
| 3169 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 3170 | Linux*/1*) |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3171 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3172 | echo See README for details. |
| 3173 | exit 1;; |
| 3174 | esac |
| 3175 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3176 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3177 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3178 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3179 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3180 | # Check whether --with-suffix or --without-suffix was given. |
| 3181 | if test "${with_suffix+set}" = set; then |
| 3182 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3183 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3184 | case $withval in |
| 3185 | no) EXEEXT=;; |
| 3186 | yes) EXEEXT=.exe;; |
| 3187 | *) EXEEXT=$withval;; |
| 3188 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3189 | fi; |
| 3190 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3191 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3192 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3193 | # Test whether we're running on a non-case-sensitive system, in which |
| 3194 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3195 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3196 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3197 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3198 | if test ! -d CaseSensitiveTestDir; then |
| 3199 | mkdir CaseSensitiveTestDir |
| 3200 | fi |
| 3201 | |
| 3202 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3203 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3204 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3205 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3206 | BUILDEXEEXT=.exe |
| 3207 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3208 | echo "$as_me:$LINENO: result: no" >&5 |
| 3209 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3210 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3211 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3212 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3213 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3214 | case $MACHDEP in |
| 3215 | bsdos*) |
| 3216 | case $CC in |
| 3217 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3218 | esac;; |
| 3219 | esac |
| 3220 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3221 | case $ac_sys_system in |
| 3222 | hp*|HP*) |
| 3223 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3224 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3225 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3226 | Monterey*) |
| 3227 | case $CC in |
| 3228 | cc) CC="$CC -Wl,-Bexport";; |
| 3229 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3230 | SunOS*) |
| 3231 | # 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] | 3232 | |
| 3233 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3234 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3235 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3236 | |
| 3237 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3238 | esac |
| 3239 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3240 | |
| 3241 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3242 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3243 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3244 | if test -z "$LIBRARY" |
| 3245 | then |
| 3246 | LIBRARY='libpython$(VERSION).a' |
| 3247 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3248 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3249 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3250 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3251 | # 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] | 3252 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3253 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3254 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3255 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3256 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3257 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3258 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3259 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3260 | # RUNSHARED is used to run shared python without installed libraries |
| 3261 | # |
| 3262 | # INSTSONAME is the name of the shared library that will be use to install |
| 3263 | # on the system - some systems like version suffix, others don't |
| 3264 | |
| 3265 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3266 | |
| 3267 | |
| 3268 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3269 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3270 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3271 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3272 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3273 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3274 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3275 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3276 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3277 | # 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] | 3278 | # If CXX is set, and if it is needed to link a main function that was |
| 3279 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3280 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3281 | # 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] | 3282 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3283 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3284 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3285 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3286 | if test -z "$LINKCC" |
| 3287 | then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3288 | LINKCC='$(PURIFY) $(MAINCC)' |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3289 | case $ac_sys_system in |
| 3290 | AIX*) |
Neal Norwitz | 0b27ff9 | 2003-03-31 15:53:49 +0000 | [diff] [blame] | 3291 | exp_extra="\"\"" |
| 3292 | if test $ac_sys_release -ge 5 -o \ |
| 3293 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3294 | exp_extra="." |
| 3295 | fi |
| 3296 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3297 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3298 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3299 | esac |
| 3300 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3301 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3302 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3303 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3304 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3305 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3306 | # Check whether --enable-shared or --disable-shared was given. |
| 3307 | if test "${enable_shared+set}" = set; then |
| 3308 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3309 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3310 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3311 | |
| 3312 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3313 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3314 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3315 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3316 | enable_shared="yes";; |
| 3317 | *) |
| 3318 | enable_shared="no";; |
| 3319 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3320 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3321 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3322 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3323 | |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3324 | echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 3325 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6 |
| 3326 | # Check whether --enable-profiling or --disable-profiling was given. |
| 3327 | if test "${enable_profiling+set}" = set; then |
| 3328 | enableval="$enable_profiling" |
| 3329 | ac_save_cc="$CC" |
| 3330 | CC="$CC -pg" |
| 3331 | if test "$cross_compiling" = yes; then |
| 3332 | ac_enable_profiling="no" |
| 3333 | else |
| 3334 | cat >conftest.$ac_ext <<_ACEOF |
| 3335 | /* confdefs.h. */ |
| 3336 | _ACEOF |
| 3337 | cat confdefs.h >>conftest.$ac_ext |
| 3338 | cat >>conftest.$ac_ext <<_ACEOF |
| 3339 | /* end confdefs.h. */ |
| 3340 | int main() { return 0; } |
| 3341 | _ACEOF |
| 3342 | rm -f conftest$ac_exeext |
| 3343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3344 | (eval $ac_link) 2>&5 |
| 3345 | ac_status=$? |
| 3346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3347 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3349 | (eval $ac_try) 2>&5 |
| 3350 | ac_status=$? |
| 3351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3352 | (exit $ac_status); }; }; then |
| 3353 | ac_enable_profiling="yes" |
| 3354 | else |
| 3355 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3356 | echo "$as_me: failed program was:" >&5 |
| 3357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3358 | |
| 3359 | ( exit $ac_status ) |
| 3360 | ac_enable_profiling="no" |
| 3361 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3362 | 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] | 3363 | fi |
| 3364 | CC="$ac_save_cc" |
| 3365 | fi; |
| 3366 | echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 3367 | echo "${ECHO_T}$ac_enable_profiling" >&6 |
| 3368 | |
| 3369 | case "$ac_enable_profiling" in |
| 3370 | "yes") |
| 3371 | BASECFLAGS="-pg $BASECFLAGS" |
| 3372 | LDFLAGS="-pg $LDFLAGS" |
| 3373 | ;; |
| 3374 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3375 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3376 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3377 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3378 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3379 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3380 | # library that we build, but we do not want to link against it (we |
| 3381 | # will find it with a -framework option). For this reason there is an |
| 3382 | # extra variable BLDLIBRARY against which Python and the extension |
| 3383 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3384 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3385 | if test "$enable_framework" |
| 3386 | then |
| 3387 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 3388 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3389 | BLDLIBRARY='' |
| 3390 | else |
| 3391 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3392 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3393 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3394 | # Other platforms follow |
| 3395 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3396 | |
| 3397 | cat >>confdefs.h <<\_ACEOF |
| 3398 | #define Py_ENABLE_SHARED 1 |
| 3399 | _ACEOF |
| 3400 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3401 | case $ac_sys_system in |
| 3402 | BeOS*) |
| 3403 | LDLIBRARY='libpython$(VERSION).so' |
| 3404 | ;; |
| 3405 | CYGWIN*) |
| 3406 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3407 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3408 | ;; |
| 3409 | SunOS*) |
| 3410 | LDLIBRARY='libpython$(VERSION).so' |
Martin v. Löwis | d141a8c | 2003-06-14 15:20:28 +0000 | [diff] [blame] | 3411 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3412 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 2389c41 | 2003-10-31 15:42:07 +0000 | [diff] [blame] | 3413 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3414 | ;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 3415 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3416 | LDLIBRARY='libpython$(VERSION).so' |
| 3417 | BLDLIBRARY='-L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3418 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 3419 | case $ac_sys_system in |
| 3420 | FreeBSD*) |
| 3421 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 3422 | ;; |
| 3423 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3424 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3425 | ;; |
| 3426 | hp*|HP*) |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 3427 | case `uname -m` in |
| 3428 | ia64) |
| 3429 | LDLIBRARY='libpython$(VERSION).so' |
| 3430 | ;; |
| 3431 | *) |
| 3432 | LDLIBRARY='libpython$(VERSION).sl' |
| 3433 | ;; |
| 3434 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3435 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3436 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3437 | ;; |
| 3438 | OSF*) |
| 3439 | LDLIBRARY='libpython$(VERSION).so' |
Neal Norwitz | 671b9e3 | 2006-01-09 07:07:12 +0000 | [diff] [blame] | 3440 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3441 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3442 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3443 | atheos*) |
| 3444 | LDLIBRARY='libpython$(VERSION).so' |
| 3445 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3446 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3447 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3448 | esac |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 3449 | else # shared is disabled |
| 3450 | case $ac_sys_system in |
| 3451 | CYGWIN*) |
| 3452 | BLDLIBRARY='$(LIBRARY)' |
| 3453 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3454 | ;; |
| 3455 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3456 | fi |
| 3457 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3458 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3459 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3460 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3461 | if test -n "$ac_tool_prefix"; then |
| 3462 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3463 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3464 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3465 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3466 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3468 | else |
| 3469 | if test -n "$RANLIB"; then |
| 3470 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3471 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3473 | for as_dir in $PATH |
| 3474 | do |
| 3475 | IFS=$as_save_IFS |
| 3476 | test -z "$as_dir" && as_dir=. |
| 3477 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3478 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3479 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3480 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3481 | break 2 |
| 3482 | fi |
| 3483 | done |
| 3484 | done |
| 3485 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3486 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3487 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3488 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3489 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3490 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3491 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3492 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3493 | echo "$as_me:$LINENO: result: no" >&5 |
| 3494 | echo "${ECHO_T}no" >&6 |
| 3495 | fi |
| 3496 | |
| 3497 | fi |
| 3498 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3499 | ac_ct_RANLIB=$RANLIB |
| 3500 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3501 | set dummy ranlib; ac_word=$2 |
| 3502 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3503 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3504 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3506 | else |
| 3507 | if test -n "$ac_ct_RANLIB"; then |
| 3508 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3509 | else |
| 3510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3511 | for as_dir in $PATH |
| 3512 | do |
| 3513 | IFS=$as_save_IFS |
| 3514 | test -z "$as_dir" && as_dir=. |
| 3515 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3516 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3517 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3518 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3519 | break 2 |
| 3520 | fi |
| 3521 | done |
| 3522 | done |
| 3523 | |
| 3524 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3525 | fi |
| 3526 | fi |
| 3527 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3528 | if test -n "$ac_ct_RANLIB"; then |
| 3529 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3530 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3531 | else |
| 3532 | echo "$as_me:$LINENO: result: no" >&5 |
| 3533 | echo "${ECHO_T}no" >&6 |
| 3534 | fi |
| 3535 | |
| 3536 | RANLIB=$ac_ct_RANLIB |
| 3537 | else |
| 3538 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3539 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3540 | |
| 3541 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3542 | for ac_prog in ar aal |
| 3543 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3544 | # 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] | 3545 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3546 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3547 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3548 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3550 | else |
| 3551 | if test -n "$AR"; then |
| 3552 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3553 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3555 | for as_dir in $PATH |
| 3556 | do |
| 3557 | IFS=$as_save_IFS |
| 3558 | test -z "$as_dir" && as_dir=. |
| 3559 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3560 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3561 | ac_cv_prog_AR="$ac_prog" |
| 3562 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3563 | break 2 |
| 3564 | fi |
| 3565 | done |
| 3566 | done |
| 3567 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3568 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3569 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3570 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3571 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3572 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3573 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3574 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3575 | echo "$as_me:$LINENO: result: no" >&5 |
| 3576 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3577 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3578 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3579 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3580 | done |
| 3581 | test -n "$AR" || AR="ar" |
| 3582 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3583 | |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 3584 | |
Martin v. Löwis | c5bf5a0 | 2006-01-05 10:33:59 +0000 | [diff] [blame] | 3585 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 3586 | set dummy svnversion; ac_word=$2 |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 3587 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3588 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3589 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
| 3590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3591 | else |
| 3592 | if test -n "$SVNVERSION"; then |
| 3593 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 3594 | else |
| 3595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3596 | for as_dir in $PATH |
| 3597 | do |
| 3598 | IFS=$as_save_IFS |
| 3599 | test -z "$as_dir" && as_dir=. |
| 3600 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3601 | 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] | 3602 | ac_cv_prog_SVNVERSION="found" |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 3603 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3604 | break 2 |
| 3605 | fi |
| 3606 | done |
| 3607 | done |
| 3608 | |
Martin v. Löwis | ff60023 | 2006-04-03 19:12:32 +0000 | [diff] [blame] | 3609 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 3610 | fi |
| 3611 | fi |
| 3612 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 3613 | if test -n "$SVNVERSION"; then |
| 3614 | echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 3615 | echo "${ECHO_T}$SVNVERSION" >&6 |
| 3616 | else |
| 3617 | echo "$as_me:$LINENO: result: no" >&5 |
| 3618 | echo "${ECHO_T}no" >&6 |
| 3619 | fi |
| 3620 | |
Martin v. Löwis | c5bf5a0 | 2006-01-05 10:33:59 +0000 | [diff] [blame] | 3621 | if test $SVNVERSION = found |
| 3622 | then |
| 3623 | SVNVERSION="svnversion \$(srcdir)" |
| 3624 | else |
| 3625 | SVNVERSION="echo exported" |
| 3626 | fi |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 3627 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3628 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3629 | bsdos*|hp*|HP*) |
| 3630 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3631 | if test -z "$INSTALL" |
| 3632 | then |
| 3633 | INSTALL="${srcdir}/install-sh -c" |
| 3634 | fi |
| 3635 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3636 | ac_aux_dir= |
| 3637 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3638 | if test -f $ac_dir/install-sh; then |
| 3639 | ac_aux_dir=$ac_dir |
| 3640 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3641 | break |
| 3642 | elif test -f $ac_dir/install.sh; then |
| 3643 | ac_aux_dir=$ac_dir |
| 3644 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3645 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3646 | elif test -f $ac_dir/shtool; then |
| 3647 | ac_aux_dir=$ac_dir |
| 3648 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3649 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3650 | fi |
| 3651 | done |
| 3652 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3653 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3654 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3655 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3656 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3657 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3658 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3659 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3660 | |
| 3661 | # Find a good install program. We prefer a C program (faster), |
| 3662 | # so one script is as good as another. But avoid the broken or |
| 3663 | # incompatible versions: |
| 3664 | # SysV /etc/install, /usr/sbin/install |
| 3665 | # SunOS /usr/etc/install |
| 3666 | # IRIX /sbin/install |
| 3667 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3668 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3669 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3670 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3671 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3672 | # OS/2's system install, which has a completely different semantic |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3673 | # ./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] | 3674 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3675 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3676 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3677 | if test "${ac_cv_path_install+set}" = set; then |
| 3678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3679 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3681 | for as_dir in $PATH |
| 3682 | do |
| 3683 | IFS=$as_save_IFS |
| 3684 | test -z "$as_dir" && as_dir=. |
| 3685 | # Account for people who put trailing slashes in PATH elements. |
| 3686 | case $as_dir/ in |
| 3687 | ./ | .// | /cC/* | \ |
| 3688 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3689 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3690 | /usr/ucb/* ) ;; |
| 3691 | *) |
| 3692 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3693 | # Don't use installbsd from OSF since it installs stuff as root |
| 3694 | # by default. |
| 3695 | for ac_prog in ginstall scoinst install; do |
| 3696 | for ac_exec_ext in '' $ac_executable_extensions; do |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3697 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3698 | if test $ac_prog = install && |
| 3699 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3700 | # AIX install. It has an incompatible calling convention. |
| 3701 | : |
| 3702 | elif test $ac_prog = install && |
| 3703 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3704 | # program-specific install script used by HP pwplus--don't use. |
| 3705 | : |
| 3706 | else |
| 3707 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3708 | break 3 |
| 3709 | fi |
| 3710 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3711 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3712 | done |
| 3713 | ;; |
| 3714 | esac |
| 3715 | done |
| 3716 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3717 | |
| 3718 | fi |
| 3719 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3720 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3721 | else |
| 3722 | # As a last resort, use the slow shell script. We don't cache a |
| 3723 | # path for INSTALL within a source directory, because that will |
| 3724 | # break other packages using the cache if that directory is |
| 3725 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3726 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3727 | fi |
| 3728 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3729 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3730 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3731 | |
| 3732 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3733 | # It thinks the first close brace ends the variable substitution. |
| 3734 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3736 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3737 | |
| 3738 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3739 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3740 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3741 | # Not every filesystem supports hard links |
| 3742 | |
| 3743 | if test -z "$LN" ; then |
| 3744 | case $ac_sys_system in |
| 3745 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3746 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3747 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3748 | *) LN=ln;; |
| 3749 | esac |
| 3750 | fi |
| 3751 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3752 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3753 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3754 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3755 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3756 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3757 | if test "${with_pydebug+set}" = set; then |
| 3758 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3759 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3760 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3761 | then |
| 3762 | |
| 3763 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3764 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3765 | _ACEOF |
| 3766 | |
| 3767 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3768 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3769 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3770 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3771 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3772 | fi |
| 3773 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3774 | echo "$as_me:$LINENO: result: no" >&5 |
| 3775 | echo "${ECHO_T}no" >&6 |
| 3776 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3777 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3778 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 3779 | # merged with this chunk of code? |
| 3780 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3781 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3782 | # ------------------------ |
| 3783 | # (The following bit of code is complicated enough - please keep things |
| 3784 | # indented properly. Just pretend you're editing Python code. ;-) |
| 3785 | |
| 3786 | # There are two parallel sets of case statements below, one that checks to |
| 3787 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 3788 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 3789 | # user set OPT. |
| 3790 | |
| 3791 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 3792 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3793 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3794 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3795 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3796 | case $GCC in |
| 3797 | yes) |
Skip Montanaro | 288a5be | 2006-04-13 02:00:56 +0000 | [diff] [blame] | 3798 | if test "$CC" != 'g++' ; then |
| 3799 | STRICT_PROTO="-Wstrict-prototypes" |
| 3800 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3801 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3802 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3803 | if test "$Py_DEBUG" = 'true' ; then |
| 3804 | # Optimization messes up debuggers, so turn it off for |
| 3805 | # debug builds. |
Skip Montanaro | 288a5be | 2006-04-13 02:00:56 +0000 | [diff] [blame] | 3806 | OPT="-g -Wall $STRICT_PROTO" |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3807 | else |
Skip Montanaro | 288a5be | 2006-04-13 02:00:56 +0000 | [diff] [blame] | 3808 | OPT="-g -O3 -Wall $STRICT_PROTO" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3809 | fi |
| 3810 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3811 | *) |
Skip Montanaro | 288a5be | 2006-04-13 02:00:56 +0000 | [diff] [blame] | 3812 | OPT="-O3 -Wall $STRICT_PROTO" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3813 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3814 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3815 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3816 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 3817 | ;; |
| 3818 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3819 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3820 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3821 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3822 | OPT="-O" |
| 3823 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3824 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3825 | |
| 3826 | # The current (beta) Monterey compiler dies with optimizations |
| 3827 | # 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] | 3828 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3829 | Monterey*) |
| 3830 | OPT="" |
| 3831 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3832 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3833 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3834 | fi |
| 3835 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3836 | |
| 3837 | # tweak BASECFLAGS based on compiler and platform |
| 3838 | case $GCC in |
| 3839 | yes) |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3840 | # Python violates C99 rules, by casting between incompatible |
| 3841 | # pointer types. GCC may generate bad code as a result of that, |
| 3842 | # so use -fno-strict-aliasing if supported. |
| 3843 | echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 3844 | echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6 |
| 3845 | ac_save_cc="$CC" |
| 3846 | CC="$CC -fno-strict-aliasing" |
| 3847 | if test "$cross_compiling" = yes; then |
| 3848 | ac_cv_no_strict_aliasing_ok=no |
| 3849 | else |
| 3850 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3851 | /* confdefs.h. */ |
| 3852 | _ACEOF |
| 3853 | cat confdefs.h >>conftest.$ac_ext |
| 3854 | cat >>conftest.$ac_ext <<_ACEOF |
| 3855 | /* end confdefs.h. */ |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3856 | int main() { return 0; } |
| 3857 | _ACEOF |
| 3858 | rm -f conftest$ac_exeext |
| 3859 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3860 | (eval $ac_link) 2>&5 |
| 3861 | ac_status=$? |
| 3862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3863 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3865 | (eval $ac_try) 2>&5 |
| 3866 | ac_status=$? |
| 3867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3868 | (exit $ac_status); }; }; then |
| 3869 | ac_cv_no_strict_aliasing_ok=yes |
| 3870 | else |
| 3871 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3872 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3873 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3874 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3875 | ( exit $ac_status ) |
| 3876 | ac_cv_no_strict_aliasing_ok=no |
| 3877 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3878 | 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] | 3879 | fi |
| 3880 | CC="$ac_save_cc" |
| 3881 | echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 3882 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6 |
| 3883 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 3884 | then |
| 3885 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 3886 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3887 | case $ac_sys_system in |
| 3888 | SCO_SV*) |
| 3889 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 3890 | ;; |
| 3891 | # is there any other compiler on Darwin besides gcc? |
| 3892 | Darwin*) |
Jack Jansen | e004041 | 2003-07-23 22:17:28 +0000 | [diff] [blame] | 3893 | BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 3894 | if test "${enable_universalsdk}"; then |
| 3895 | BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}" |
| 3896 | fi |
| 3897 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3898 | ;; |
Neal Norwitz | dedeeaa | 2006-03-31 06:54:45 +0000 | [diff] [blame] | 3899 | OSF*) |
| 3900 | BASECFLAGS="$BASECFLAGS -mieee" |
| 3901 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3902 | esac |
| 3903 | ;; |
| 3904 | |
| 3905 | *) |
| 3906 | case $ac_sys_system in |
| 3907 | OpenUNIX*|UnixWare*) |
| 3908 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 3909 | ;; |
Neal Norwitz | b44f165 | 2003-05-26 14:11:55 +0000 | [diff] [blame] | 3910 | OSF*) |
| 3911 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 3912 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3913 | SCO_SV*) |
| 3914 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 3915 | ;; |
| 3916 | esac |
| 3917 | ;; |
| 3918 | esac |
| 3919 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3920 | if test "$Py_DEBUG" = 'true'; then |
| 3921 | : |
| 3922 | else |
| 3923 | OPT="-DNDEBUG $OPT" |
| 3924 | fi |
| 3925 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3926 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3927 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3928 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3929 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3930 | |
Neal Norwitz | 020c46a | 2006-01-07 21:39:28 +0000 | [diff] [blame] | 3931 | # disable check for icc since it seems to pass, but generates a warning |
| 3932 | if test "$CC" = icc |
| 3933 | then |
| 3934 | ac_cv_opt_olimit_ok=no |
| 3935 | fi |
| 3936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3937 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3938 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3939 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3941 | else |
| 3942 | ac_save_cc="$CC" |
| 3943 | CC="$CC -OPT:Olimit=0" |
| 3944 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3945 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3946 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3947 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3948 | /* confdefs.h. */ |
| 3949 | _ACEOF |
| 3950 | cat confdefs.h >>conftest.$ac_ext |
| 3951 | cat >>conftest.$ac_ext <<_ACEOF |
| 3952 | /* end confdefs.h. */ |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3953 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3954 | _ACEOF |
| 3955 | rm -f conftest$ac_exeext |
| 3956 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3957 | (eval $ac_link) 2>&5 |
| 3958 | ac_status=$? |
| 3959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3960 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3962 | (eval $ac_try) 2>&5 |
| 3963 | ac_status=$? |
| 3964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3965 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3966 | ac_cv_opt_olimit_ok=yes |
| 3967 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3968 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3969 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3971 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3972 | ( exit $ac_status ) |
| 3973 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3974 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3975 | 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] | 3976 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3977 | CC="$ac_save_cc" |
| 3978 | fi |
| 3979 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3980 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3981 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3982 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3983 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3984 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 3985 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 3986 | # environment? |
| 3987 | Darwin*) |
| 3988 | ;; |
| 3989 | *) |
| 3990 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 3991 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3992 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3993 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3994 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3995 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3996 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3998 | else |
| 3999 | ac_save_cc="$CC" |
| 4000 | CC="$CC -Olimit 1500" |
| 4001 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 4002 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4003 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4004 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4005 | /* confdefs.h. */ |
| 4006 | _ACEOF |
| 4007 | cat confdefs.h >>conftest.$ac_ext |
| 4008 | cat >>conftest.$ac_ext <<_ACEOF |
| 4009 | /* end confdefs.h. */ |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4010 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4011 | _ACEOF |
| 4012 | rm -f conftest$ac_exeext |
| 4013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4014 | (eval $ac_link) 2>&5 |
| 4015 | ac_status=$? |
| 4016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4017 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4019 | (eval $ac_try) 2>&5 |
| 4020 | ac_status=$? |
| 4021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4022 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4023 | ac_cv_olimit_ok=yes |
| 4024 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4025 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4026 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4028 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4029 | ( exit $ac_status ) |
| 4030 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 4031 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4032 | 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] | 4033 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4034 | CC="$ac_save_cc" |
| 4035 | fi |
| 4036 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4037 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 4038 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4039 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4040 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4041 | fi |
| 4042 | fi |
| 4043 | |
Martin v. Löwis | aac1316 | 2006-10-19 10:58:46 +0000 | [diff] [blame] | 4044 | # Check whether GCC supports PyArg_ParseTuple format |
| 4045 | if test "$GCC" = "yes" |
| 4046 | then |
| 4047 | echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5 |
| 4048 | echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6 |
| 4049 | save_CFLAGS=$CFLAGS |
| 4050 | CFLAGS="$CFLAGS -Werror" |
| 4051 | cat >conftest.$ac_ext <<_ACEOF |
| 4052 | /* confdefs.h. */ |
| 4053 | _ACEOF |
| 4054 | cat confdefs.h >>conftest.$ac_ext |
| 4055 | cat >>conftest.$ac_ext <<_ACEOF |
| 4056 | /* end confdefs.h. */ |
| 4057 | |
| 4058 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
| 4059 | |
| 4060 | int |
| 4061 | main () |
| 4062 | { |
| 4063 | |
| 4064 | ; |
| 4065 | return 0; |
| 4066 | } |
| 4067 | _ACEOF |
| 4068 | rm -f conftest.$ac_objext |
| 4069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4070 | (eval $ac_compile) 2>conftest.er1 |
| 4071 | ac_status=$? |
| 4072 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4073 | rm -f conftest.er1 |
| 4074 | cat conftest.err >&5 |
| 4075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4076 | (exit $ac_status); } && |
| 4077 | { ac_try='test -z "$ac_c_werror_flag" |
| 4078 | || test ! -s conftest.err' |
| 4079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4080 | (eval $ac_try) 2>&5 |
| 4081 | ac_status=$? |
| 4082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4083 | (exit $ac_status); }; } && |
| 4084 | { ac_try='test -s conftest.$ac_objext' |
| 4085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4086 | (eval $ac_try) 2>&5 |
| 4087 | ac_status=$? |
| 4088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4089 | (exit $ac_status); }; }; then |
| 4090 | |
| 4091 | cat >>confdefs.h <<\_ACEOF |
| 4092 | #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1 |
| 4093 | _ACEOF |
| 4094 | |
| 4095 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4096 | echo "${ECHO_T}yes" >&6 |
| 4097 | else |
| 4098 | echo "$as_me: failed program was:" >&5 |
| 4099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4100 | |
| 4101 | echo "$as_me:$LINENO: result: no" >&5 |
| 4102 | echo "${ECHO_T}no" >&6 |
| 4103 | |
| 4104 | fi |
| 4105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c1d7597 | 2006-10-19 16:01:37 +0000 | [diff] [blame] | 4106 | CFLAGS=$save_CFLAGS |
Martin v. Löwis | aac1316 | 2006-10-19 10:58:46 +0000 | [diff] [blame] | 4107 | fi |
| 4108 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4109 | # On some compilers, pthreads are available without further options |
| 4110 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 4111 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 4112 | # So we have to see first whether pthreads are available without |
| 4113 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4114 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 4115 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 4116 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 4117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4118 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4119 | if test "$cross_compiling" = yes; then |
| 4120 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4121 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4122 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4123 | /* confdefs.h. */ |
| 4124 | _ACEOF |
| 4125 | cat confdefs.h >>conftest.$ac_ext |
| 4126 | cat >>conftest.$ac_ext <<_ACEOF |
| 4127 | /* end confdefs.h. */ |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4128 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4129 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4130 | |
| 4131 | void* routine(void* p){return NULL;} |
| 4132 | |
| 4133 | int main(){ |
| 4134 | pthread_t p; |
| 4135 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4136 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4137 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4138 | return 0; |
| 4139 | } |
| 4140 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4141 | _ACEOF |
| 4142 | rm -f conftest$ac_exeext |
| 4143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4144 | (eval $ac_link) 2>&5 |
| 4145 | ac_status=$? |
| 4146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4147 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4149 | (eval $ac_try) 2>&5 |
| 4150 | ac_status=$? |
| 4151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4152 | (exit $ac_status); }; }; then |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4153 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4154 | ac_cv_pthread_is_default=yes |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4155 | ac_cv_kthread=no |
| 4156 | ac_cv_pthread=no |
| 4157 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4158 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4159 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4160 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4161 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4162 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4163 | ( exit $ac_status ) |
| 4164 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4165 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4166 | 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] | 4167 | fi |
| 4168 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4169 | fi |
| 4170 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4171 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 4172 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4173 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4174 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4175 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4176 | then |
| 4177 | ac_cv_kpthread=no |
| 4178 | else |
| 4179 | # -Kpthread, if available, provides the right #defines |
| 4180 | # and linker options to make pthread_create available |
| 4181 | # Some compilers won't report that they do not support -Kpthread, |
| 4182 | # so we need to run a program to see whether it really made the |
| 4183 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4184 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 4185 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 4186 | if test "${ac_cv_kpthread+set}" = set; then |
| 4187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4188 | else |
| 4189 | ac_save_cc="$CC" |
| 4190 | CC="$CC -Kpthread" |
| 4191 | if test "$cross_compiling" = yes; then |
| 4192 | ac_cv_kpthread=no |
| 4193 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4194 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4195 | /* confdefs.h. */ |
| 4196 | _ACEOF |
| 4197 | cat confdefs.h >>conftest.$ac_ext |
| 4198 | cat >>conftest.$ac_ext <<_ACEOF |
| 4199 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4200 | |
| 4201 | #include <pthread.h> |
| 4202 | |
| 4203 | void* routine(void* p){return NULL;} |
| 4204 | |
| 4205 | int main(){ |
| 4206 | pthread_t p; |
| 4207 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4208 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4209 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4210 | return 0; |
| 4211 | } |
| 4212 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4213 | _ACEOF |
| 4214 | rm -f conftest$ac_exeext |
| 4215 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4216 | (eval $ac_link) 2>&5 |
| 4217 | ac_status=$? |
| 4218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4219 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4221 | (eval $ac_try) 2>&5 |
| 4222 | ac_status=$? |
| 4223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4224 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4225 | ac_cv_kpthread=yes |
| 4226 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4227 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4228 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4230 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4231 | ( exit $ac_status ) |
| 4232 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4233 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4234 | 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] | 4235 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4236 | CC="$ac_save_cc" |
| 4237 | fi |
| 4238 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4239 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 4240 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4241 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4242 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4243 | 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] | 4244 | then |
| 4245 | # -Kthread, if available, provides the right #defines |
| 4246 | # and linker options to make pthread_create available |
| 4247 | # Some compilers won't report that they do not support -Kthread, |
| 4248 | # so we need to run a program to see whether it really made the |
| 4249 | # function available. |
| 4250 | echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 4251 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6 |
| 4252 | if test "${ac_cv_kthread+set}" = set; then |
| 4253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4254 | else |
| 4255 | ac_save_cc="$CC" |
| 4256 | CC="$CC -Kthread" |
| 4257 | if test "$cross_compiling" = yes; then |
| 4258 | ac_cv_kthread=no |
| 4259 | else |
| 4260 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4261 | /* confdefs.h. */ |
| 4262 | _ACEOF |
| 4263 | cat confdefs.h >>conftest.$ac_ext |
| 4264 | cat >>conftest.$ac_ext <<_ACEOF |
| 4265 | /* end confdefs.h. */ |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4266 | |
| 4267 | #include <pthread.h> |
| 4268 | |
| 4269 | void* routine(void* p){return NULL;} |
| 4270 | |
| 4271 | int main(){ |
| 4272 | pthread_t p; |
| 4273 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4274 | return 1; |
| 4275 | (void)pthread_detach(p); |
| 4276 | return 0; |
| 4277 | } |
| 4278 | |
| 4279 | _ACEOF |
| 4280 | rm -f conftest$ac_exeext |
| 4281 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4282 | (eval $ac_link) 2>&5 |
| 4283 | ac_status=$? |
| 4284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4285 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4287 | (eval $ac_try) 2>&5 |
| 4288 | ac_status=$? |
| 4289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4290 | (exit $ac_status); }; }; then |
| 4291 | ac_cv_kthread=yes |
| 4292 | else |
| 4293 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4294 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4296 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4297 | ( exit $ac_status ) |
| 4298 | ac_cv_kthread=no |
| 4299 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4300 | 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] | 4301 | fi |
| 4302 | CC="$ac_save_cc" |
| 4303 | fi |
| 4304 | |
| 4305 | echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 4306 | echo "${ECHO_T}$ac_cv_kthread" >&6 |
| 4307 | fi |
| 4308 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4309 | 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] | 4310 | then |
| 4311 | # -pthread, if available, provides the right #defines |
| 4312 | # and linker options to make pthread_create available |
| 4313 | # Some compilers won't report that they do not support -pthread, |
| 4314 | # so we need to run a program to see whether it really made the |
| 4315 | # function available. |
| 4316 | echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 4317 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6 |
| 4318 | if test "${ac_cv_thread+set}" = set; then |
| 4319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4320 | else |
| 4321 | ac_save_cc="$CC" |
| 4322 | CC="$CC -pthread" |
| 4323 | if test "$cross_compiling" = yes; then |
| 4324 | ac_cv_pthread=no |
| 4325 | else |
| 4326 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4327 | /* confdefs.h. */ |
| 4328 | _ACEOF |
| 4329 | cat confdefs.h >>conftest.$ac_ext |
| 4330 | cat >>conftest.$ac_ext <<_ACEOF |
| 4331 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4332 | |
| 4333 | #include <pthread.h> |
| 4334 | |
| 4335 | void* routine(void* p){return NULL;} |
| 4336 | |
| 4337 | int main(){ |
| 4338 | pthread_t p; |
| 4339 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4340 | return 1; |
| 4341 | (void)pthread_detach(p); |
| 4342 | return 0; |
| 4343 | } |
| 4344 | |
| 4345 | _ACEOF |
| 4346 | rm -f conftest$ac_exeext |
| 4347 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4348 | (eval $ac_link) 2>&5 |
| 4349 | ac_status=$? |
| 4350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4351 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4353 | (eval $ac_try) 2>&5 |
| 4354 | ac_status=$? |
| 4355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4356 | (exit $ac_status); }; }; then |
| 4357 | ac_cv_pthread=yes |
| 4358 | else |
| 4359 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4360 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4362 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4363 | ( exit $ac_status ) |
| 4364 | ac_cv_pthread=no |
| 4365 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4366 | 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] | 4367 | fi |
| 4368 | CC="$ac_save_cc" |
| 4369 | fi |
| 4370 | |
| 4371 | echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 4372 | echo "${ECHO_T}$ac_cv_pthread" >&6 |
| 4373 | fi |
| 4374 | |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4375 | # If we have set a CC compiler flag for thread support then |
| 4376 | # check if it works for CXX, too. |
| 4377 | ac_cv_cxx_thread=no |
| 4378 | if test ! -z "$CXX" |
| 4379 | then |
| 4380 | echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 4381 | echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6 |
| 4382 | ac_save_cxx="$CXX" |
| 4383 | |
| 4384 | if test "$ac_cv_kpthread" = "yes" |
| 4385 | then |
| 4386 | CXX="$CXX -Kpthread" |
| 4387 | ac_cv_cxx_thread=yes |
| 4388 | elif test "$ac_cv_kthread" = "yes" |
| 4389 | then |
| 4390 | CXX="$CXX -Kthread" |
| 4391 | ac_cv_cxx_thread=yes |
| 4392 | elif test "$ac_cv_pthread" = "yes" |
| 4393 | then |
| 4394 | CXX="$CXX -pthread" |
| 4395 | ac_cv_cxx_thread=yes |
| 4396 | fi |
| 4397 | |
| 4398 | if test $ac_cv_cxx_thread = yes |
| 4399 | then |
| 4400 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 4401 | $CXX -c conftest.$ac_ext 2>&5 |
| 4402 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 4403 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 4404 | then |
| 4405 | ac_cv_cxx_thread=yes |
| 4406 | else |
| 4407 | ac_cv_cxx_thread=no |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4408 | fi |
| 4409 | rm -fr conftest* |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4410 | fi |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4411 | echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 4412 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6 |
Brett Cannon | c601e0f | 2004-11-07 01:24:12 +0000 | [diff] [blame] | 4413 | fi |
| 4414 | CXX="$ac_save_cxx" |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4415 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4416 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4417 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4418 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4419 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4420 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4422 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4423 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4424 | /* confdefs.h. */ |
| 4425 | _ACEOF |
| 4426 | cat confdefs.h >>conftest.$ac_ext |
| 4427 | cat >>conftest.$ac_ext <<_ACEOF |
| 4428 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4429 | #include <stdlib.h> |
| 4430 | #include <stdarg.h> |
| 4431 | #include <string.h> |
| 4432 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4433 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4434 | int |
| 4435 | main () |
| 4436 | { |
| 4437 | |
| 4438 | ; |
| 4439 | return 0; |
| 4440 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4441 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4442 | rm -f conftest.$ac_objext |
| 4443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4444 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4445 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4447 | rm -f conftest.er1 |
| 4448 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4450 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4451 | { ac_try='test -z "$ac_c_werror_flag" |
| 4452 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4454 | (eval $ac_try) 2>&5 |
| 4455 | ac_status=$? |
| 4456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4457 | (exit $ac_status); }; } && |
| 4458 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4460 | (eval $ac_try) 2>&5 |
| 4461 | ac_status=$? |
| 4462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4463 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4464 | ac_cv_header_stdc=yes |
| 4465 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4466 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4468 | |
| 4469 | ac_cv_header_stdc=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4470 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4471 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4472 | |
| 4473 | if test $ac_cv_header_stdc = yes; then |
| 4474 | # 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] | 4475 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4476 | /* confdefs.h. */ |
| 4477 | _ACEOF |
| 4478 | cat confdefs.h >>conftest.$ac_ext |
| 4479 | cat >>conftest.$ac_ext <<_ACEOF |
| 4480 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4481 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4482 | |
| 4483 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4484 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4485 | $EGREP "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4486 | : |
| 4487 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4488 | ac_cv_header_stdc=no |
| 4489 | fi |
| 4490 | rm -f conftest* |
| 4491 | |
| 4492 | fi |
| 4493 | |
| 4494 | if test $ac_cv_header_stdc = yes; then |
| 4495 | # 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] | 4496 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4497 | /* confdefs.h. */ |
| 4498 | _ACEOF |
| 4499 | cat confdefs.h >>conftest.$ac_ext |
| 4500 | cat >>conftest.$ac_ext <<_ACEOF |
| 4501 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4502 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4503 | |
| 4504 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4505 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4506 | $EGREP "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4507 | : |
| 4508 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4509 | ac_cv_header_stdc=no |
| 4510 | fi |
| 4511 | rm -f conftest* |
| 4512 | |
| 4513 | fi |
| 4514 | |
| 4515 | if test $ac_cv_header_stdc = yes; then |
| 4516 | # /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] | 4517 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4518 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4519 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4520 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4521 | /* confdefs.h. */ |
| 4522 | _ACEOF |
| 4523 | cat confdefs.h >>conftest.$ac_ext |
| 4524 | cat >>conftest.$ac_ext <<_ACEOF |
| 4525 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4526 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4527 | #if ((' ' & 0x0FF) == 0x020) |
| 4528 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4529 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4530 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4531 | # define ISLOWER(c) \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4532 | (('a' <= (c) && (c) <= 'i') \ |
| 4533 | || ('j' <= (c) && (c) <= 'r') \ |
| 4534 | || ('s' <= (c) && (c) <= 'z')) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4535 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4536 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4537 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4538 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4539 | int |
| 4540 | main () |
| 4541 | { |
| 4542 | int i; |
| 4543 | for (i = 0; i < 256; i++) |
| 4544 | if (XOR (islower (i), ISLOWER (i)) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4545 | || toupper (i) != TOUPPER (i)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4546 | exit(2); |
| 4547 | exit (0); |
| 4548 | } |
| 4549 | _ACEOF |
| 4550 | rm -f conftest$ac_exeext |
| 4551 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4552 | (eval $ac_link) 2>&5 |
| 4553 | ac_status=$? |
| 4554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4555 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4557 | (eval $ac_try) 2>&5 |
| 4558 | ac_status=$? |
| 4559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4560 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4561 | : |
| 4562 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4563 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4564 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4566 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4567 | ( exit $ac_status ) |
| 4568 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4569 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4570 | 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] | 4571 | fi |
| 4572 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4573 | fi |
| 4574 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4575 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4576 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4577 | |
| 4578 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4579 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4580 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4581 | |
| 4582 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4583 | |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4584 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4585 | |
| 4586 | |
| 4587 | |
| 4588 | |
| 4589 | |
| 4590 | |
| 4591 | |
| 4592 | |
| 4593 | |
| 4594 | 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] | 4595 | inttypes.h stdint.h unistd.h |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4596 | do |
| 4597 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4598 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4599 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4600 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4602 | else |
| 4603 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4604 | /* confdefs.h. */ |
| 4605 | _ACEOF |
| 4606 | cat confdefs.h >>conftest.$ac_ext |
| 4607 | cat >>conftest.$ac_ext <<_ACEOF |
| 4608 | /* end confdefs.h. */ |
| 4609 | $ac_includes_default |
| 4610 | |
| 4611 | #include <$ac_header> |
| 4612 | _ACEOF |
| 4613 | rm -f conftest.$ac_objext |
| 4614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4615 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4616 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4618 | rm -f conftest.er1 |
| 4619 | cat conftest.err >&5 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4621 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4622 | { ac_try='test -z "$ac_c_werror_flag" |
| 4623 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4625 | (eval $ac_try) 2>&5 |
| 4626 | ac_status=$? |
| 4627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4628 | (exit $ac_status); }; } && |
| 4629 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4631 | (eval $ac_try) 2>&5 |
| 4632 | ac_status=$? |
| 4633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4634 | (exit $ac_status); }; }; then |
| 4635 | eval "$as_ac_Header=yes" |
| 4636 | else |
| 4637 | echo "$as_me: failed program was:" >&5 |
| 4638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4639 | |
| 4640 | eval "$as_ac_Header=no" |
| 4641 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4642 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4643 | fi |
| 4644 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4645 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4646 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4647 | cat >>confdefs.h <<_ACEOF |
| 4648 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4649 | _ACEOF |
| 4650 | |
| 4651 | fi |
| 4652 | |
| 4653 | done |
| 4654 | |
| 4655 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4656 | |
| 4657 | |
| 4658 | |
| 4659 | |
| 4660 | |
| 4661 | |
| 4662 | |
| 4663 | |
| 4664 | |
| 4665 | |
| 4666 | |
| 4667 | |
| 4668 | |
| 4669 | |
| 4670 | |
| 4671 | |
| 4672 | |
| 4673 | |
| 4674 | |
| 4675 | |
| 4676 | |
| 4677 | |
| 4678 | |
| 4679 | |
| 4680 | |
| 4681 | |
| 4682 | |
| 4683 | |
| 4684 | |
| 4685 | |
| 4686 | |
| 4687 | |
| 4688 | |
| 4689 | |
| 4690 | |
| 4691 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 4692 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 4693 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 4694 | |
Martin v. Löwis | 5f5d99c | 2006-05-16 07:05:37 +0000 | [diff] [blame] | 4695 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 4696 | |
| 4697 | |
| 4698 | |
| 4699 | |
| 4700 | |
| 4701 | |
| 4702 | |
| 4703 | |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 4704 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 4705 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 4706 | fcntl.h grp.h \ |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 4707 | io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ |
| 4708 | shadow.h signal.h stdint.h stropts.h termios.h thread.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4709 | unistd.h utime.h \ |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 4710 | sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \ |
| 4711 | sys/modem.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 4712 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ |
| 4713 | sys/time.h \ |
| 4714 | sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
Martin v. Löwis | 0347a9a | 2006-10-27 07:06:52 +0000 | [diff] [blame] | 4715 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Hye-Shik Chang | 8126860 | 2004-02-02 06:05:24 +0000 | [diff] [blame] | 4716 | bluetooth/bluetooth.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4717 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4718 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4719 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4720 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4721 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4722 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4724 | fi |
| 4725 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4726 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4727 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4728 | # Is the header compilable? |
| 4729 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4730 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4731 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4732 | /* confdefs.h. */ |
| 4733 | _ACEOF |
| 4734 | cat confdefs.h >>conftest.$ac_ext |
| 4735 | cat >>conftest.$ac_ext <<_ACEOF |
| 4736 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4737 | $ac_includes_default |
| 4738 | #include <$ac_header> |
| 4739 | _ACEOF |
| 4740 | rm -f conftest.$ac_objext |
| 4741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4742 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4743 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4745 | rm -f conftest.er1 |
| 4746 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4748 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4749 | { ac_try='test -z "$ac_c_werror_flag" |
| 4750 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4752 | (eval $ac_try) 2>&5 |
| 4753 | ac_status=$? |
| 4754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4755 | (exit $ac_status); }; } && |
| 4756 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4758 | (eval $ac_try) 2>&5 |
| 4759 | ac_status=$? |
| 4760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4761 | (exit $ac_status); }; }; then |
| 4762 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4763 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4764 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4766 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4767 | ac_header_compiler=no |
| 4768 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4769 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4770 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4771 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4772 | |
| 4773 | # Is the header present? |
| 4774 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4775 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4776 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4777 | /* confdefs.h. */ |
| 4778 | _ACEOF |
| 4779 | cat confdefs.h >>conftest.$ac_ext |
| 4780 | cat >>conftest.$ac_ext <<_ACEOF |
| 4781 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4782 | #include <$ac_header> |
| 4783 | _ACEOF |
| 4784 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4785 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4786 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4787 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4788 | rm -f conftest.er1 |
| 4789 | cat conftest.err >&5 |
| 4790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4791 | (exit $ac_status); } >/dev/null; then |
| 4792 | if test -s conftest.err; then |
| 4793 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4794 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4795 | else |
| 4796 | ac_cpp_err= |
| 4797 | fi |
| 4798 | else |
| 4799 | ac_cpp_err=yes |
| 4800 | fi |
| 4801 | if test -z "$ac_cpp_err"; then |
| 4802 | ac_header_preproc=yes |
| 4803 | else |
| 4804 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4806 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4807 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4808 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4809 | rm -f conftest.err conftest.$ac_ext |
| 4810 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4811 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4812 | |
| 4813 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4814 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4815 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4816 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4817 | 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] | 4818 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 4819 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 4820 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 4821 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4822 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 4823 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4824 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4825 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4826 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4827 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 4828 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 4829 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 4830 | 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] | 4831 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4832 | 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] | 4833 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 4834 | 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] | 4835 | ( |
| 4836 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 4837 | ## ------------------------------------------------ ## |
| 4838 | ## Report this to http://www.python.org/python-bugs ## |
| 4839 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4840 | _ASBOX |
| 4841 | ) | |
| 4842 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4843 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4844 | esac |
| 4845 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4846 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4847 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4849 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4850 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4851 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4852 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4853 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4854 | |
| 4855 | fi |
| 4856 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4857 | cat >>confdefs.h <<_ACEOF |
| 4858 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4859 | _ACEOF |
| 4860 | |
| 4861 | fi |
| 4862 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4863 | done |
| 4864 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4865 | |
| 4866 | |
| 4867 | |
| 4868 | |
| 4869 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4870 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4871 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4872 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4873 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4874 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4875 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4877 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4878 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4879 | /* confdefs.h. */ |
| 4880 | _ACEOF |
| 4881 | cat confdefs.h >>conftest.$ac_ext |
| 4882 | cat >>conftest.$ac_ext <<_ACEOF |
| 4883 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4884 | #include <sys/types.h> |
| 4885 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4886 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4887 | int |
| 4888 | main () |
| 4889 | { |
| 4890 | if ((DIR *) 0) |
| 4891 | return 0; |
| 4892 | ; |
| 4893 | return 0; |
| 4894 | } |
| 4895 | _ACEOF |
| 4896 | rm -f conftest.$ac_objext |
| 4897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4898 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4899 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4901 | rm -f conftest.er1 |
| 4902 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4904 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4905 | { ac_try='test -z "$ac_c_werror_flag" |
| 4906 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4908 | (eval $ac_try) 2>&5 |
| 4909 | ac_status=$? |
| 4910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4911 | (exit $ac_status); }; } && |
| 4912 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4914 | (eval $ac_try) 2>&5 |
| 4915 | ac_status=$? |
| 4916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4917 | (exit $ac_status); }; }; then |
| 4918 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4919 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4920 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4922 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4923 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4924 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4925 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4926 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4927 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4928 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4929 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4930 | cat >>confdefs.h <<_ACEOF |
| 4931 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4932 | _ACEOF |
| 4933 | |
| 4934 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4935 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4936 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4937 | done |
| 4938 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4939 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4940 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4941 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4942 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4944 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4945 | ac_func_search_save_LIBS=$LIBS |
| 4946 | ac_cv_search_opendir=no |
| 4947 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4948 | /* confdefs.h. */ |
| 4949 | _ACEOF |
| 4950 | cat confdefs.h >>conftest.$ac_ext |
| 4951 | cat >>conftest.$ac_ext <<_ACEOF |
| 4952 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4953 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4954 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4955 | #ifdef __cplusplus |
| 4956 | extern "C" |
| 4957 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4958 | /* 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] | 4959 | builtin and then its argument prototype would still apply. */ |
| 4960 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4961 | int |
| 4962 | main () |
| 4963 | { |
| 4964 | opendir (); |
| 4965 | ; |
| 4966 | return 0; |
| 4967 | } |
| 4968 | _ACEOF |
| 4969 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4970 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4971 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4972 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4973 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4974 | rm -f conftest.er1 |
| 4975 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4977 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4978 | { ac_try='test -z "$ac_c_werror_flag" |
| 4979 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4981 | (eval $ac_try) 2>&5 |
| 4982 | ac_status=$? |
| 4983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4984 | (exit $ac_status); }; } && |
| 4985 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4987 | (eval $ac_try) 2>&5 |
| 4988 | ac_status=$? |
| 4989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4990 | (exit $ac_status); }; }; then |
| 4991 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4992 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4993 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4995 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4996 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4997 | rm -f conftest.err conftest.$ac_objext \ |
| 4998 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4999 | if test "$ac_cv_search_opendir" = no; then |
| 5000 | for ac_lib in dir; do |
| 5001 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 5002 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5003 | /* confdefs.h. */ |
| 5004 | _ACEOF |
| 5005 | cat confdefs.h >>conftest.$ac_ext |
| 5006 | cat >>conftest.$ac_ext <<_ACEOF |
| 5007 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5008 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5009 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5010 | #ifdef __cplusplus |
| 5011 | extern "C" |
| 5012 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5013 | /* 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] | 5014 | builtin and then its argument prototype would still apply. */ |
| 5015 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5016 | int |
| 5017 | main () |
| 5018 | { |
| 5019 | opendir (); |
| 5020 | ; |
| 5021 | return 0; |
| 5022 | } |
| 5023 | _ACEOF |
| 5024 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5025 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5026 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5027 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5028 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5029 | rm -f conftest.er1 |
| 5030 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5032 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5033 | { ac_try='test -z "$ac_c_werror_flag" |
| 5034 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5036 | (eval $ac_try) 2>&5 |
| 5037 | ac_status=$? |
| 5038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5039 | (exit $ac_status); }; } && |
| 5040 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5042 | (eval $ac_try) 2>&5 |
| 5043 | ac_status=$? |
| 5044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5045 | (exit $ac_status); }; }; then |
| 5046 | ac_cv_search_opendir="-l$ac_lib" |
| 5047 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5048 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5049 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5051 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5052 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5053 | rm -f conftest.err conftest.$ac_objext \ |
| 5054 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5055 | done |
| 5056 | fi |
| 5057 | LIBS=$ac_func_search_save_LIBS |
| 5058 | fi |
| 5059 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5060 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 5061 | if test "$ac_cv_search_opendir" != no; then |
| 5062 | 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] | 5063 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5064 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5065 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5066 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5067 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5068 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 5069 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5071 | else |
| 5072 | ac_func_search_save_LIBS=$LIBS |
| 5073 | ac_cv_search_opendir=no |
| 5074 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5075 | /* confdefs.h. */ |
| 5076 | _ACEOF |
| 5077 | cat confdefs.h >>conftest.$ac_ext |
| 5078 | cat >>conftest.$ac_ext <<_ACEOF |
| 5079 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5080 | |
| 5081 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5082 | #ifdef __cplusplus |
| 5083 | extern "C" |
| 5084 | #endif |
| 5085 | /* We use char because int might match the return type of a gcc2 |
| 5086 | builtin and then its argument prototype would still apply. */ |
| 5087 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5088 | int |
| 5089 | main () |
| 5090 | { |
| 5091 | opendir (); |
| 5092 | ; |
| 5093 | return 0; |
| 5094 | } |
| 5095 | _ACEOF |
| 5096 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5097 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5098 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5099 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5100 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5101 | rm -f conftest.er1 |
| 5102 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5104 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5105 | { ac_try='test -z "$ac_c_werror_flag" |
| 5106 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5108 | (eval $ac_try) 2>&5 |
| 5109 | ac_status=$? |
| 5110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5111 | (exit $ac_status); }; } && |
| 5112 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5114 | (eval $ac_try) 2>&5 |
| 5115 | ac_status=$? |
| 5116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5117 | (exit $ac_status); }; }; then |
| 5118 | ac_cv_search_opendir="none required" |
| 5119 | else |
| 5120 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5122 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5123 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5124 | rm -f conftest.err conftest.$ac_objext \ |
| 5125 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5126 | if test "$ac_cv_search_opendir" = no; then |
| 5127 | for ac_lib in x; do |
| 5128 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 5129 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5130 | /* confdefs.h. */ |
| 5131 | _ACEOF |
| 5132 | cat confdefs.h >>conftest.$ac_ext |
| 5133 | cat >>conftest.$ac_ext <<_ACEOF |
| 5134 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5135 | |
| 5136 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5137 | #ifdef __cplusplus |
| 5138 | extern "C" |
| 5139 | #endif |
| 5140 | /* We use char because int might match the return type of a gcc2 |
| 5141 | builtin and then its argument prototype would still apply. */ |
| 5142 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5143 | int |
| 5144 | main () |
| 5145 | { |
| 5146 | opendir (); |
| 5147 | ; |
| 5148 | return 0; |
| 5149 | } |
| 5150 | _ACEOF |
| 5151 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5152 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5153 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5154 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5156 | rm -f conftest.er1 |
| 5157 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5159 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5160 | { ac_try='test -z "$ac_c_werror_flag" |
| 5161 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5163 | (eval $ac_try) 2>&5 |
| 5164 | ac_status=$? |
| 5165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5166 | (exit $ac_status); }; } && |
| 5167 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5169 | (eval $ac_try) 2>&5 |
| 5170 | ac_status=$? |
| 5171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5172 | (exit $ac_status); }; }; then |
| 5173 | ac_cv_search_opendir="-l$ac_lib" |
| 5174 | break |
| 5175 | else |
| 5176 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5178 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5179 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5180 | rm -f conftest.err conftest.$ac_objext \ |
| 5181 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5182 | done |
| 5183 | fi |
| 5184 | LIBS=$ac_func_search_save_LIBS |
| 5185 | fi |
| 5186 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5187 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 5188 | if test "$ac_cv_search_opendir" != no; then |
| 5189 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 5190 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5191 | fi |
| 5192 | |
| 5193 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5194 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5195 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 5196 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 5197 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 5198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5199 | else |
| 5200 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5201 | /* confdefs.h. */ |
| 5202 | _ACEOF |
| 5203 | cat confdefs.h >>conftest.$ac_ext |
| 5204 | cat >>conftest.$ac_ext <<_ACEOF |
| 5205 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5206 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5207 | int |
| 5208 | main () |
| 5209 | { |
| 5210 | return makedev(0, 0); |
| 5211 | ; |
| 5212 | return 0; |
| 5213 | } |
| 5214 | _ACEOF |
| 5215 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5216 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5217 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5218 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5219 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5220 | rm -f conftest.er1 |
| 5221 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5223 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5224 | { ac_try='test -z "$ac_c_werror_flag" |
| 5225 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5227 | (eval $ac_try) 2>&5 |
| 5228 | ac_status=$? |
| 5229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5230 | (exit $ac_status); }; } && |
| 5231 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5233 | (eval $ac_try) 2>&5 |
| 5234 | ac_status=$? |
| 5235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5236 | (exit $ac_status); }; }; then |
| 5237 | ac_cv_header_sys_types_h_makedev=yes |
| 5238 | else |
| 5239 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5241 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5242 | ac_cv_header_sys_types_h_makedev=no |
| 5243 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5244 | rm -f conftest.err conftest.$ac_objext \ |
| 5245 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5246 | |
| 5247 | fi |
| 5248 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 5249 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 5250 | |
| 5251 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 5252 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5253 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5254 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5255 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5257 | fi |
| 5258 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5259 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5260 | else |
| 5261 | # Is the header compilable? |
| 5262 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 5263 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 5264 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5265 | /* confdefs.h. */ |
| 5266 | _ACEOF |
| 5267 | cat confdefs.h >>conftest.$ac_ext |
| 5268 | cat >>conftest.$ac_ext <<_ACEOF |
| 5269 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5270 | $ac_includes_default |
| 5271 | #include <sys/mkdev.h> |
| 5272 | _ACEOF |
| 5273 | rm -f conftest.$ac_objext |
| 5274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5275 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5276 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5278 | rm -f conftest.er1 |
| 5279 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5281 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5282 | { ac_try='test -z "$ac_c_werror_flag" |
| 5283 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5285 | (eval $ac_try) 2>&5 |
| 5286 | ac_status=$? |
| 5287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5288 | (exit $ac_status); }; } && |
| 5289 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5291 | (eval $ac_try) 2>&5 |
| 5292 | ac_status=$? |
| 5293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5294 | (exit $ac_status); }; }; then |
| 5295 | ac_header_compiler=yes |
| 5296 | else |
| 5297 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5299 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5300 | ac_header_compiler=no |
| 5301 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5302 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5303 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5304 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5305 | |
| 5306 | # Is the header present? |
| 5307 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 5308 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 5309 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5310 | /* confdefs.h. */ |
| 5311 | _ACEOF |
| 5312 | cat confdefs.h >>conftest.$ac_ext |
| 5313 | cat >>conftest.$ac_ext <<_ACEOF |
| 5314 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5315 | #include <sys/mkdev.h> |
| 5316 | _ACEOF |
| 5317 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5318 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5319 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5320 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5321 | rm -f conftest.er1 |
| 5322 | cat conftest.err >&5 |
| 5323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5324 | (exit $ac_status); } >/dev/null; then |
| 5325 | if test -s conftest.err; then |
| 5326 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5327 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5328 | else |
| 5329 | ac_cpp_err= |
| 5330 | fi |
| 5331 | else |
| 5332 | ac_cpp_err=yes |
| 5333 | fi |
| 5334 | if test -z "$ac_cpp_err"; then |
| 5335 | ac_header_preproc=yes |
| 5336 | else |
| 5337 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5339 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5340 | ac_header_preproc=no |
| 5341 | fi |
| 5342 | rm -f conftest.err conftest.$ac_ext |
| 5343 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5344 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5345 | |
| 5346 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5347 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5348 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5349 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5350 | 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] | 5351 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 5352 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} |
| 5353 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5354 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5355 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5356 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 5357 | 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] | 5358 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 5359 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 5360 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 5361 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 5362 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5363 | 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] | 5364 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 5365 | 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] | 5366 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 5367 | 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] | 5368 | ( |
| 5369 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 5370 | ## ------------------------------------------------ ## |
| 5371 | ## Report this to http://www.python.org/python-bugs ## |
| 5372 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5373 | _ASBOX |
| 5374 | ) | |
| 5375 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5376 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5377 | esac |
| 5378 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5379 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5380 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5382 | else |
| 5383 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 5384 | fi |
| 5385 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5386 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5387 | |
| 5388 | fi |
| 5389 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 5390 | |
| 5391 | cat >>confdefs.h <<\_ACEOF |
| 5392 | #define MAJOR_IN_MKDEV 1 |
| 5393 | _ACEOF |
| 5394 | |
| 5395 | fi |
| 5396 | |
| 5397 | |
| 5398 | |
| 5399 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 5400 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5401 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5402 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5403 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5405 | fi |
| 5406 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5407 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5408 | else |
| 5409 | # Is the header compilable? |
| 5410 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 5411 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 5412 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5413 | /* confdefs.h. */ |
| 5414 | _ACEOF |
| 5415 | cat confdefs.h >>conftest.$ac_ext |
| 5416 | cat >>conftest.$ac_ext <<_ACEOF |
| 5417 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5418 | $ac_includes_default |
| 5419 | #include <sys/sysmacros.h> |
| 5420 | _ACEOF |
| 5421 | rm -f conftest.$ac_objext |
| 5422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5423 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5424 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5425 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5426 | rm -f conftest.er1 |
| 5427 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5429 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5430 | { ac_try='test -z "$ac_c_werror_flag" |
| 5431 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5433 | (eval $ac_try) 2>&5 |
| 5434 | ac_status=$? |
| 5435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5436 | (exit $ac_status); }; } && |
| 5437 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5439 | (eval $ac_try) 2>&5 |
| 5440 | ac_status=$? |
| 5441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5442 | (exit $ac_status); }; }; then |
| 5443 | ac_header_compiler=yes |
| 5444 | else |
| 5445 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5447 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5448 | ac_header_compiler=no |
| 5449 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5451 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5452 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5453 | |
| 5454 | # Is the header present? |
| 5455 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 5456 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 5457 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5458 | /* confdefs.h. */ |
| 5459 | _ACEOF |
| 5460 | cat confdefs.h >>conftest.$ac_ext |
| 5461 | cat >>conftest.$ac_ext <<_ACEOF |
| 5462 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5463 | #include <sys/sysmacros.h> |
| 5464 | _ACEOF |
| 5465 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5466 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5467 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5468 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5469 | rm -f conftest.er1 |
| 5470 | cat conftest.err >&5 |
| 5471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5472 | (exit $ac_status); } >/dev/null; then |
| 5473 | if test -s conftest.err; then |
| 5474 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5475 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5476 | else |
| 5477 | ac_cpp_err= |
| 5478 | fi |
| 5479 | else |
| 5480 | ac_cpp_err=yes |
| 5481 | fi |
| 5482 | if test -z "$ac_cpp_err"; then |
| 5483 | ac_header_preproc=yes |
| 5484 | else |
| 5485 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5487 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5488 | ac_header_preproc=no |
| 5489 | fi |
| 5490 | rm -f conftest.err conftest.$ac_ext |
| 5491 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5492 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5493 | |
| 5494 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5495 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5496 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5497 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5498 | 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] | 5499 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 5500 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} |
| 5501 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5502 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5503 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5504 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 5505 | 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] | 5506 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 5507 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 5508 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 5509 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 5510 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5511 | 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] | 5512 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 5513 | 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] | 5514 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 5515 | 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] | 5516 | ( |
| 5517 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 5518 | ## ------------------------------------------------ ## |
| 5519 | ## Report this to http://www.python.org/python-bugs ## |
| 5520 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5521 | _ASBOX |
| 5522 | ) | |
| 5523 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5524 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5525 | esac |
| 5526 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5527 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5528 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5530 | else |
| 5531 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 5532 | fi |
| 5533 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5534 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5535 | |
| 5536 | fi |
| 5537 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 5538 | |
| 5539 | cat >>confdefs.h <<\_ACEOF |
| 5540 | #define MAJOR_IN_SYSMACROS 1 |
| 5541 | _ACEOF |
| 5542 | |
| 5543 | fi |
| 5544 | |
| 5545 | |
| 5546 | fi |
| 5547 | fi |
| 5548 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5549 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5550 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5551 | |
| 5552 | for ac_header in term.h |
| 5553 | do |
| 5554 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5555 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5556 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5557 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5559 | else |
| 5560 | cat >conftest.$ac_ext <<_ACEOF |
| 5561 | /* confdefs.h. */ |
| 5562 | _ACEOF |
| 5563 | cat confdefs.h >>conftest.$ac_ext |
| 5564 | cat >>conftest.$ac_ext <<_ACEOF |
| 5565 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5566 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 5567 | #ifdef HAVE_CURSES_H |
| 5568 | #include <curses.h> |
| 5569 | #endif |
| 5570 | |
| 5571 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5572 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5573 | _ACEOF |
| 5574 | rm -f conftest.$ac_objext |
| 5575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5576 | (eval $ac_compile) 2>conftest.er1 |
| 5577 | ac_status=$? |
| 5578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5579 | rm -f conftest.er1 |
| 5580 | cat conftest.err >&5 |
| 5581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5582 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5583 | { ac_try='test -z "$ac_c_werror_flag" |
| 5584 | || test ! -s conftest.err' |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5586 | (eval $ac_try) 2>&5 |
| 5587 | ac_status=$? |
| 5588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5589 | (exit $ac_status); }; } && |
| 5590 | { ac_try='test -s conftest.$ac_objext' |
| 5591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5592 | (eval $ac_try) 2>&5 |
| 5593 | ac_status=$? |
| 5594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5595 | (exit $ac_status); }; }; then |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5596 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5597 | else |
| 5598 | echo "$as_me: failed program was:" >&5 |
| 5599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5600 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5601 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5602 | fi |
| 5603 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5604 | fi |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5605 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5606 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5607 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5608 | cat >>confdefs.h <<_ACEOF |
| 5609 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5610 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5611 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5612 | fi |
| 5613 | |
| 5614 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5615 | |
| 5616 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 5617 | # On Linux, netlink.h requires asm/types.h |
| 5618 | |
| 5619 | for ac_header in linux/netlink.h |
| 5620 | do |
| 5621 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5622 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5623 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5624 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5626 | else |
| 5627 | cat >conftest.$ac_ext <<_ACEOF |
| 5628 | /* confdefs.h. */ |
| 5629 | _ACEOF |
| 5630 | cat confdefs.h >>conftest.$ac_ext |
| 5631 | cat >>conftest.$ac_ext <<_ACEOF |
| 5632 | /* end confdefs.h. */ |
| 5633 | |
| 5634 | #ifdef HAVE_ASM_TYPES_H |
| 5635 | #include <asm/types.h> |
| 5636 | #endif |
| 5637 | #ifdef HAVE_SYS_SOCKET_H |
| 5638 | #include <sys/socket.h> |
| 5639 | #endif |
| 5640 | |
| 5641 | |
| 5642 | #include <$ac_header> |
| 5643 | _ACEOF |
| 5644 | rm -f conftest.$ac_objext |
| 5645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5646 | (eval $ac_compile) 2>conftest.er1 |
| 5647 | ac_status=$? |
| 5648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5649 | rm -f conftest.er1 |
| 5650 | cat conftest.err >&5 |
| 5651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5652 | (exit $ac_status); } && |
| 5653 | { ac_try='test -z "$ac_c_werror_flag" |
| 5654 | || test ! -s conftest.err' |
| 5655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5656 | (eval $ac_try) 2>&5 |
| 5657 | ac_status=$? |
| 5658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5659 | (exit $ac_status); }; } && |
| 5660 | { ac_try='test -s conftest.$ac_objext' |
| 5661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5662 | (eval $ac_try) 2>&5 |
| 5663 | ac_status=$? |
| 5664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5665 | (exit $ac_status); }; }; then |
| 5666 | eval "$as_ac_Header=yes" |
| 5667 | else |
| 5668 | echo "$as_me: failed program was:" >&5 |
| 5669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5670 | |
| 5671 | eval "$as_ac_Header=no" |
| 5672 | fi |
| 5673 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5674 | fi |
| 5675 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5676 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5677 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5678 | cat >>confdefs.h <<_ACEOF |
| 5679 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5680 | _ACEOF |
| 5681 | |
| 5682 | fi |
| 5683 | |
| 5684 | done |
| 5685 | |
| 5686 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5687 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5688 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5689 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 5690 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 5691 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5692 | /* confdefs.h. */ |
| 5693 | _ACEOF |
| 5694 | cat confdefs.h >>conftest.$ac_ext |
| 5695 | cat >>conftest.$ac_ext <<_ACEOF |
| 5696 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5697 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5698 | |
| 5699 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5700 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5701 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5702 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5703 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5704 | |
| 5705 | |
| 5706 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5707 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5708 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5709 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 5710 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5711 | fi |
| 5712 | rm -f conftest* |
| 5713 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5714 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 5715 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5716 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5717 | # Check whether using makedev requires defining _OSF_SOURCE |
| 5718 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 5719 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 5720 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5721 | /* confdefs.h. */ |
| 5722 | _ACEOF |
| 5723 | cat confdefs.h >>conftest.$ac_ext |
| 5724 | cat >>conftest.$ac_ext <<_ACEOF |
| 5725 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5726 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5727 | int |
| 5728 | main () |
| 5729 | { |
| 5730 | makedev(0, 0) |
| 5731 | ; |
| 5732 | return 0; |
| 5733 | } |
| 5734 | _ACEOF |
| 5735 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5736 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5737 | (eval $ac_link) 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5738 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5739 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5740 | rm -f conftest.er1 |
| 5741 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5743 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5744 | { ac_try='test -z "$ac_c_werror_flag" |
| 5745 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5747 | (eval $ac_try) 2>&5 |
| 5748 | ac_status=$? |
| 5749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5750 | (exit $ac_status); }; } && |
| 5751 | { ac_try='test -s conftest$ac_exeext' |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5753 | (eval $ac_try) 2>&5 |
| 5754 | ac_status=$? |
| 5755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5756 | (exit $ac_status); }; }; then |
| 5757 | ac_cv_has_makedev=yes |
| 5758 | else |
| 5759 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5761 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5762 | ac_cv_has_makedev=no |
| 5763 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5764 | rm -f conftest.err conftest.$ac_objext \ |
| 5765 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5766 | if test "$ac_cv_has_makedev" = "no"; then |
| 5767 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 5768 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5769 | /* confdefs.h. */ |
| 5770 | _ACEOF |
| 5771 | cat confdefs.h >>conftest.$ac_ext |
| 5772 | cat >>conftest.$ac_ext <<_ACEOF |
| 5773 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5774 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5775 | #define _OSF_SOURCE 1 |
| 5776 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5777 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5778 | int |
| 5779 | main () |
| 5780 | { |
| 5781 | makedev(0, 0) |
| 5782 | ; |
| 5783 | return 0; |
| 5784 | } |
| 5785 | _ACEOF |
| 5786 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5787 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5788 | (eval $ac_link) 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5789 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5790 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5791 | rm -f conftest.er1 |
| 5792 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5794 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5795 | { ac_try='test -z "$ac_c_werror_flag" |
| 5796 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5798 | (eval $ac_try) 2>&5 |
| 5799 | ac_status=$? |
| 5800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5801 | (exit $ac_status); }; } && |
| 5802 | { ac_try='test -s conftest$ac_exeext' |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5804 | (eval $ac_try) 2>&5 |
| 5805 | ac_status=$? |
| 5806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5807 | (exit $ac_status); }; }; then |
| 5808 | ac_cv_has_makedev=yes |
| 5809 | else |
| 5810 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5812 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5813 | ac_cv_has_makedev=no |
| 5814 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5815 | rm -f conftest.err conftest.$ac_objext \ |
| 5816 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5817 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5818 | |
| 5819 | cat >>confdefs.h <<\_ACEOF |
| 5820 | #define _OSF_SOURCE 1 |
| 5821 | _ACEOF |
| 5822 | |
| 5823 | fi |
| 5824 | fi |
| 5825 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 5826 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 5827 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5828 | |
| 5829 | cat >>confdefs.h <<\_ACEOF |
| 5830 | #define HAVE_MAKEDEV 1 |
| 5831 | _ACEOF |
| 5832 | |
| 5833 | fi |
| 5834 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5835 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 5836 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 5837 | # defined, but the compiler does not support pragma redefine_extname, |
| 5838 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 5839 | # structures (such as rlimit64) without declaring them. As a |
| 5840 | # work-around, disable LFS on such configurations |
| 5841 | |
| 5842 | use_lfs=yes |
| 5843 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 5844 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 5845 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5846 | /* confdefs.h. */ |
| 5847 | _ACEOF |
| 5848 | cat confdefs.h >>conftest.$ac_ext |
| 5849 | cat >>conftest.$ac_ext <<_ACEOF |
| 5850 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5851 | |
| 5852 | #define _LARGEFILE_SOURCE 1 |
| 5853 | #define _FILE_OFFSET_BITS 64 |
| 5854 | #include <sys/resource.h> |
| 5855 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5856 | int |
| 5857 | main () |
| 5858 | { |
| 5859 | struct rlimit foo; |
| 5860 | ; |
| 5861 | return 0; |
| 5862 | } |
| 5863 | _ACEOF |
| 5864 | rm -f conftest.$ac_objext |
| 5865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5866 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5867 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5868 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5869 | rm -f conftest.er1 |
| 5870 | cat conftest.err >&5 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5872 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5873 | { ac_try='test -z "$ac_c_werror_flag" |
| 5874 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5876 | (eval $ac_try) 2>&5 |
| 5877 | ac_status=$? |
| 5878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5879 | (exit $ac_status); }; } && |
| 5880 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5882 | (eval $ac_try) 2>&5 |
| 5883 | ac_status=$? |
| 5884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5885 | (exit $ac_status); }; }; then |
| 5886 | sol_lfs_bug=no |
| 5887 | else |
| 5888 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5890 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5891 | sol_lfs_bug=yes |
| 5892 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5894 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 5895 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 5896 | if test "$sol_lfs_bug" = "yes"; then |
| 5897 | use_lfs=no |
| 5898 | fi |
| 5899 | |
| 5900 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5901 | # Two defines needed to enable largefile support on various platforms |
| 5902 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5904 | cat >>confdefs.h <<\_ACEOF |
| 5905 | #define _LARGEFILE_SOURCE 1 |
| 5906 | _ACEOF |
| 5907 | |
| 5908 | |
| 5909 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5910 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5911 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5912 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5913 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5914 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 5915 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 5916 | cat >> confdefs.h <<\EOF |
| 5917 | #if defined(SCO_DS) |
| 5918 | #undef _OFF_T |
| 5919 | #endif |
| 5920 | EOF |
| 5921 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5922 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5923 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 5924 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 5925 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 5926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5927 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5928 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5929 | /* confdefs.h. */ |
| 5930 | _ACEOF |
| 5931 | cat confdefs.h >>conftest.$ac_ext |
| 5932 | cat >>conftest.$ac_ext <<_ACEOF |
| 5933 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5934 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5935 | int |
| 5936 | main () |
| 5937 | { |
| 5938 | if ((mode_t *) 0) |
| 5939 | return 0; |
| 5940 | if (sizeof (mode_t)) |
| 5941 | return 0; |
| 5942 | ; |
| 5943 | return 0; |
| 5944 | } |
| 5945 | _ACEOF |
| 5946 | rm -f conftest.$ac_objext |
| 5947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5948 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5949 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5951 | rm -f conftest.er1 |
| 5952 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5954 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5955 | { ac_try='test -z "$ac_c_werror_flag" |
| 5956 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5958 | (eval $ac_try) 2>&5 |
| 5959 | ac_status=$? |
| 5960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5961 | (exit $ac_status); }; } && |
| 5962 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5964 | (eval $ac_try) 2>&5 |
| 5965 | ac_status=$? |
| 5966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5967 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5968 | ac_cv_type_mode_t=yes |
| 5969 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5970 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5972 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5973 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5974 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5975 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5976 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5977 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 5978 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 5979 | if test $ac_cv_type_mode_t = yes; then |
| 5980 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5981 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5982 | |
| 5983 | cat >>confdefs.h <<_ACEOF |
| 5984 | #define mode_t int |
| 5985 | _ACEOF |
| 5986 | |
| 5987 | fi |
| 5988 | |
| 5989 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5990 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 5991 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5993 | else |
| 5994 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5995 | /* confdefs.h. */ |
| 5996 | _ACEOF |
| 5997 | cat confdefs.h >>conftest.$ac_ext |
| 5998 | cat >>conftest.$ac_ext <<_ACEOF |
| 5999 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6000 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6001 | int |
| 6002 | main () |
| 6003 | { |
| 6004 | if ((off_t *) 0) |
| 6005 | return 0; |
| 6006 | if (sizeof (off_t)) |
| 6007 | return 0; |
| 6008 | ; |
| 6009 | return 0; |
| 6010 | } |
| 6011 | _ACEOF |
| 6012 | rm -f conftest.$ac_objext |
| 6013 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6014 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6015 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6017 | rm -f conftest.er1 |
| 6018 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6020 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6021 | { ac_try='test -z "$ac_c_werror_flag" |
| 6022 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6024 | (eval $ac_try) 2>&5 |
| 6025 | ac_status=$? |
| 6026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6027 | (exit $ac_status); }; } && |
| 6028 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6030 | (eval $ac_try) 2>&5 |
| 6031 | ac_status=$? |
| 6032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6033 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6034 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6035 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6036 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6038 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6039 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6040 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6041 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6042 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6043 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 6044 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 6045 | if test $ac_cv_type_off_t = yes; then |
| 6046 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6047 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6048 | |
| 6049 | cat >>confdefs.h <<_ACEOF |
| 6050 | #define off_t long |
| 6051 | _ACEOF |
| 6052 | |
| 6053 | fi |
| 6054 | |
| 6055 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 6056 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 6057 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 6058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6059 | else |
| 6060 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6061 | /* confdefs.h. */ |
| 6062 | _ACEOF |
| 6063 | cat confdefs.h >>conftest.$ac_ext |
| 6064 | cat >>conftest.$ac_ext <<_ACEOF |
| 6065 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6066 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6067 | int |
| 6068 | main () |
| 6069 | { |
| 6070 | if ((pid_t *) 0) |
| 6071 | return 0; |
| 6072 | if (sizeof (pid_t)) |
| 6073 | return 0; |
| 6074 | ; |
| 6075 | return 0; |
| 6076 | } |
| 6077 | _ACEOF |
| 6078 | rm -f conftest.$ac_objext |
| 6079 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6080 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6081 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6083 | rm -f conftest.er1 |
| 6084 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6086 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6087 | { ac_try='test -z "$ac_c_werror_flag" |
| 6088 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6090 | (eval $ac_try) 2>&5 |
| 6091 | ac_status=$? |
| 6092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6093 | (exit $ac_status); }; } && |
| 6094 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6096 | (eval $ac_try) 2>&5 |
| 6097 | ac_status=$? |
| 6098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6099 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6100 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6101 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6102 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6104 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6105 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6106 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6107 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6108 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6109 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 6110 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 6111 | if test $ac_cv_type_pid_t = yes; then |
| 6112 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6113 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6114 | |
| 6115 | cat >>confdefs.h <<_ACEOF |
| 6116 | #define pid_t int |
| 6117 | _ACEOF |
| 6118 | |
| 6119 | fi |
| 6120 | |
| 6121 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 6122 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 6123 | if test "${ac_cv_type_signal+set}" = set; then |
| 6124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6125 | else |
| 6126 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6127 | /* confdefs.h. */ |
| 6128 | _ACEOF |
| 6129 | cat confdefs.h >>conftest.$ac_ext |
| 6130 | cat >>conftest.$ac_ext <<_ACEOF |
| 6131 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6132 | #include <sys/types.h> |
| 6133 | #include <signal.h> |
| 6134 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6135 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6136 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6137 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6138 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 6139 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6140 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6141 | #endif |
| 6142 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6143 | int |
| 6144 | main () |
| 6145 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6146 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6147 | ; |
| 6148 | return 0; |
| 6149 | } |
| 6150 | _ACEOF |
| 6151 | rm -f conftest.$ac_objext |
| 6152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6153 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6154 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6156 | rm -f conftest.er1 |
| 6157 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6159 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6160 | { ac_try='test -z "$ac_c_werror_flag" |
| 6161 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6163 | (eval $ac_try) 2>&5 |
| 6164 | ac_status=$? |
| 6165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6166 | (exit $ac_status); }; } && |
| 6167 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6169 | (eval $ac_try) 2>&5 |
| 6170 | ac_status=$? |
| 6171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6172 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6173 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6174 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6175 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6177 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6178 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6179 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6180 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6181 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6182 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 6183 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6184 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6185 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6186 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6187 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6188 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6189 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6190 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 6191 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 6192 | if test "${ac_cv_type_size_t+set}" = set; then |
| 6193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6194 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6195 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6196 | /* confdefs.h. */ |
| 6197 | _ACEOF |
| 6198 | cat confdefs.h >>conftest.$ac_ext |
| 6199 | cat >>conftest.$ac_ext <<_ACEOF |
| 6200 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6201 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6202 | int |
| 6203 | main () |
| 6204 | { |
| 6205 | if ((size_t *) 0) |
| 6206 | return 0; |
| 6207 | if (sizeof (size_t)) |
| 6208 | return 0; |
| 6209 | ; |
| 6210 | return 0; |
| 6211 | } |
| 6212 | _ACEOF |
| 6213 | rm -f conftest.$ac_objext |
| 6214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6215 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6216 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6218 | rm -f conftest.er1 |
| 6219 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6221 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6222 | { ac_try='test -z "$ac_c_werror_flag" |
| 6223 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6225 | (eval $ac_try) 2>&5 |
| 6226 | ac_status=$? |
| 6227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6228 | (exit $ac_status); }; } && |
| 6229 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6231 | (eval $ac_try) 2>&5 |
| 6232 | ac_status=$? |
| 6233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6234 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6235 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6236 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6237 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6239 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6240 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6241 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6243 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6244 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 6245 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 6246 | if test $ac_cv_type_size_t = yes; then |
| 6247 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6248 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6249 | |
| 6250 | cat >>confdefs.h <<_ACEOF |
| 6251 | #define size_t unsigned |
| 6252 | _ACEOF |
| 6253 | |
| 6254 | fi |
| 6255 | |
| 6256 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 6257 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 6258 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 6259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6260 | else |
| 6261 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6262 | /* confdefs.h. */ |
| 6263 | _ACEOF |
| 6264 | cat confdefs.h >>conftest.$ac_ext |
| 6265 | cat >>conftest.$ac_ext <<_ACEOF |
| 6266 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6267 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6268 | |
| 6269 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6270 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6271 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6272 | ac_cv_type_uid_t=yes |
| 6273 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6274 | ac_cv_type_uid_t=no |
| 6275 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6276 | rm -f conftest* |
| 6277 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6278 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6279 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 6280 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6281 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6282 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6283 | cat >>confdefs.h <<\_ACEOF |
| 6284 | #define uid_t int |
| 6285 | _ACEOF |
| 6286 | |
| 6287 | |
| 6288 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6289 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6290 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6291 | |
| 6292 | fi |
| 6293 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6294 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 6295 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 |
| 6296 | if test "${ac_cv_type_ssize_t+set}" = set; then |
| 6297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6298 | else |
| 6299 | cat >conftest.$ac_ext <<_ACEOF |
| 6300 | /* confdefs.h. */ |
| 6301 | _ACEOF |
| 6302 | cat confdefs.h >>conftest.$ac_ext |
| 6303 | cat >>conftest.$ac_ext <<_ACEOF |
| 6304 | /* end confdefs.h. */ |
| 6305 | $ac_includes_default |
| 6306 | int |
| 6307 | main () |
| 6308 | { |
| 6309 | if ((ssize_t *) 0) |
| 6310 | return 0; |
| 6311 | if (sizeof (ssize_t)) |
| 6312 | return 0; |
| 6313 | ; |
| 6314 | return 0; |
| 6315 | } |
| 6316 | _ACEOF |
| 6317 | rm -f conftest.$ac_objext |
| 6318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6319 | (eval $ac_compile) 2>conftest.er1 |
| 6320 | ac_status=$? |
| 6321 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6322 | rm -f conftest.er1 |
| 6323 | cat conftest.err >&5 |
| 6324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6325 | (exit $ac_status); } && |
| 6326 | { ac_try='test -z "$ac_c_werror_flag" |
| 6327 | || test ! -s conftest.err' |
| 6328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6329 | (eval $ac_try) 2>&5 |
| 6330 | ac_status=$? |
| 6331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6332 | (exit $ac_status); }; } && |
| 6333 | { ac_try='test -s conftest.$ac_objext' |
| 6334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6335 | (eval $ac_try) 2>&5 |
| 6336 | ac_status=$? |
| 6337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6338 | (exit $ac_status); }; }; then |
| 6339 | ac_cv_type_ssize_t=yes |
| 6340 | else |
| 6341 | echo "$as_me: failed program was:" >&5 |
| 6342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6343 | |
| 6344 | ac_cv_type_ssize_t=no |
| 6345 | fi |
| 6346 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6347 | fi |
| 6348 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 6349 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 |
| 6350 | if test $ac_cv_type_ssize_t = yes; then |
| 6351 | |
| 6352 | cat >>confdefs.h <<\_ACEOF |
| 6353 | #define HAVE_SSIZE_T 1 |
| 6354 | _ACEOF |
| 6355 | |
| 6356 | fi |
| 6357 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6358 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6359 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 6360 | # 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] | 6361 | echo "$as_me:$LINENO: checking for int" >&5 |
| 6362 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 6363 | if test "${ac_cv_type_int+set}" = set; then |
| 6364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6365 | else |
| 6366 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6367 | /* confdefs.h. */ |
| 6368 | _ACEOF |
| 6369 | cat confdefs.h >>conftest.$ac_ext |
| 6370 | cat >>conftest.$ac_ext <<_ACEOF |
| 6371 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6372 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6373 | int |
| 6374 | main () |
| 6375 | { |
| 6376 | if ((int *) 0) |
| 6377 | return 0; |
| 6378 | if (sizeof (int)) |
| 6379 | return 0; |
| 6380 | ; |
| 6381 | return 0; |
| 6382 | } |
| 6383 | _ACEOF |
| 6384 | rm -f conftest.$ac_objext |
| 6385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6386 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6387 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6388 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6389 | rm -f conftest.er1 |
| 6390 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6392 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6393 | { ac_try='test -z "$ac_c_werror_flag" |
| 6394 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6396 | (eval $ac_try) 2>&5 |
| 6397 | ac_status=$? |
| 6398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6399 | (exit $ac_status); }; } && |
| 6400 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6402 | (eval $ac_try) 2>&5 |
| 6403 | ac_status=$? |
| 6404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6405 | (exit $ac_status); }; }; then |
| 6406 | ac_cv_type_int=yes |
| 6407 | else |
| 6408 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6410 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6411 | ac_cv_type_int=no |
| 6412 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6414 | fi |
| 6415 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 6416 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 6417 | |
| 6418 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 6419 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 6420 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 6421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6422 | else |
| 6423 | if test "$ac_cv_type_int" = yes; then |
| 6424 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6425 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6426 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6427 | # This bug is HP SR number 8606223364. |
| 6428 | if test "$cross_compiling" = yes; then |
| 6429 | # Depending upon the size, compute the lo and hi bounds. |
| 6430 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6431 | /* confdefs.h. */ |
| 6432 | _ACEOF |
| 6433 | cat confdefs.h >>conftest.$ac_ext |
| 6434 | cat >>conftest.$ac_ext <<_ACEOF |
| 6435 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6436 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6437 | int |
| 6438 | main () |
| 6439 | { |
| 6440 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 6441 | test_array [0] = 0 |
| 6442 | |
| 6443 | ; |
| 6444 | return 0; |
| 6445 | } |
| 6446 | _ACEOF |
| 6447 | rm -f conftest.$ac_objext |
| 6448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6449 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6450 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6452 | rm -f conftest.er1 |
| 6453 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6455 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6456 | { ac_try='test -z "$ac_c_werror_flag" |
| 6457 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6459 | (eval $ac_try) 2>&5 |
| 6460 | ac_status=$? |
| 6461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6462 | (exit $ac_status); }; } && |
| 6463 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6465 | (eval $ac_try) 2>&5 |
| 6466 | ac_status=$? |
| 6467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6468 | (exit $ac_status); }; }; then |
| 6469 | ac_lo=0 ac_mid=0 |
| 6470 | while :; do |
| 6471 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6472 | /* confdefs.h. */ |
| 6473 | _ACEOF |
| 6474 | cat confdefs.h >>conftest.$ac_ext |
| 6475 | cat >>conftest.$ac_ext <<_ACEOF |
| 6476 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6477 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6478 | int |
| 6479 | main () |
| 6480 | { |
| 6481 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6482 | test_array [0] = 0 |
| 6483 | |
| 6484 | ; |
| 6485 | return 0; |
| 6486 | } |
| 6487 | _ACEOF |
| 6488 | rm -f conftest.$ac_objext |
| 6489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6490 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6491 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6492 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6493 | rm -f conftest.er1 |
| 6494 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6496 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6497 | { ac_try='test -z "$ac_c_werror_flag" |
| 6498 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6500 | (eval $ac_try) 2>&5 |
| 6501 | ac_status=$? |
| 6502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6503 | (exit $ac_status); }; } && |
| 6504 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6506 | (eval $ac_try) 2>&5 |
| 6507 | ac_status=$? |
| 6508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6509 | (exit $ac_status); }; }; then |
| 6510 | ac_hi=$ac_mid; break |
| 6511 | else |
| 6512 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6513 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6514 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6515 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6516 | if test $ac_lo -le $ac_mid; then |
| 6517 | ac_lo= ac_hi= |
| 6518 | break |
| 6519 | fi |
| 6520 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6521 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6522 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6523 | done |
| 6524 | else |
| 6525 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6527 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6528 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6529 | /* confdefs.h. */ |
| 6530 | _ACEOF |
| 6531 | cat confdefs.h >>conftest.$ac_ext |
| 6532 | cat >>conftest.$ac_ext <<_ACEOF |
| 6533 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6534 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6535 | int |
| 6536 | main () |
| 6537 | { |
| 6538 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 6539 | test_array [0] = 0 |
| 6540 | |
| 6541 | ; |
| 6542 | return 0; |
| 6543 | } |
| 6544 | _ACEOF |
| 6545 | rm -f conftest.$ac_objext |
| 6546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6547 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6548 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6549 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6550 | rm -f conftest.er1 |
| 6551 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6553 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6554 | { ac_try='test -z "$ac_c_werror_flag" |
| 6555 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6557 | (eval $ac_try) 2>&5 |
| 6558 | ac_status=$? |
| 6559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6560 | (exit $ac_status); }; } && |
| 6561 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6563 | (eval $ac_try) 2>&5 |
| 6564 | ac_status=$? |
| 6565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6566 | (exit $ac_status); }; }; then |
| 6567 | ac_hi=-1 ac_mid=-1 |
| 6568 | while :; do |
| 6569 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6570 | /* confdefs.h. */ |
| 6571 | _ACEOF |
| 6572 | cat confdefs.h >>conftest.$ac_ext |
| 6573 | cat >>conftest.$ac_ext <<_ACEOF |
| 6574 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6575 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6576 | int |
| 6577 | main () |
| 6578 | { |
| 6579 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 6580 | test_array [0] = 0 |
| 6581 | |
| 6582 | ; |
| 6583 | return 0; |
| 6584 | } |
| 6585 | _ACEOF |
| 6586 | rm -f conftest.$ac_objext |
| 6587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6588 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6589 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6590 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6591 | rm -f conftest.er1 |
| 6592 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6594 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6595 | { ac_try='test -z "$ac_c_werror_flag" |
| 6596 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6598 | (eval $ac_try) 2>&5 |
| 6599 | ac_status=$? |
| 6600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6601 | (exit $ac_status); }; } && |
| 6602 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6604 | (eval $ac_try) 2>&5 |
| 6605 | ac_status=$? |
| 6606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6607 | (exit $ac_status); }; }; then |
| 6608 | ac_lo=$ac_mid; break |
| 6609 | else |
| 6610 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6612 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6613 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6614 | if test $ac_mid -le $ac_hi; then |
| 6615 | ac_lo= ac_hi= |
| 6616 | break |
| 6617 | fi |
| 6618 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6619 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6620 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6621 | done |
| 6622 | else |
| 6623 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6624 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6626 | ac_lo= ac_hi= |
| 6627 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6629 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6630 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6631 | # Binary search between lo and hi bounds. |
| 6632 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6633 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6634 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6635 | /* confdefs.h. */ |
| 6636 | _ACEOF |
| 6637 | cat confdefs.h >>conftest.$ac_ext |
| 6638 | cat >>conftest.$ac_ext <<_ACEOF |
| 6639 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6640 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6641 | int |
| 6642 | main () |
| 6643 | { |
| 6644 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6645 | test_array [0] = 0 |
| 6646 | |
| 6647 | ; |
| 6648 | return 0; |
| 6649 | } |
| 6650 | _ACEOF |
| 6651 | rm -f conftest.$ac_objext |
| 6652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6653 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6654 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6656 | rm -f conftest.er1 |
| 6657 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6659 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6660 | { ac_try='test -z "$ac_c_werror_flag" |
| 6661 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6663 | (eval $ac_try) 2>&5 |
| 6664 | ac_status=$? |
| 6665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6666 | (exit $ac_status); }; } && |
| 6667 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6669 | (eval $ac_try) 2>&5 |
| 6670 | ac_status=$? |
| 6671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6672 | (exit $ac_status); }; }; then |
| 6673 | ac_hi=$ac_mid |
| 6674 | else |
| 6675 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6677 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6678 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6679 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6681 | done |
| 6682 | case $ac_lo in |
| 6683 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6684 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6685 | See \`config.log' for more details." >&5 |
| 6686 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6687 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6688 | { (exit 1); exit 1; }; } ;; |
| 6689 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6690 | else |
| 6691 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6692 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6693 | See \`config.log' for more details." >&5 |
| 6694 | echo "$as_me: error: cannot run test program while cross compiling |
| 6695 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6696 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6697 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6698 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6699 | /* confdefs.h. */ |
| 6700 | _ACEOF |
| 6701 | cat confdefs.h >>conftest.$ac_ext |
| 6702 | cat >>conftest.$ac_ext <<_ACEOF |
| 6703 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6704 | $ac_includes_default |
| 6705 | long longval () { return (long) (sizeof (int)); } |
| 6706 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6707 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6708 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6709 | int |
| 6710 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6711 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6712 | |
| 6713 | FILE *f = fopen ("conftest.val", "w"); |
| 6714 | if (! f) |
| 6715 | exit (1); |
| 6716 | if (((long) (sizeof (int))) < 0) |
| 6717 | { |
| 6718 | long i = longval (); |
| 6719 | if (i != ((long) (sizeof (int)))) |
| 6720 | exit (1); |
| 6721 | fprintf (f, "%ld\n", i); |
| 6722 | } |
| 6723 | else |
| 6724 | { |
| 6725 | unsigned long i = ulongval (); |
| 6726 | if (i != ((long) (sizeof (int)))) |
| 6727 | exit (1); |
| 6728 | fprintf (f, "%lu\n", i); |
| 6729 | } |
| 6730 | exit (ferror (f) || fclose (f) != 0); |
| 6731 | |
| 6732 | ; |
| 6733 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6734 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6735 | _ACEOF |
| 6736 | rm -f conftest$ac_exeext |
| 6737 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6738 | (eval $ac_link) 2>&5 |
| 6739 | ac_status=$? |
| 6740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6741 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6743 | (eval $ac_try) 2>&5 |
| 6744 | ac_status=$? |
| 6745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6746 | (exit $ac_status); }; }; then |
| 6747 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6748 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6749 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6750 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6752 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6753 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6754 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6755 | See \`config.log' for more details." >&5 |
| 6756 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6757 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6758 | { (exit 1); exit 1; }; } |
| 6759 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6760 | 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] | 6761 | fi |
| 6762 | fi |
| 6763 | rm -f conftest.val |
| 6764 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6765 | ac_cv_sizeof_int=0 |
| 6766 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6767 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6768 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 6769 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 6770 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6771 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6772 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6773 | |
| 6774 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6775 | echo "$as_me:$LINENO: checking for long" >&5 |
| 6776 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 6777 | if test "${ac_cv_type_long+set}" = set; then |
| 6778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6779 | else |
| 6780 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6781 | /* confdefs.h. */ |
| 6782 | _ACEOF |
| 6783 | cat confdefs.h >>conftest.$ac_ext |
| 6784 | cat >>conftest.$ac_ext <<_ACEOF |
| 6785 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6786 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6787 | int |
| 6788 | main () |
| 6789 | { |
| 6790 | if ((long *) 0) |
| 6791 | return 0; |
| 6792 | if (sizeof (long)) |
| 6793 | return 0; |
| 6794 | ; |
| 6795 | return 0; |
| 6796 | } |
| 6797 | _ACEOF |
| 6798 | rm -f conftest.$ac_objext |
| 6799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6800 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6801 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6803 | rm -f conftest.er1 |
| 6804 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6806 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6807 | { ac_try='test -z "$ac_c_werror_flag" |
| 6808 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6810 | (eval $ac_try) 2>&5 |
| 6811 | ac_status=$? |
| 6812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6813 | (exit $ac_status); }; } && |
| 6814 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6816 | (eval $ac_try) 2>&5 |
| 6817 | ac_status=$? |
| 6818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6819 | (exit $ac_status); }; }; then |
| 6820 | ac_cv_type_long=yes |
| 6821 | else |
| 6822 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6824 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6825 | ac_cv_type_long=no |
| 6826 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6828 | fi |
| 6829 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 6830 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 6831 | |
| 6832 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 6833 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 6834 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 6835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6836 | else |
| 6837 | if test "$ac_cv_type_long" = yes; then |
| 6838 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6839 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6840 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6841 | # This bug is HP SR number 8606223364. |
| 6842 | if test "$cross_compiling" = yes; then |
| 6843 | # Depending upon the size, compute the lo and hi bounds. |
| 6844 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6845 | /* confdefs.h. */ |
| 6846 | _ACEOF |
| 6847 | cat confdefs.h >>conftest.$ac_ext |
| 6848 | cat >>conftest.$ac_ext <<_ACEOF |
| 6849 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6850 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6851 | int |
| 6852 | main () |
| 6853 | { |
| 6854 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 6855 | test_array [0] = 0 |
| 6856 | |
| 6857 | ; |
| 6858 | return 0; |
| 6859 | } |
| 6860 | _ACEOF |
| 6861 | rm -f conftest.$ac_objext |
| 6862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6863 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6864 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6865 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6866 | rm -f conftest.er1 |
| 6867 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6869 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6870 | { ac_try='test -z "$ac_c_werror_flag" |
| 6871 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6873 | (eval $ac_try) 2>&5 |
| 6874 | ac_status=$? |
| 6875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6876 | (exit $ac_status); }; } && |
| 6877 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6879 | (eval $ac_try) 2>&5 |
| 6880 | ac_status=$? |
| 6881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6882 | (exit $ac_status); }; }; then |
| 6883 | ac_lo=0 ac_mid=0 |
| 6884 | while :; do |
| 6885 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6886 | /* confdefs.h. */ |
| 6887 | _ACEOF |
| 6888 | cat confdefs.h >>conftest.$ac_ext |
| 6889 | cat >>conftest.$ac_ext <<_ACEOF |
| 6890 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6891 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6892 | int |
| 6893 | main () |
| 6894 | { |
| 6895 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6896 | test_array [0] = 0 |
| 6897 | |
| 6898 | ; |
| 6899 | return 0; |
| 6900 | } |
| 6901 | _ACEOF |
| 6902 | rm -f conftest.$ac_objext |
| 6903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6904 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6905 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6906 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6907 | rm -f conftest.er1 |
| 6908 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6910 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6911 | { ac_try='test -z "$ac_c_werror_flag" |
| 6912 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6914 | (eval $ac_try) 2>&5 |
| 6915 | ac_status=$? |
| 6916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6917 | (exit $ac_status); }; } && |
| 6918 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6920 | (eval $ac_try) 2>&5 |
| 6921 | ac_status=$? |
| 6922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6923 | (exit $ac_status); }; }; then |
| 6924 | ac_hi=$ac_mid; break |
| 6925 | else |
| 6926 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6927 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6928 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6929 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6930 | if test $ac_lo -le $ac_mid; then |
| 6931 | ac_lo= ac_hi= |
| 6932 | break |
| 6933 | fi |
| 6934 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6935 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6936 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6937 | done |
| 6938 | else |
| 6939 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6942 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6943 | /* confdefs.h. */ |
| 6944 | _ACEOF |
| 6945 | cat confdefs.h >>conftest.$ac_ext |
| 6946 | cat >>conftest.$ac_ext <<_ACEOF |
| 6947 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6948 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6949 | int |
| 6950 | main () |
| 6951 | { |
| 6952 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 6953 | test_array [0] = 0 |
| 6954 | |
| 6955 | ; |
| 6956 | return 0; |
| 6957 | } |
| 6958 | _ACEOF |
| 6959 | rm -f conftest.$ac_objext |
| 6960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6961 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6962 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6964 | rm -f conftest.er1 |
| 6965 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6967 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6968 | { ac_try='test -z "$ac_c_werror_flag" |
| 6969 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6971 | (eval $ac_try) 2>&5 |
| 6972 | ac_status=$? |
| 6973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6974 | (exit $ac_status); }; } && |
| 6975 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6977 | (eval $ac_try) 2>&5 |
| 6978 | ac_status=$? |
| 6979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6980 | (exit $ac_status); }; }; then |
| 6981 | ac_hi=-1 ac_mid=-1 |
| 6982 | while :; do |
| 6983 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6984 | /* confdefs.h. */ |
| 6985 | _ACEOF |
| 6986 | cat confdefs.h >>conftest.$ac_ext |
| 6987 | cat >>conftest.$ac_ext <<_ACEOF |
| 6988 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6989 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6990 | int |
| 6991 | main () |
| 6992 | { |
| 6993 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 6994 | test_array [0] = 0 |
| 6995 | |
| 6996 | ; |
| 6997 | return 0; |
| 6998 | } |
| 6999 | _ACEOF |
| 7000 | rm -f conftest.$ac_objext |
| 7001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7002 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7003 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7005 | rm -f conftest.er1 |
| 7006 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7008 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7009 | { ac_try='test -z "$ac_c_werror_flag" |
| 7010 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7012 | (eval $ac_try) 2>&5 |
| 7013 | ac_status=$? |
| 7014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7015 | (exit $ac_status); }; } && |
| 7016 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7018 | (eval $ac_try) 2>&5 |
| 7019 | ac_status=$? |
| 7020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7021 | (exit $ac_status); }; }; then |
| 7022 | ac_lo=$ac_mid; break |
| 7023 | else |
| 7024 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7026 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7027 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7028 | if test $ac_mid -le $ac_hi; then |
| 7029 | ac_lo= ac_hi= |
| 7030 | break |
| 7031 | fi |
| 7032 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7033 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7035 | done |
| 7036 | else |
| 7037 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7039 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7040 | ac_lo= ac_hi= |
| 7041 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7042 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7043 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7044 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7045 | # Binary search between lo and hi bounds. |
| 7046 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7047 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7048 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7049 | /* confdefs.h. */ |
| 7050 | _ACEOF |
| 7051 | cat confdefs.h >>conftest.$ac_ext |
| 7052 | cat >>conftest.$ac_ext <<_ACEOF |
| 7053 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7054 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7055 | int |
| 7056 | main () |
| 7057 | { |
| 7058 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 7059 | test_array [0] = 0 |
| 7060 | |
| 7061 | ; |
| 7062 | return 0; |
| 7063 | } |
| 7064 | _ACEOF |
| 7065 | rm -f conftest.$ac_objext |
| 7066 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7067 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7068 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7070 | rm -f conftest.er1 |
| 7071 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7073 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7074 | { ac_try='test -z "$ac_c_werror_flag" |
| 7075 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7077 | (eval $ac_try) 2>&5 |
| 7078 | ac_status=$? |
| 7079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7080 | (exit $ac_status); }; } && |
| 7081 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7083 | (eval $ac_try) 2>&5 |
| 7084 | ac_status=$? |
| 7085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7086 | (exit $ac_status); }; }; then |
| 7087 | ac_hi=$ac_mid |
| 7088 | else |
| 7089 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7091 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7092 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7093 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7094 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7095 | done |
| 7096 | case $ac_lo in |
| 7097 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7098 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 7099 | See \`config.log' for more details." >&5 |
| 7100 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 7101 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7102 | { (exit 1); exit 1; }; } ;; |
| 7103 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7104 | else |
| 7105 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7106 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7107 | See \`config.log' for more details." >&5 |
| 7108 | echo "$as_me: error: cannot run test program while cross compiling |
| 7109 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7110 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7111 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7112 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7113 | /* confdefs.h. */ |
| 7114 | _ACEOF |
| 7115 | cat confdefs.h >>conftest.$ac_ext |
| 7116 | cat >>conftest.$ac_ext <<_ACEOF |
| 7117 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7118 | $ac_includes_default |
| 7119 | long longval () { return (long) (sizeof (long)); } |
| 7120 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7121 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7122 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7123 | int |
| 7124 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7125 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7126 | |
| 7127 | FILE *f = fopen ("conftest.val", "w"); |
| 7128 | if (! f) |
| 7129 | exit (1); |
| 7130 | if (((long) (sizeof (long))) < 0) |
| 7131 | { |
| 7132 | long i = longval (); |
| 7133 | if (i != ((long) (sizeof (long)))) |
| 7134 | exit (1); |
| 7135 | fprintf (f, "%ld\n", i); |
| 7136 | } |
| 7137 | else |
| 7138 | { |
| 7139 | unsigned long i = ulongval (); |
| 7140 | if (i != ((long) (sizeof (long)))) |
| 7141 | exit (1); |
| 7142 | fprintf (f, "%lu\n", i); |
| 7143 | } |
| 7144 | exit (ferror (f) || fclose (f) != 0); |
| 7145 | |
| 7146 | ; |
| 7147 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7148 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7149 | _ACEOF |
| 7150 | rm -f conftest$ac_exeext |
| 7151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7152 | (eval $ac_link) 2>&5 |
| 7153 | ac_status=$? |
| 7154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7155 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7157 | (eval $ac_try) 2>&5 |
| 7158 | ac_status=$? |
| 7159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7160 | (exit $ac_status); }; }; then |
| 7161 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7162 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7163 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7164 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7166 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7167 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7168 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 7169 | See \`config.log' for more details." >&5 |
| 7170 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 7171 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7172 | { (exit 1); exit 1; }; } |
| 7173 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7174 | 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] | 7175 | fi |
| 7176 | fi |
| 7177 | rm -f conftest.val |
| 7178 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7179 | ac_cv_sizeof_long=0 |
| 7180 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7181 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7182 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 7183 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 7184 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7185 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7186 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7187 | |
| 7188 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7189 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 7190 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 7191 | if test "${ac_cv_type_void_p+set}" = set; then |
| 7192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7193 | else |
| 7194 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7195 | /* confdefs.h. */ |
| 7196 | _ACEOF |
| 7197 | cat confdefs.h >>conftest.$ac_ext |
| 7198 | cat >>conftest.$ac_ext <<_ACEOF |
| 7199 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7200 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7201 | int |
| 7202 | main () |
| 7203 | { |
| 7204 | if ((void * *) 0) |
| 7205 | return 0; |
| 7206 | if (sizeof (void *)) |
| 7207 | return 0; |
| 7208 | ; |
| 7209 | return 0; |
| 7210 | } |
| 7211 | _ACEOF |
| 7212 | rm -f conftest.$ac_objext |
| 7213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7214 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7215 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7216 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7217 | rm -f conftest.er1 |
| 7218 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7220 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7221 | { ac_try='test -z "$ac_c_werror_flag" |
| 7222 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7224 | (eval $ac_try) 2>&5 |
| 7225 | ac_status=$? |
| 7226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7227 | (exit $ac_status); }; } && |
| 7228 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7230 | (eval $ac_try) 2>&5 |
| 7231 | ac_status=$? |
| 7232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7233 | (exit $ac_status); }; }; then |
| 7234 | ac_cv_type_void_p=yes |
| 7235 | else |
| 7236 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7238 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7239 | ac_cv_type_void_p=no |
| 7240 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7242 | fi |
| 7243 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 7244 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 7245 | |
| 7246 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 7247 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 7248 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 7249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7250 | else |
| 7251 | if test "$ac_cv_type_void_p" = yes; then |
| 7252 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7253 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7254 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7255 | # This bug is HP SR number 8606223364. |
| 7256 | if test "$cross_compiling" = yes; then |
| 7257 | # Depending upon the size, compute the lo and hi bounds. |
| 7258 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7259 | /* confdefs.h. */ |
| 7260 | _ACEOF |
| 7261 | cat confdefs.h >>conftest.$ac_ext |
| 7262 | cat >>conftest.$ac_ext <<_ACEOF |
| 7263 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7264 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7265 | int |
| 7266 | main () |
| 7267 | { |
| 7268 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 7269 | test_array [0] = 0 |
| 7270 | |
| 7271 | ; |
| 7272 | return 0; |
| 7273 | } |
| 7274 | _ACEOF |
| 7275 | rm -f conftest.$ac_objext |
| 7276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7277 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7278 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7280 | rm -f conftest.er1 |
| 7281 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7283 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7284 | { ac_try='test -z "$ac_c_werror_flag" |
| 7285 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7287 | (eval $ac_try) 2>&5 |
| 7288 | ac_status=$? |
| 7289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7290 | (exit $ac_status); }; } && |
| 7291 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7293 | (eval $ac_try) 2>&5 |
| 7294 | ac_status=$? |
| 7295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7296 | (exit $ac_status); }; }; then |
| 7297 | ac_lo=0 ac_mid=0 |
| 7298 | while :; do |
| 7299 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7300 | /* confdefs.h. */ |
| 7301 | _ACEOF |
| 7302 | cat confdefs.h >>conftest.$ac_ext |
| 7303 | cat >>conftest.$ac_ext <<_ACEOF |
| 7304 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7305 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7306 | int |
| 7307 | main () |
| 7308 | { |
| 7309 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 7310 | test_array [0] = 0 |
| 7311 | |
| 7312 | ; |
| 7313 | return 0; |
| 7314 | } |
| 7315 | _ACEOF |
| 7316 | rm -f conftest.$ac_objext |
| 7317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7318 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7319 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7320 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7321 | rm -f conftest.er1 |
| 7322 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7324 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7325 | { ac_try='test -z "$ac_c_werror_flag" |
| 7326 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7328 | (eval $ac_try) 2>&5 |
| 7329 | ac_status=$? |
| 7330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7331 | (exit $ac_status); }; } && |
| 7332 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7334 | (eval $ac_try) 2>&5 |
| 7335 | ac_status=$? |
| 7336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7337 | (exit $ac_status); }; }; then |
| 7338 | ac_hi=$ac_mid; break |
| 7339 | else |
| 7340 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7341 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7342 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7343 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7344 | if test $ac_lo -le $ac_mid; then |
| 7345 | ac_lo= ac_hi= |
| 7346 | break |
| 7347 | fi |
| 7348 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7349 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7351 | done |
| 7352 | else |
| 7353 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7354 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7355 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7356 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7357 | /* confdefs.h. */ |
| 7358 | _ACEOF |
| 7359 | cat confdefs.h >>conftest.$ac_ext |
| 7360 | cat >>conftest.$ac_ext <<_ACEOF |
| 7361 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7362 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7363 | int |
| 7364 | main () |
| 7365 | { |
| 7366 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 7367 | test_array [0] = 0 |
| 7368 | |
| 7369 | ; |
| 7370 | return 0; |
| 7371 | } |
| 7372 | _ACEOF |
| 7373 | rm -f conftest.$ac_objext |
| 7374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7375 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7376 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7378 | rm -f conftest.er1 |
| 7379 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7381 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7382 | { ac_try='test -z "$ac_c_werror_flag" |
| 7383 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7385 | (eval $ac_try) 2>&5 |
| 7386 | ac_status=$? |
| 7387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7388 | (exit $ac_status); }; } && |
| 7389 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7391 | (eval $ac_try) 2>&5 |
| 7392 | ac_status=$? |
| 7393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7394 | (exit $ac_status); }; }; then |
| 7395 | ac_hi=-1 ac_mid=-1 |
| 7396 | while :; do |
| 7397 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7398 | /* confdefs.h. */ |
| 7399 | _ACEOF |
| 7400 | cat confdefs.h >>conftest.$ac_ext |
| 7401 | cat >>conftest.$ac_ext <<_ACEOF |
| 7402 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7403 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7404 | int |
| 7405 | main () |
| 7406 | { |
| 7407 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 7408 | test_array [0] = 0 |
| 7409 | |
| 7410 | ; |
| 7411 | return 0; |
| 7412 | } |
| 7413 | _ACEOF |
| 7414 | rm -f conftest.$ac_objext |
| 7415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7416 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7417 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7418 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7419 | rm -f conftest.er1 |
| 7420 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7422 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7423 | { ac_try='test -z "$ac_c_werror_flag" |
| 7424 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7426 | (eval $ac_try) 2>&5 |
| 7427 | ac_status=$? |
| 7428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7429 | (exit $ac_status); }; } && |
| 7430 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7432 | (eval $ac_try) 2>&5 |
| 7433 | ac_status=$? |
| 7434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7435 | (exit $ac_status); }; }; then |
| 7436 | ac_lo=$ac_mid; break |
| 7437 | else |
| 7438 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7439 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7440 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7441 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7442 | if test $ac_mid -le $ac_hi; then |
| 7443 | ac_lo= ac_hi= |
| 7444 | break |
| 7445 | fi |
| 7446 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7447 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7448 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7449 | done |
| 7450 | else |
| 7451 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7452 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7453 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7454 | ac_lo= ac_hi= |
| 7455 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7457 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7458 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7459 | # Binary search between lo and hi bounds. |
| 7460 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7461 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7462 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7463 | /* confdefs.h. */ |
| 7464 | _ACEOF |
| 7465 | cat confdefs.h >>conftest.$ac_ext |
| 7466 | cat >>conftest.$ac_ext <<_ACEOF |
| 7467 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7468 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7469 | int |
| 7470 | main () |
| 7471 | { |
| 7472 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 7473 | test_array [0] = 0 |
| 7474 | |
| 7475 | ; |
| 7476 | return 0; |
| 7477 | } |
| 7478 | _ACEOF |
| 7479 | rm -f conftest.$ac_objext |
| 7480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7481 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7482 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7483 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7484 | rm -f conftest.er1 |
| 7485 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7487 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7488 | { ac_try='test -z "$ac_c_werror_flag" |
| 7489 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7491 | (eval $ac_try) 2>&5 |
| 7492 | ac_status=$? |
| 7493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7494 | (exit $ac_status); }; } && |
| 7495 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7497 | (eval $ac_try) 2>&5 |
| 7498 | ac_status=$? |
| 7499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7500 | (exit $ac_status); }; }; then |
| 7501 | ac_hi=$ac_mid |
| 7502 | else |
| 7503 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7505 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7506 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7507 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7508 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7509 | done |
| 7510 | case $ac_lo in |
| 7511 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7512 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 7513 | See \`config.log' for more details." >&5 |
| 7514 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 7515 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7516 | { (exit 1); exit 1; }; } ;; |
| 7517 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7518 | else |
| 7519 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7520 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7521 | See \`config.log' for more details." >&5 |
| 7522 | echo "$as_me: error: cannot run test program while cross compiling |
| 7523 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7524 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7525 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7526 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7527 | /* confdefs.h. */ |
| 7528 | _ACEOF |
| 7529 | cat confdefs.h >>conftest.$ac_ext |
| 7530 | cat >>conftest.$ac_ext <<_ACEOF |
| 7531 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7532 | $ac_includes_default |
| 7533 | long longval () { return (long) (sizeof (void *)); } |
| 7534 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7535 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7536 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7537 | int |
| 7538 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7539 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7540 | |
| 7541 | FILE *f = fopen ("conftest.val", "w"); |
| 7542 | if (! f) |
| 7543 | exit (1); |
| 7544 | if (((long) (sizeof (void *))) < 0) |
| 7545 | { |
| 7546 | long i = longval (); |
| 7547 | if (i != ((long) (sizeof (void *)))) |
| 7548 | exit (1); |
| 7549 | fprintf (f, "%ld\n", i); |
| 7550 | } |
| 7551 | else |
| 7552 | { |
| 7553 | unsigned long i = ulongval (); |
| 7554 | if (i != ((long) (sizeof (void *)))) |
| 7555 | exit (1); |
| 7556 | fprintf (f, "%lu\n", i); |
| 7557 | } |
| 7558 | exit (ferror (f) || fclose (f) != 0); |
| 7559 | |
| 7560 | ; |
| 7561 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7562 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7563 | _ACEOF |
| 7564 | rm -f conftest$ac_exeext |
| 7565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7566 | (eval $ac_link) 2>&5 |
| 7567 | ac_status=$? |
| 7568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7569 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7571 | (eval $ac_try) 2>&5 |
| 7572 | ac_status=$? |
| 7573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7574 | (exit $ac_status); }; }; then |
| 7575 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7576 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7577 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7578 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7580 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7581 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7582 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 7583 | See \`config.log' for more details." >&5 |
| 7584 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 7585 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7586 | { (exit 1); exit 1; }; } |
| 7587 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7588 | 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] | 7589 | fi |
| 7590 | fi |
| 7591 | rm -f conftest.val |
| 7592 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7593 | ac_cv_sizeof_void_p=0 |
| 7594 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7595 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7596 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 7597 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 7598 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7599 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7600 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7601 | |
| 7602 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7603 | echo "$as_me:$LINENO: checking for short" >&5 |
| 7604 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 7605 | if test "${ac_cv_type_short+set}" = set; then |
| 7606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7607 | else |
| 7608 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7609 | /* confdefs.h. */ |
| 7610 | _ACEOF |
| 7611 | cat confdefs.h >>conftest.$ac_ext |
| 7612 | cat >>conftest.$ac_ext <<_ACEOF |
| 7613 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7614 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7615 | int |
| 7616 | main () |
| 7617 | { |
| 7618 | if ((short *) 0) |
| 7619 | return 0; |
| 7620 | if (sizeof (short)) |
| 7621 | return 0; |
| 7622 | ; |
| 7623 | return 0; |
| 7624 | } |
| 7625 | _ACEOF |
| 7626 | rm -f conftest.$ac_objext |
| 7627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7628 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7629 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7631 | rm -f conftest.er1 |
| 7632 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7634 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7635 | { ac_try='test -z "$ac_c_werror_flag" |
| 7636 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7638 | (eval $ac_try) 2>&5 |
| 7639 | ac_status=$? |
| 7640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7641 | (exit $ac_status); }; } && |
| 7642 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7644 | (eval $ac_try) 2>&5 |
| 7645 | ac_status=$? |
| 7646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7647 | (exit $ac_status); }; }; then |
| 7648 | ac_cv_type_short=yes |
| 7649 | else |
| 7650 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7652 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7653 | ac_cv_type_short=no |
| 7654 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7655 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7656 | fi |
| 7657 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 7658 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 7659 | |
| 7660 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 7661 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 7662 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 7663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7664 | else |
| 7665 | if test "$ac_cv_type_short" = yes; then |
| 7666 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7667 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7668 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7669 | # This bug is HP SR number 8606223364. |
| 7670 | if test "$cross_compiling" = yes; then |
| 7671 | # Depending upon the size, compute the lo and hi bounds. |
| 7672 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7673 | /* confdefs.h. */ |
| 7674 | _ACEOF |
| 7675 | cat confdefs.h >>conftest.$ac_ext |
| 7676 | cat >>conftest.$ac_ext <<_ACEOF |
| 7677 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7678 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7679 | int |
| 7680 | main () |
| 7681 | { |
| 7682 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 7683 | test_array [0] = 0 |
| 7684 | |
| 7685 | ; |
| 7686 | return 0; |
| 7687 | } |
| 7688 | _ACEOF |
| 7689 | rm -f conftest.$ac_objext |
| 7690 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7691 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7692 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7693 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7694 | rm -f conftest.er1 |
| 7695 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7697 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7698 | { ac_try='test -z "$ac_c_werror_flag" |
| 7699 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7701 | (eval $ac_try) 2>&5 |
| 7702 | ac_status=$? |
| 7703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7704 | (exit $ac_status); }; } && |
| 7705 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7707 | (eval $ac_try) 2>&5 |
| 7708 | ac_status=$? |
| 7709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7710 | (exit $ac_status); }; }; then |
| 7711 | ac_lo=0 ac_mid=0 |
| 7712 | while :; do |
| 7713 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7714 | /* confdefs.h. */ |
| 7715 | _ACEOF |
| 7716 | cat confdefs.h >>conftest.$ac_ext |
| 7717 | cat >>conftest.$ac_ext <<_ACEOF |
| 7718 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7719 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7720 | int |
| 7721 | main () |
| 7722 | { |
| 7723 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7724 | test_array [0] = 0 |
| 7725 | |
| 7726 | ; |
| 7727 | return 0; |
| 7728 | } |
| 7729 | _ACEOF |
| 7730 | rm -f conftest.$ac_objext |
| 7731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7732 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7733 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7735 | rm -f conftest.er1 |
| 7736 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7738 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7739 | { ac_try='test -z "$ac_c_werror_flag" |
| 7740 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7742 | (eval $ac_try) 2>&5 |
| 7743 | ac_status=$? |
| 7744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7745 | (exit $ac_status); }; } && |
| 7746 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7748 | (eval $ac_try) 2>&5 |
| 7749 | ac_status=$? |
| 7750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7751 | (exit $ac_status); }; }; then |
| 7752 | ac_hi=$ac_mid; break |
| 7753 | else |
| 7754 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7756 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7757 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7758 | if test $ac_lo -le $ac_mid; then |
| 7759 | ac_lo= ac_hi= |
| 7760 | break |
| 7761 | fi |
| 7762 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7763 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7765 | done |
| 7766 | else |
| 7767 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7769 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7770 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7771 | /* confdefs.h. */ |
| 7772 | _ACEOF |
| 7773 | cat confdefs.h >>conftest.$ac_ext |
| 7774 | cat >>conftest.$ac_ext <<_ACEOF |
| 7775 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7776 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7777 | int |
| 7778 | main () |
| 7779 | { |
| 7780 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 7781 | test_array [0] = 0 |
| 7782 | |
| 7783 | ; |
| 7784 | return 0; |
| 7785 | } |
| 7786 | _ACEOF |
| 7787 | rm -f conftest.$ac_objext |
| 7788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7789 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7790 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7791 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7792 | rm -f conftest.er1 |
| 7793 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7795 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7796 | { ac_try='test -z "$ac_c_werror_flag" |
| 7797 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7799 | (eval $ac_try) 2>&5 |
| 7800 | ac_status=$? |
| 7801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7802 | (exit $ac_status); }; } && |
| 7803 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7805 | (eval $ac_try) 2>&5 |
| 7806 | ac_status=$? |
| 7807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7808 | (exit $ac_status); }; }; then |
| 7809 | ac_hi=-1 ac_mid=-1 |
| 7810 | while :; do |
| 7811 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7812 | /* confdefs.h. */ |
| 7813 | _ACEOF |
| 7814 | cat confdefs.h >>conftest.$ac_ext |
| 7815 | cat >>conftest.$ac_ext <<_ACEOF |
| 7816 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7817 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7818 | int |
| 7819 | main () |
| 7820 | { |
| 7821 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 7822 | test_array [0] = 0 |
| 7823 | |
| 7824 | ; |
| 7825 | return 0; |
| 7826 | } |
| 7827 | _ACEOF |
| 7828 | rm -f conftest.$ac_objext |
| 7829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7830 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7831 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7832 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7833 | rm -f conftest.er1 |
| 7834 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7836 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7837 | { ac_try='test -z "$ac_c_werror_flag" |
| 7838 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7840 | (eval $ac_try) 2>&5 |
| 7841 | ac_status=$? |
| 7842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7843 | (exit $ac_status); }; } && |
| 7844 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7846 | (eval $ac_try) 2>&5 |
| 7847 | ac_status=$? |
| 7848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7849 | (exit $ac_status); }; }; then |
| 7850 | ac_lo=$ac_mid; break |
| 7851 | else |
| 7852 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7854 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7855 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7856 | if test $ac_mid -le $ac_hi; then |
| 7857 | ac_lo= ac_hi= |
| 7858 | break |
| 7859 | fi |
| 7860 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7861 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7862 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7863 | done |
| 7864 | else |
| 7865 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7867 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7868 | ac_lo= ac_hi= |
| 7869 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7870 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7871 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7872 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7873 | # Binary search between lo and hi bounds. |
| 7874 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7875 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7876 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7877 | /* confdefs.h. */ |
| 7878 | _ACEOF |
| 7879 | cat confdefs.h >>conftest.$ac_ext |
| 7880 | cat >>conftest.$ac_ext <<_ACEOF |
| 7881 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7882 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7883 | int |
| 7884 | main () |
| 7885 | { |
| 7886 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7887 | test_array [0] = 0 |
| 7888 | |
| 7889 | ; |
| 7890 | return 0; |
| 7891 | } |
| 7892 | _ACEOF |
| 7893 | rm -f conftest.$ac_objext |
| 7894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7895 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7896 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7897 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7898 | rm -f conftest.er1 |
| 7899 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7901 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7902 | { ac_try='test -z "$ac_c_werror_flag" |
| 7903 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7905 | (eval $ac_try) 2>&5 |
| 7906 | ac_status=$? |
| 7907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7908 | (exit $ac_status); }; } && |
| 7909 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7911 | (eval $ac_try) 2>&5 |
| 7912 | ac_status=$? |
| 7913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7914 | (exit $ac_status); }; }; then |
| 7915 | ac_hi=$ac_mid |
| 7916 | else |
| 7917 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7920 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7921 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7922 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7923 | done |
| 7924 | case $ac_lo in |
| 7925 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7926 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7927 | See \`config.log' for more details." >&5 |
| 7928 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7929 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7930 | { (exit 1); exit 1; }; } ;; |
| 7931 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7932 | else |
| 7933 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7934 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7935 | See \`config.log' for more details." >&5 |
| 7936 | echo "$as_me: error: cannot run test program while cross compiling |
| 7937 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7938 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7939 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7940 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7941 | /* confdefs.h. */ |
| 7942 | _ACEOF |
| 7943 | cat confdefs.h >>conftest.$ac_ext |
| 7944 | cat >>conftest.$ac_ext <<_ACEOF |
| 7945 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7946 | $ac_includes_default |
| 7947 | long longval () { return (long) (sizeof (short)); } |
| 7948 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7949 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7950 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7951 | int |
| 7952 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7953 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7954 | |
| 7955 | FILE *f = fopen ("conftest.val", "w"); |
| 7956 | if (! f) |
| 7957 | exit (1); |
| 7958 | if (((long) (sizeof (short))) < 0) |
| 7959 | { |
| 7960 | long i = longval (); |
| 7961 | if (i != ((long) (sizeof (short)))) |
| 7962 | exit (1); |
| 7963 | fprintf (f, "%ld\n", i); |
| 7964 | } |
| 7965 | else |
| 7966 | { |
| 7967 | unsigned long i = ulongval (); |
| 7968 | if (i != ((long) (sizeof (short)))) |
| 7969 | exit (1); |
| 7970 | fprintf (f, "%lu\n", i); |
| 7971 | } |
| 7972 | exit (ferror (f) || fclose (f) != 0); |
| 7973 | |
| 7974 | ; |
| 7975 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7976 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7977 | _ACEOF |
| 7978 | rm -f conftest$ac_exeext |
| 7979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7980 | (eval $ac_link) 2>&5 |
| 7981 | ac_status=$? |
| 7982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7983 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7985 | (eval $ac_try) 2>&5 |
| 7986 | ac_status=$? |
| 7987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7988 | (exit $ac_status); }; }; then |
| 7989 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7990 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7991 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7992 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7994 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7995 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7996 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7997 | See \`config.log' for more details." >&5 |
| 7998 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7999 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8000 | { (exit 1); exit 1; }; } |
| 8001 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8002 | 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] | 8003 | fi |
| 8004 | fi |
| 8005 | rm -f conftest.val |
| 8006 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8007 | ac_cv_sizeof_short=0 |
| 8008 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8009 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8010 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 8011 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 8012 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8013 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8014 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8015 | |
| 8016 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8017 | echo "$as_me:$LINENO: checking for float" >&5 |
| 8018 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 8019 | if test "${ac_cv_type_float+set}" = set; then |
| 8020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8021 | else |
| 8022 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8023 | /* confdefs.h. */ |
| 8024 | _ACEOF |
| 8025 | cat confdefs.h >>conftest.$ac_ext |
| 8026 | cat >>conftest.$ac_ext <<_ACEOF |
| 8027 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8028 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8029 | int |
| 8030 | main () |
| 8031 | { |
| 8032 | if ((float *) 0) |
| 8033 | return 0; |
| 8034 | if (sizeof (float)) |
| 8035 | return 0; |
| 8036 | ; |
| 8037 | return 0; |
| 8038 | } |
| 8039 | _ACEOF |
| 8040 | rm -f conftest.$ac_objext |
| 8041 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8042 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8043 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8045 | rm -f conftest.er1 |
| 8046 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8048 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8049 | { ac_try='test -z "$ac_c_werror_flag" |
| 8050 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8052 | (eval $ac_try) 2>&5 |
| 8053 | ac_status=$? |
| 8054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8055 | (exit $ac_status); }; } && |
| 8056 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8058 | (eval $ac_try) 2>&5 |
| 8059 | ac_status=$? |
| 8060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8061 | (exit $ac_status); }; }; then |
| 8062 | ac_cv_type_float=yes |
| 8063 | else |
| 8064 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8066 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8067 | ac_cv_type_float=no |
| 8068 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8069 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8070 | fi |
| 8071 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 8072 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 8073 | |
| 8074 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 8075 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 8076 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 8077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8078 | else |
| 8079 | if test "$ac_cv_type_float" = yes; then |
| 8080 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8081 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8082 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8083 | # This bug is HP SR number 8606223364. |
| 8084 | if test "$cross_compiling" = yes; then |
| 8085 | # Depending upon the size, compute the lo and hi bounds. |
| 8086 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8087 | /* confdefs.h. */ |
| 8088 | _ACEOF |
| 8089 | cat confdefs.h >>conftest.$ac_ext |
| 8090 | cat >>conftest.$ac_ext <<_ACEOF |
| 8091 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8092 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8093 | int |
| 8094 | main () |
| 8095 | { |
| 8096 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 8097 | test_array [0] = 0 |
| 8098 | |
| 8099 | ; |
| 8100 | return 0; |
| 8101 | } |
| 8102 | _ACEOF |
| 8103 | rm -f conftest.$ac_objext |
| 8104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8105 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8106 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8108 | rm -f conftest.er1 |
| 8109 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8111 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8112 | { ac_try='test -z "$ac_c_werror_flag" |
| 8113 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8115 | (eval $ac_try) 2>&5 |
| 8116 | ac_status=$? |
| 8117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8118 | (exit $ac_status); }; } && |
| 8119 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8121 | (eval $ac_try) 2>&5 |
| 8122 | ac_status=$? |
| 8123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8124 | (exit $ac_status); }; }; then |
| 8125 | ac_lo=0 ac_mid=0 |
| 8126 | while :; do |
| 8127 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8128 | /* confdefs.h. */ |
| 8129 | _ACEOF |
| 8130 | cat confdefs.h >>conftest.$ac_ext |
| 8131 | cat >>conftest.$ac_ext <<_ACEOF |
| 8132 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8133 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8134 | int |
| 8135 | main () |
| 8136 | { |
| 8137 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 8138 | test_array [0] = 0 |
| 8139 | |
| 8140 | ; |
| 8141 | return 0; |
| 8142 | } |
| 8143 | _ACEOF |
| 8144 | rm -f conftest.$ac_objext |
| 8145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8146 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8147 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8148 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8149 | rm -f conftest.er1 |
| 8150 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8152 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8153 | { ac_try='test -z "$ac_c_werror_flag" |
| 8154 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8156 | (eval $ac_try) 2>&5 |
| 8157 | ac_status=$? |
| 8158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8159 | (exit $ac_status); }; } && |
| 8160 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8162 | (eval $ac_try) 2>&5 |
| 8163 | ac_status=$? |
| 8164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8165 | (exit $ac_status); }; }; then |
| 8166 | ac_hi=$ac_mid; break |
| 8167 | else |
| 8168 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8170 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8171 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8172 | if test $ac_lo -le $ac_mid; then |
| 8173 | ac_lo= ac_hi= |
| 8174 | break |
| 8175 | fi |
| 8176 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8177 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8178 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8179 | done |
| 8180 | else |
| 8181 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8183 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8184 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8185 | /* confdefs.h. */ |
| 8186 | _ACEOF |
| 8187 | cat confdefs.h >>conftest.$ac_ext |
| 8188 | cat >>conftest.$ac_ext <<_ACEOF |
| 8189 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8190 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8191 | int |
| 8192 | main () |
| 8193 | { |
| 8194 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 8195 | test_array [0] = 0 |
| 8196 | |
| 8197 | ; |
| 8198 | return 0; |
| 8199 | } |
| 8200 | _ACEOF |
| 8201 | rm -f conftest.$ac_objext |
| 8202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8203 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8204 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8205 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8206 | rm -f conftest.er1 |
| 8207 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8209 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8210 | { ac_try='test -z "$ac_c_werror_flag" |
| 8211 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8213 | (eval $ac_try) 2>&5 |
| 8214 | ac_status=$? |
| 8215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8216 | (exit $ac_status); }; } && |
| 8217 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8219 | (eval $ac_try) 2>&5 |
| 8220 | ac_status=$? |
| 8221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8222 | (exit $ac_status); }; }; then |
| 8223 | ac_hi=-1 ac_mid=-1 |
| 8224 | while :; do |
| 8225 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8226 | /* confdefs.h. */ |
| 8227 | _ACEOF |
| 8228 | cat confdefs.h >>conftest.$ac_ext |
| 8229 | cat >>conftest.$ac_ext <<_ACEOF |
| 8230 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8231 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8232 | int |
| 8233 | main () |
| 8234 | { |
| 8235 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 8236 | test_array [0] = 0 |
| 8237 | |
| 8238 | ; |
| 8239 | return 0; |
| 8240 | } |
| 8241 | _ACEOF |
| 8242 | rm -f conftest.$ac_objext |
| 8243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8244 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8245 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8247 | rm -f conftest.er1 |
| 8248 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8250 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8251 | { ac_try='test -z "$ac_c_werror_flag" |
| 8252 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8254 | (eval $ac_try) 2>&5 |
| 8255 | ac_status=$? |
| 8256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8257 | (exit $ac_status); }; } && |
| 8258 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8260 | (eval $ac_try) 2>&5 |
| 8261 | ac_status=$? |
| 8262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8263 | (exit $ac_status); }; }; then |
| 8264 | ac_lo=$ac_mid; break |
| 8265 | else |
| 8266 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8268 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8269 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8270 | if test $ac_mid -le $ac_hi; then |
| 8271 | ac_lo= ac_hi= |
| 8272 | break |
| 8273 | fi |
| 8274 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8275 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8276 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8277 | done |
| 8278 | else |
| 8279 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8281 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8282 | ac_lo= ac_hi= |
| 8283 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8284 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8285 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8287 | # Binary search between lo and hi bounds. |
| 8288 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8289 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8290 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8291 | /* confdefs.h. */ |
| 8292 | _ACEOF |
| 8293 | cat confdefs.h >>conftest.$ac_ext |
| 8294 | cat >>conftest.$ac_ext <<_ACEOF |
| 8295 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8296 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8297 | int |
| 8298 | main () |
| 8299 | { |
| 8300 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 8301 | test_array [0] = 0 |
| 8302 | |
| 8303 | ; |
| 8304 | return 0; |
| 8305 | } |
| 8306 | _ACEOF |
| 8307 | rm -f conftest.$ac_objext |
| 8308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8309 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8310 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8311 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8312 | rm -f conftest.er1 |
| 8313 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8315 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8316 | { ac_try='test -z "$ac_c_werror_flag" |
| 8317 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8319 | (eval $ac_try) 2>&5 |
| 8320 | ac_status=$? |
| 8321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8322 | (exit $ac_status); }; } && |
| 8323 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8325 | (eval $ac_try) 2>&5 |
| 8326 | ac_status=$? |
| 8327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8328 | (exit $ac_status); }; }; then |
| 8329 | ac_hi=$ac_mid |
| 8330 | else |
| 8331 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8332 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8333 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8334 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8335 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8336 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8337 | done |
| 8338 | case $ac_lo in |
| 8339 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8340 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8341 | See \`config.log' for more details." >&5 |
| 8342 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8343 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8344 | { (exit 1); exit 1; }; } ;; |
| 8345 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8346 | else |
| 8347 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8348 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8349 | See \`config.log' for more details." >&5 |
| 8350 | echo "$as_me: error: cannot run test program while cross compiling |
| 8351 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8352 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8353 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8354 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8355 | /* confdefs.h. */ |
| 8356 | _ACEOF |
| 8357 | cat confdefs.h >>conftest.$ac_ext |
| 8358 | cat >>conftest.$ac_ext <<_ACEOF |
| 8359 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8360 | $ac_includes_default |
| 8361 | long longval () { return (long) (sizeof (float)); } |
| 8362 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8363 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8364 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8365 | int |
| 8366 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8367 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8368 | |
| 8369 | FILE *f = fopen ("conftest.val", "w"); |
| 8370 | if (! f) |
| 8371 | exit (1); |
| 8372 | if (((long) (sizeof (float))) < 0) |
| 8373 | { |
| 8374 | long i = longval (); |
| 8375 | if (i != ((long) (sizeof (float)))) |
| 8376 | exit (1); |
| 8377 | fprintf (f, "%ld\n", i); |
| 8378 | } |
| 8379 | else |
| 8380 | { |
| 8381 | unsigned long i = ulongval (); |
| 8382 | if (i != ((long) (sizeof (float)))) |
| 8383 | exit (1); |
| 8384 | fprintf (f, "%lu\n", i); |
| 8385 | } |
| 8386 | exit (ferror (f) || fclose (f) != 0); |
| 8387 | |
| 8388 | ; |
| 8389 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8390 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8391 | _ACEOF |
| 8392 | rm -f conftest$ac_exeext |
| 8393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8394 | (eval $ac_link) 2>&5 |
| 8395 | ac_status=$? |
| 8396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8397 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8399 | (eval $ac_try) 2>&5 |
| 8400 | ac_status=$? |
| 8401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8402 | (exit $ac_status); }; }; then |
| 8403 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8404 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8405 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8406 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8408 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8409 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8410 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8411 | See \`config.log' for more details." >&5 |
| 8412 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8413 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8414 | { (exit 1); exit 1; }; } |
| 8415 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8416 | 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] | 8417 | fi |
| 8418 | fi |
| 8419 | rm -f conftest.val |
| 8420 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8421 | ac_cv_sizeof_float=0 |
| 8422 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8423 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8424 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 8425 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 8426 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8427 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8428 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8429 | |
| 8430 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8431 | echo "$as_me:$LINENO: checking for double" >&5 |
| 8432 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 8433 | if test "${ac_cv_type_double+set}" = set; then |
| 8434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8435 | else |
| 8436 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8437 | /* confdefs.h. */ |
| 8438 | _ACEOF |
| 8439 | cat confdefs.h >>conftest.$ac_ext |
| 8440 | cat >>conftest.$ac_ext <<_ACEOF |
| 8441 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8442 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8443 | int |
| 8444 | main () |
| 8445 | { |
| 8446 | if ((double *) 0) |
| 8447 | return 0; |
| 8448 | if (sizeof (double)) |
| 8449 | return 0; |
| 8450 | ; |
| 8451 | return 0; |
| 8452 | } |
| 8453 | _ACEOF |
| 8454 | rm -f conftest.$ac_objext |
| 8455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8456 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8457 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8458 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8459 | rm -f conftest.er1 |
| 8460 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8462 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8463 | { ac_try='test -z "$ac_c_werror_flag" |
| 8464 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8466 | (eval $ac_try) 2>&5 |
| 8467 | ac_status=$? |
| 8468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8469 | (exit $ac_status); }; } && |
| 8470 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8472 | (eval $ac_try) 2>&5 |
| 8473 | ac_status=$? |
| 8474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8475 | (exit $ac_status); }; }; then |
| 8476 | ac_cv_type_double=yes |
| 8477 | else |
| 8478 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8480 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8481 | ac_cv_type_double=no |
| 8482 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8484 | fi |
| 8485 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 8486 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 8487 | |
| 8488 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 8489 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 8490 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 8491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8492 | else |
| 8493 | if test "$ac_cv_type_double" = yes; then |
| 8494 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8495 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8496 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8497 | # This bug is HP SR number 8606223364. |
| 8498 | if test "$cross_compiling" = yes; then |
| 8499 | # Depending upon the size, compute the lo and hi bounds. |
| 8500 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8501 | /* confdefs.h. */ |
| 8502 | _ACEOF |
| 8503 | cat confdefs.h >>conftest.$ac_ext |
| 8504 | cat >>conftest.$ac_ext <<_ACEOF |
| 8505 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8506 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8507 | int |
| 8508 | main () |
| 8509 | { |
| 8510 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 8511 | test_array [0] = 0 |
| 8512 | |
| 8513 | ; |
| 8514 | return 0; |
| 8515 | } |
| 8516 | _ACEOF |
| 8517 | rm -f conftest.$ac_objext |
| 8518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8519 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8520 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8522 | rm -f conftest.er1 |
| 8523 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8525 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8526 | { ac_try='test -z "$ac_c_werror_flag" |
| 8527 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8529 | (eval $ac_try) 2>&5 |
| 8530 | ac_status=$? |
| 8531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8532 | (exit $ac_status); }; } && |
| 8533 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8535 | (eval $ac_try) 2>&5 |
| 8536 | ac_status=$? |
| 8537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8538 | (exit $ac_status); }; }; then |
| 8539 | ac_lo=0 ac_mid=0 |
| 8540 | while :; do |
| 8541 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8542 | /* confdefs.h. */ |
| 8543 | _ACEOF |
| 8544 | cat confdefs.h >>conftest.$ac_ext |
| 8545 | cat >>conftest.$ac_ext <<_ACEOF |
| 8546 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8547 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8548 | int |
| 8549 | main () |
| 8550 | { |
| 8551 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8552 | test_array [0] = 0 |
| 8553 | |
| 8554 | ; |
| 8555 | return 0; |
| 8556 | } |
| 8557 | _ACEOF |
| 8558 | rm -f conftest.$ac_objext |
| 8559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8560 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8561 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8563 | rm -f conftest.er1 |
| 8564 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8566 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8567 | { ac_try='test -z "$ac_c_werror_flag" |
| 8568 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8570 | (eval $ac_try) 2>&5 |
| 8571 | ac_status=$? |
| 8572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8573 | (exit $ac_status); }; } && |
| 8574 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8576 | (eval $ac_try) 2>&5 |
| 8577 | ac_status=$? |
| 8578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8579 | (exit $ac_status); }; }; then |
| 8580 | ac_hi=$ac_mid; break |
| 8581 | else |
| 8582 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8585 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8586 | if test $ac_lo -le $ac_mid; then |
| 8587 | ac_lo= ac_hi= |
| 8588 | break |
| 8589 | fi |
| 8590 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8591 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8592 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8593 | done |
| 8594 | else |
| 8595 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8597 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8598 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8599 | /* confdefs.h. */ |
| 8600 | _ACEOF |
| 8601 | cat confdefs.h >>conftest.$ac_ext |
| 8602 | cat >>conftest.$ac_ext <<_ACEOF |
| 8603 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8604 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8605 | int |
| 8606 | main () |
| 8607 | { |
| 8608 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 8609 | test_array [0] = 0 |
| 8610 | |
| 8611 | ; |
| 8612 | return 0; |
| 8613 | } |
| 8614 | _ACEOF |
| 8615 | rm -f conftest.$ac_objext |
| 8616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8617 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8618 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8620 | rm -f conftest.er1 |
| 8621 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8623 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8624 | { ac_try='test -z "$ac_c_werror_flag" |
| 8625 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8627 | (eval $ac_try) 2>&5 |
| 8628 | ac_status=$? |
| 8629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8630 | (exit $ac_status); }; } && |
| 8631 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8633 | (eval $ac_try) 2>&5 |
| 8634 | ac_status=$? |
| 8635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8636 | (exit $ac_status); }; }; then |
| 8637 | ac_hi=-1 ac_mid=-1 |
| 8638 | while :; do |
| 8639 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8640 | /* confdefs.h. */ |
| 8641 | _ACEOF |
| 8642 | cat confdefs.h >>conftest.$ac_ext |
| 8643 | cat >>conftest.$ac_ext <<_ACEOF |
| 8644 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8645 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8646 | int |
| 8647 | main () |
| 8648 | { |
| 8649 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 8650 | test_array [0] = 0 |
| 8651 | |
| 8652 | ; |
| 8653 | return 0; |
| 8654 | } |
| 8655 | _ACEOF |
| 8656 | rm -f conftest.$ac_objext |
| 8657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8658 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8659 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8660 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8661 | rm -f conftest.er1 |
| 8662 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8664 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8665 | { ac_try='test -z "$ac_c_werror_flag" |
| 8666 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8668 | (eval $ac_try) 2>&5 |
| 8669 | ac_status=$? |
| 8670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8671 | (exit $ac_status); }; } && |
| 8672 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8674 | (eval $ac_try) 2>&5 |
| 8675 | ac_status=$? |
| 8676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8677 | (exit $ac_status); }; }; then |
| 8678 | ac_lo=$ac_mid; break |
| 8679 | else |
| 8680 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8682 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8683 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8684 | if test $ac_mid -le $ac_hi; then |
| 8685 | ac_lo= ac_hi= |
| 8686 | break |
| 8687 | fi |
| 8688 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8689 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8690 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8691 | done |
| 8692 | else |
| 8693 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8695 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8696 | ac_lo= ac_hi= |
| 8697 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8698 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8699 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8700 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8701 | # Binary search between lo and hi bounds. |
| 8702 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8703 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8704 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8705 | /* confdefs.h. */ |
| 8706 | _ACEOF |
| 8707 | cat confdefs.h >>conftest.$ac_ext |
| 8708 | cat >>conftest.$ac_ext <<_ACEOF |
| 8709 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8710 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8711 | int |
| 8712 | main () |
| 8713 | { |
| 8714 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8715 | test_array [0] = 0 |
| 8716 | |
| 8717 | ; |
| 8718 | return 0; |
| 8719 | } |
| 8720 | _ACEOF |
| 8721 | rm -f conftest.$ac_objext |
| 8722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8723 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8724 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8725 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8726 | rm -f conftest.er1 |
| 8727 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8729 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8730 | { ac_try='test -z "$ac_c_werror_flag" |
| 8731 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8733 | (eval $ac_try) 2>&5 |
| 8734 | ac_status=$? |
| 8735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8736 | (exit $ac_status); }; } && |
| 8737 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8739 | (eval $ac_try) 2>&5 |
| 8740 | ac_status=$? |
| 8741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8742 | (exit $ac_status); }; }; then |
| 8743 | ac_hi=$ac_mid |
| 8744 | else |
| 8745 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8747 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8748 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8749 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8750 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8751 | done |
| 8752 | case $ac_lo in |
| 8753 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8754 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8755 | See \`config.log' for more details." >&5 |
| 8756 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8757 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8758 | { (exit 1); exit 1; }; } ;; |
| 8759 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8760 | else |
| 8761 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8762 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8763 | See \`config.log' for more details." >&5 |
| 8764 | echo "$as_me: error: cannot run test program while cross compiling |
| 8765 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8766 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8767 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8768 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8769 | /* confdefs.h. */ |
| 8770 | _ACEOF |
| 8771 | cat confdefs.h >>conftest.$ac_ext |
| 8772 | cat >>conftest.$ac_ext <<_ACEOF |
| 8773 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8774 | $ac_includes_default |
| 8775 | long longval () { return (long) (sizeof (double)); } |
| 8776 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8777 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8778 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8779 | int |
| 8780 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8781 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8782 | |
| 8783 | FILE *f = fopen ("conftest.val", "w"); |
| 8784 | if (! f) |
| 8785 | exit (1); |
| 8786 | if (((long) (sizeof (double))) < 0) |
| 8787 | { |
| 8788 | long i = longval (); |
| 8789 | if (i != ((long) (sizeof (double)))) |
| 8790 | exit (1); |
| 8791 | fprintf (f, "%ld\n", i); |
| 8792 | } |
| 8793 | else |
| 8794 | { |
| 8795 | unsigned long i = ulongval (); |
| 8796 | if (i != ((long) (sizeof (double)))) |
| 8797 | exit (1); |
| 8798 | fprintf (f, "%lu\n", i); |
| 8799 | } |
| 8800 | exit (ferror (f) || fclose (f) != 0); |
| 8801 | |
| 8802 | ; |
| 8803 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8804 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8805 | _ACEOF |
| 8806 | rm -f conftest$ac_exeext |
| 8807 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8808 | (eval $ac_link) 2>&5 |
| 8809 | ac_status=$? |
| 8810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8811 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8813 | (eval $ac_try) 2>&5 |
| 8814 | ac_status=$? |
| 8815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8816 | (exit $ac_status); }; }; then |
| 8817 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8818 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8819 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8820 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8821 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8822 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8823 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8824 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8825 | See \`config.log' for more details." >&5 |
| 8826 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8827 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8828 | { (exit 1); exit 1; }; } |
| 8829 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8830 | 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] | 8831 | fi |
| 8832 | fi |
| 8833 | rm -f conftest.val |
| 8834 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8835 | ac_cv_sizeof_double=0 |
| 8836 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8837 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8838 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 8839 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 8840 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8841 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8842 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8843 | |
| 8844 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8845 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 8846 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 8847 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 8848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8849 | else |
| 8850 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8851 | /* confdefs.h. */ |
| 8852 | _ACEOF |
| 8853 | cat confdefs.h >>conftest.$ac_ext |
| 8854 | cat >>conftest.$ac_ext <<_ACEOF |
| 8855 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8856 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8857 | int |
| 8858 | main () |
| 8859 | { |
| 8860 | if ((fpos_t *) 0) |
| 8861 | return 0; |
| 8862 | if (sizeof (fpos_t)) |
| 8863 | return 0; |
| 8864 | ; |
| 8865 | return 0; |
| 8866 | } |
| 8867 | _ACEOF |
| 8868 | rm -f conftest.$ac_objext |
| 8869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8870 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8871 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8873 | rm -f conftest.er1 |
| 8874 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8876 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8877 | { ac_try='test -z "$ac_c_werror_flag" |
| 8878 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8880 | (eval $ac_try) 2>&5 |
| 8881 | ac_status=$? |
| 8882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8883 | (exit $ac_status); }; } && |
| 8884 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8886 | (eval $ac_try) 2>&5 |
| 8887 | ac_status=$? |
| 8888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8889 | (exit $ac_status); }; }; then |
| 8890 | ac_cv_type_fpos_t=yes |
| 8891 | else |
| 8892 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8894 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8895 | ac_cv_type_fpos_t=no |
| 8896 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8897 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8898 | fi |
| 8899 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 8900 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 8901 | |
| 8902 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 8903 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 8904 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 8905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8906 | else |
| 8907 | if test "$ac_cv_type_fpos_t" = yes; then |
| 8908 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8909 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8910 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8911 | # This bug is HP SR number 8606223364. |
| 8912 | if test "$cross_compiling" = yes; then |
| 8913 | # Depending upon the size, compute the lo and hi bounds. |
| 8914 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8915 | /* confdefs.h. */ |
| 8916 | _ACEOF |
| 8917 | cat confdefs.h >>conftest.$ac_ext |
| 8918 | cat >>conftest.$ac_ext <<_ACEOF |
| 8919 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8920 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8921 | int |
| 8922 | main () |
| 8923 | { |
| 8924 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 8925 | test_array [0] = 0 |
| 8926 | |
| 8927 | ; |
| 8928 | return 0; |
| 8929 | } |
| 8930 | _ACEOF |
| 8931 | rm -f conftest.$ac_objext |
| 8932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8933 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8934 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8935 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8936 | rm -f conftest.er1 |
| 8937 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8939 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8940 | { ac_try='test -z "$ac_c_werror_flag" |
| 8941 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8943 | (eval $ac_try) 2>&5 |
| 8944 | ac_status=$? |
| 8945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8946 | (exit $ac_status); }; } && |
| 8947 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8949 | (eval $ac_try) 2>&5 |
| 8950 | ac_status=$? |
| 8951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8952 | (exit $ac_status); }; }; then |
| 8953 | ac_lo=0 ac_mid=0 |
| 8954 | while :; do |
| 8955 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8956 | /* confdefs.h. */ |
| 8957 | _ACEOF |
| 8958 | cat confdefs.h >>conftest.$ac_ext |
| 8959 | cat >>conftest.$ac_ext <<_ACEOF |
| 8960 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8961 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8962 | int |
| 8963 | main () |
| 8964 | { |
| 8965 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8966 | test_array [0] = 0 |
| 8967 | |
| 8968 | ; |
| 8969 | return 0; |
| 8970 | } |
| 8971 | _ACEOF |
| 8972 | rm -f conftest.$ac_objext |
| 8973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8974 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8975 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8976 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8977 | rm -f conftest.er1 |
| 8978 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8980 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8981 | { ac_try='test -z "$ac_c_werror_flag" |
| 8982 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8984 | (eval $ac_try) 2>&5 |
| 8985 | ac_status=$? |
| 8986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8987 | (exit $ac_status); }; } && |
| 8988 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8990 | (eval $ac_try) 2>&5 |
| 8991 | ac_status=$? |
| 8992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8993 | (exit $ac_status); }; }; then |
| 8994 | ac_hi=$ac_mid; break |
| 8995 | else |
| 8996 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8998 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8999 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9000 | if test $ac_lo -le $ac_mid; then |
| 9001 | ac_lo= ac_hi= |
| 9002 | break |
| 9003 | fi |
| 9004 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9005 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9006 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9007 | done |
| 9008 | else |
| 9009 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9011 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9012 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9013 | /* confdefs.h. */ |
| 9014 | _ACEOF |
| 9015 | cat confdefs.h >>conftest.$ac_ext |
| 9016 | cat >>conftest.$ac_ext <<_ACEOF |
| 9017 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9018 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9019 | int |
| 9020 | main () |
| 9021 | { |
| 9022 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 9023 | test_array [0] = 0 |
| 9024 | |
| 9025 | ; |
| 9026 | return 0; |
| 9027 | } |
| 9028 | _ACEOF |
| 9029 | rm -f conftest.$ac_objext |
| 9030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9031 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9032 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9034 | rm -f conftest.er1 |
| 9035 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9037 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9038 | { ac_try='test -z "$ac_c_werror_flag" |
| 9039 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9041 | (eval $ac_try) 2>&5 |
| 9042 | ac_status=$? |
| 9043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9044 | (exit $ac_status); }; } && |
| 9045 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9047 | (eval $ac_try) 2>&5 |
| 9048 | ac_status=$? |
| 9049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9050 | (exit $ac_status); }; }; then |
| 9051 | ac_hi=-1 ac_mid=-1 |
| 9052 | while :; do |
| 9053 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9054 | /* confdefs.h. */ |
| 9055 | _ACEOF |
| 9056 | cat confdefs.h >>conftest.$ac_ext |
| 9057 | cat >>conftest.$ac_ext <<_ACEOF |
| 9058 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9059 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9060 | int |
| 9061 | main () |
| 9062 | { |
| 9063 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 9064 | test_array [0] = 0 |
| 9065 | |
| 9066 | ; |
| 9067 | return 0; |
| 9068 | } |
| 9069 | _ACEOF |
| 9070 | rm -f conftest.$ac_objext |
| 9071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9072 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9073 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9074 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9075 | rm -f conftest.er1 |
| 9076 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9078 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9079 | { ac_try='test -z "$ac_c_werror_flag" |
| 9080 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9082 | (eval $ac_try) 2>&5 |
| 9083 | ac_status=$? |
| 9084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9085 | (exit $ac_status); }; } && |
| 9086 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9088 | (eval $ac_try) 2>&5 |
| 9089 | ac_status=$? |
| 9090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9091 | (exit $ac_status); }; }; then |
| 9092 | ac_lo=$ac_mid; break |
| 9093 | else |
| 9094 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9096 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9097 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9098 | if test $ac_mid -le $ac_hi; then |
| 9099 | ac_lo= ac_hi= |
| 9100 | break |
| 9101 | fi |
| 9102 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9103 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9105 | done |
| 9106 | else |
| 9107 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9109 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9110 | ac_lo= ac_hi= |
| 9111 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9113 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9114 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9115 | # Binary search between lo and hi bounds. |
| 9116 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9117 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9118 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9119 | /* confdefs.h. */ |
| 9120 | _ACEOF |
| 9121 | cat confdefs.h >>conftest.$ac_ext |
| 9122 | cat >>conftest.$ac_ext <<_ACEOF |
| 9123 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9124 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9125 | int |
| 9126 | main () |
| 9127 | { |
| 9128 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 9129 | test_array [0] = 0 |
| 9130 | |
| 9131 | ; |
| 9132 | return 0; |
| 9133 | } |
| 9134 | _ACEOF |
| 9135 | rm -f conftest.$ac_objext |
| 9136 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9137 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9138 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9139 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9140 | rm -f conftest.er1 |
| 9141 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9143 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9144 | { ac_try='test -z "$ac_c_werror_flag" |
| 9145 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9147 | (eval $ac_try) 2>&5 |
| 9148 | ac_status=$? |
| 9149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9150 | (exit $ac_status); }; } && |
| 9151 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9153 | (eval $ac_try) 2>&5 |
| 9154 | ac_status=$? |
| 9155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9156 | (exit $ac_status); }; }; then |
| 9157 | ac_hi=$ac_mid |
| 9158 | else |
| 9159 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9160 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9161 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9162 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9163 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9164 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9165 | done |
| 9166 | case $ac_lo in |
| 9167 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9168 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 9169 | See \`config.log' for more details." >&5 |
| 9170 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 9171 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9172 | { (exit 1); exit 1; }; } ;; |
| 9173 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9174 | else |
| 9175 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9176 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9177 | See \`config.log' for more details." >&5 |
| 9178 | echo "$as_me: error: cannot run test program while cross compiling |
| 9179 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9180 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9181 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9182 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9183 | /* confdefs.h. */ |
| 9184 | _ACEOF |
| 9185 | cat confdefs.h >>conftest.$ac_ext |
| 9186 | cat >>conftest.$ac_ext <<_ACEOF |
| 9187 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9188 | $ac_includes_default |
| 9189 | long longval () { return (long) (sizeof (fpos_t)); } |
| 9190 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9191 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9192 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9193 | int |
| 9194 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9195 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9196 | |
| 9197 | FILE *f = fopen ("conftest.val", "w"); |
| 9198 | if (! f) |
| 9199 | exit (1); |
| 9200 | if (((long) (sizeof (fpos_t))) < 0) |
| 9201 | { |
| 9202 | long i = longval (); |
| 9203 | if (i != ((long) (sizeof (fpos_t)))) |
| 9204 | exit (1); |
| 9205 | fprintf (f, "%ld\n", i); |
| 9206 | } |
| 9207 | else |
| 9208 | { |
| 9209 | unsigned long i = ulongval (); |
| 9210 | if (i != ((long) (sizeof (fpos_t)))) |
| 9211 | exit (1); |
| 9212 | fprintf (f, "%lu\n", i); |
| 9213 | } |
| 9214 | exit (ferror (f) || fclose (f) != 0); |
| 9215 | |
| 9216 | ; |
| 9217 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9218 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9219 | _ACEOF |
| 9220 | rm -f conftest$ac_exeext |
| 9221 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9222 | (eval $ac_link) 2>&5 |
| 9223 | ac_status=$? |
| 9224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9225 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 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); }; }; then |
| 9231 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9232 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9233 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9234 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9236 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9237 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9238 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 9239 | See \`config.log' for more details." >&5 |
| 9240 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 9241 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9242 | { (exit 1); exit 1; }; } |
| 9243 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9244 | 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] | 9245 | fi |
| 9246 | fi |
| 9247 | rm -f conftest.val |
| 9248 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9249 | ac_cv_sizeof_fpos_t=0 |
| 9250 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9251 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9252 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 9253 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 9254 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9255 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9256 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9257 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9258 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9259 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 9260 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 9261 | if test "${ac_cv_type_size_t+set}" = set; then |
| 9262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9263 | else |
| 9264 | cat >conftest.$ac_ext <<_ACEOF |
| 9265 | /* confdefs.h. */ |
| 9266 | _ACEOF |
| 9267 | cat confdefs.h >>conftest.$ac_ext |
| 9268 | cat >>conftest.$ac_ext <<_ACEOF |
| 9269 | /* end confdefs.h. */ |
| 9270 | $ac_includes_default |
| 9271 | int |
| 9272 | main () |
| 9273 | { |
| 9274 | if ((size_t *) 0) |
| 9275 | return 0; |
| 9276 | if (sizeof (size_t)) |
| 9277 | return 0; |
| 9278 | ; |
| 9279 | return 0; |
| 9280 | } |
| 9281 | _ACEOF |
| 9282 | rm -f conftest.$ac_objext |
| 9283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9284 | (eval $ac_compile) 2>conftest.er1 |
| 9285 | ac_status=$? |
| 9286 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9287 | rm -f conftest.er1 |
| 9288 | cat conftest.err >&5 |
| 9289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9290 | (exit $ac_status); } && |
| 9291 | { ac_try='test -z "$ac_c_werror_flag" |
| 9292 | || test ! -s conftest.err' |
| 9293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9294 | (eval $ac_try) 2>&5 |
| 9295 | ac_status=$? |
| 9296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9297 | (exit $ac_status); }; } && |
| 9298 | { ac_try='test -s conftest.$ac_objext' |
| 9299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9300 | (eval $ac_try) 2>&5 |
| 9301 | ac_status=$? |
| 9302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9303 | (exit $ac_status); }; }; then |
| 9304 | ac_cv_type_size_t=yes |
| 9305 | else |
| 9306 | echo "$as_me: failed program was:" >&5 |
| 9307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9308 | |
| 9309 | ac_cv_type_size_t=no |
| 9310 | fi |
| 9311 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9312 | fi |
| 9313 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 9314 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 9315 | |
| 9316 | echo "$as_me:$LINENO: checking size of size_t" >&5 |
| 9317 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 |
| 9318 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
| 9319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9320 | else |
| 9321 | if test "$ac_cv_type_size_t" = yes; then |
| 9322 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 9323 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9324 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9325 | # This bug is HP SR number 8606223364. |
| 9326 | if test "$cross_compiling" = yes; then |
| 9327 | # Depending upon the size, compute the lo and hi bounds. |
| 9328 | cat >conftest.$ac_ext <<_ACEOF |
| 9329 | /* confdefs.h. */ |
| 9330 | _ACEOF |
| 9331 | cat confdefs.h >>conftest.$ac_ext |
| 9332 | cat >>conftest.$ac_ext <<_ACEOF |
| 9333 | /* end confdefs.h. */ |
| 9334 | $ac_includes_default |
| 9335 | int |
| 9336 | main () |
| 9337 | { |
| 9338 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; |
| 9339 | test_array [0] = 0 |
| 9340 | |
| 9341 | ; |
| 9342 | return 0; |
| 9343 | } |
| 9344 | _ACEOF |
| 9345 | rm -f conftest.$ac_objext |
| 9346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9347 | (eval $ac_compile) 2>conftest.er1 |
| 9348 | ac_status=$? |
| 9349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9350 | rm -f conftest.er1 |
| 9351 | cat conftest.err >&5 |
| 9352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9353 | (exit $ac_status); } && |
| 9354 | { ac_try='test -z "$ac_c_werror_flag" |
| 9355 | || test ! -s conftest.err' |
| 9356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9357 | (eval $ac_try) 2>&5 |
| 9358 | ac_status=$? |
| 9359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9360 | (exit $ac_status); }; } && |
| 9361 | { ac_try='test -s conftest.$ac_objext' |
| 9362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9363 | (eval $ac_try) 2>&5 |
| 9364 | ac_status=$? |
| 9365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9366 | (exit $ac_status); }; }; then |
| 9367 | ac_lo=0 ac_mid=0 |
| 9368 | while :; do |
| 9369 | cat >conftest.$ac_ext <<_ACEOF |
| 9370 | /* confdefs.h. */ |
| 9371 | _ACEOF |
| 9372 | cat confdefs.h >>conftest.$ac_ext |
| 9373 | cat >>conftest.$ac_ext <<_ACEOF |
| 9374 | /* end confdefs.h. */ |
| 9375 | $ac_includes_default |
| 9376 | int |
| 9377 | main () |
| 9378 | { |
| 9379 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; |
| 9380 | test_array [0] = 0 |
| 9381 | |
| 9382 | ; |
| 9383 | return 0; |
| 9384 | } |
| 9385 | _ACEOF |
| 9386 | rm -f conftest.$ac_objext |
| 9387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9388 | (eval $ac_compile) 2>conftest.er1 |
| 9389 | ac_status=$? |
| 9390 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9391 | rm -f conftest.er1 |
| 9392 | cat conftest.err >&5 |
| 9393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9394 | (exit $ac_status); } && |
| 9395 | { ac_try='test -z "$ac_c_werror_flag" |
| 9396 | || test ! -s conftest.err' |
| 9397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9398 | (eval $ac_try) 2>&5 |
| 9399 | ac_status=$? |
| 9400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9401 | (exit $ac_status); }; } && |
| 9402 | { ac_try='test -s conftest.$ac_objext' |
| 9403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9404 | (eval $ac_try) 2>&5 |
| 9405 | ac_status=$? |
| 9406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9407 | (exit $ac_status); }; }; then |
| 9408 | ac_hi=$ac_mid; break |
| 9409 | else |
| 9410 | echo "$as_me: failed program was:" >&5 |
| 9411 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9412 | |
| 9413 | ac_lo=`expr $ac_mid + 1` |
| 9414 | if test $ac_lo -le $ac_mid; then |
| 9415 | ac_lo= ac_hi= |
| 9416 | break |
| 9417 | fi |
| 9418 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 9419 | fi |
| 9420 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9421 | done |
| 9422 | else |
| 9423 | echo "$as_me: failed program was:" >&5 |
| 9424 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9425 | |
| 9426 | cat >conftest.$ac_ext <<_ACEOF |
| 9427 | /* confdefs.h. */ |
| 9428 | _ACEOF |
| 9429 | cat confdefs.h >>conftest.$ac_ext |
| 9430 | cat >>conftest.$ac_ext <<_ACEOF |
| 9431 | /* end confdefs.h. */ |
| 9432 | $ac_includes_default |
| 9433 | int |
| 9434 | main () |
| 9435 | { |
| 9436 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; |
| 9437 | test_array [0] = 0 |
| 9438 | |
| 9439 | ; |
| 9440 | return 0; |
| 9441 | } |
| 9442 | _ACEOF |
| 9443 | rm -f conftest.$ac_objext |
| 9444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9445 | (eval $ac_compile) 2>conftest.er1 |
| 9446 | ac_status=$? |
| 9447 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9448 | rm -f conftest.er1 |
| 9449 | cat conftest.err >&5 |
| 9450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9451 | (exit $ac_status); } && |
| 9452 | { ac_try='test -z "$ac_c_werror_flag" |
| 9453 | || test ! -s conftest.err' |
| 9454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9455 | (eval $ac_try) 2>&5 |
| 9456 | ac_status=$? |
| 9457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9458 | (exit $ac_status); }; } && |
| 9459 | { ac_try='test -s conftest.$ac_objext' |
| 9460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9461 | (eval $ac_try) 2>&5 |
| 9462 | ac_status=$? |
| 9463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9464 | (exit $ac_status); }; }; then |
| 9465 | ac_hi=-1 ac_mid=-1 |
| 9466 | while :; do |
| 9467 | cat >conftest.$ac_ext <<_ACEOF |
| 9468 | /* confdefs.h. */ |
| 9469 | _ACEOF |
| 9470 | cat confdefs.h >>conftest.$ac_ext |
| 9471 | cat >>conftest.$ac_ext <<_ACEOF |
| 9472 | /* end confdefs.h. */ |
| 9473 | $ac_includes_default |
| 9474 | int |
| 9475 | main () |
| 9476 | { |
| 9477 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; |
| 9478 | test_array [0] = 0 |
| 9479 | |
| 9480 | ; |
| 9481 | return 0; |
| 9482 | } |
| 9483 | _ACEOF |
| 9484 | rm -f conftest.$ac_objext |
| 9485 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9486 | (eval $ac_compile) 2>conftest.er1 |
| 9487 | ac_status=$? |
| 9488 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9489 | rm -f conftest.er1 |
| 9490 | cat conftest.err >&5 |
| 9491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9492 | (exit $ac_status); } && |
| 9493 | { ac_try='test -z "$ac_c_werror_flag" |
| 9494 | || test ! -s conftest.err' |
| 9495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9496 | (eval $ac_try) 2>&5 |
| 9497 | ac_status=$? |
| 9498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9499 | (exit $ac_status); }; } && |
| 9500 | { ac_try='test -s conftest.$ac_objext' |
| 9501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9502 | (eval $ac_try) 2>&5 |
| 9503 | ac_status=$? |
| 9504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9505 | (exit $ac_status); }; }; then |
| 9506 | ac_lo=$ac_mid; break |
| 9507 | else |
| 9508 | echo "$as_me: failed program was:" >&5 |
| 9509 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9510 | |
| 9511 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9512 | if test $ac_mid -le $ac_hi; then |
| 9513 | ac_lo= ac_hi= |
| 9514 | break |
| 9515 | fi |
| 9516 | ac_mid=`expr 2 '*' $ac_mid` |
| 9517 | fi |
| 9518 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9519 | done |
| 9520 | else |
| 9521 | echo "$as_me: failed program was:" >&5 |
| 9522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9523 | |
| 9524 | ac_lo= ac_hi= |
| 9525 | fi |
| 9526 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9527 | fi |
| 9528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9529 | # Binary search between lo and hi bounds. |
| 9530 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9531 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9532 | cat >conftest.$ac_ext <<_ACEOF |
| 9533 | /* confdefs.h. */ |
| 9534 | _ACEOF |
| 9535 | cat confdefs.h >>conftest.$ac_ext |
| 9536 | cat >>conftest.$ac_ext <<_ACEOF |
| 9537 | /* end confdefs.h. */ |
| 9538 | $ac_includes_default |
| 9539 | int |
| 9540 | main () |
| 9541 | { |
| 9542 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; |
| 9543 | test_array [0] = 0 |
| 9544 | |
| 9545 | ; |
| 9546 | return 0; |
| 9547 | } |
| 9548 | _ACEOF |
| 9549 | rm -f conftest.$ac_objext |
| 9550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9551 | (eval $ac_compile) 2>conftest.er1 |
| 9552 | ac_status=$? |
| 9553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9554 | rm -f conftest.er1 |
| 9555 | cat conftest.err >&5 |
| 9556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9557 | (exit $ac_status); } && |
| 9558 | { ac_try='test -z "$ac_c_werror_flag" |
| 9559 | || test ! -s conftest.err' |
| 9560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9561 | (eval $ac_try) 2>&5 |
| 9562 | ac_status=$? |
| 9563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9564 | (exit $ac_status); }; } && |
| 9565 | { ac_try='test -s conftest.$ac_objext' |
| 9566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9567 | (eval $ac_try) 2>&5 |
| 9568 | ac_status=$? |
| 9569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9570 | (exit $ac_status); }; }; then |
| 9571 | ac_hi=$ac_mid |
| 9572 | else |
| 9573 | echo "$as_me: failed program was:" >&5 |
| 9574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9575 | |
| 9576 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9577 | fi |
| 9578 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9579 | done |
| 9580 | case $ac_lo in |
| 9581 | ?*) ac_cv_sizeof_size_t=$ac_lo;; |
| 9582 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 |
| 9583 | See \`config.log' for more details." >&5 |
| 9584 | echo "$as_me: error: cannot compute sizeof (size_t), 77 |
| 9585 | See \`config.log' for more details." >&2;} |
| 9586 | { (exit 1); exit 1; }; } ;; |
| 9587 | esac |
| 9588 | else |
| 9589 | if test "$cross_compiling" = yes; then |
| 9590 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9591 | See \`config.log' for more details." >&5 |
| 9592 | echo "$as_me: error: cannot run test program while cross compiling |
| 9593 | See \`config.log' for more details." >&2;} |
| 9594 | { (exit 1); exit 1; }; } |
| 9595 | else |
| 9596 | cat >conftest.$ac_ext <<_ACEOF |
| 9597 | /* confdefs.h. */ |
| 9598 | _ACEOF |
| 9599 | cat confdefs.h >>conftest.$ac_ext |
| 9600 | cat >>conftest.$ac_ext <<_ACEOF |
| 9601 | /* end confdefs.h. */ |
| 9602 | $ac_includes_default |
| 9603 | long longval () { return (long) (sizeof (size_t)); } |
| 9604 | unsigned long ulongval () { return (long) (sizeof (size_t)); } |
| 9605 | #include <stdio.h> |
| 9606 | #include <stdlib.h> |
| 9607 | int |
| 9608 | main () |
| 9609 | { |
| 9610 | |
| 9611 | FILE *f = fopen ("conftest.val", "w"); |
| 9612 | if (! f) |
| 9613 | exit (1); |
| 9614 | if (((long) (sizeof (size_t))) < 0) |
| 9615 | { |
| 9616 | long i = longval (); |
| 9617 | if (i != ((long) (sizeof (size_t)))) |
| 9618 | exit (1); |
| 9619 | fprintf (f, "%ld\n", i); |
| 9620 | } |
| 9621 | else |
| 9622 | { |
| 9623 | unsigned long i = ulongval (); |
| 9624 | if (i != ((long) (sizeof (size_t)))) |
| 9625 | exit (1); |
| 9626 | fprintf (f, "%lu\n", i); |
| 9627 | } |
| 9628 | exit (ferror (f) || fclose (f) != 0); |
| 9629 | |
| 9630 | ; |
| 9631 | return 0; |
| 9632 | } |
| 9633 | _ACEOF |
| 9634 | rm -f conftest$ac_exeext |
| 9635 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9636 | (eval $ac_link) 2>&5 |
| 9637 | ac_status=$? |
| 9638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9639 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9641 | (eval $ac_try) 2>&5 |
| 9642 | ac_status=$? |
| 9643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9644 | (exit $ac_status); }; }; then |
| 9645 | ac_cv_sizeof_size_t=`cat conftest.val` |
| 9646 | else |
| 9647 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9648 | echo "$as_me: failed program was:" >&5 |
| 9649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9650 | |
| 9651 | ( exit $ac_status ) |
| 9652 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 |
| 9653 | See \`config.log' for more details." >&5 |
| 9654 | echo "$as_me: error: cannot compute sizeof (size_t), 77 |
| 9655 | See \`config.log' for more details." >&2;} |
| 9656 | { (exit 1); exit 1; }; } |
| 9657 | fi |
| 9658 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 9659 | fi |
| 9660 | fi |
| 9661 | rm -f conftest.val |
| 9662 | else |
| 9663 | ac_cv_sizeof_size_t=0 |
| 9664 | fi |
| 9665 | fi |
| 9666 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| 9667 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 |
| 9668 | cat >>confdefs.h <<_ACEOF |
| 9669 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 9670 | _ACEOF |
| 9671 | |
| 9672 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9673 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9674 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 9675 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9676 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9677 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9678 | /* confdefs.h. */ |
| 9679 | _ACEOF |
| 9680 | cat confdefs.h >>conftest.$ac_ext |
| 9681 | cat >>conftest.$ac_ext <<_ACEOF |
| 9682 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9683 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9684 | int |
| 9685 | main () |
| 9686 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9687 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9688 | ; |
| 9689 | return 0; |
| 9690 | } |
| 9691 | _ACEOF |
| 9692 | rm -f conftest.$ac_objext |
| 9693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9694 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9695 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9697 | rm -f conftest.er1 |
| 9698 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9700 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9701 | { ac_try='test -z "$ac_c_werror_flag" |
| 9702 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9704 | (eval $ac_try) 2>&5 |
| 9705 | ac_status=$? |
| 9706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9707 | (exit $ac_status); }; } && |
| 9708 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9710 | (eval $ac_try) 2>&5 |
| 9711 | ac_status=$? |
| 9712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9713 | (exit $ac_status); }; }; then |
| 9714 | |
| 9715 | |
| 9716 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9717 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9718 | _ACEOF |
| 9719 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 9720 | have_long_long=yes |
| 9721 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9722 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9723 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9725 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9726 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9728 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 9729 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 9730 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9731 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 9732 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 9733 | if test "${ac_cv_type_long_long+set}" = set; then |
| 9734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9735 | else |
| 9736 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9737 | /* confdefs.h. */ |
| 9738 | _ACEOF |
| 9739 | cat confdefs.h >>conftest.$ac_ext |
| 9740 | cat >>conftest.$ac_ext <<_ACEOF |
| 9741 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9742 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9743 | int |
| 9744 | main () |
| 9745 | { |
| 9746 | if ((long long *) 0) |
| 9747 | return 0; |
| 9748 | if (sizeof (long long)) |
| 9749 | return 0; |
| 9750 | ; |
| 9751 | return 0; |
| 9752 | } |
| 9753 | _ACEOF |
| 9754 | rm -f conftest.$ac_objext |
| 9755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9756 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9757 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9759 | rm -f conftest.er1 |
| 9760 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9762 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9763 | { ac_try='test -z "$ac_c_werror_flag" |
| 9764 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9766 | (eval $ac_try) 2>&5 |
| 9767 | ac_status=$? |
| 9768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9769 | (exit $ac_status); }; } && |
| 9770 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9772 | (eval $ac_try) 2>&5 |
| 9773 | ac_status=$? |
| 9774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9775 | (exit $ac_status); }; }; then |
| 9776 | ac_cv_type_long_long=yes |
| 9777 | else |
| 9778 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9780 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9781 | ac_cv_type_long_long=no |
| 9782 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9783 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9784 | fi |
| 9785 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 9786 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 9787 | |
| 9788 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 9789 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 9790 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 9791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9792 | else |
| 9793 | if test "$ac_cv_type_long_long" = yes; then |
| 9794 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 9795 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9796 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9797 | # This bug is HP SR number 8606223364. |
| 9798 | if test "$cross_compiling" = yes; then |
| 9799 | # Depending upon the size, compute the lo and hi bounds. |
| 9800 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9801 | /* confdefs.h. */ |
| 9802 | _ACEOF |
| 9803 | cat confdefs.h >>conftest.$ac_ext |
| 9804 | cat >>conftest.$ac_ext <<_ACEOF |
| 9805 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9806 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9807 | int |
| 9808 | main () |
| 9809 | { |
| 9810 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 9811 | test_array [0] = 0 |
| 9812 | |
| 9813 | ; |
| 9814 | return 0; |
| 9815 | } |
| 9816 | _ACEOF |
| 9817 | rm -f conftest.$ac_objext |
| 9818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9819 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9820 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9821 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9822 | rm -f conftest.er1 |
| 9823 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9825 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9826 | { ac_try='test -z "$ac_c_werror_flag" |
| 9827 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9829 | (eval $ac_try) 2>&5 |
| 9830 | ac_status=$? |
| 9831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9832 | (exit $ac_status); }; } && |
| 9833 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9835 | (eval $ac_try) 2>&5 |
| 9836 | ac_status=$? |
| 9837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9838 | (exit $ac_status); }; }; then |
| 9839 | ac_lo=0 ac_mid=0 |
| 9840 | while :; do |
| 9841 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9842 | /* confdefs.h. */ |
| 9843 | _ACEOF |
| 9844 | cat confdefs.h >>conftest.$ac_ext |
| 9845 | cat >>conftest.$ac_ext <<_ACEOF |
| 9846 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9847 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9848 | int |
| 9849 | main () |
| 9850 | { |
| 9851 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9852 | test_array [0] = 0 |
| 9853 | |
| 9854 | ; |
| 9855 | return 0; |
| 9856 | } |
| 9857 | _ACEOF |
| 9858 | rm -f conftest.$ac_objext |
| 9859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9860 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9861 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9862 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9863 | rm -f conftest.er1 |
| 9864 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9866 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9867 | { ac_try='test -z "$ac_c_werror_flag" |
| 9868 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9870 | (eval $ac_try) 2>&5 |
| 9871 | ac_status=$? |
| 9872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9873 | (exit $ac_status); }; } && |
| 9874 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9876 | (eval $ac_try) 2>&5 |
| 9877 | ac_status=$? |
| 9878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9879 | (exit $ac_status); }; }; then |
| 9880 | ac_hi=$ac_mid; break |
| 9881 | else |
| 9882 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9884 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9885 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9886 | if test $ac_lo -le $ac_mid; then |
| 9887 | ac_lo= ac_hi= |
| 9888 | break |
| 9889 | fi |
| 9890 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9891 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9892 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9893 | done |
| 9894 | else |
| 9895 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9897 | |
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 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9905 | int |
| 9906 | main () |
| 9907 | { |
| 9908 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 9909 | test_array [0] = 0 |
| 9910 | |
| 9911 | ; |
| 9912 | return 0; |
| 9913 | } |
| 9914 | _ACEOF |
| 9915 | rm -f conftest.$ac_objext |
| 9916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9917 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9918 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9919 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9920 | rm -f conftest.er1 |
| 9921 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9923 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9924 | { ac_try='test -z "$ac_c_werror_flag" |
| 9925 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9927 | (eval $ac_try) 2>&5 |
| 9928 | ac_status=$? |
| 9929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9930 | (exit $ac_status); }; } && |
| 9931 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9933 | (eval $ac_try) 2>&5 |
| 9934 | ac_status=$? |
| 9935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9936 | (exit $ac_status); }; }; then |
| 9937 | ac_hi=-1 ac_mid=-1 |
| 9938 | while :; do |
| 9939 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9940 | /* confdefs.h. */ |
| 9941 | _ACEOF |
| 9942 | cat confdefs.h >>conftest.$ac_ext |
| 9943 | cat >>conftest.$ac_ext <<_ACEOF |
| 9944 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9945 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9946 | int |
| 9947 | main () |
| 9948 | { |
| 9949 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 9950 | test_array [0] = 0 |
| 9951 | |
| 9952 | ; |
| 9953 | return 0; |
| 9954 | } |
| 9955 | _ACEOF |
| 9956 | rm -f conftest.$ac_objext |
| 9957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9958 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9959 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9960 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9961 | rm -f conftest.er1 |
| 9962 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9964 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9965 | { ac_try='test -z "$ac_c_werror_flag" |
| 9966 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9968 | (eval $ac_try) 2>&5 |
| 9969 | ac_status=$? |
| 9970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9971 | (exit $ac_status); }; } && |
| 9972 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9974 | (eval $ac_try) 2>&5 |
| 9975 | ac_status=$? |
| 9976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9977 | (exit $ac_status); }; }; then |
| 9978 | ac_lo=$ac_mid; break |
| 9979 | else |
| 9980 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9982 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9983 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9984 | if test $ac_mid -le $ac_hi; then |
| 9985 | ac_lo= ac_hi= |
| 9986 | break |
| 9987 | fi |
| 9988 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9989 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9991 | done |
| 9992 | else |
| 9993 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9995 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9996 | ac_lo= ac_hi= |
| 9997 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9998 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9999 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10000 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10001 | # Binary search between lo and hi bounds. |
| 10002 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10003 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10004 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10005 | /* confdefs.h. */ |
| 10006 | _ACEOF |
| 10007 | cat confdefs.h >>conftest.$ac_ext |
| 10008 | cat >>conftest.$ac_ext <<_ACEOF |
| 10009 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10010 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10011 | int |
| 10012 | main () |
| 10013 | { |
| 10014 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 10015 | test_array [0] = 0 |
| 10016 | |
| 10017 | ; |
| 10018 | return 0; |
| 10019 | } |
| 10020 | _ACEOF |
| 10021 | rm -f conftest.$ac_objext |
| 10022 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10023 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10024 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10025 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10026 | rm -f conftest.er1 |
| 10027 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10029 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10030 | { ac_try='test -z "$ac_c_werror_flag" |
| 10031 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10033 | (eval $ac_try) 2>&5 |
| 10034 | ac_status=$? |
| 10035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10036 | (exit $ac_status); }; } && |
| 10037 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10039 | (eval $ac_try) 2>&5 |
| 10040 | ac_status=$? |
| 10041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10042 | (exit $ac_status); }; }; then |
| 10043 | ac_hi=$ac_mid |
| 10044 | else |
| 10045 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10046 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10047 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10048 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 10049 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10051 | done |
| 10052 | case $ac_lo in |
| 10053 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10054 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 10055 | See \`config.log' for more details." >&5 |
| 10056 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 10057 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10058 | { (exit 1); exit 1; }; } ;; |
| 10059 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10060 | else |
| 10061 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10062 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 10063 | See \`config.log' for more details." >&5 |
| 10064 | echo "$as_me: error: cannot run test program while cross compiling |
| 10065 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10066 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10067 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10068 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10069 | /* confdefs.h. */ |
| 10070 | _ACEOF |
| 10071 | cat confdefs.h >>conftest.$ac_ext |
| 10072 | cat >>conftest.$ac_ext <<_ACEOF |
| 10073 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10074 | $ac_includes_default |
| 10075 | long longval () { return (long) (sizeof (long long)); } |
| 10076 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10077 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10078 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10079 | int |
| 10080 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10081 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10082 | |
| 10083 | FILE *f = fopen ("conftest.val", "w"); |
| 10084 | if (! f) |
| 10085 | exit (1); |
| 10086 | if (((long) (sizeof (long long))) < 0) |
| 10087 | { |
| 10088 | long i = longval (); |
| 10089 | if (i != ((long) (sizeof (long long)))) |
| 10090 | exit (1); |
| 10091 | fprintf (f, "%ld\n", i); |
| 10092 | } |
| 10093 | else |
| 10094 | { |
| 10095 | unsigned long i = ulongval (); |
| 10096 | if (i != ((long) (sizeof (long long)))) |
| 10097 | exit (1); |
| 10098 | fprintf (f, "%lu\n", i); |
| 10099 | } |
| 10100 | exit (ferror (f) || fclose (f) != 0); |
| 10101 | |
| 10102 | ; |
| 10103 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10104 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10105 | _ACEOF |
| 10106 | rm -f conftest$ac_exeext |
| 10107 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10108 | (eval $ac_link) 2>&5 |
| 10109 | ac_status=$? |
| 10110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10111 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10113 | (eval $ac_try) 2>&5 |
| 10114 | ac_status=$? |
| 10115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10116 | (exit $ac_status); }; }; then |
| 10117 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10118 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10119 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10120 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10122 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10123 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10124 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 10125 | See \`config.log' for more details." >&5 |
| 10126 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 10127 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10128 | { (exit 1); exit 1; }; } |
| 10129 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10130 | 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] | 10131 | fi |
| 10132 | fi |
| 10133 | rm -f conftest.val |
| 10134 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10135 | ac_cv_sizeof_long_long=0 |
| 10136 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10137 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10138 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 10139 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 10140 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10141 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10142 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10143 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10144 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10145 | fi |
| 10146 | |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 10147 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 10148 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 10149 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 10150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10151 | else |
| 10152 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10153 | /* confdefs.h. */ |
| 10154 | _ACEOF |
| 10155 | cat confdefs.h >>conftest.$ac_ext |
| 10156 | cat >>conftest.$ac_ext <<_ACEOF |
| 10157 | /* end confdefs.h. */ |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 10158 | #ifdef HAVE_STDINT_H |
| 10159 | #include <stdint.h> |
| 10160 | #endif |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10161 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10162 | int |
| 10163 | main () |
| 10164 | { |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 10165 | if ((uintptr_t *) 0) |
| 10166 | return 0; |
| 10167 | if (sizeof (uintptr_t)) |
| 10168 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10169 | ; |
| 10170 | return 0; |
| 10171 | } |
| 10172 | _ACEOF |
| 10173 | rm -f conftest.$ac_objext |
| 10174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10175 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10176 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10178 | rm -f conftest.er1 |
| 10179 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10181 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10182 | { ac_try='test -z "$ac_c_werror_flag" |
| 10183 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10185 | (eval $ac_try) 2>&5 |
| 10186 | ac_status=$? |
| 10187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10188 | (exit $ac_status); }; } && |
| 10189 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10191 | (eval $ac_try) 2>&5 |
| 10192 | ac_status=$? |
| 10193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10194 | (exit $ac_status); }; }; then |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 10195 | ac_cv_type_uintptr_t=yes |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10196 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10197 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10199 | |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 10200 | ac_cv_type_uintptr_t=no |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10201 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10202 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 10203 | fi |
| 10204 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 10205 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 10206 | if test $ac_cv_type_uintptr_t = yes; then |
| 10207 | |
| 10208 | cat >>confdefs.h <<_ACEOF |
| 10209 | #define HAVE_UINTPTR_T 1 |
| 10210 | _ACEOF |
| 10211 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10212 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 10213 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 10214 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 10215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10216 | else |
| 10217 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10218 | /* confdefs.h. */ |
| 10219 | _ACEOF |
| 10220 | cat confdefs.h >>conftest.$ac_ext |
| 10221 | cat >>conftest.$ac_ext <<_ACEOF |
| 10222 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10223 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10224 | int |
| 10225 | main () |
| 10226 | { |
| 10227 | if ((uintptr_t *) 0) |
| 10228 | return 0; |
| 10229 | if (sizeof (uintptr_t)) |
| 10230 | return 0; |
| 10231 | ; |
| 10232 | return 0; |
| 10233 | } |
| 10234 | _ACEOF |
| 10235 | rm -f conftest.$ac_objext |
| 10236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10237 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10238 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10239 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10240 | rm -f conftest.er1 |
| 10241 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10243 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10244 | { ac_try='test -z "$ac_c_werror_flag" |
| 10245 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10247 | (eval $ac_try) 2>&5 |
| 10248 | ac_status=$? |
| 10249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10250 | (exit $ac_status); }; } && |
| 10251 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10253 | (eval $ac_try) 2>&5 |
| 10254 | ac_status=$? |
| 10255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10256 | (exit $ac_status); }; }; then |
| 10257 | ac_cv_type_uintptr_t=yes |
| 10258 | else |
| 10259 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10260 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10261 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10262 | ac_cv_type_uintptr_t=no |
| 10263 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10264 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10265 | fi |
| 10266 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 10267 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 10268 | |
| 10269 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 10270 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 10271 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 10272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10273 | else |
| 10274 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 10275 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 10276 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10277 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10278 | # This bug is HP SR number 8606223364. |
| 10279 | if test "$cross_compiling" = yes; then |
| 10280 | # Depending upon the size, compute the lo and hi bounds. |
| 10281 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10282 | /* confdefs.h. */ |
| 10283 | _ACEOF |
| 10284 | cat confdefs.h >>conftest.$ac_ext |
| 10285 | cat >>conftest.$ac_ext <<_ACEOF |
| 10286 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10287 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10288 | int |
| 10289 | main () |
| 10290 | { |
| 10291 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 10292 | test_array [0] = 0 |
| 10293 | |
| 10294 | ; |
| 10295 | return 0; |
| 10296 | } |
| 10297 | _ACEOF |
| 10298 | rm -f conftest.$ac_objext |
| 10299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10300 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10301 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10303 | rm -f conftest.er1 |
| 10304 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10306 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10307 | { ac_try='test -z "$ac_c_werror_flag" |
| 10308 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10310 | (eval $ac_try) 2>&5 |
| 10311 | ac_status=$? |
| 10312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10313 | (exit $ac_status); }; } && |
| 10314 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10316 | (eval $ac_try) 2>&5 |
| 10317 | ac_status=$? |
| 10318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10319 | (exit $ac_status); }; }; then |
| 10320 | ac_lo=0 ac_mid=0 |
| 10321 | while :; do |
| 10322 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10323 | /* confdefs.h. */ |
| 10324 | _ACEOF |
| 10325 | cat confdefs.h >>conftest.$ac_ext |
| 10326 | cat >>conftest.$ac_ext <<_ACEOF |
| 10327 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10328 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10329 | int |
| 10330 | main () |
| 10331 | { |
| 10332 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 10333 | test_array [0] = 0 |
| 10334 | |
| 10335 | ; |
| 10336 | return 0; |
| 10337 | } |
| 10338 | _ACEOF |
| 10339 | rm -f conftest.$ac_objext |
| 10340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10341 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10342 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10343 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10344 | rm -f conftest.er1 |
| 10345 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10347 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10348 | { ac_try='test -z "$ac_c_werror_flag" |
| 10349 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10351 | (eval $ac_try) 2>&5 |
| 10352 | ac_status=$? |
| 10353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10354 | (exit $ac_status); }; } && |
| 10355 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10357 | (eval $ac_try) 2>&5 |
| 10358 | ac_status=$? |
| 10359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10360 | (exit $ac_status); }; }; then |
| 10361 | ac_hi=$ac_mid; break |
| 10362 | else |
| 10363 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10365 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10366 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10367 | if test $ac_lo -le $ac_mid; then |
| 10368 | ac_lo= ac_hi= |
| 10369 | break |
| 10370 | fi |
| 10371 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10372 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10374 | done |
| 10375 | else |
| 10376 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10377 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10378 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10379 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10380 | /* confdefs.h. */ |
| 10381 | _ACEOF |
| 10382 | cat confdefs.h >>conftest.$ac_ext |
| 10383 | cat >>conftest.$ac_ext <<_ACEOF |
| 10384 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10385 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10386 | int |
| 10387 | main () |
| 10388 | { |
| 10389 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 10390 | test_array [0] = 0 |
| 10391 | |
| 10392 | ; |
| 10393 | return 0; |
| 10394 | } |
| 10395 | _ACEOF |
| 10396 | rm -f conftest.$ac_objext |
| 10397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10398 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10399 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10400 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10401 | rm -f conftest.er1 |
| 10402 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10404 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10405 | { ac_try='test -z "$ac_c_werror_flag" |
| 10406 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10408 | (eval $ac_try) 2>&5 |
| 10409 | ac_status=$? |
| 10410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10411 | (exit $ac_status); }; } && |
| 10412 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10414 | (eval $ac_try) 2>&5 |
| 10415 | ac_status=$? |
| 10416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10417 | (exit $ac_status); }; }; then |
| 10418 | ac_hi=-1 ac_mid=-1 |
| 10419 | while :; do |
| 10420 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10421 | /* confdefs.h. */ |
| 10422 | _ACEOF |
| 10423 | cat confdefs.h >>conftest.$ac_ext |
| 10424 | cat >>conftest.$ac_ext <<_ACEOF |
| 10425 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10426 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10427 | int |
| 10428 | main () |
| 10429 | { |
| 10430 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 10431 | test_array [0] = 0 |
| 10432 | |
| 10433 | ; |
| 10434 | return 0; |
| 10435 | } |
| 10436 | _ACEOF |
| 10437 | rm -f conftest.$ac_objext |
| 10438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10439 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10440 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10441 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10442 | rm -f conftest.er1 |
| 10443 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10445 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10446 | { ac_try='test -z "$ac_c_werror_flag" |
| 10447 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10449 | (eval $ac_try) 2>&5 |
| 10450 | ac_status=$? |
| 10451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10452 | (exit $ac_status); }; } && |
| 10453 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10455 | (eval $ac_try) 2>&5 |
| 10456 | ac_status=$? |
| 10457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10458 | (exit $ac_status); }; }; then |
| 10459 | ac_lo=$ac_mid; break |
| 10460 | else |
| 10461 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10463 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10464 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10465 | if test $ac_mid -le $ac_hi; then |
| 10466 | ac_lo= ac_hi= |
| 10467 | break |
| 10468 | fi |
| 10469 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10470 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10471 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10472 | done |
| 10473 | else |
| 10474 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10476 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10477 | ac_lo= ac_hi= |
| 10478 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10480 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10481 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10482 | # Binary search between lo and hi bounds. |
| 10483 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10484 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10485 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10486 | /* confdefs.h. */ |
| 10487 | _ACEOF |
| 10488 | cat confdefs.h >>conftest.$ac_ext |
| 10489 | cat >>conftest.$ac_ext <<_ACEOF |
| 10490 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10491 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10492 | int |
| 10493 | main () |
| 10494 | { |
| 10495 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 10496 | test_array [0] = 0 |
| 10497 | |
| 10498 | ; |
| 10499 | return 0; |
| 10500 | } |
| 10501 | _ACEOF |
| 10502 | rm -f conftest.$ac_objext |
| 10503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10504 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10505 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10507 | rm -f conftest.er1 |
| 10508 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10510 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10511 | { ac_try='test -z "$ac_c_werror_flag" |
| 10512 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10514 | (eval $ac_try) 2>&5 |
| 10515 | ac_status=$? |
| 10516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10517 | (exit $ac_status); }; } && |
| 10518 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10520 | (eval $ac_try) 2>&5 |
| 10521 | ac_status=$? |
| 10522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10523 | (exit $ac_status); }; }; then |
| 10524 | ac_hi=$ac_mid |
| 10525 | else |
| 10526 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10528 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10529 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 10530 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10531 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10532 | done |
| 10533 | case $ac_lo in |
| 10534 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10535 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 10536 | See \`config.log' for more details." >&5 |
| 10537 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 10538 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10539 | { (exit 1); exit 1; }; } ;; |
| 10540 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10541 | else |
| 10542 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10543 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 10544 | See \`config.log' for more details." >&5 |
| 10545 | echo "$as_me: error: cannot run test program while cross compiling |
| 10546 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10547 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10548 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10549 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10550 | /* confdefs.h. */ |
| 10551 | _ACEOF |
| 10552 | cat confdefs.h >>conftest.$ac_ext |
| 10553 | cat >>conftest.$ac_ext <<_ACEOF |
| 10554 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10555 | $ac_includes_default |
| 10556 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 10557 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10558 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10559 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10560 | int |
| 10561 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10562 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10563 | |
| 10564 | FILE *f = fopen ("conftest.val", "w"); |
| 10565 | if (! f) |
| 10566 | exit (1); |
| 10567 | if (((long) (sizeof (uintptr_t))) < 0) |
| 10568 | { |
| 10569 | long i = longval (); |
| 10570 | if (i != ((long) (sizeof (uintptr_t)))) |
| 10571 | exit (1); |
| 10572 | fprintf (f, "%ld\n", i); |
| 10573 | } |
| 10574 | else |
| 10575 | { |
| 10576 | unsigned long i = ulongval (); |
| 10577 | if (i != ((long) (sizeof (uintptr_t)))) |
| 10578 | exit (1); |
| 10579 | fprintf (f, "%lu\n", i); |
| 10580 | } |
| 10581 | exit (ferror (f) || fclose (f) != 0); |
| 10582 | |
| 10583 | ; |
| 10584 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10585 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10586 | _ACEOF |
| 10587 | rm -f conftest$ac_exeext |
| 10588 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10589 | (eval $ac_link) 2>&5 |
| 10590 | ac_status=$? |
| 10591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10592 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10594 | (eval $ac_try) 2>&5 |
| 10595 | ac_status=$? |
| 10596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10597 | (exit $ac_status); }; }; then |
| 10598 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10599 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10600 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10601 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10603 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10604 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10605 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 10606 | See \`config.log' for more details." >&5 |
| 10607 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 10608 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10609 | { (exit 1); exit 1; }; } |
| 10610 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10611 | 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] | 10612 | fi |
| 10613 | fi |
| 10614 | rm -f conftest.val |
| 10615 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10616 | ac_cv_sizeof_uintptr_t=0 |
| 10617 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10618 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10619 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 10620 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 10621 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10622 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10623 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10624 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10625 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10626 | fi |
| 10627 | |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 10628 | |
| 10629 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10630 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10631 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 10632 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 10633 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 10634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10635 | else |
| 10636 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10637 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10638 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10639 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10640 | /* confdefs.h. */ |
| 10641 | _ACEOF |
| 10642 | cat confdefs.h >>conftest.$ac_ext |
| 10643 | cat >>conftest.$ac_ext <<_ACEOF |
| 10644 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10645 | #include <stdio.h> |
| 10646 | #include <sys/types.h> |
| 10647 | main() |
| 10648 | { |
| 10649 | FILE *f=fopen("conftestval", "w"); |
| 10650 | if (!f) exit(1); |
| 10651 | fprintf(f, "%d\n", sizeof(off_t)); |
| 10652 | exit(0); |
| 10653 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10654 | _ACEOF |
| 10655 | rm -f conftest$ac_exeext |
| 10656 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10657 | (eval $ac_link) 2>&5 |
| 10658 | ac_status=$? |
| 10659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10660 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10662 | (eval $ac_try) 2>&5 |
| 10663 | ac_status=$? |
| 10664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10665 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10666 | ac_cv_sizeof_off_t=`cat conftestval` |
| 10667 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10668 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10669 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10670 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10672 | ( exit $ac_status ) |
| 10673 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10674 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10675 | 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] | 10676 | fi |
| 10677 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10678 | fi |
| 10679 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10680 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 10681 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 10682 | |
| 10683 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10684 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10685 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10686 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10687 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10688 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 10689 | 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] | 10690 | if test "$have_long_long" = yes -a \ |
| 10691 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 10692 | "$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] | 10693 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10694 | cat >>confdefs.h <<\_ACEOF |
| 10695 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 10696 | _ACEOF |
| 10697 | |
| 10698 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10699 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10700 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10701 | echo "$as_me:$LINENO: result: no" >&5 |
| 10702 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10703 | fi |
| 10704 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10705 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10706 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 10707 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 10708 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 10709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10710 | else |
| 10711 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10712 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10713 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10714 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10715 | /* confdefs.h. */ |
| 10716 | _ACEOF |
| 10717 | cat confdefs.h >>conftest.$ac_ext |
| 10718 | cat >>conftest.$ac_ext <<_ACEOF |
| 10719 | /* end confdefs.h. */ |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10720 | #include <stdio.h> |
| 10721 | #include <time.h> |
| 10722 | main() |
| 10723 | { |
| 10724 | FILE *f=fopen("conftestval", "w"); |
| 10725 | if (!f) exit(1); |
| 10726 | fprintf(f, "%d\n", sizeof(time_t)); |
| 10727 | exit(0); |
| 10728 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10729 | _ACEOF |
| 10730 | rm -f conftest$ac_exeext |
| 10731 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10732 | (eval $ac_link) 2>&5 |
| 10733 | ac_status=$? |
| 10734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10735 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10737 | (eval $ac_try) 2>&5 |
| 10738 | ac_status=$? |
| 10739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10740 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10741 | ac_cv_sizeof_time_t=`cat conftestval` |
| 10742 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10743 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10744 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10746 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10747 | ( exit $ac_status ) |
| 10748 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10749 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10750 | 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] | 10751 | fi |
| 10752 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10753 | fi |
| 10754 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10755 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 10756 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 10757 | |
| 10758 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10759 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10760 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10761 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10762 | |
| 10763 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10764 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10765 | ac_save_cc="$CC" |
| 10766 | if test "$ac_cv_kpthread" = "yes" |
| 10767 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10768 | elif test "$ac_cv_kthread" = "yes" |
| 10769 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10770 | elif test "$ac_cv_pthread" = "yes" |
| 10771 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10772 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10773 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 10774 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10775 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10776 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10777 | /* confdefs.h. */ |
| 10778 | _ACEOF |
| 10779 | cat confdefs.h >>conftest.$ac_ext |
| 10780 | cat >>conftest.$ac_ext <<_ACEOF |
| 10781 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10782 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10783 | int |
| 10784 | main () |
| 10785 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 10786 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10787 | ; |
| 10788 | return 0; |
| 10789 | } |
| 10790 | _ACEOF |
| 10791 | rm -f conftest.$ac_objext |
| 10792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10793 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10794 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10796 | rm -f conftest.er1 |
| 10797 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10799 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10800 | { ac_try='test -z "$ac_c_werror_flag" |
| 10801 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10803 | (eval $ac_try) 2>&5 |
| 10804 | ac_status=$? |
| 10805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10806 | (exit $ac_status); }; } && |
| 10807 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10809 | (eval $ac_try) 2>&5 |
| 10810 | ac_status=$? |
| 10811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10812 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10813 | have_pthread_t=yes |
| 10814 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10815 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10817 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10818 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10819 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10820 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 10821 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10822 | if test "$have_pthread_t" = yes ; then |
| 10823 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10824 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 10825 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 10826 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 10827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10828 | else |
| 10829 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10830 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10831 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10832 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10833 | /* confdefs.h. */ |
| 10834 | _ACEOF |
| 10835 | cat confdefs.h >>conftest.$ac_ext |
| 10836 | cat >>conftest.$ac_ext <<_ACEOF |
| 10837 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10838 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10839 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10840 | main() |
| 10841 | { |
| 10842 | FILE *f=fopen("conftestval", "w"); |
| 10843 | if (!f) exit(1); |
| 10844 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 10845 | exit(0); |
| 10846 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10847 | _ACEOF |
| 10848 | rm -f conftest$ac_exeext |
| 10849 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10850 | (eval $ac_link) 2>&5 |
| 10851 | ac_status=$? |
| 10852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10853 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10855 | (eval $ac_try) 2>&5 |
| 10856 | ac_status=$? |
| 10857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10858 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10859 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 10860 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10861 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10862 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10864 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10865 | ( exit $ac_status ) |
| 10866 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10867 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10868 | 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] | 10869 | fi |
| 10870 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10871 | fi |
| 10872 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10873 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 10874 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 10875 | |
| 10876 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10877 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10878 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10879 | |
| 10880 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10881 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10882 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10883 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 10884 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10885 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 10886 | if test "${enable_toolbox_glue+set}" = set; then |
| 10887 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10888 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10889 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10890 | |
| 10891 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10892 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10893 | case $ac_sys_system/$ac_sys_release in |
| 10894 | Darwin/*) |
| 10895 | enable_toolbox_glue="yes";; |
| 10896 | *) |
| 10897 | enable_toolbox_glue="no";; |
| 10898 | esac |
| 10899 | fi |
| 10900 | case "$enable_toolbox_glue" in |
| 10901 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10902 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10903 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10904 | |
| 10905 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10906 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10907 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10908 | |
| 10909 | ;; |
| 10910 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10911 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 10912 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10913 | ;; |
| 10914 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10915 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 10916 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10917 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10918 | |
| 10919 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 10920 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 10921 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 10922 | ;; |
| 10923 | Darwin/*) |
| 10924 | OTHER_LIBTOOL_OPT="" |
| 10925 | ;; |
| 10926 | esac |
| 10927 | |
| 10928 | |
| 10929 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 10930 | Darwin/[01567]\..*) |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 10931 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 10932 | if test "${enable_universalsdk}"; then |
| 10933 | : |
| 10934 | else |
| 10935 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`" |
| 10936 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 10937 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10938 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 10939 | Darwin/*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 10940 | gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3` |
| 10941 | if test ${gcc_version} '<' 4.0 |
| 10942 | then |
| 10943 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 10944 | else |
| 10945 | LIBTOOL_CRUFT="" |
| 10946 | fi |
Jack Jansen | 39fd231 | 2006-02-23 15:12:19 +0000 | [diff] [blame] | 10947 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 10948 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10949 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10950 | esac |
| 10951 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10952 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 10953 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10954 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10955 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10956 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10957 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10958 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10959 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10960 | cat >>confdefs.h <<\_ACEOF |
| 10961 | #define WITH_NEXT_FRAMEWORK 1 |
| 10962 | _ACEOF |
| 10963 | |
| 10964 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10965 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10966 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10967 | echo "$as_me:$LINENO: result: no" >&5 |
| 10968 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10969 | fi |
| 10970 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10971 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 10972 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10973 | case $ac_sys_system/$ac_sys_release in |
| 10974 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10975 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10976 | cat >>confdefs.h <<\_ACEOF |
| 10977 | #define WITH_DYLD 1 |
| 10978 | _ACEOF |
| 10979 | |
| 10980 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 10981 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10982 | ;; |
| 10983 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10984 | echo "$as_me:$LINENO: result: no" >&5 |
| 10985 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10986 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10987 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10988 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10989 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10990 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10991 | |
| 10992 | |
| 10993 | |
| 10994 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10995 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10996 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10997 | echo "$as_me:$LINENO: checking SO" >&5 |
| 10998 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10999 | if test -z "$SO" |
| 11000 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11001 | case $ac_sys_system in |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 11002 | hp*|HP*) |
| 11003 | case `uname -m` in |
| 11004 | ia64) SO=.so;; |
| 11005 | *) SO=.sl;; |
| 11006 | esac |
| 11007 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 11008 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11009 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11010 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 11011 | else |
| 11012 | # this might also be a termcap variable, see #610332 |
| 11013 | echo |
| 11014 | echo '=====================================================================' |
| 11015 | echo '+ +' |
| 11016 | echo '+ WARNING: You have set SO in your environment. +' |
| 11017 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 11018 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 11019 | echo '+ +' |
| 11020 | echo '=====================================================================' |
| 11021 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11022 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11023 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 11024 | echo "${ECHO_T}$SO" >&6 |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 11025 | |
| 11026 | cat >>confdefs.h <<_ACEOF |
| 11027 | #define SHLIB_EXT "$SO" |
| 11028 | _ACEOF |
| 11029 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11030 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 11031 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11032 | # (Shared libraries in this instance are shared modules to be loaded into |
| 11033 | # 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] | 11034 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 11035 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11036 | if test -z "$LDSHARED" |
| 11037 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11038 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 11039 | AIX*) |
| 11040 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 11041 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 11042 | ;; |
| 11043 | BeOS*) |
| 11044 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 11045 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 11046 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 11047 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 11048 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11049 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 11050 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 11051 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 11052 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 11053 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11054 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11055 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 11056 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 11057 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 11058 | if test "$enable_framework" ; then |
| 11059 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 11060 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 11061 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 11062 | else |
| 11063 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 11064 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 11065 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 11066 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11067 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 11068 | if test "$enable_framework" ; then |
| 11069 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 11070 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 11071 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11072 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 11073 | # No framework, use the Python app as bundle-loader |
| 11074 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 11075 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11076 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 11077 | Darwin/*) |
| 11078 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 11079 | # This allows an extension to be used in any Python |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 11080 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 11081 | if test ${cur_target} '>' 10.2; then |
| 11082 | cur_target=10.3 |
| 11083 | fi |
Jack Jansen | c110f86 | 2005-01-07 10:49:32 +0000 | [diff] [blame] | 11084 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 11085 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 11086 | if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 11087 | then |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 11088 | if test "${enable_universalsdk}"; then |
| 11089 | LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
| 11090 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 11091 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 11092 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 11093 | else |
| 11094 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 11095 | if test "$enable_framework" ; then |
| 11096 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 11097 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 11098 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 11099 | else |
| 11100 | # No framework, use the Python app as bundle-loader |
| 11101 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 11102 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 11103 | fi |
| 11104 | fi |
| 11105 | ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 11106 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 11107 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 11108 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 11109 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 11110 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 11111 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 11112 | else |
| 11113 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 11114 | fi;; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 11115 | OpenBSD*) |
| 11116 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 11117 | then |
| 11118 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 11119 | else |
| 11120 | case `uname -r` in |
| 11121 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 11122 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 11123 | ;; |
| 11124 | *) |
| 11125 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 11126 | ;; |
| 11127 | esac |
| 11128 | fi;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 11129 | NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 11130 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 11131 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 11132 | then LDSHARED='$(CC) -shared' |
| 11133 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 11134 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 11135 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11136 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 11137 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11138 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11139 | *) LDSHARED="ld";; |
| 11140 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11141 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11142 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 11143 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 11144 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11145 | # 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] | 11146 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11147 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 11148 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11149 | if test -z "$CCSHARED" |
| 11150 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 11151 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 11152 | SunOS*) if test "$GCC" = yes; |
| 11153 | then CCSHARED="-fPIC"; |
Martin v. Löwis | d5845ec | 2005-12-30 12:31:38 +0000 | [diff] [blame] | 11154 | else CCSHARED="-xcode=pic32"; |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 11155 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 11156 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 11157 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 11158 | else CCSHARED="+z"; |
| 11159 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11160 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 11161 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 11162 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 11163 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 11164 | if test "$GCC" = "yes" |
| 11165 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11166 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 11167 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 11168 | SCO_SV*) |
| 11169 | if test "$GCC" = "yes" |
| 11170 | then CCSHARED="-fPIC" |
| 11171 | else CCSHARED="-Kpic -belf" |
| 11172 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11173 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 11174 | IRIX*/6*) case $CC in |
| 11175 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 11176 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 11177 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11178 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11179 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11180 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11181 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 11182 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11183 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11184 | # 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] | 11185 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 11186 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11187 | if test -z "$LINKFORSHARED" |
| 11188 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 11189 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 11190 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 11191 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11192 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 11193 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 11194 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11195 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11196 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11197 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 11198 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 11199 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11200 | # not used by the core itself but which needs to be in the core so |
| 11201 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 11202 | # -prebind is no longer used, because it actually seems to give a |
| 11203 | # slowdown in stead of a speedup, maybe due to the large number of |
| 11204 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 11205 | |
| 11206 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11207 | if test "$enable_framework" |
| 11208 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 11209 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11210 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 11211 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 11212 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 11213 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 11214 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 11215 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 11216 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 11217 | then |
| 11218 | LINKFORSHARED="-Wl,--export-dynamic" |
| 11219 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 11220 | SunOS/5*) case $CC in |
| 11221 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 11222 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 11223 | then |
| 11224 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 11225 | fi;; |
| 11226 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 11227 | CYGWIN*) |
| 11228 | if test $enable_shared = "no" |
| 11229 | then |
| 11230 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 11231 | fi;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11232 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11233 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11234 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 11235 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11236 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11237 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11238 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 11239 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 11240 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 11241 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 11242 | case $ac_sys_system in |
| 11243 | CYGWIN*) |
| 11244 | # Cygwin needs CCSHARED when building extension DLLs |
| 11245 | # but not when building the interpreter DLL. |
| 11246 | CFLAGSFORSHARED='';; |
| 11247 | *) |
| 11248 | CFLAGSFORSHARED='$(CCSHARED)' |
| 11249 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 11250 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11251 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 11252 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 11253 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11254 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 11255 | # library (with --enable-shared). |
| 11256 | # 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] | 11257 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 11258 | # if it is not required, since it creates a dependency of the shared library |
| 11259 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 11260 | # don't need to link LIBS explicitly. The default should be only changed |
| 11261 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11262 | |
| 11263 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 11264 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 11265 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11266 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 11267 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11268 | esac |
| 11269 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 11270 | echo "${ECHO_T}$SHLIBS" >&6 |
| 11271 | |
| 11272 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11273 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11274 | |
| 11275 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 11276 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 11277 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 11278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11279 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11280 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11281 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11282 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11283 | /* confdefs.h. */ |
| 11284 | _ACEOF |
| 11285 | cat confdefs.h >>conftest.$ac_ext |
| 11286 | cat >>conftest.$ac_ext <<_ACEOF |
| 11287 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11288 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11289 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11290 | #ifdef __cplusplus |
| 11291 | extern "C" |
| 11292 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11293 | /* 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] | 11294 | builtin and then its argument prototype would still apply. */ |
| 11295 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11296 | int |
| 11297 | main () |
| 11298 | { |
| 11299 | dlopen (); |
| 11300 | ; |
| 11301 | return 0; |
| 11302 | } |
| 11303 | _ACEOF |
| 11304 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11305 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11306 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11307 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11309 | rm -f conftest.er1 |
| 11310 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11312 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11313 | { ac_try='test -z "$ac_c_werror_flag" |
| 11314 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11316 | (eval $ac_try) 2>&5 |
| 11317 | ac_status=$? |
| 11318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11319 | (exit $ac_status); }; } && |
| 11320 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11322 | (eval $ac_try) 2>&5 |
| 11323 | ac_status=$? |
| 11324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11325 | (exit $ac_status); }; }; then |
| 11326 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11327 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11328 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11329 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11330 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11331 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11332 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11333 | rm -f conftest.err conftest.$ac_objext \ |
| 11334 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11335 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11336 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11337 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11338 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 11339 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 11340 | cat >>confdefs.h <<_ACEOF |
| 11341 | #define HAVE_LIBDL 1 |
| 11342 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11343 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11344 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11345 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11346 | fi |
| 11347 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11348 | |
| 11349 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 11350 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 11351 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 11352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11353 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11354 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11355 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11356 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11357 | /* confdefs.h. */ |
| 11358 | _ACEOF |
| 11359 | cat confdefs.h >>conftest.$ac_ext |
| 11360 | cat >>conftest.$ac_ext <<_ACEOF |
| 11361 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11362 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11363 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11364 | #ifdef __cplusplus |
| 11365 | extern "C" |
| 11366 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11367 | /* 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] | 11368 | builtin and then its argument prototype would still apply. */ |
| 11369 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11370 | int |
| 11371 | main () |
| 11372 | { |
| 11373 | shl_load (); |
| 11374 | ; |
| 11375 | return 0; |
| 11376 | } |
| 11377 | _ACEOF |
| 11378 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11379 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11380 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11381 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11383 | rm -f conftest.er1 |
| 11384 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11386 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11387 | { ac_try='test -z "$ac_c_werror_flag" |
| 11388 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11390 | (eval $ac_try) 2>&5 |
| 11391 | ac_status=$? |
| 11392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11393 | (exit $ac_status); }; } && |
| 11394 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11396 | (eval $ac_try) 2>&5 |
| 11397 | ac_status=$? |
| 11398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11399 | (exit $ac_status); }; }; then |
| 11400 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11401 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11402 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11404 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11405 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11406 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11407 | rm -f conftest.err conftest.$ac_objext \ |
| 11408 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11409 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11410 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11411 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 11412 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 11413 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 11414 | cat >>confdefs.h <<_ACEOF |
| 11415 | #define HAVE_LIBDLD 1 |
| 11416 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11417 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11418 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11419 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11420 | fi |
| 11421 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11422 | |
| 11423 | # only check for sem_ini if thread support is requested |
| 11424 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
| 11425 | 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] | 11426 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 11427 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 11429 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11430 | ac_func_search_save_LIBS=$LIBS |
| 11431 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11432 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11433 | /* confdefs.h. */ |
| 11434 | _ACEOF |
| 11435 | cat confdefs.h >>conftest.$ac_ext |
| 11436 | cat >>conftest.$ac_ext <<_ACEOF |
| 11437 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11438 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 11439 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11440 | #ifdef __cplusplus |
| 11441 | extern "C" |
| 11442 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 11443 | /* 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] | 11444 | builtin and then its argument prototype would still apply. */ |
| 11445 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11446 | int |
| 11447 | main () |
| 11448 | { |
| 11449 | sem_init (); |
| 11450 | ; |
| 11451 | return 0; |
| 11452 | } |
| 11453 | _ACEOF |
| 11454 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11455 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11456 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11457 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11458 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11459 | rm -f conftest.er1 |
| 11460 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11462 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11463 | { ac_try='test -z "$ac_c_werror_flag" |
| 11464 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11466 | (eval $ac_try) 2>&5 |
| 11467 | ac_status=$? |
| 11468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11469 | (exit $ac_status); }; } && |
| 11470 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11472 | (eval $ac_try) 2>&5 |
| 11473 | ac_status=$? |
| 11474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11475 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11476 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 11477 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11478 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11480 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 11481 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11482 | rm -f conftest.err conftest.$ac_objext \ |
| 11483 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11484 | if test "$ac_cv_search_sem_init" = no; then |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 11485 | for ac_lib in pthread rt posix4; do |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11486 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11487 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11488 | /* confdefs.h. */ |
| 11489 | _ACEOF |
| 11490 | cat confdefs.h >>conftest.$ac_ext |
| 11491 | cat >>conftest.$ac_ext <<_ACEOF |
| 11492 | /* end confdefs.h. */ |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11493 | |
| 11494 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11495 | #ifdef __cplusplus |
| 11496 | extern "C" |
| 11497 | #endif |
| 11498 | /* We use char because int might match the return type of a gcc2 |
| 11499 | builtin and then its argument prototype would still apply. */ |
| 11500 | char sem_init (); |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11501 | int |
| 11502 | main () |
| 11503 | { |
| 11504 | sem_init (); |
| 11505 | ; |
| 11506 | return 0; |
| 11507 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11508 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11509 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11511 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11512 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11514 | rm -f conftest.er1 |
| 11515 | cat conftest.err >&5 |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11517 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11518 | { ac_try='test -z "$ac_c_werror_flag" |
| 11519 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11521 | (eval $ac_try) 2>&5 |
| 11522 | ac_status=$? |
| 11523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11524 | (exit $ac_status); }; } && |
| 11525 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11527 | (eval $ac_try) 2>&5 |
| 11528 | ac_status=$? |
| 11529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11530 | (exit $ac_status); }; }; then |
| 11531 | ac_cv_search_sem_init="-l$ac_lib" |
| 11532 | break |
| 11533 | else |
| 11534 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11535 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11536 | |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11537 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11538 | rm -f conftest.err conftest.$ac_objext \ |
| 11539 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11540 | done |
| 11541 | fi |
| 11542 | LIBS=$ac_func_search_save_LIBS |
| 11543 | fi |
| 11544 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 11545 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 11546 | if test "$ac_cv_search_sem_init" != no; then |
| 11547 | 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] | 11548 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 11549 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 11550 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11551 | # posix4 on Solaris 2.6 |
| 11552 | # pthread (first!) on Linux |
| 11553 | fi |
| 11554 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11555 | # check if we need libintl for locale functions |
| 11556 | echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 11557 | echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6 |
| 11558 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
| 11559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11560 | else |
| 11561 | ac_check_lib_save_LIBS=$LIBS |
| 11562 | LIBS="-lintl $LIBS" |
| 11563 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11564 | /* confdefs.h. */ |
| 11565 | _ACEOF |
| 11566 | cat confdefs.h >>conftest.$ac_ext |
| 11567 | cat >>conftest.$ac_ext <<_ACEOF |
| 11568 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11569 | |
| 11570 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11571 | #ifdef __cplusplus |
| 11572 | extern "C" |
| 11573 | #endif |
| 11574 | /* We use char because int might match the return type of a gcc2 |
| 11575 | builtin and then its argument prototype would still apply. */ |
| 11576 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11577 | int |
| 11578 | main () |
| 11579 | { |
| 11580 | textdomain (); |
| 11581 | ; |
| 11582 | return 0; |
| 11583 | } |
| 11584 | _ACEOF |
| 11585 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11586 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11587 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11588 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11589 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11590 | rm -f conftest.er1 |
| 11591 | cat conftest.err >&5 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11593 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11594 | { ac_try='test -z "$ac_c_werror_flag" |
| 11595 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +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); }; } && |
| 11601 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11603 | (eval $ac_try) 2>&5 |
| 11604 | ac_status=$? |
| 11605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11606 | (exit $ac_status); }; }; then |
| 11607 | ac_cv_lib_intl_textdomain=yes |
| 11608 | else |
| 11609 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11611 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11612 | ac_cv_lib_intl_textdomain=no |
| 11613 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11614 | rm -f conftest.err conftest.$ac_objext \ |
| 11615 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11616 | LIBS=$ac_check_lib_save_LIBS |
| 11617 | fi |
| 11618 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 11619 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6 |
| 11620 | if test $ac_cv_lib_intl_textdomain = yes; then |
| 11621 | |
| 11622 | cat >>confdefs.h <<\_ACEOF |
| 11623 | #define WITH_LIBINTL 1 |
| 11624 | _ACEOF |
| 11625 | |
| 11626 | fi |
| 11627 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11628 | |
| 11629 | # checks for system dependent C++ extensions support |
| 11630 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11631 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 11632 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 11633 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11634 | /* confdefs.h. */ |
| 11635 | _ACEOF |
| 11636 | cat confdefs.h >>conftest.$ac_ext |
| 11637 | cat >>conftest.$ac_ext <<_ACEOF |
| 11638 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11639 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11640 | int |
| 11641 | main () |
| 11642 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11643 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11644 | ; |
| 11645 | return 0; |
| 11646 | } |
| 11647 | _ACEOF |
| 11648 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11649 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11650 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11651 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11652 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11653 | rm -f conftest.er1 |
| 11654 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11656 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11657 | { ac_try='test -z "$ac_c_werror_flag" |
| 11658 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11660 | (eval $ac_try) 2>&5 |
| 11661 | ac_status=$? |
| 11662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11663 | (exit $ac_status); }; } && |
| 11664 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11666 | (eval $ac_try) 2>&5 |
| 11667 | ac_status=$? |
| 11668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11669 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11670 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11671 | cat >>confdefs.h <<\_ACEOF |
| 11672 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 11673 | _ACEOF |
| 11674 | |
| 11675 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11676 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11677 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11678 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11679 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11680 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11681 | echo "$as_me:$LINENO: result: no" >&5 |
| 11682 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11683 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11684 | rm -f conftest.err conftest.$ac_objext \ |
| 11685 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11686 | *) ;; |
| 11687 | esac |
| 11688 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 11689 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11690 | # BeOS' sockets are stashed in libnet. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11691 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 11692 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 11693 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 11694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11695 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11696 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11697 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11698 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11699 | /* confdefs.h. */ |
| 11700 | _ACEOF |
| 11701 | cat confdefs.h >>conftest.$ac_ext |
| 11702 | cat >>conftest.$ac_ext <<_ACEOF |
| 11703 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11704 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11705 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11706 | #ifdef __cplusplus |
| 11707 | extern "C" |
| 11708 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11709 | /* 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] | 11710 | builtin and then its argument prototype would still apply. */ |
| 11711 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11712 | int |
| 11713 | main () |
| 11714 | { |
| 11715 | t_open (); |
| 11716 | ; |
| 11717 | return 0; |
| 11718 | } |
| 11719 | _ACEOF |
| 11720 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11722 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11723 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11724 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11725 | rm -f conftest.er1 |
| 11726 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11728 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11729 | { ac_try='test -z "$ac_c_werror_flag" |
| 11730 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11732 | (eval $ac_try) 2>&5 |
| 11733 | ac_status=$? |
| 11734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11735 | (exit $ac_status); }; } && |
| 11736 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11738 | (eval $ac_try) 2>&5 |
| 11739 | ac_status=$? |
| 11740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11741 | (exit $ac_status); }; }; then |
| 11742 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11743 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11744 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11746 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11747 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11748 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11749 | rm -f conftest.err conftest.$ac_objext \ |
| 11750 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11751 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11752 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11753 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 11754 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 11755 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11756 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11757 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 11758 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11759 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 11760 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 11761 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 11762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11763 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11764 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11765 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11766 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11767 | /* confdefs.h. */ |
| 11768 | _ACEOF |
| 11769 | cat confdefs.h >>conftest.$ac_ext |
| 11770 | cat >>conftest.$ac_ext <<_ACEOF |
| 11771 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11772 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11773 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11774 | #ifdef __cplusplus |
| 11775 | extern "C" |
| 11776 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11777 | /* 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] | 11778 | builtin and then its argument prototype would still apply. */ |
| 11779 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11780 | int |
| 11781 | main () |
| 11782 | { |
| 11783 | socket (); |
| 11784 | ; |
| 11785 | return 0; |
| 11786 | } |
| 11787 | _ACEOF |
| 11788 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11789 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11790 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11791 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11793 | rm -f conftest.er1 |
| 11794 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11796 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11797 | { ac_try='test -z "$ac_c_werror_flag" |
| 11798 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11800 | (eval $ac_try) 2>&5 |
| 11801 | ac_status=$? |
| 11802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11803 | (exit $ac_status); }; } && |
| 11804 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11806 | (eval $ac_try) 2>&5 |
| 11807 | ac_status=$? |
| 11808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11809 | (exit $ac_status); }; }; then |
| 11810 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11811 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11812 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11813 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11814 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11815 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11816 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11817 | rm -f conftest.err conftest.$ac_objext \ |
| 11818 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11819 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11820 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11821 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 11822 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 11823 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11824 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11825 | fi |
| 11826 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 11827 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 11828 | case "$ac_sys_system" in |
| 11829 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11830 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 11831 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 11832 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 11833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11834 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11835 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11836 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11837 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11838 | /* confdefs.h. */ |
| 11839 | _ACEOF |
| 11840 | cat confdefs.h >>conftest.$ac_ext |
| 11841 | cat >>conftest.$ac_ext <<_ACEOF |
| 11842 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11843 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11844 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11845 | #ifdef __cplusplus |
| 11846 | extern "C" |
| 11847 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11848 | /* 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] | 11849 | builtin and then its argument prototype would still apply. */ |
| 11850 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11851 | int |
| 11852 | main () |
| 11853 | { |
| 11854 | socket (); |
| 11855 | ; |
| 11856 | return 0; |
| 11857 | } |
| 11858 | _ACEOF |
| 11859 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11860 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11861 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11862 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11863 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11864 | rm -f conftest.er1 |
| 11865 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11867 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11868 | { ac_try='test -z "$ac_c_werror_flag" |
| 11869 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11871 | (eval $ac_try) 2>&5 |
| 11872 | ac_status=$? |
| 11873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11874 | (exit $ac_status); }; } && |
| 11875 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11877 | (eval $ac_try) 2>&5 |
| 11878 | ac_status=$? |
| 11879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11880 | (exit $ac_status); }; }; then |
| 11881 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11882 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11883 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11885 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11886 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11887 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11888 | rm -f conftest.err conftest.$ac_objext \ |
| 11889 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11890 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11891 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11892 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 11893 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 11894 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11895 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11896 | fi |
| 11897 | # BeOS |
| 11898 | ;; |
| 11899 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 11900 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11901 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 11902 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 11903 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 11904 | # Check whether --with-libs or --without-libs was given. |
| 11905 | if test "${with_libs+set}" = set; then |
| 11906 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11907 | |
| 11908 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11909 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 11910 | LIBS="$withval $LIBS" |
| 11911 | |
| 11912 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11913 | echo "$as_me:$LINENO: result: no" >&5 |
| 11914 | echo "${ECHO_T}no" >&6 |
| 11915 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11916 | |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 11917 | # Check for use of the system libffi library |
| 11918 | echo "$as_me:$LINENO: checking for --with-system-ffi" >&5 |
| 11919 | echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6 |
| 11920 | |
| 11921 | # Check whether --with-system_ffi or --without-system_ffi was given. |
| 11922 | if test "${with_system_ffi+set}" = set; then |
| 11923 | withval="$with_system_ffi" |
| 11924 | |
| 11925 | fi; |
| 11926 | |
| 11927 | if test -z "$with_system_ffi" |
| 11928 | then with_system_ffi="no" |
| 11929 | fi |
| 11930 | echo "$as_me:$LINENO: result: $with_system_ffi" >&5 |
| 11931 | echo "${ECHO_T}$with_system_ffi" >&6 |
| 11932 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11933 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11934 | |
| 11935 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11936 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 11937 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 11938 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11939 | # Check whether --with-signal-module or --without-signal-module was given. |
| 11940 | if test "${with_signal_module+set}" = set; then |
| 11941 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11942 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11943 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11944 | |
| 11945 | if test -z "$with_signal_module" |
| 11946 | then with_signal_module="yes" |
| 11947 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11948 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 11949 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11950 | |
| 11951 | if test "${with_signal_module}" = "yes"; then |
| 11952 | USE_SIGNAL_MODULE="" |
| 11953 | SIGNAL_OBJS="" |
| 11954 | else |
| 11955 | USE_SIGNAL_MODULE="#" |
| 11956 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 11957 | fi |
| 11958 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 11959 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 11960 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11961 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 11962 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11963 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 11964 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 11965 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11966 | |
| 11967 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 11968 | if test "${with_dec_threads+set}" = set; then |
| 11969 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11970 | |
| 11971 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11972 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11973 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 11974 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11975 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 11976 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11977 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11978 | echo "$as_me:$LINENO: result: no" >&5 |
| 11979 | echo "${ECHO_T}no" >&6 |
| 11980 | fi; |
| 11981 | |
| 11982 | # Templates for things AC_DEFINEd more than once. |
| 11983 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11984 | |
| 11985 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11986 | |
| 11987 | |
| 11988 | |
| 11989 | |
| 11990 | |
| 11991 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 11992 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 11993 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11994 | # Check whether --with-threads or --without-threads was given. |
| 11995 | if test "${with_threads+set}" = set; then |
| 11996 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11997 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11998 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11999 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 12000 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12001 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12002 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12003 | if test "${with_thread+set}" = set; then |
| 12004 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 12005 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12006 | fi; |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 12007 | |
| 12008 | if test -z "$with_threads" |
| 12009 | then with_threads="yes" |
| 12010 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12011 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 12012 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 12013 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12014 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 12015 | if test "$with_threads" = "no" |
| 12016 | then |
| 12017 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12018 | elif test "$ac_cv_pthread_is_default" = yes |
| 12019 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12020 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12021 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12022 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12023 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12024 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12025 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12026 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12027 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12028 | |
| 12029 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12030 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12031 | elif test "$ac_cv_kpthread" = "yes" |
| 12032 | then |
| 12033 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 12034 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 12035 | CXX="$CXX -Kpthread" |
| 12036 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12037 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 12038 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12039 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 12040 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12041 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12042 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 12043 | elif test "$ac_cv_kthread" = "yes" |
| 12044 | then |
| 12045 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 12046 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 12047 | CXX="$CXX -Kthread" |
| 12048 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 12049 | cat >>confdefs.h <<\_ACEOF |
| 12050 | #define WITH_THREAD 1 |
| 12051 | _ACEOF |
| 12052 | |
| 12053 | posix_threads=yes |
| 12054 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12055 | elif test "$ac_cv_pthread" = "yes" |
| 12056 | then |
| 12057 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 12058 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 12059 | CXX="$CXX -pthread" |
| 12060 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12061 | cat >>confdefs.h <<\_ACEOF |
| 12062 | #define WITH_THREAD 1 |
| 12063 | _ACEOF |
| 12064 | |
| 12065 | posix_threads=yes |
| 12066 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12067 | else |
| 12068 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 12069 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 12070 | fi |
| 12071 | if test ! -z "$withval" -a -d "$withval" |
| 12072 | then LDFLAGS="$LDFLAGS -L$withval" |
| 12073 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 12074 | |
| 12075 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 12076 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 12077 | # (e.g. gnu pth with pthread emulation) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12078 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 12079 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 12080 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12081 | /* confdefs.h. */ |
| 12082 | _ACEOF |
| 12083 | cat confdefs.h >>conftest.$ac_ext |
| 12084 | cat >>conftest.$ac_ext <<_ACEOF |
| 12085 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 12086 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 12087 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 12088 | #ifdef _POSIX_THREADS |
| 12089 | yes |
| 12090 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12091 | |
| 12092 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 12093 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12094 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 12095 | unistd_defines_pthreads=yes |
| 12096 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 12097 | unistd_defines_pthreads=no |
| 12098 | fi |
| 12099 | rm -f conftest* |
| 12100 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12101 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 12102 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 12103 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12104 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 12105 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12106 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 12107 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12108 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 12109 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 12110 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 12111 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 12112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12113 | fi |
| 12114 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 12115 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12116 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12117 | # Is the header compilable? |
| 12118 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 12119 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 12120 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12121 | /* confdefs.h. */ |
| 12122 | _ACEOF |
| 12123 | cat confdefs.h >>conftest.$ac_ext |
| 12124 | cat >>conftest.$ac_ext <<_ACEOF |
| 12125 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12126 | $ac_includes_default |
| 12127 | #include <cthreads.h> |
| 12128 | _ACEOF |
| 12129 | rm -f conftest.$ac_objext |
| 12130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12131 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12132 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12133 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12134 | rm -f conftest.er1 |
| 12135 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12137 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12138 | { ac_try='test -z "$ac_c_werror_flag" |
| 12139 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12141 | (eval $ac_try) 2>&5 |
| 12142 | ac_status=$? |
| 12143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12144 | (exit $ac_status); }; } && |
| 12145 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12147 | (eval $ac_try) 2>&5 |
| 12148 | ac_status=$? |
| 12149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12150 | (exit $ac_status); }; }; then |
| 12151 | ac_header_compiler=yes |
| 12152 | else |
| 12153 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12155 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12156 | ac_header_compiler=no |
| 12157 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12158 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12159 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12160 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12161 | |
| 12162 | # Is the header present? |
| 12163 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 12164 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 12165 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12166 | /* confdefs.h. */ |
| 12167 | _ACEOF |
| 12168 | cat confdefs.h >>conftest.$ac_ext |
| 12169 | cat >>conftest.$ac_ext <<_ACEOF |
| 12170 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12171 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12172 | _ACEOF |
| 12173 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12174 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12175 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12176 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12177 | rm -f conftest.er1 |
| 12178 | cat conftest.err >&5 |
| 12179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12180 | (exit $ac_status); } >/dev/null; then |
| 12181 | if test -s conftest.err; then |
| 12182 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12183 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12184 | else |
| 12185 | ac_cpp_err= |
| 12186 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12187 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12188 | ac_cpp_err=yes |
| 12189 | fi |
| 12190 | if test -z "$ac_cpp_err"; then |
| 12191 | ac_header_preproc=yes |
| 12192 | else |
| 12193 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12194 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12195 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12196 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12197 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12198 | rm -f conftest.err conftest.$ac_ext |
| 12199 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12200 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12201 | |
| 12202 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12203 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12204 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12205 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12206 | 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] | 12207 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 12208 | echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;} |
| 12209 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12210 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12211 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12212 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 12213 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12214 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 12215 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 12216 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 12217 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 12218 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12219 | 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] | 12220 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 12221 | 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] | 12222 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 12223 | 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] | 12224 | ( |
| 12225 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 12226 | ## ------------------------------------------------ ## |
| 12227 | ## Report this to http://www.python.org/python-bugs ## |
| 12228 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12229 | _ASBOX |
| 12230 | ) | |
| 12231 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12232 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12233 | esac |
| 12234 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 12235 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 12236 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 12237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12238 | else |
| 12239 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12240 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12241 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 12242 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 12243 | |
| 12244 | fi |
| 12245 | if test $ac_cv_header_cthreads_h = yes; then |
| 12246 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12247 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12248 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12249 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12250 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12251 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12252 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12253 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12254 | |
| 12255 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12256 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12257 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12258 | |
| 12259 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12260 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12261 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12262 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12263 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 12264 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 12265 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 12266 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 12267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12268 | fi |
| 12269 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 12270 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12271 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12272 | # Is the header compilable? |
| 12273 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 12274 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 12275 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12276 | /* confdefs.h. */ |
| 12277 | _ACEOF |
| 12278 | cat confdefs.h >>conftest.$ac_ext |
| 12279 | cat >>conftest.$ac_ext <<_ACEOF |
| 12280 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12281 | $ac_includes_default |
| 12282 | #include <mach/cthreads.h> |
| 12283 | _ACEOF |
| 12284 | rm -f conftest.$ac_objext |
| 12285 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12286 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12287 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12289 | rm -f conftest.er1 |
| 12290 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12292 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12293 | { ac_try='test -z "$ac_c_werror_flag" |
| 12294 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12296 | (eval $ac_try) 2>&5 |
| 12297 | ac_status=$? |
| 12298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12299 | (exit $ac_status); }; } && |
| 12300 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12302 | (eval $ac_try) 2>&5 |
| 12303 | ac_status=$? |
| 12304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12305 | (exit $ac_status); }; }; then |
| 12306 | ac_header_compiler=yes |
| 12307 | else |
| 12308 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12310 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12311 | ac_header_compiler=no |
| 12312 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12313 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12314 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12315 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12316 | |
| 12317 | # Is the header present? |
| 12318 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 12319 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 12320 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12321 | /* confdefs.h. */ |
| 12322 | _ACEOF |
| 12323 | cat confdefs.h >>conftest.$ac_ext |
| 12324 | cat >>conftest.$ac_ext <<_ACEOF |
| 12325 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12326 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12327 | _ACEOF |
| 12328 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12329 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12330 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12331 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12332 | rm -f conftest.er1 |
| 12333 | cat conftest.err >&5 |
| 12334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12335 | (exit $ac_status); } >/dev/null; then |
| 12336 | if test -s conftest.err; then |
| 12337 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12338 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12339 | else |
| 12340 | ac_cpp_err= |
| 12341 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12342 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12343 | ac_cpp_err=yes |
| 12344 | fi |
| 12345 | if test -z "$ac_cpp_err"; then |
| 12346 | ac_header_preproc=yes |
| 12347 | else |
| 12348 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12349 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12350 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12351 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12352 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12353 | rm -f conftest.err conftest.$ac_ext |
| 12354 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12355 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12356 | |
| 12357 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12358 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12359 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12360 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12361 | 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] | 12362 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 12363 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;} |
| 12364 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12365 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12366 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12367 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 12368 | 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] | 12369 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 12370 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 12371 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 12372 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 12373 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12374 | 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] | 12375 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 12376 | 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] | 12377 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 12378 | 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] | 12379 | ( |
| 12380 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 12381 | ## ------------------------------------------------ ## |
| 12382 | ## Report this to http://www.python.org/python-bugs ## |
| 12383 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12384 | _ASBOX |
| 12385 | ) | |
| 12386 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12387 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12388 | esac |
| 12389 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 12390 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 12391 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 12392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12393 | else |
| 12394 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12395 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12396 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 12397 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 12398 | |
| 12399 | fi |
| 12400 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 12401 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12402 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12403 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12404 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12405 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12406 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12407 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12408 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12409 | |
| 12410 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12411 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12412 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12413 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12414 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12415 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12416 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12417 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 12418 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 12419 | |
| 12420 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 12421 | if test "${with_pth+set}" = set; then |
| 12422 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 12423 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12424 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 12425 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12426 | #define WITH_THREAD 1 |
| 12427 | _ACEOF |
| 12428 | |
| 12429 | |
| 12430 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 12431 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12432 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 12433 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 12434 | LIBS="-lpth $LIBS" |
| 12435 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 12436 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 12437 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12438 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 12439 | |
| 12440 | # Just looking for pthread_create in libpthread is not enough: |
| 12441 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 12442 | # So we really have to include pthread.h, and then link. |
| 12443 | _libs=$LIBS |
| 12444 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12445 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 12446 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 12447 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12448 | /* confdefs.h. */ |
| 12449 | _ACEOF |
| 12450 | cat confdefs.h >>conftest.$ac_ext |
| 12451 | cat >>conftest.$ac_ext <<_ACEOF |
| 12452 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 12453 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 12454 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 12455 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12456 | int |
| 12457 | main () |
| 12458 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 12459 | |
| 12460 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12461 | ; |
| 12462 | return 0; |
| 12463 | } |
| 12464 | _ACEOF |
| 12465 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12467 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12468 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12469 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12470 | rm -f conftest.er1 |
| 12471 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12473 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12474 | { ac_try='test -z "$ac_c_werror_flag" |
| 12475 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12477 | (eval $ac_try) 2>&5 |
| 12478 | ac_status=$? |
| 12479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12480 | (exit $ac_status); }; } && |
| 12481 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12483 | (eval $ac_try) 2>&5 |
| 12484 | ac_status=$? |
| 12485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12486 | (exit $ac_status); }; }; then |
| 12487 | |
| 12488 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12489 | echo "${ECHO_T}yes" >&6 |
| 12490 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 12491 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12492 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 12493 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 12494 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12495 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 12496 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12497 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12499 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12500 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 12501 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12502 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 12503 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 12504 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 12505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12506 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12507 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12508 | /* confdefs.h. */ |
| 12509 | _ACEOF |
| 12510 | cat confdefs.h >>conftest.$ac_ext |
| 12511 | cat >>conftest.$ac_ext <<_ACEOF |
| 12512 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 12513 | /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach. |
| 12514 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12515 | #define pthread_detach innocuous_pthread_detach |
| 12516 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12517 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12518 | which can conflict with char pthread_detach (); below. |
| 12519 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 12520 | <limits.h> exists even on freestanding compilers. */ |
| 12521 | |
| 12522 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12523 | # include <limits.h> |
| 12524 | #else |
| 12525 | # include <assert.h> |
| 12526 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 12527 | |
| 12528 | #undef pthread_detach |
| 12529 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12530 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12531 | #ifdef __cplusplus |
| 12532 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12533 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12534 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12535 | /* 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] | 12536 | builtin and then its argument prototype would still apply. */ |
| 12537 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12538 | /* The GNU C library defines this for functions which it implements |
| 12539 | to always fail with ENOSYS. Some functions are actually named |
| 12540 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 12541 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12542 | choke me |
| 12543 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12544 | char (*f) () = pthread_detach; |
| 12545 | #endif |
| 12546 | #ifdef __cplusplus |
| 12547 | } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12548 | #endif |
| 12549 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12550 | int |
| 12551 | main () |
| 12552 | { |
| 12553 | return f != pthread_detach; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12554 | ; |
| 12555 | return 0; |
| 12556 | } |
| 12557 | _ACEOF |
| 12558 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12559 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12560 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12561 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12563 | rm -f conftest.er1 |
| 12564 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12566 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12567 | { ac_try='test -z "$ac_c_werror_flag" |
| 12568 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12570 | (eval $ac_try) 2>&5 |
| 12571 | ac_status=$? |
| 12572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12573 | (exit $ac_status); }; } && |
| 12574 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12576 | (eval $ac_try) 2>&5 |
| 12577 | ac_status=$? |
| 12578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12579 | (exit $ac_status); }; }; then |
| 12580 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12581 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12582 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12585 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12586 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12587 | rm -f conftest.err conftest.$ac_objext \ |
| 12588 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12589 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12590 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 12591 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 12592 | if test $ac_cv_func_pthread_detach = yes; then |
| 12593 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12594 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12595 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12596 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 12597 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12598 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12599 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12600 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12601 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 12602 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 12603 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 12604 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 12605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12606 | fi |
| 12607 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 12608 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 12609 | else |
| 12610 | # Is the header compilable? |
| 12611 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 12612 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 12613 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12614 | /* confdefs.h. */ |
| 12615 | _ACEOF |
| 12616 | cat confdefs.h >>conftest.$ac_ext |
| 12617 | cat >>conftest.$ac_ext <<_ACEOF |
| 12618 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12619 | $ac_includes_default |
| 12620 | #include <atheos/threads.h> |
| 12621 | _ACEOF |
| 12622 | rm -f conftest.$ac_objext |
| 12623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12624 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12625 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12626 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12627 | rm -f conftest.er1 |
| 12628 | cat conftest.err >&5 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12630 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12631 | { ac_try='test -z "$ac_c_werror_flag" |
| 12632 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12634 | (eval $ac_try) 2>&5 |
| 12635 | ac_status=$? |
| 12636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12637 | (exit $ac_status); }; } && |
| 12638 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12640 | (eval $ac_try) 2>&5 |
| 12641 | ac_status=$? |
| 12642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12643 | (exit $ac_status); }; }; then |
| 12644 | ac_header_compiler=yes |
| 12645 | else |
| 12646 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12648 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12649 | ac_header_compiler=no |
| 12650 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12651 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12652 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12653 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12654 | |
| 12655 | # Is the header present? |
| 12656 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 12657 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 12658 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12659 | /* confdefs.h. */ |
| 12660 | _ACEOF |
| 12661 | cat confdefs.h >>conftest.$ac_ext |
| 12662 | cat >>conftest.$ac_ext <<_ACEOF |
| 12663 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12664 | #include <atheos/threads.h> |
| 12665 | _ACEOF |
| 12666 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12667 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12668 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12669 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12670 | rm -f conftest.er1 |
| 12671 | cat conftest.err >&5 |
| 12672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12673 | (exit $ac_status); } >/dev/null; then |
| 12674 | if test -s conftest.err; then |
| 12675 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12676 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12677 | else |
| 12678 | ac_cpp_err= |
| 12679 | fi |
| 12680 | else |
| 12681 | ac_cpp_err=yes |
| 12682 | fi |
| 12683 | if test -z "$ac_cpp_err"; then |
| 12684 | ac_header_preproc=yes |
| 12685 | else |
| 12686 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12688 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12689 | ac_header_preproc=no |
| 12690 | fi |
| 12691 | rm -f conftest.err conftest.$ac_ext |
| 12692 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12693 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12694 | |
| 12695 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12696 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12697 | yes:no: ) |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12698 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12699 | 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] | 12700 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 12701 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;} |
| 12702 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12703 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12704 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12705 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 12706 | 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] | 12707 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 12708 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 12709 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 12710 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 12711 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12712 | 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] | 12713 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 12714 | 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] | 12715 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 12716 | 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] | 12717 | ( |
| 12718 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 12719 | ## ------------------------------------------------ ## |
| 12720 | ## Report this to http://www.python.org/python-bugs ## |
| 12721 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12722 | _ASBOX |
| 12723 | ) | |
| 12724 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12725 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12726 | esac |
| 12727 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 12728 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 12729 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 12730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12731 | else |
| 12732 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 12733 | fi |
| 12734 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 12735 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 12736 | |
| 12737 | fi |
| 12738 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 12739 | cat >>confdefs.h <<\_ACEOF |
| 12740 | #define WITH_THREAD 1 |
| 12741 | _ACEOF |
| 12742 | |
| 12743 | |
| 12744 | cat >>confdefs.h <<\_ACEOF |
| 12745 | #define ATHEOS_THREADS 1 |
| 12746 | _ACEOF |
| 12747 | |
| 12748 | THREADOBJ="Python/thread.o" |
| 12749 | else |
| 12750 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12751 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 12752 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 12753 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 12754 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 12755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12756 | fi |
| 12757 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 12758 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12759 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12760 | # Is the header compilable? |
| 12761 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 12762 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 12763 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12764 | /* confdefs.h. */ |
| 12765 | _ACEOF |
| 12766 | cat confdefs.h >>conftest.$ac_ext |
| 12767 | cat >>conftest.$ac_ext <<_ACEOF |
| 12768 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12769 | $ac_includes_default |
| 12770 | #include <kernel/OS.h> |
| 12771 | _ACEOF |
| 12772 | rm -f conftest.$ac_objext |
| 12773 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12774 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12775 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12777 | rm -f conftest.er1 |
| 12778 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12780 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12781 | { ac_try='test -z "$ac_c_werror_flag" |
| 12782 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12784 | (eval $ac_try) 2>&5 |
| 12785 | ac_status=$? |
| 12786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12787 | (exit $ac_status); }; } && |
| 12788 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12790 | (eval $ac_try) 2>&5 |
| 12791 | ac_status=$? |
| 12792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12793 | (exit $ac_status); }; }; then |
| 12794 | ac_header_compiler=yes |
| 12795 | else |
| 12796 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12798 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12799 | ac_header_compiler=no |
| 12800 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12801 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12802 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12803 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12804 | |
| 12805 | # Is the header present? |
| 12806 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 12807 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 12808 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12809 | /* confdefs.h. */ |
| 12810 | _ACEOF |
| 12811 | cat confdefs.h >>conftest.$ac_ext |
| 12812 | cat >>conftest.$ac_ext <<_ACEOF |
| 12813 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12814 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12815 | _ACEOF |
| 12816 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12817 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12818 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12819 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12820 | rm -f conftest.er1 |
| 12821 | cat conftest.err >&5 |
| 12822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12823 | (exit $ac_status); } >/dev/null; then |
| 12824 | if test -s conftest.err; then |
| 12825 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12826 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12827 | else |
| 12828 | ac_cpp_err= |
| 12829 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12830 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12831 | ac_cpp_err=yes |
| 12832 | fi |
| 12833 | if test -z "$ac_cpp_err"; then |
| 12834 | ac_header_preproc=yes |
| 12835 | else |
| 12836 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12837 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12838 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12839 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12840 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12841 | rm -f conftest.err conftest.$ac_ext |
| 12842 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12843 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12844 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12845 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12846 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12847 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12848 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12849 | 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] | 12850 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| 12851 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;} |
| 12852 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12853 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12854 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12855 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 12856 | 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] | 12857 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 12858 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 12859 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| 12860 | echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| 12861 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12862 | 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] | 12863 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 12864 | 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] | 12865 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| 12866 | 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] | 12867 | ( |
| 12868 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 12869 | ## ------------------------------------------------ ## |
| 12870 | ## Report this to http://www.python.org/python-bugs ## |
| 12871 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12872 | _ASBOX |
| 12873 | ) | |
| 12874 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12875 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12876 | esac |
| 12877 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 12878 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 12879 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 12880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12881 | else |
| 12882 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 12883 | fi |
| 12884 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 12885 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 12886 | |
| 12887 | fi |
| 12888 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 12889 | cat >>confdefs.h <<\_ACEOF |
| 12890 | #define WITH_THREAD 1 |
| 12891 | _ACEOF |
| 12892 | |
| 12893 | |
| 12894 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12895 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12896 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12897 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12898 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12899 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12900 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12901 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 12902 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 12903 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 12904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12905 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12906 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12907 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12908 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12909 | /* confdefs.h. */ |
| 12910 | _ACEOF |
| 12911 | cat confdefs.h >>conftest.$ac_ext |
| 12912 | cat >>conftest.$ac_ext <<_ACEOF |
| 12913 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12914 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12915 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12916 | #ifdef __cplusplus |
| 12917 | extern "C" |
| 12918 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12919 | /* 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] | 12920 | builtin and then its argument prototype would still apply. */ |
| 12921 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12922 | int |
| 12923 | main () |
| 12924 | { |
| 12925 | pthread_create (); |
| 12926 | ; |
| 12927 | return 0; |
| 12928 | } |
| 12929 | _ACEOF |
| 12930 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12931 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12932 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12933 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12935 | rm -f conftest.er1 |
| 12936 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12938 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12939 | { ac_try='test -z "$ac_c_werror_flag" |
| 12940 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12942 | (eval $ac_try) 2>&5 |
| 12943 | ac_status=$? |
| 12944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12945 | (exit $ac_status); }; } && |
| 12946 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12948 | (eval $ac_try) 2>&5 |
| 12949 | ac_status=$? |
| 12950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12951 | (exit $ac_status); }; }; then |
| 12952 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12953 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12954 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12957 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12958 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12959 | rm -f conftest.err conftest.$ac_objext \ |
| 12960 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12961 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12962 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12963 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 12964 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 12965 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 12966 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12967 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12968 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12969 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12970 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12971 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12972 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12973 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12974 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12975 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 12976 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 12977 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 12978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12979 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12980 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12981 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12982 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12983 | /* confdefs.h. */ |
| 12984 | _ACEOF |
| 12985 | cat confdefs.h >>conftest.$ac_ext |
| 12986 | cat >>conftest.$ac_ext <<_ACEOF |
| 12987 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12988 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12989 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12990 | #ifdef __cplusplus |
| 12991 | extern "C" |
| 12992 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12993 | /* 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] | 12994 | builtin and then its argument prototype would still apply. */ |
| 12995 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12996 | int |
| 12997 | main () |
| 12998 | { |
| 12999 | pthread_create (); |
| 13000 | ; |
| 13001 | return 0; |
| 13002 | } |
| 13003 | _ACEOF |
| 13004 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13006 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13007 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13008 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13009 | rm -f conftest.er1 |
| 13010 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13012 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13013 | { ac_try='test -z "$ac_c_werror_flag" |
| 13014 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13016 | (eval $ac_try) 2>&5 |
| 13017 | ac_status=$? |
| 13018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13019 | (exit $ac_status); }; } && |
| 13020 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13022 | (eval $ac_try) 2>&5 |
| 13023 | ac_status=$? |
| 13024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13025 | (exit $ac_status); }; }; then |
| 13026 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 13027 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13028 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13030 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13031 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 13032 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13033 | rm -f conftest.err conftest.$ac_objext \ |
| 13034 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13035 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 13036 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13037 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 13038 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 13039 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 13040 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 13041 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13042 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 13043 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13044 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13045 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13046 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 13047 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 13048 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13049 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 13050 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 13051 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 13052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13053 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13054 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13055 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13056 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13057 | /* confdefs.h. */ |
| 13058 | _ACEOF |
| 13059 | cat confdefs.h >>conftest.$ac_ext |
| 13060 | cat >>conftest.$ac_ext <<_ACEOF |
| 13061 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13062 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13063 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13064 | #ifdef __cplusplus |
| 13065 | extern "C" |
| 13066 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13067 | /* 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] | 13068 | builtin and then its argument prototype would still apply. */ |
| 13069 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13070 | int |
| 13071 | main () |
| 13072 | { |
| 13073 | __pthread_create_system (); |
| 13074 | ; |
| 13075 | return 0; |
| 13076 | } |
| 13077 | _ACEOF |
| 13078 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13079 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13080 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13081 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13083 | rm -f conftest.er1 |
| 13084 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13086 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13087 | { ac_try='test -z "$ac_c_werror_flag" |
| 13088 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13090 | (eval $ac_try) 2>&5 |
| 13091 | ac_status=$? |
| 13092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13093 | (exit $ac_status); }; } && |
| 13094 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13096 | (eval $ac_try) 2>&5 |
| 13097 | ac_status=$? |
| 13098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13099 | (exit $ac_status); }; }; then |
| 13100 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13101 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13102 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13104 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13105 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13106 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13107 | rm -f conftest.err conftest.$ac_objext \ |
| 13108 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13109 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13110 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13111 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 13112 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 13113 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 13114 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13115 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13116 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13117 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13118 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13119 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13120 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13121 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13122 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13123 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 13124 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 13125 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 13126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13127 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13128 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13129 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13130 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13131 | /* confdefs.h. */ |
| 13132 | _ACEOF |
| 13133 | cat confdefs.h >>conftest.$ac_ext |
| 13134 | cat >>conftest.$ac_ext <<_ACEOF |
| 13135 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13136 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13137 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13138 | #ifdef __cplusplus |
| 13139 | extern "C" |
| 13140 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13141 | /* 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] | 13142 | builtin and then its argument prototype would still apply. */ |
| 13143 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13144 | int |
| 13145 | main () |
| 13146 | { |
| 13147 | pthread_create (); |
| 13148 | ; |
| 13149 | return 0; |
| 13150 | } |
| 13151 | _ACEOF |
| 13152 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13153 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13154 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13155 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13156 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13157 | rm -f conftest.er1 |
| 13158 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13160 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13161 | { ac_try='test -z "$ac_c_werror_flag" |
| 13162 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13164 | (eval $ac_try) 2>&5 |
| 13165 | ac_status=$? |
| 13166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13167 | (exit $ac_status); }; } && |
| 13168 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13170 | (eval $ac_try) 2>&5 |
| 13171 | ac_status=$? |
| 13172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13173 | (exit $ac_status); }; }; then |
| 13174 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13175 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13176 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13178 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13179 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13180 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13181 | rm -f conftest.err conftest.$ac_objext \ |
| 13182 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13183 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13184 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13185 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 13186 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 13187 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 13188 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13189 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13190 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13191 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13192 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13193 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13194 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13195 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 13196 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13197 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 13198 | fi |
| 13199 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13200 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13201 | fi |
| 13202 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 13203 | fi |
| 13204 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 13205 | fi |
| 13206 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13207 | fi |
| 13208 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 13209 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13210 | fi |
| 13211 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13212 | |
| 13213 | fi |
| 13214 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13215 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13216 | rm -f conftest.err conftest.$ac_objext \ |
| 13217 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13218 | fi; |
| 13219 | fi |
| 13220 | |
| 13221 | |
| 13222 | fi |
| 13223 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13224 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13225 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13226 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 13227 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 13228 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 13229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13230 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13231 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13232 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13233 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13234 | /* confdefs.h. */ |
| 13235 | _ACEOF |
| 13236 | cat confdefs.h >>conftest.$ac_ext |
| 13237 | cat >>conftest.$ac_ext <<_ACEOF |
| 13238 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13239 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13240 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13241 | #ifdef __cplusplus |
| 13242 | extern "C" |
| 13243 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13244 | /* 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] | 13245 | builtin and then its argument prototype would still apply. */ |
| 13246 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13247 | int |
| 13248 | main () |
| 13249 | { |
| 13250 | usconfig (); |
| 13251 | ; |
| 13252 | return 0; |
| 13253 | } |
| 13254 | _ACEOF |
| 13255 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13256 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13257 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13258 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13260 | rm -f conftest.er1 |
| 13261 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13263 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13264 | { ac_try='test -z "$ac_c_werror_flag" |
| 13265 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13267 | (eval $ac_try) 2>&5 |
| 13268 | ac_status=$? |
| 13269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13270 | (exit $ac_status); }; } && |
| 13271 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13273 | (eval $ac_try) 2>&5 |
| 13274 | ac_status=$? |
| 13275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13276 | (exit $ac_status); }; }; then |
| 13277 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13278 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13279 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13281 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13282 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13283 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13284 | rm -f conftest.err conftest.$ac_objext \ |
| 13285 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13286 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13287 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13288 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 13289 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 13290 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 13291 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13292 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13293 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13294 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13295 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13296 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13297 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13298 | fi |
| 13299 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 13300 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 13301 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13302 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 13303 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 13304 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 13305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13306 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13307 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13308 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13309 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13310 | /* confdefs.h. */ |
| 13311 | _ACEOF |
| 13312 | cat confdefs.h >>conftest.$ac_ext |
| 13313 | cat >>conftest.$ac_ext <<_ACEOF |
| 13314 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13315 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13316 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13317 | #ifdef __cplusplus |
| 13318 | extern "C" |
| 13319 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13320 | /* 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] | 13321 | builtin and then its argument prototype would still apply. */ |
| 13322 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13323 | int |
| 13324 | main () |
| 13325 | { |
| 13326 | thr_create (); |
| 13327 | ; |
| 13328 | return 0; |
| 13329 | } |
| 13330 | _ACEOF |
| 13331 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13332 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13333 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13334 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13335 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13336 | rm -f conftest.er1 |
| 13337 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13339 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13340 | { ac_try='test -z "$ac_c_werror_flag" |
| 13341 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13343 | (eval $ac_try) 2>&5 |
| 13344 | ac_status=$? |
| 13345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13346 | (exit $ac_status); }; } && |
| 13347 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13349 | (eval $ac_try) 2>&5 |
| 13350 | ac_status=$? |
| 13351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13352 | (exit $ac_status); }; }; then |
| 13353 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13354 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13355 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13357 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13358 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13359 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13360 | rm -f conftest.err conftest.$ac_objext \ |
| 13361 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13362 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13363 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13364 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 13365 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 13366 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 13367 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13368 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13369 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13370 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 13371 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13372 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 13373 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13374 | fi |
| 13375 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 13376 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13377 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13378 | if test "$USE_THREAD_MODULE" != "#" |
| 13379 | then |
| 13380 | # If the above checks didn't disable threads, (at least) OSF1 |
| 13381 | # needs this '-threads' argument during linking. |
| 13382 | case $ac_sys_system in |
| 13383 | OSF1) LDLAST=-threads;; |
| 13384 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 13385 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13386 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 13387 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13388 | if test "$posix_threads" = "yes"; then |
| 13389 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 13390 | |
| 13391 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13392 | #define _POSIX_THREADS 1 |
| 13393 | _ACEOF |
| 13394 | |
| 13395 | fi |
| 13396 | |
| 13397 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 13398 | case $ac_sys_system/$ac_sys_release in |
| 13399 | SunOS/5.6) |
| 13400 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 13401 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 13402 | _ACEOF |
| 13403 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13404 | ;; |
| 13405 | SunOS/5.8) |
| 13406 | cat >>confdefs.h <<\_ACEOF |
| 13407 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 13408 | _ACEOF |
| 13409 | |
| 13410 | ;; |
| 13411 | esac |
| 13412 | |
| 13413 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 13414 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 13415 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 13416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13417 | else |
| 13418 | if test "$cross_compiling" = yes; then |
| 13419 | ac_cv_pthread_system_supported=no |
| 13420 | else |
| 13421 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13422 | /* confdefs.h. */ |
| 13423 | _ACEOF |
| 13424 | cat confdefs.h >>conftest.$ac_ext |
| 13425 | cat >>conftest.$ac_ext <<_ACEOF |
| 13426 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13427 | #include <pthread.h> |
| 13428 | void *foo(void *parm) { |
| 13429 | return NULL; |
| 13430 | } |
| 13431 | main() { |
| 13432 | pthread_attr_t attr; |
| 13433 | pthread_t id; |
| 13434 | if (pthread_attr_init(&attr)) exit(-1); |
| 13435 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 13436 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 13437 | exit(0); |
| 13438 | } |
| 13439 | _ACEOF |
| 13440 | rm -f conftest$ac_exeext |
| 13441 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13442 | (eval $ac_link) 2>&5 |
| 13443 | ac_status=$? |
| 13444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13445 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13447 | (eval $ac_try) 2>&5 |
| 13448 | ac_status=$? |
| 13449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13450 | (exit $ac_status); }; }; then |
| 13451 | ac_cv_pthread_system_supported=yes |
| 13452 | else |
| 13453 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13454 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13456 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13457 | ( exit $ac_status ) |
| 13458 | ac_cv_pthread_system_supported=no |
| 13459 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13460 | 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] | 13461 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 13462 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13463 | fi |
| 13464 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13465 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 13466 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
| 13467 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 13468 | |
| 13469 | cat >>confdefs.h <<\_ACEOF |
| 13470 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 13471 | _ACEOF |
| 13472 | |
| 13473 | fi |
| 13474 | |
| 13475 | for ac_func in pthread_sigmask |
| 13476 | do |
| 13477 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13478 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13479 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13480 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13482 | else |
| 13483 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13484 | /* confdefs.h. */ |
| 13485 | _ACEOF |
| 13486 | cat confdefs.h >>conftest.$ac_ext |
| 13487 | cat >>conftest.$ac_ext <<_ACEOF |
| 13488 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13489 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13490 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13491 | #define $ac_func innocuous_$ac_func |
| 13492 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13493 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13494 | which can conflict with char $ac_func (); below. |
| 13495 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13496 | <limits.h> exists even on freestanding compilers. */ |
| 13497 | |
| 13498 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13499 | # include <limits.h> |
| 13500 | #else |
| 13501 | # include <assert.h> |
| 13502 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13503 | |
| 13504 | #undef $ac_func |
| 13505 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13506 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13507 | #ifdef __cplusplus |
| 13508 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13509 | { |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13510 | #endif |
| 13511 | /* We use char because int might match the return type of a gcc2 |
| 13512 | builtin and then its argument prototype would still apply. */ |
| 13513 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13514 | /* The GNU C library defines this for functions which it implements |
| 13515 | to always fail with ENOSYS. Some functions are actually named |
| 13516 | something starting with __ and the normal name is an alias. */ |
| 13517 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13518 | choke me |
| 13519 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13520 | char (*f) () = $ac_func; |
| 13521 | #endif |
| 13522 | #ifdef __cplusplus |
| 13523 | } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13524 | #endif |
| 13525 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13526 | int |
| 13527 | main () |
| 13528 | { |
| 13529 | return f != $ac_func; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13530 | ; |
| 13531 | return 0; |
| 13532 | } |
| 13533 | _ACEOF |
| 13534 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13536 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13537 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13538 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13539 | rm -f conftest.er1 |
| 13540 | cat conftest.err >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13542 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13543 | { ac_try='test -z "$ac_c_werror_flag" |
| 13544 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13546 | (eval $ac_try) 2>&5 |
| 13547 | ac_status=$? |
| 13548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13549 | (exit $ac_status); }; } && |
| 13550 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13552 | (eval $ac_try) 2>&5 |
| 13553 | ac_status=$? |
| 13554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13555 | (exit $ac_status); }; }; then |
| 13556 | eval "$as_ac_var=yes" |
| 13557 | else |
| 13558 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13559 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13560 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13561 | eval "$as_ac_var=no" |
| 13562 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13563 | rm -f conftest.err conftest.$ac_objext \ |
| 13564 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13565 | fi |
| 13566 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13567 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13568 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13569 | cat >>confdefs.h <<_ACEOF |
| 13570 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13571 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 13572 | case $ac_sys_system in |
| 13573 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13574 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 13575 | cat >>confdefs.h <<\_ACEOF |
| 13576 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 13577 | _ACEOF |
| 13578 | |
| 13579 | ;; |
| 13580 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13581 | fi |
| 13582 | done |
| 13583 | |
| 13584 | fi |
| 13585 | |
| 13586 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13587 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13588 | |
| 13589 | |
| 13590 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 13591 | 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] | 13592 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 13593 | if test "${enable_ipv6+set}" = set; then |
| 13594 | enableval="$enable_ipv6" |
| 13595 | case "$enableval" in |
| 13596 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13597 | echo "$as_me:$LINENO: result: no" >&5 |
| 13598 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13599 | ipv6=no |
| 13600 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13601 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 13602 | echo "${ECHO_T}yes" >&6 |
| 13603 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13604 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13605 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13606 | |
| 13607 | ipv6=yes |
| 13608 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13609 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13610 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13611 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13612 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13613 | echo "$as_me:$LINENO: result: no" >&5 |
| 13614 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13615 | ipv6=no |
| 13616 | |
| 13617 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13618 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13619 | /* confdefs.h. */ |
| 13620 | _ACEOF |
| 13621 | cat confdefs.h >>conftest.$ac_ext |
| 13622 | cat >>conftest.$ac_ext <<_ACEOF |
| 13623 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13624 | /* AF_INET6 available check */ |
| 13625 | #include <sys/types.h> |
| 13626 | #include <sys/socket.h> |
| 13627 | main() |
| 13628 | { |
| 13629 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 13630 | exit(1); |
| 13631 | else |
| 13632 | exit(0); |
| 13633 | } |
| 13634 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13635 | _ACEOF |
| 13636 | rm -f conftest$ac_exeext |
| 13637 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13638 | (eval $ac_link) 2>&5 |
| 13639 | ac_status=$? |
| 13640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13641 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13643 | (eval $ac_try) 2>&5 |
| 13644 | ac_status=$? |
| 13645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13646 | (exit $ac_status); }; }; then |
| 13647 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13648 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13649 | ipv6=yes |
| 13650 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13651 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13652 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13654 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13655 | ( exit $ac_status ) |
| 13656 | echo "$as_me:$LINENO: result: no" >&5 |
| 13657 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13658 | ipv6=no |
| 13659 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13660 | 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] | 13661 | fi |
| 13662 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13663 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13664 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 13665 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 13666 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13667 | /* confdefs.h. */ |
| 13668 | _ACEOF |
| 13669 | cat confdefs.h >>conftest.$ac_ext |
| 13670 | cat >>conftest.$ac_ext <<_ACEOF |
| 13671 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13672 | #include <sys/types.h> |
| 13673 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13674 | int |
| 13675 | main () |
| 13676 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13677 | struct sockaddr_in6 x; |
| 13678 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13679 | ; |
| 13680 | return 0; |
| 13681 | } |
| 13682 | _ACEOF |
| 13683 | rm -f conftest.$ac_objext |
| 13684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13685 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13686 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13687 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13688 | rm -f conftest.er1 |
| 13689 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13691 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13692 | { ac_try='test -z "$ac_c_werror_flag" |
| 13693 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13695 | (eval $ac_try) 2>&5 |
| 13696 | ac_status=$? |
| 13697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13698 | (exit $ac_status); }; } && |
| 13699 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13701 | (eval $ac_try) 2>&5 |
| 13702 | ac_status=$? |
| 13703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13704 | (exit $ac_status); }; }; then |
| 13705 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13706 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13707 | ipv6=yes |
| 13708 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13709 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13711 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13712 | echo "$as_me:$LINENO: result: no" >&5 |
| 13713 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13714 | ipv6=no |
| 13715 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13716 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13717 | fi |
| 13718 | |
| 13719 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13720 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13721 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13722 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13723 | |
| 13724 | fi |
| 13725 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13726 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13727 | |
| 13728 | ipv6type=unknown |
| 13729 | ipv6lib=none |
| 13730 | ipv6trylibc=no |
| 13731 | |
| 13732 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13733 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 13734 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 13735 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 13736 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13737 | case $i in |
| 13738 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13739 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13740 | /* confdefs.h. */ |
| 13741 | _ACEOF |
| 13742 | cat confdefs.h >>conftest.$ac_ext |
| 13743 | cat >>conftest.$ac_ext <<_ACEOF |
| 13744 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13745 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13746 | #include <netinet/in.h> |
| 13747 | #ifdef IPV6_INRIA_VERSION |
| 13748 | yes |
| 13749 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13750 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13751 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13752 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 13753 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13754 | fi |
| 13755 | rm -f conftest* |
| 13756 | |
| 13757 | ;; |
| 13758 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13759 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13760 | /* confdefs.h. */ |
| 13761 | _ACEOF |
| 13762 | cat confdefs.h >>conftest.$ac_ext |
| 13763 | cat >>conftest.$ac_ext <<_ACEOF |
| 13764 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13765 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13766 | #include <netinet/in.h> |
| 13767 | #ifdef __KAME__ |
| 13768 | yes |
| 13769 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13770 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13771 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13772 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13773 | ipv6type=$i; |
| 13774 | ipv6lib=inet6 |
| 13775 | ipv6libdir=/usr/local/v6/lib |
| 13776 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13777 | fi |
| 13778 | rm -f conftest* |
| 13779 | |
| 13780 | ;; |
| 13781 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13782 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13783 | /* confdefs.h. */ |
| 13784 | _ACEOF |
| 13785 | cat confdefs.h >>conftest.$ac_ext |
| 13786 | cat >>conftest.$ac_ext <<_ACEOF |
| 13787 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13788 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13789 | #include <features.h> |
| 13790 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 13791 | yes |
| 13792 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13793 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13794 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13795 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13796 | ipv6type=$i; |
| 13797 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13798 | fi |
| 13799 | rm -f conftest* |
| 13800 | |
| 13801 | ;; |
| 13802 | linux-inet6) |
| 13803 | if test -d /usr/inet6; then |
| 13804 | ipv6type=$i |
| 13805 | ipv6lib=inet6 |
| 13806 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13807 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13808 | fi |
| 13809 | ;; |
| 13810 | solaris) |
| 13811 | if test -f /etc/netconfig; then |
| 13812 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 13813 | ipv6type=$i |
| 13814 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13815 | fi |
| 13816 | fi |
| 13817 | ;; |
| 13818 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13819 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13820 | /* confdefs.h. */ |
| 13821 | _ACEOF |
| 13822 | cat confdefs.h >>conftest.$ac_ext |
| 13823 | cat >>conftest.$ac_ext <<_ACEOF |
| 13824 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13825 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13826 | #include <sys/param.h> |
| 13827 | #ifdef _TOSHIBA_INET6 |
| 13828 | yes |
| 13829 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13830 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13831 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13832 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13833 | ipv6type=$i; |
| 13834 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 13835 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13836 | fi |
| 13837 | rm -f conftest* |
| 13838 | |
| 13839 | ;; |
| 13840 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13841 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13842 | /* confdefs.h. */ |
| 13843 | _ACEOF |
| 13844 | cat confdefs.h >>conftest.$ac_ext |
| 13845 | cat >>conftest.$ac_ext <<_ACEOF |
| 13846 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13847 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13848 | #include </usr/local/v6/include/sys/v6config.h> |
| 13849 | #ifdef __V6D__ |
| 13850 | yes |
| 13851 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13852 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13853 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13854 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13855 | ipv6type=$i; |
| 13856 | ipv6lib=v6; |
| 13857 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13858 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13859 | fi |
| 13860 | rm -f conftest* |
| 13861 | |
| 13862 | ;; |
| 13863 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13864 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13865 | /* confdefs.h. */ |
| 13866 | _ACEOF |
| 13867 | cat confdefs.h >>conftest.$ac_ext |
| 13868 | cat >>conftest.$ac_ext <<_ACEOF |
| 13869 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13870 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13871 | #include <sys/param.h> |
| 13872 | #ifdef _ZETA_MINAMI_INET6 |
| 13873 | yes |
| 13874 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13875 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13876 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13877 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13878 | ipv6type=$i; |
| 13879 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 13880 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13881 | fi |
| 13882 | rm -f conftest* |
| 13883 | |
| 13884 | ;; |
| 13885 | esac |
| 13886 | if test "$ipv6type" != "unknown"; then |
| 13887 | break |
| 13888 | fi |
| 13889 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13890 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 13891 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13892 | fi |
| 13893 | |
| 13894 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 13895 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 13896 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 13897 | echo "using lib$ipv6lib" |
| 13898 | else |
| 13899 | if test $ipv6trylibc = "yes"; then |
| 13900 | echo "using libc" |
| 13901 | else |
| 13902 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 13903 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 13904 | echo 'ipv6 kit and compile beforehand.' |
| 13905 | exit 1 |
| 13906 | fi |
| 13907 | fi |
| 13908 | fi |
| 13909 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 13910 | # Check for --with-doc-strings |
| 13911 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 13912 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 13913 | |
| 13914 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 13915 | if test "${with_doc_strings+set}" = set; then |
| 13916 | withval="$with_doc_strings" |
| 13917 | |
| 13918 | fi; |
| 13919 | |
| 13920 | if test -z "$with_doc_strings" |
| 13921 | then with_doc_strings="yes" |
| 13922 | fi |
| 13923 | if test "$with_doc_strings" != "no" |
| 13924 | then |
| 13925 | |
| 13926 | cat >>confdefs.h <<\_ACEOF |
| 13927 | #define WITH_DOC_STRINGS 1 |
| 13928 | _ACEOF |
| 13929 | |
| 13930 | fi |
| 13931 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 13932 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 13933 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13934 | # Check for Python-specific malloc support |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 13935 | echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 13936 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6 |
| 13937 | |
| 13938 | # Check whether --with-tsc or --without-tsc was given. |
| 13939 | if test "${with_tsc+set}" = set; then |
| 13940 | withval="$with_tsc" |
| 13941 | |
| 13942 | if test "$withval" != no |
| 13943 | then |
| 13944 | |
| 13945 | cat >>confdefs.h <<\_ACEOF |
| 13946 | #define WITH_TSC 1 |
| 13947 | _ACEOF |
| 13948 | |
| 13949 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13950 | echo "${ECHO_T}yes" >&6 |
| 13951 | else echo "$as_me:$LINENO: result: no" >&5 |
| 13952 | echo "${ECHO_T}no" >&6 |
| 13953 | fi |
| 13954 | else |
| 13955 | echo "$as_me:$LINENO: result: no" >&5 |
| 13956 | echo "${ECHO_T}no" >&6 |
| 13957 | fi; |
| 13958 | |
| 13959 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13960 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 13961 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 13962 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13963 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 13964 | if test "${with_pymalloc+set}" = set; then |
| 13965 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13967 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13968 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13969 | if test -z "$with_pymalloc" |
| 13970 | then with_pymalloc="yes" |
| 13971 | fi |
| 13972 | if test "$with_pymalloc" != "no" |
| 13973 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13974 | |
| 13975 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13976 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13977 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13978 | |
| 13979 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13980 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 13981 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13982 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13983 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13984 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 13985 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 13986 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13987 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 13988 | if test "${with_wctype_functions+set}" = set; then |
| 13989 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13990 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13991 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13992 | then |
| 13993 | |
| 13994 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13995 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13996 | _ACEOF |
| 13997 | |
| 13998 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13999 | echo "${ECHO_T}yes" >&6 |
| 14000 | else echo "$as_me:$LINENO: result: no" >&5 |
| 14001 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 14002 | fi |
| 14003 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14004 | echo "$as_me:$LINENO: result: no" >&5 |
| 14005 | echo "${ECHO_T}no" >&6 |
| 14006 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 14007 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14008 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14009 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 14010 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14011 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14012 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 14013 | # 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] | 14014 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14015 | for ac_func in dlopen |
| 14016 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14017 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14018 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14019 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14020 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14022 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14023 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14024 | /* confdefs.h. */ |
| 14025 | _ACEOF |
| 14026 | cat confdefs.h >>conftest.$ac_ext |
| 14027 | cat >>conftest.$ac_ext <<_ACEOF |
| 14028 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14029 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14030 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14031 | #define $ac_func innocuous_$ac_func |
| 14032 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14033 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14034 | which can conflict with char $ac_func (); below. |
| 14035 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14036 | <limits.h> exists even on freestanding compilers. */ |
| 14037 | |
| 14038 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14039 | # include <limits.h> |
| 14040 | #else |
| 14041 | # include <assert.h> |
| 14042 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14043 | |
| 14044 | #undef $ac_func |
| 14045 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14046 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14047 | #ifdef __cplusplus |
| 14048 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14049 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14050 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14051 | /* 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] | 14052 | builtin and then its argument prototype would still apply. */ |
| 14053 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14054 | /* The GNU C library defines this for functions which it implements |
| 14055 | to always fail with ENOSYS. Some functions are actually named |
| 14056 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14057 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14058 | choke me |
| 14059 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14060 | char (*f) () = $ac_func; |
| 14061 | #endif |
| 14062 | #ifdef __cplusplus |
| 14063 | } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14064 | #endif |
| 14065 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14066 | int |
| 14067 | main () |
| 14068 | { |
| 14069 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14070 | ; |
| 14071 | return 0; |
| 14072 | } |
| 14073 | _ACEOF |
| 14074 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14075 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14076 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14077 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14079 | rm -f conftest.er1 |
| 14080 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14082 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14083 | { ac_try='test -z "$ac_c_werror_flag" |
| 14084 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14086 | (eval $ac_try) 2>&5 |
| 14087 | ac_status=$? |
| 14088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14089 | (exit $ac_status); }; } && |
| 14090 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14092 | (eval $ac_try) 2>&5 |
| 14093 | ac_status=$? |
| 14094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14095 | (exit $ac_status); }; }; then |
| 14096 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14097 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14098 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14100 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14101 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14102 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14103 | rm -f conftest.err conftest.$ac_objext \ |
| 14104 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14105 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14106 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14107 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14108 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14109 | cat >>confdefs.h <<_ACEOF |
| 14110 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14111 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14112 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14113 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14114 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14115 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14116 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14117 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 14118 | # loading of modules. |
| 14119 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14120 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 14121 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14122 | if test -z "$DYNLOADFILE" |
| 14123 | then |
| 14124 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 14125 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 14126 | if test "$ac_cv_func_dlopen" = yes |
| 14127 | then DYNLOADFILE="dynload_shlib.o" |
| 14128 | else DYNLOADFILE="dynload_aix.o" |
| 14129 | fi |
| 14130 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14131 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 14132 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 14133 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 14134 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14135 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14136 | *) |
| 14137 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 14138 | # out any dynamic loading |
| 14139 | if test "$ac_cv_func_dlopen" = yes |
| 14140 | then DYNLOADFILE="dynload_shlib.o" |
| 14141 | else DYNLOADFILE="dynload_stub.o" |
| 14142 | fi |
| 14143 | ;; |
| 14144 | esac |
| 14145 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14146 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 14147 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14148 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 14149 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14150 | |
| 14151 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14152 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14153 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14154 | |
| 14155 | fi |
| 14156 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 14157 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 14158 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14159 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14160 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 14161 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 14162 | if test -z "$MACHDEP_OBJS" |
| 14163 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14164 | MACHDEP_OBJS=$extra_machdep_objs |
| 14165 | else |
| 14166 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 14167 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14168 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 14169 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 14170 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14171 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14172 | |
| 14173 | |
| 14174 | |
| 14175 | |
| 14176 | |
| 14177 | |
| 14178 | |
| 14179 | |
| 14180 | |
| 14181 | |
| 14182 | |
| 14183 | |
| 14184 | |
| 14185 | |
| 14186 | |
| 14187 | |
| 14188 | |
| 14189 | |
| 14190 | |
| 14191 | |
| 14192 | |
| 14193 | |
| 14194 | |
| 14195 | |
| 14196 | |
| 14197 | |
| 14198 | |
| 14199 | |
| 14200 | |
| 14201 | |
| 14202 | |
| 14203 | |
| 14204 | |
| 14205 | |
| 14206 | |
| 14207 | |
| 14208 | |
| 14209 | |
| 14210 | |
| 14211 | |
| 14212 | |
| 14213 | |
| 14214 | |
| 14215 | |
| 14216 | |
| 14217 | |
| 14218 | |
| 14219 | |
| 14220 | |
| 14221 | |
| 14222 | |
| 14223 | |
| 14224 | |
| 14225 | |
| 14226 | |
| 14227 | |
| 14228 | |
| 14229 | |
| 14230 | |
| 14231 | |
| 14232 | |
| 14233 | |
| 14234 | |
| 14235 | |
| 14236 | |
| 14237 | |
| 14238 | |
| 14239 | |
| 14240 | |
| 14241 | |
| 14242 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14243 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 14244 | |
| 14245 | |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 14246 | |
| 14247 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14248 | for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \ |
| 14249 | execv fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 14250 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 14251 | getpriority getpwent getspnam getspent getsid getwd \ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14252 | kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 14253 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 14254 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14255 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 14256 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 14257 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 14258 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 14259 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14260 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14261 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14262 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14263 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14264 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14266 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14267 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14268 | /* confdefs.h. */ |
| 14269 | _ACEOF |
| 14270 | cat confdefs.h >>conftest.$ac_ext |
| 14271 | cat >>conftest.$ac_ext <<_ACEOF |
| 14272 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14273 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14274 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14275 | #define $ac_func innocuous_$ac_func |
| 14276 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14277 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14278 | which can conflict with char $ac_func (); below. |
| 14279 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14280 | <limits.h> exists even on freestanding compilers. */ |
| 14281 | |
| 14282 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14283 | # include <limits.h> |
| 14284 | #else |
| 14285 | # include <assert.h> |
| 14286 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14287 | |
| 14288 | #undef $ac_func |
| 14289 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14290 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14291 | #ifdef __cplusplus |
| 14292 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14293 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14294 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14295 | /* 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] | 14296 | builtin and then its argument prototype would still apply. */ |
| 14297 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14298 | /* The GNU C library defines this for functions which it implements |
| 14299 | to always fail with ENOSYS. Some functions are actually named |
| 14300 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14301 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14302 | choke me |
| 14303 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14304 | char (*f) () = $ac_func; |
| 14305 | #endif |
| 14306 | #ifdef __cplusplus |
| 14307 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14308 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14309 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14310 | int |
| 14311 | main () |
| 14312 | { |
| 14313 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14314 | ; |
| 14315 | return 0; |
| 14316 | } |
| 14317 | _ACEOF |
| 14318 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14319 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14320 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14321 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14322 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14323 | rm -f conftest.er1 |
| 14324 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14326 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14327 | { ac_try='test -z "$ac_c_werror_flag" |
| 14328 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14330 | (eval $ac_try) 2>&5 |
| 14331 | ac_status=$? |
| 14332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14333 | (exit $ac_status); }; } && |
| 14334 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14336 | (eval $ac_try) 2>&5 |
| 14337 | ac_status=$? |
| 14338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14339 | (exit $ac_status); }; }; then |
| 14340 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14341 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14342 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14343 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14344 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14345 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14346 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14347 | rm -f conftest.err conftest.$ac_objext \ |
| 14348 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14349 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14350 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14351 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14352 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14353 | cat >>confdefs.h <<_ACEOF |
| 14354 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14355 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14356 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14357 | fi |
| 14358 | done |
| 14359 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14360 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14361 | # For some functions, having a definition is not sufficient, since |
| 14362 | # we want to take their address. |
| 14363 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 14364 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 14365 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14366 | /* confdefs.h. */ |
| 14367 | _ACEOF |
| 14368 | cat confdefs.h >>conftest.$ac_ext |
| 14369 | cat >>conftest.$ac_ext <<_ACEOF |
| 14370 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14371 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14372 | int |
| 14373 | main () |
| 14374 | { |
| 14375 | void *x=chroot |
| 14376 | ; |
| 14377 | return 0; |
| 14378 | } |
| 14379 | _ACEOF |
| 14380 | rm -f conftest.$ac_objext |
| 14381 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14382 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14383 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14384 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14385 | rm -f conftest.er1 |
| 14386 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14388 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14389 | { ac_try='test -z "$ac_c_werror_flag" |
| 14390 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14392 | (eval $ac_try) 2>&5 |
| 14393 | ac_status=$? |
| 14394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14395 | (exit $ac_status); }; } && |
| 14396 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14398 | (eval $ac_try) 2>&5 |
| 14399 | ac_status=$? |
| 14400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14401 | (exit $ac_status); }; }; then |
| 14402 | |
| 14403 | cat >>confdefs.h <<\_ACEOF |
| 14404 | #define HAVE_CHROOT 1 |
| 14405 | _ACEOF |
| 14406 | |
| 14407 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14408 | echo "${ECHO_T}yes" >&6 |
| 14409 | else |
| 14410 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14411 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14412 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14413 | echo "$as_me:$LINENO: result: no" >&5 |
| 14414 | echo "${ECHO_T}no" >&6 |
| 14415 | |
| 14416 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14417 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14418 | echo "$as_me:$LINENO: checking for link" >&5 |
| 14419 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 14420 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14421 | /* confdefs.h. */ |
| 14422 | _ACEOF |
| 14423 | cat confdefs.h >>conftest.$ac_ext |
| 14424 | cat >>conftest.$ac_ext <<_ACEOF |
| 14425 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14426 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14427 | int |
| 14428 | main () |
| 14429 | { |
| 14430 | void *x=link |
| 14431 | ; |
| 14432 | return 0; |
| 14433 | } |
| 14434 | _ACEOF |
| 14435 | rm -f conftest.$ac_objext |
| 14436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14437 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14438 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14439 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14440 | rm -f conftest.er1 |
| 14441 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14443 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14444 | { ac_try='test -z "$ac_c_werror_flag" |
| 14445 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14447 | (eval $ac_try) 2>&5 |
| 14448 | ac_status=$? |
| 14449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14450 | (exit $ac_status); }; } && |
| 14451 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14453 | (eval $ac_try) 2>&5 |
| 14454 | ac_status=$? |
| 14455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14456 | (exit $ac_status); }; }; then |
| 14457 | |
| 14458 | cat >>confdefs.h <<\_ACEOF |
| 14459 | #define HAVE_LINK 1 |
| 14460 | _ACEOF |
| 14461 | |
| 14462 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14463 | echo "${ECHO_T}yes" >&6 |
| 14464 | else |
| 14465 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14467 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14468 | echo "$as_me:$LINENO: result: no" >&5 |
| 14469 | echo "${ECHO_T}no" >&6 |
| 14470 | |
| 14471 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14472 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14473 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 14474 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 14475 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14476 | /* confdefs.h. */ |
| 14477 | _ACEOF |
| 14478 | cat confdefs.h >>conftest.$ac_ext |
| 14479 | cat >>conftest.$ac_ext <<_ACEOF |
| 14480 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14481 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14482 | int |
| 14483 | main () |
| 14484 | { |
| 14485 | void *x=symlink |
| 14486 | ; |
| 14487 | return 0; |
| 14488 | } |
| 14489 | _ACEOF |
| 14490 | rm -f conftest.$ac_objext |
| 14491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14492 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14493 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14494 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14495 | rm -f conftest.er1 |
| 14496 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14498 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14499 | { ac_try='test -z "$ac_c_werror_flag" |
| 14500 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14502 | (eval $ac_try) 2>&5 |
| 14503 | ac_status=$? |
| 14504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14505 | (exit $ac_status); }; } && |
| 14506 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14508 | (eval $ac_try) 2>&5 |
| 14509 | ac_status=$? |
| 14510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14511 | (exit $ac_status); }; }; then |
| 14512 | |
| 14513 | cat >>confdefs.h <<\_ACEOF |
| 14514 | #define HAVE_SYMLINK 1 |
| 14515 | _ACEOF |
| 14516 | |
| 14517 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14518 | echo "${ECHO_T}yes" >&6 |
| 14519 | else |
| 14520 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14522 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14523 | echo "$as_me:$LINENO: result: no" >&5 |
| 14524 | echo "${ECHO_T}no" >&6 |
| 14525 | |
| 14526 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14527 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14528 | echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 14529 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6 |
| 14530 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14531 | /* confdefs.h. */ |
| 14532 | _ACEOF |
| 14533 | cat confdefs.h >>conftest.$ac_ext |
| 14534 | cat >>conftest.$ac_ext <<_ACEOF |
| 14535 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14536 | #include <unistd.h> |
| 14537 | int |
| 14538 | main () |
| 14539 | { |
| 14540 | void *x=fchdir |
| 14541 | ; |
| 14542 | return 0; |
| 14543 | } |
| 14544 | _ACEOF |
| 14545 | rm -f conftest.$ac_objext |
| 14546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14547 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14548 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14549 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14550 | rm -f conftest.er1 |
| 14551 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14553 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14554 | { ac_try='test -z "$ac_c_werror_flag" |
| 14555 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14557 | (eval $ac_try) 2>&5 |
| 14558 | ac_status=$? |
| 14559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14560 | (exit $ac_status); }; } && |
| 14561 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14563 | (eval $ac_try) 2>&5 |
| 14564 | ac_status=$? |
| 14565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14566 | (exit $ac_status); }; }; then |
| 14567 | |
| 14568 | cat >>confdefs.h <<\_ACEOF |
| 14569 | #define HAVE_FCHDIR 1 |
| 14570 | _ACEOF |
| 14571 | |
| 14572 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14573 | echo "${ECHO_T}yes" >&6 |
| 14574 | else |
| 14575 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14577 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14578 | echo "$as_me:$LINENO: result: no" >&5 |
| 14579 | echo "${ECHO_T}no" >&6 |
| 14580 | |
| 14581 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14582 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14583 | echo "$as_me:$LINENO: checking for fsync" >&5 |
| 14584 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6 |
| 14585 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14586 | /* confdefs.h. */ |
| 14587 | _ACEOF |
| 14588 | cat confdefs.h >>conftest.$ac_ext |
| 14589 | cat >>conftest.$ac_ext <<_ACEOF |
| 14590 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14591 | #include <unistd.h> |
| 14592 | int |
| 14593 | main () |
| 14594 | { |
| 14595 | void *x=fsync |
| 14596 | ; |
| 14597 | return 0; |
| 14598 | } |
| 14599 | _ACEOF |
| 14600 | rm -f conftest.$ac_objext |
| 14601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14602 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14603 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14604 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14605 | rm -f conftest.er1 |
| 14606 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14608 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14609 | { ac_try='test -z "$ac_c_werror_flag" |
| 14610 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14612 | (eval $ac_try) 2>&5 |
| 14613 | ac_status=$? |
| 14614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14615 | (exit $ac_status); }; } && |
| 14616 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14618 | (eval $ac_try) 2>&5 |
| 14619 | ac_status=$? |
| 14620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14621 | (exit $ac_status); }; }; then |
| 14622 | |
| 14623 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14624 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14625 | _ACEOF |
| 14626 | |
| 14627 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14628 | echo "${ECHO_T}yes" >&6 |
| 14629 | else |
| 14630 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14631 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14632 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14633 | echo "$as_me:$LINENO: result: no" >&5 |
| 14634 | echo "${ECHO_T}no" >&6 |
| 14635 | |
| 14636 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14637 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14638 | echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 14639 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6 |
| 14640 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14641 | /* confdefs.h. */ |
| 14642 | _ACEOF |
| 14643 | cat confdefs.h >>conftest.$ac_ext |
| 14644 | cat >>conftest.$ac_ext <<_ACEOF |
| 14645 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14646 | #include <unistd.h> |
| 14647 | int |
| 14648 | main () |
| 14649 | { |
| 14650 | void *x=fdatasync |
| 14651 | ; |
| 14652 | return 0; |
| 14653 | } |
| 14654 | _ACEOF |
| 14655 | rm -f conftest.$ac_objext |
| 14656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14657 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14658 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14659 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14660 | rm -f conftest.er1 |
| 14661 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14663 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14664 | { ac_try='test -z "$ac_c_werror_flag" |
| 14665 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14667 | (eval $ac_try) 2>&5 |
| 14668 | ac_status=$? |
| 14669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14670 | (exit $ac_status); }; } && |
| 14671 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14673 | (eval $ac_try) 2>&5 |
| 14674 | ac_status=$? |
| 14675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14676 | (exit $ac_status); }; }; then |
| 14677 | |
| 14678 | cat >>confdefs.h <<\_ACEOF |
| 14679 | #define HAVE_FDATASYNC 1 |
| 14680 | _ACEOF |
| 14681 | |
| 14682 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14683 | echo "${ECHO_T}yes" >&6 |
| 14684 | else |
| 14685 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14686 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14687 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14688 | echo "$as_me:$LINENO: result: no" >&5 |
| 14689 | echo "${ECHO_T}no" >&6 |
| 14690 | |
| 14691 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14692 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14693 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14694 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 14695 | # functions ctermid_r, setgroups in the library, but no prototype |
| 14696 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 14697 | # address to avoid compiler warnings and potential miscompilations |
| 14698 | # because of the missing prototypes. |
| 14699 | |
| 14700 | echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 14701 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6 |
| 14702 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14703 | /* confdefs.h. */ |
| 14704 | _ACEOF |
| 14705 | cat confdefs.h >>conftest.$ac_ext |
| 14706 | cat >>conftest.$ac_ext <<_ACEOF |
| 14707 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14708 | |
| 14709 | #include "confdefs.h" |
| 14710 | #include <stdio.h> |
| 14711 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14712 | int |
| 14713 | main () |
| 14714 | { |
| 14715 | void* p = ctermid_r |
| 14716 | ; |
| 14717 | return 0; |
| 14718 | } |
| 14719 | _ACEOF |
| 14720 | rm -f conftest.$ac_objext |
| 14721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14722 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14723 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14724 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14725 | rm -f conftest.er1 |
| 14726 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14728 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14729 | { ac_try='test -z "$ac_c_werror_flag" |
| 14730 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14732 | (eval $ac_try) 2>&5 |
| 14733 | ac_status=$? |
| 14734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14735 | (exit $ac_status); }; } && |
| 14736 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14738 | (eval $ac_try) 2>&5 |
| 14739 | ac_status=$? |
| 14740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14741 | (exit $ac_status); }; }; then |
| 14742 | |
| 14743 | cat >>confdefs.h <<\_ACEOF |
| 14744 | #define HAVE_CTERMID_R 1 |
| 14745 | _ACEOF |
| 14746 | |
| 14747 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14748 | echo "${ECHO_T}yes" >&6 |
| 14749 | else |
| 14750 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14752 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14753 | echo "$as_me:$LINENO: result: no" >&5 |
| 14754 | echo "${ECHO_T}no" >&6 |
| 14755 | |
| 14756 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14758 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14759 | echo "$as_me:$LINENO: checking for flock" >&5 |
| 14760 | echo $ECHO_N "checking for flock... $ECHO_C" >&6 |
| 14761 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14762 | /* confdefs.h. */ |
| 14763 | _ACEOF |
| 14764 | cat confdefs.h >>conftest.$ac_ext |
| 14765 | cat >>conftest.$ac_ext <<_ACEOF |
| 14766 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14767 | |
| 14768 | #include "confdefs.h" |
| 14769 | #include <sys/file.h> |
| 14770 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14771 | int |
| 14772 | main () |
| 14773 | { |
| 14774 | void* p = flock |
| 14775 | ; |
| 14776 | return 0; |
| 14777 | } |
| 14778 | _ACEOF |
| 14779 | rm -f conftest.$ac_objext |
| 14780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14781 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14782 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14783 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14784 | rm -f conftest.er1 |
| 14785 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14787 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14788 | { ac_try='test -z "$ac_c_werror_flag" |
| 14789 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14791 | (eval $ac_try) 2>&5 |
| 14792 | ac_status=$? |
| 14793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14794 | (exit $ac_status); }; } && |
| 14795 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14797 | (eval $ac_try) 2>&5 |
| 14798 | ac_status=$? |
| 14799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14800 | (exit $ac_status); }; }; then |
| 14801 | |
| 14802 | cat >>confdefs.h <<\_ACEOF |
| 14803 | #define HAVE_FLOCK 1 |
| 14804 | _ACEOF |
| 14805 | |
| 14806 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14807 | echo "${ECHO_T}yes" >&6 |
| 14808 | else |
| 14809 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14811 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14812 | echo "$as_me:$LINENO: result: no" >&5 |
| 14813 | echo "${ECHO_T}no" >&6 |
| 14814 | |
| 14815 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14816 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14817 | |
| 14818 | echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 14819 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 |
| 14820 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14821 | /* confdefs.h. */ |
| 14822 | _ACEOF |
| 14823 | cat confdefs.h >>conftest.$ac_ext |
| 14824 | cat >>conftest.$ac_ext <<_ACEOF |
| 14825 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14826 | |
| 14827 | #include "confdefs.h" |
| 14828 | #include <unistd.h> |
| 14829 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14830 | int |
| 14831 | main () |
| 14832 | { |
| 14833 | void* p = getpagesize |
| 14834 | ; |
| 14835 | return 0; |
| 14836 | } |
| 14837 | _ACEOF |
| 14838 | rm -f conftest.$ac_objext |
| 14839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14840 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14841 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14842 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14843 | rm -f conftest.er1 |
| 14844 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14846 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14847 | { ac_try='test -z "$ac_c_werror_flag" |
| 14848 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14850 | (eval $ac_try) 2>&5 |
| 14851 | ac_status=$? |
| 14852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14853 | (exit $ac_status); }; } && |
| 14854 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14856 | (eval $ac_try) 2>&5 |
| 14857 | ac_status=$? |
| 14858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14859 | (exit $ac_status); }; }; then |
| 14860 | |
| 14861 | cat >>confdefs.h <<\_ACEOF |
| 14862 | #define HAVE_GETPAGESIZE 1 |
| 14863 | _ACEOF |
| 14864 | |
| 14865 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14866 | echo "${ECHO_T}yes" >&6 |
| 14867 | else |
| 14868 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14869 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14870 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14871 | echo "$as_me:$LINENO: result: no" >&5 |
| 14872 | echo "${ECHO_T}no" >&6 |
| 14873 | |
| 14874 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14875 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14876 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14877 | for ac_prog in true |
| 14878 | do |
| 14879 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 14880 | set dummy $ac_prog; ac_word=$2 |
| 14881 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14882 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14883 | if test "${ac_cv_prog_TRUE+set}" = set; then |
| 14884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14885 | else |
| 14886 | if test -n "$TRUE"; then |
| 14887 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 14888 | else |
| 14889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14890 | for as_dir in $PATH |
| 14891 | do |
| 14892 | IFS=$as_save_IFS |
| 14893 | test -z "$as_dir" && as_dir=. |
| 14894 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14895 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14896 | ac_cv_prog_TRUE="$ac_prog" |
| 14897 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14898 | break 2 |
| 14899 | fi |
| 14900 | done |
| 14901 | done |
| 14902 | |
| 14903 | fi |
| 14904 | fi |
| 14905 | TRUE=$ac_cv_prog_TRUE |
| 14906 | if test -n "$TRUE"; then |
| 14907 | echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 14908 | echo "${ECHO_T}$TRUE" >&6 |
| 14909 | else |
| 14910 | echo "$as_me:$LINENO: result: no" >&5 |
| 14911 | echo "${ECHO_T}no" >&6 |
| 14912 | fi |
| 14913 | |
| 14914 | test -n "$TRUE" && break |
| 14915 | done |
| 14916 | test -n "$TRUE" || TRUE="/bin/true" |
| 14917 | |
| 14918 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14919 | echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 14920 | echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6 |
| 14921 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
| 14922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14923 | else |
| 14924 | ac_check_lib_save_LIBS=$LIBS |
| 14925 | LIBS="-lc $LIBS" |
| 14926 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14927 | /* confdefs.h. */ |
| 14928 | _ACEOF |
| 14929 | cat confdefs.h >>conftest.$ac_ext |
| 14930 | cat >>conftest.$ac_ext <<_ACEOF |
| 14931 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14932 | |
| 14933 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14934 | #ifdef __cplusplus |
| 14935 | extern "C" |
| 14936 | #endif |
| 14937 | /* We use char because int might match the return type of a gcc2 |
| 14938 | builtin and then its argument prototype would still apply. */ |
| 14939 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14940 | int |
| 14941 | main () |
| 14942 | { |
| 14943 | inet_aton (); |
| 14944 | ; |
| 14945 | return 0; |
| 14946 | } |
| 14947 | _ACEOF |
| 14948 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14949 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14950 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14951 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14952 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14953 | rm -f conftest.er1 |
| 14954 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14956 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14957 | { ac_try='test -z "$ac_c_werror_flag" |
| 14958 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14960 | (eval $ac_try) 2>&5 |
| 14961 | ac_status=$? |
| 14962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14963 | (exit $ac_status); }; } && |
| 14964 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14966 | (eval $ac_try) 2>&5 |
| 14967 | ac_status=$? |
| 14968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14969 | (exit $ac_status); }; }; then |
| 14970 | ac_cv_lib_c_inet_aton=yes |
| 14971 | else |
| 14972 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14974 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14975 | ac_cv_lib_c_inet_aton=no |
| 14976 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14977 | rm -f conftest.err conftest.$ac_objext \ |
| 14978 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14979 | LIBS=$ac_check_lib_save_LIBS |
| 14980 | fi |
| 14981 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 14982 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6 |
| 14983 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14984 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14985 | else |
| 14986 | |
| 14987 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 14988 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 14989 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 14990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14991 | else |
| 14992 | ac_check_lib_save_LIBS=$LIBS |
| 14993 | LIBS="-lresolv $LIBS" |
| 14994 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14995 | /* confdefs.h. */ |
| 14996 | _ACEOF |
| 14997 | cat confdefs.h >>conftest.$ac_ext |
| 14998 | cat >>conftest.$ac_ext <<_ACEOF |
| 14999 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 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 inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15008 | int |
| 15009 | main () |
| 15010 | { |
| 15011 | inet_aton (); |
| 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 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15018 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15019 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15021 | rm -f conftest.er1 |
| 15022 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15024 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15025 | { ac_try='test -z "$ac_c_werror_flag" |
| 15026 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 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' |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 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_resolv_inet_aton=yes |
| 15039 | else |
| 15040 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15042 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15043 | ac_cv_lib_resolv_inet_aton=no |
| 15044 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15045 | rm -f conftest.err conftest.$ac_objext \ |
| 15046 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15047 | LIBS=$ac_check_lib_save_LIBS |
| 15048 | fi |
| 15049 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 15050 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 15051 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
| 15052 | cat >>confdefs.h <<_ACEOF |
| 15053 | #define HAVE_LIBRESOLV 1 |
| 15054 | _ACEOF |
| 15055 | |
| 15056 | LIBS="-lresolv $LIBS" |
| 15057 | |
| 15058 | fi |
| 15059 | |
| 15060 | |
| 15061 | fi |
| 15062 | |
| 15063 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 15064 | case $ac_sys_system/$ac_sys_release in |
| 15065 | Darwin/*) |
| 15066 | _CUR_CFLAGS="${CFLAGS}" |
| 15067 | _CUR_LDFLAGS="${LDFLAGS}" |
| 15068 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 15069 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 15070 | ;; |
| 15071 | esac |
| 15072 | |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 15073 | echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5 |
| 15074 | echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6 |
| 15075 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then |
| 15076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15077 | else |
| 15078 | ac_check_lib_save_LIBS=$LIBS |
| 15079 | LIBS="-lz $LIBS" |
| 15080 | cat >conftest.$ac_ext <<_ACEOF |
| 15081 | /* confdefs.h. */ |
| 15082 | _ACEOF |
| 15083 | cat confdefs.h >>conftest.$ac_ext |
| 15084 | cat >>conftest.$ac_ext <<_ACEOF |
| 15085 | /* end confdefs.h. */ |
| 15086 | |
| 15087 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15088 | #ifdef __cplusplus |
| 15089 | extern "C" |
| 15090 | #endif |
| 15091 | /* We use char because int might match the return type of a gcc2 |
| 15092 | builtin and then its argument prototype would still apply. */ |
| 15093 | char inflateCopy (); |
| 15094 | int |
| 15095 | main () |
| 15096 | { |
| 15097 | inflateCopy (); |
| 15098 | ; |
| 15099 | return 0; |
| 15100 | } |
| 15101 | _ACEOF |
| 15102 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15104 | (eval $ac_link) 2>conftest.er1 |
| 15105 | ac_status=$? |
| 15106 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15107 | rm -f conftest.er1 |
| 15108 | cat conftest.err >&5 |
| 15109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15110 | (exit $ac_status); } && |
| 15111 | { ac_try='test -z "$ac_c_werror_flag" |
| 15112 | || test ! -s conftest.err' |
| 15113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15114 | (eval $ac_try) 2>&5 |
| 15115 | ac_status=$? |
| 15116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15117 | (exit $ac_status); }; } && |
| 15118 | { ac_try='test -s conftest$ac_exeext' |
| 15119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15120 | (eval $ac_try) 2>&5 |
| 15121 | ac_status=$? |
| 15122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15123 | (exit $ac_status); }; }; then |
| 15124 | ac_cv_lib_z_inflateCopy=yes |
| 15125 | else |
| 15126 | echo "$as_me: failed program was:" >&5 |
| 15127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15128 | |
| 15129 | ac_cv_lib_z_inflateCopy=no |
| 15130 | fi |
| 15131 | rm -f conftest.err conftest.$ac_objext \ |
| 15132 | conftest$ac_exeext conftest.$ac_ext |
| 15133 | LIBS=$ac_check_lib_save_LIBS |
| 15134 | fi |
| 15135 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 15136 | echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6 |
| 15137 | if test $ac_cv_lib_z_inflateCopy = yes; then |
| 15138 | |
| 15139 | cat >>confdefs.h <<\_ACEOF |
| 15140 | #define HAVE_ZLIB_COPY 1 |
| 15141 | _ACEOF |
| 15142 | |
| 15143 | fi |
| 15144 | |
| 15145 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 15146 | case $ac_sys_system/$ac_sys_release in |
| 15147 | Darwin/*) |
| 15148 | CFLAGS="${_CUR_CFLAGS}" |
| 15149 | LDFLAGS="${_CUR_LDFLAGS}" |
| 15150 | ;; |
| 15151 | esac |
| 15152 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15153 | echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 15154 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 |
| 15155 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15156 | /* confdefs.h. */ |
| 15157 | _ACEOF |
| 15158 | cat confdefs.h >>conftest.$ac_ext |
| 15159 | cat >>conftest.$ac_ext <<_ACEOF |
| 15160 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15161 | |
| 15162 | #include "confdefs.h" |
| 15163 | #include <netdb.h> |
| 15164 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15165 | int |
| 15166 | main () |
| 15167 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15168 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15169 | ; |
| 15170 | return 0; |
| 15171 | } |
| 15172 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15173 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15174 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15175 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15176 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15178 | rm -f conftest.er1 |
| 15179 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15181 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15182 | { ac_try='test -z "$ac_c_werror_flag" |
| 15183 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15185 | (eval $ac_try) 2>&5 |
| 15186 | ac_status=$? |
| 15187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15188 | (exit $ac_status); }; } && |
| 15189 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15191 | (eval $ac_try) 2>&5 |
| 15192 | ac_status=$? |
| 15193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15194 | (exit $ac_status); }; }; then |
| 15195 | |
| 15196 | cat >>confdefs.h <<\_ACEOF |
| 15197 | #define HAVE_HSTRERROR 1 |
| 15198 | _ACEOF |
| 15199 | |
| 15200 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15201 | echo "${ECHO_T}yes" >&6 |
| 15202 | else |
| 15203 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15205 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15206 | echo "$as_me:$LINENO: result: no" >&5 |
| 15207 | echo "${ECHO_T}no" >&6 |
| 15208 | |
| 15209 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15210 | rm -f conftest.err conftest.$ac_objext \ |
| 15211 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15212 | |
| 15213 | echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 15214 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 |
| 15215 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15216 | /* confdefs.h. */ |
| 15217 | _ACEOF |
| 15218 | cat confdefs.h >>conftest.$ac_ext |
| 15219 | cat >>conftest.$ac_ext <<_ACEOF |
| 15220 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15221 | |
| 15222 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 15223 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15224 | #include <sys/socket.h> |
| 15225 | #include <netinet/in.h> |
| 15226 | #include <arpa/inet.h> |
| 15227 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15228 | int |
| 15229 | main () |
| 15230 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15231 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15232 | ; |
| 15233 | return 0; |
| 15234 | } |
| 15235 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15236 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15238 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15239 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15241 | rm -f conftest.er1 |
| 15242 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15244 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15245 | { ac_try='test -z "$ac_c_werror_flag" |
| 15246 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15248 | (eval $ac_try) 2>&5 |
| 15249 | ac_status=$? |
| 15250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15251 | (exit $ac_status); }; } && |
| 15252 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15254 | (eval $ac_try) 2>&5 |
| 15255 | ac_status=$? |
| 15256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15257 | (exit $ac_status); }; }; then |
| 15258 | |
| 15259 | cat >>confdefs.h <<\_ACEOF |
| 15260 | #define HAVE_INET_ATON 1 |
| 15261 | _ACEOF |
| 15262 | |
| 15263 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15264 | echo "${ECHO_T}yes" >&6 |
| 15265 | else |
| 15266 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15268 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15269 | echo "$as_me:$LINENO: result: no" >&5 |
| 15270 | echo "${ECHO_T}no" >&6 |
| 15271 | |
| 15272 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15273 | rm -f conftest.err conftest.$ac_objext \ |
| 15274 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15275 | |
| 15276 | echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 15277 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 |
| 15278 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15279 | /* confdefs.h. */ |
| 15280 | _ACEOF |
| 15281 | cat confdefs.h >>conftest.$ac_ext |
| 15282 | cat >>conftest.$ac_ext <<_ACEOF |
| 15283 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15284 | |
| 15285 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 15286 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15287 | #include <sys/socket.h> |
| 15288 | #include <netinet/in.h> |
| 15289 | #include <arpa/inet.h> |
| 15290 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15291 | int |
| 15292 | main () |
| 15293 | { |
| 15294 | void* p = inet_pton |
| 15295 | ; |
| 15296 | return 0; |
| 15297 | } |
| 15298 | _ACEOF |
| 15299 | rm -f conftest.$ac_objext |
| 15300 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15301 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15302 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15303 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15304 | rm -f conftest.er1 |
| 15305 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15307 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15308 | { ac_try='test -z "$ac_c_werror_flag" |
| 15309 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15311 | (eval $ac_try) 2>&5 |
| 15312 | ac_status=$? |
| 15313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15314 | (exit $ac_status); }; } && |
| 15315 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15317 | (eval $ac_try) 2>&5 |
| 15318 | ac_status=$? |
| 15319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15320 | (exit $ac_status); }; }; then |
| 15321 | |
| 15322 | cat >>confdefs.h <<\_ACEOF |
| 15323 | #define HAVE_INET_PTON 1 |
| 15324 | _ACEOF |
| 15325 | |
| 15326 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15327 | echo "${ECHO_T}yes" >&6 |
| 15328 | else |
| 15329 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15331 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15332 | echo "$as_me:$LINENO: result: no" >&5 |
| 15333 | echo "${ECHO_T}no" >&6 |
| 15334 | |
| 15335 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15336 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15337 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 15338 | # 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] | 15339 | echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 15340 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 |
| 15341 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15342 | /* confdefs.h. */ |
| 15343 | _ACEOF |
| 15344 | cat confdefs.h >>conftest.$ac_ext |
| 15345 | cat >>conftest.$ac_ext <<_ACEOF |
| 15346 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15347 | |
| 15348 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 15349 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 15350 | #ifdef HAVE_GRP_H |
| 15351 | #include <grp.h> |
| 15352 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15353 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15354 | int |
| 15355 | main () |
| 15356 | { |
| 15357 | void* p = setgroups |
| 15358 | ; |
| 15359 | return 0; |
| 15360 | } |
| 15361 | _ACEOF |
| 15362 | rm -f conftest.$ac_objext |
| 15363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15364 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15365 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15366 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15367 | rm -f conftest.er1 |
| 15368 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15370 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15371 | { ac_try='test -z "$ac_c_werror_flag" |
| 15372 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15374 | (eval $ac_try) 2>&5 |
| 15375 | ac_status=$? |
| 15376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15377 | (exit $ac_status); }; } && |
| 15378 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15380 | (eval $ac_try) 2>&5 |
| 15381 | ac_status=$? |
| 15382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15383 | (exit $ac_status); }; }; then |
| 15384 | |
| 15385 | cat >>confdefs.h <<\_ACEOF |
| 15386 | #define HAVE_SETGROUPS 1 |
| 15387 | _ACEOF |
| 15388 | |
| 15389 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15390 | echo "${ECHO_T}yes" >&6 |
| 15391 | else |
| 15392 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15394 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15395 | echo "$as_me:$LINENO: result: no" >&5 |
| 15396 | echo "${ECHO_T}no" >&6 |
| 15397 | |
| 15398 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15399 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15400 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15401 | # check for openpty and forkpty |
| 15402 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15403 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15404 | for ac_func in openpty |
| 15405 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15406 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15407 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15408 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15409 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15411 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15412 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15413 | /* confdefs.h. */ |
| 15414 | _ACEOF |
| 15415 | cat confdefs.h >>conftest.$ac_ext |
| 15416 | cat >>conftest.$ac_ext <<_ACEOF |
| 15417 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15418 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15419 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15420 | #define $ac_func innocuous_$ac_func |
| 15421 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15422 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15423 | which can conflict with char $ac_func (); below. |
| 15424 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15425 | <limits.h> exists even on freestanding compilers. */ |
| 15426 | |
| 15427 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15428 | # include <limits.h> |
| 15429 | #else |
| 15430 | # include <assert.h> |
| 15431 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15432 | |
| 15433 | #undef $ac_func |
| 15434 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15435 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15436 | #ifdef __cplusplus |
| 15437 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15438 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15439 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15440 | /* 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] | 15441 | builtin and then its argument prototype would still apply. */ |
| 15442 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15443 | /* The GNU C library defines this for functions which it implements |
| 15444 | to always fail with ENOSYS. Some functions are actually named |
| 15445 | something starting with __ and the normal name is an alias. */ |
| 15446 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15447 | choke me |
| 15448 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15449 | char (*f) () = $ac_func; |
| 15450 | #endif |
| 15451 | #ifdef __cplusplus |
| 15452 | } |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15453 | #endif |
| 15454 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15455 | int |
| 15456 | main () |
| 15457 | { |
| 15458 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15459 | ; |
| 15460 | return 0; |
| 15461 | } |
| 15462 | _ACEOF |
| 15463 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15464 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15465 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15466 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15467 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15468 | rm -f conftest.er1 |
| 15469 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15471 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15472 | { ac_try='test -z "$ac_c_werror_flag" |
| 15473 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15475 | (eval $ac_try) 2>&5 |
| 15476 | ac_status=$? |
| 15477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15478 | (exit $ac_status); }; } && |
| 15479 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15481 | (eval $ac_try) 2>&5 |
| 15482 | ac_status=$? |
| 15483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15484 | (exit $ac_status); }; }; then |
| 15485 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15486 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15487 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15488 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15489 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15490 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15491 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15492 | rm -f conftest.err conftest.$ac_objext \ |
| 15493 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15494 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15495 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15496 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15497 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15498 | cat >>confdefs.h <<_ACEOF |
| 15499 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15500 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15501 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15502 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15503 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 15504 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 15505 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 15506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15507 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15508 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15509 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15510 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15511 | /* confdefs.h. */ |
| 15512 | _ACEOF |
| 15513 | cat confdefs.h >>conftest.$ac_ext |
| 15514 | cat >>conftest.$ac_ext <<_ACEOF |
| 15515 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15516 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15517 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15518 | #ifdef __cplusplus |
| 15519 | extern "C" |
| 15520 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15521 | /* 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] | 15522 | builtin and then its argument prototype would still apply. */ |
| 15523 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15524 | int |
| 15525 | main () |
| 15526 | { |
| 15527 | openpty (); |
| 15528 | ; |
| 15529 | return 0; |
| 15530 | } |
| 15531 | _ACEOF |
| 15532 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15533 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15534 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15535 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15537 | rm -f conftest.er1 |
| 15538 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15540 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15541 | { ac_try='test -z "$ac_c_werror_flag" |
| 15542 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15544 | (eval $ac_try) 2>&5 |
| 15545 | ac_status=$? |
| 15546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15547 | (exit $ac_status); }; } && |
| 15548 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15550 | (eval $ac_try) 2>&5 |
| 15551 | ac_status=$? |
| 15552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15553 | (exit $ac_status); }; }; then |
| 15554 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15555 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15556 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15558 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15559 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15560 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15561 | rm -f conftest.err conftest.$ac_objext \ |
| 15562 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15563 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15564 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15565 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 15566 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 15567 | if test $ac_cv_lib_util_openpty = yes; then |
| 15568 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15569 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15570 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15571 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 15572 | else |
| 15573 | echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 15574 | echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6 |
| 15575 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
| 15576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15577 | else |
| 15578 | ac_check_lib_save_LIBS=$LIBS |
| 15579 | LIBS="-lbsd $LIBS" |
| 15580 | cat >conftest.$ac_ext <<_ACEOF |
| 15581 | /* confdefs.h. */ |
| 15582 | _ACEOF |
| 15583 | cat confdefs.h >>conftest.$ac_ext |
| 15584 | cat >>conftest.$ac_ext <<_ACEOF |
| 15585 | /* end confdefs.h. */ |
| 15586 | |
| 15587 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15588 | #ifdef __cplusplus |
| 15589 | extern "C" |
| 15590 | #endif |
| 15591 | /* We use char because int might match the return type of a gcc2 |
| 15592 | builtin and then its argument prototype would still apply. */ |
| 15593 | char openpty (); |
| 15594 | int |
| 15595 | main () |
| 15596 | { |
| 15597 | openpty (); |
| 15598 | ; |
| 15599 | return 0; |
| 15600 | } |
| 15601 | _ACEOF |
| 15602 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15603 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15604 | (eval $ac_link) 2>conftest.er1 |
| 15605 | ac_status=$? |
| 15606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15607 | rm -f conftest.er1 |
| 15608 | cat conftest.err >&5 |
| 15609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15610 | (exit $ac_status); } && |
| 15611 | { ac_try='test -z "$ac_c_werror_flag" |
| 15612 | || test ! -s conftest.err' |
| 15613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15614 | (eval $ac_try) 2>&5 |
| 15615 | ac_status=$? |
| 15616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15617 | (exit $ac_status); }; } && |
| 15618 | { ac_try='test -s conftest$ac_exeext' |
| 15619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15620 | (eval $ac_try) 2>&5 |
| 15621 | ac_status=$? |
| 15622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15623 | (exit $ac_status); }; }; then |
| 15624 | ac_cv_lib_bsd_openpty=yes |
| 15625 | else |
| 15626 | echo "$as_me: failed program was:" >&5 |
| 15627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15628 | |
| 15629 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15630 | fi |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 15631 | rm -f conftest.err conftest.$ac_objext \ |
| 15632 | conftest$ac_exeext conftest.$ac_ext |
| 15633 | LIBS=$ac_check_lib_save_LIBS |
| 15634 | fi |
| 15635 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 15636 | echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6 |
| 15637 | if test $ac_cv_lib_bsd_openpty = yes; then |
| 15638 | cat >>confdefs.h <<\_ACEOF |
| 15639 | #define HAVE_OPENPTY 1 |
| 15640 | _ACEOF |
| 15641 | LIBS="$LIBS -lbsd" |
| 15642 | fi |
| 15643 | |
| 15644 | |
| 15645 | fi |
| 15646 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15647 | |
| 15648 | fi |
| 15649 | done |
| 15650 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15651 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15652 | for ac_func in forkpty |
| 15653 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15654 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15655 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15656 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15657 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15659 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15660 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15661 | /* confdefs.h. */ |
| 15662 | _ACEOF |
| 15663 | cat confdefs.h >>conftest.$ac_ext |
| 15664 | cat >>conftest.$ac_ext <<_ACEOF |
| 15665 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15666 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15667 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15668 | #define $ac_func innocuous_$ac_func |
| 15669 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15670 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15671 | which can conflict with char $ac_func (); below. |
| 15672 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15673 | <limits.h> exists even on freestanding compilers. */ |
| 15674 | |
| 15675 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15676 | # include <limits.h> |
| 15677 | #else |
| 15678 | # include <assert.h> |
| 15679 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15680 | |
| 15681 | #undef $ac_func |
| 15682 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15683 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15684 | #ifdef __cplusplus |
| 15685 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15686 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15687 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15688 | /* 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] | 15689 | builtin and then its argument prototype would still apply. */ |
| 15690 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15691 | /* The GNU C library defines this for functions which it implements |
| 15692 | to always fail with ENOSYS. Some functions are actually named |
| 15693 | something starting with __ and the normal name is an alias. */ |
| 15694 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15695 | choke me |
| 15696 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15697 | char (*f) () = $ac_func; |
| 15698 | #endif |
| 15699 | #ifdef __cplusplus |
| 15700 | } |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15701 | #endif |
| 15702 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15703 | int |
| 15704 | main () |
| 15705 | { |
| 15706 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15707 | ; |
| 15708 | return 0; |
| 15709 | } |
| 15710 | _ACEOF |
| 15711 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15712 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15713 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15714 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15715 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15716 | rm -f conftest.er1 |
| 15717 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15719 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15720 | { ac_try='test -z "$ac_c_werror_flag" |
| 15721 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15723 | (eval $ac_try) 2>&5 |
| 15724 | ac_status=$? |
| 15725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15726 | (exit $ac_status); }; } && |
| 15727 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15729 | (eval $ac_try) 2>&5 |
| 15730 | ac_status=$? |
| 15731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15732 | (exit $ac_status); }; }; then |
| 15733 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15734 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15735 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15737 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15738 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15739 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15740 | rm -f conftest.err conftest.$ac_objext \ |
| 15741 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15742 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15743 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15744 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15745 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15746 | cat >>confdefs.h <<_ACEOF |
| 15747 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15748 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15749 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15750 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15751 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 15752 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 15753 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 15754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15755 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15756 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15757 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15758 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15759 | /* confdefs.h. */ |
| 15760 | _ACEOF |
| 15761 | cat confdefs.h >>conftest.$ac_ext |
| 15762 | cat >>conftest.$ac_ext <<_ACEOF |
| 15763 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15764 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15765 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15766 | #ifdef __cplusplus |
| 15767 | extern "C" |
| 15768 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15769 | /* 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] | 15770 | builtin and then its argument prototype would still apply. */ |
| 15771 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15772 | int |
| 15773 | main () |
| 15774 | { |
| 15775 | forkpty (); |
| 15776 | ; |
| 15777 | return 0; |
| 15778 | } |
| 15779 | _ACEOF |
| 15780 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15782 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15783 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15785 | rm -f conftest.er1 |
| 15786 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15788 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15789 | { ac_try='test -z "$ac_c_werror_flag" |
| 15790 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15792 | (eval $ac_try) 2>&5 |
| 15793 | ac_status=$? |
| 15794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15795 | (exit $ac_status); }; } && |
| 15796 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15798 | (eval $ac_try) 2>&5 |
| 15799 | ac_status=$? |
| 15800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15801 | (exit $ac_status); }; }; then |
| 15802 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15803 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15804 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15806 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15807 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15808 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15809 | rm -f conftest.err conftest.$ac_objext \ |
| 15810 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15811 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15812 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15813 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 15814 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 15815 | if test $ac_cv_lib_util_forkpty = yes; then |
| 15816 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15817 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15818 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15819 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 15820 | else |
| 15821 | echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 15822 | echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6 |
| 15823 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
| 15824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15825 | else |
| 15826 | ac_check_lib_save_LIBS=$LIBS |
| 15827 | LIBS="-lbsd $LIBS" |
| 15828 | cat >conftest.$ac_ext <<_ACEOF |
| 15829 | /* confdefs.h. */ |
| 15830 | _ACEOF |
| 15831 | cat confdefs.h >>conftest.$ac_ext |
| 15832 | cat >>conftest.$ac_ext <<_ACEOF |
| 15833 | /* end confdefs.h. */ |
| 15834 | |
| 15835 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15836 | #ifdef __cplusplus |
| 15837 | extern "C" |
| 15838 | #endif |
| 15839 | /* We use char because int might match the return type of a gcc2 |
| 15840 | builtin and then its argument prototype would still apply. */ |
| 15841 | char forkpty (); |
| 15842 | int |
| 15843 | main () |
| 15844 | { |
| 15845 | forkpty (); |
| 15846 | ; |
| 15847 | return 0; |
| 15848 | } |
| 15849 | _ACEOF |
| 15850 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15852 | (eval $ac_link) 2>conftest.er1 |
| 15853 | ac_status=$? |
| 15854 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15855 | rm -f conftest.er1 |
| 15856 | cat conftest.err >&5 |
| 15857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15858 | (exit $ac_status); } && |
| 15859 | { ac_try='test -z "$ac_c_werror_flag" |
| 15860 | || test ! -s conftest.err' |
| 15861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15862 | (eval $ac_try) 2>&5 |
| 15863 | ac_status=$? |
| 15864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15865 | (exit $ac_status); }; } && |
| 15866 | { ac_try='test -s conftest$ac_exeext' |
| 15867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15868 | (eval $ac_try) 2>&5 |
| 15869 | ac_status=$? |
| 15870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15871 | (exit $ac_status); }; }; then |
| 15872 | ac_cv_lib_bsd_forkpty=yes |
| 15873 | else |
| 15874 | echo "$as_me: failed program was:" >&5 |
| 15875 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15876 | |
| 15877 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15878 | fi |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 15879 | rm -f conftest.err conftest.$ac_objext \ |
| 15880 | conftest$ac_exeext conftest.$ac_ext |
| 15881 | LIBS=$ac_check_lib_save_LIBS |
| 15882 | fi |
| 15883 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 15884 | echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6 |
| 15885 | if test $ac_cv_lib_bsd_forkpty = yes; then |
| 15886 | cat >>confdefs.h <<\_ACEOF |
| 15887 | #define HAVE_FORKPTY 1 |
| 15888 | _ACEOF |
| 15889 | LIBS="$LIBS -lbsd" |
| 15890 | fi |
| 15891 | |
| 15892 | |
| 15893 | fi |
| 15894 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15895 | |
| 15896 | fi |
| 15897 | done |
| 15898 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15899 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15900 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15901 | |
| 15902 | |
| 15903 | |
| 15904 | |
| 15905 | |
| 15906 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15907 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 15908 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15909 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15910 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15911 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15912 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 15914 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15915 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15916 | /* confdefs.h. */ |
| 15917 | _ACEOF |
| 15918 | cat confdefs.h >>conftest.$ac_ext |
| 15919 | cat >>conftest.$ac_ext <<_ACEOF |
| 15920 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15921 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15922 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15923 | #define $ac_func innocuous_$ac_func |
| 15924 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 15925 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15926 | which can conflict with char $ac_func (); below. |
| 15927 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15928 | <limits.h> exists even on freestanding compilers. */ |
| 15929 | |
| 15930 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15931 | # include <limits.h> |
| 15932 | #else |
| 15933 | # include <assert.h> |
| 15934 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15935 | |
| 15936 | #undef $ac_func |
| 15937 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 15938 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15939 | #ifdef __cplusplus |
| 15940 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15941 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15942 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 15943 | /* 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] | 15944 | builtin and then its argument prototype would still apply. */ |
| 15945 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 15946 | /* The GNU C library defines this for functions which it implements |
| 15947 | to always fail with ENOSYS. Some functions are actually named |
| 15948 | something starting with __ and the normal name is an alias. */ |
| 15949 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15950 | choke me |
| 15951 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15952 | char (*f) () = $ac_func; |
| 15953 | #endif |
| 15954 | #ifdef __cplusplus |
| 15955 | } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 15956 | #endif |
| 15957 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15958 | int |
| 15959 | main () |
| 15960 | { |
| 15961 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15962 | ; |
| 15963 | return 0; |
| 15964 | } |
| 15965 | _ACEOF |
| 15966 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15967 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15968 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15969 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15970 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15971 | rm -f conftest.er1 |
| 15972 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15974 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15975 | { ac_try='test -z "$ac_c_werror_flag" |
| 15976 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15978 | (eval $ac_try) 2>&5 |
| 15979 | ac_status=$? |
| 15980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15981 | (exit $ac_status); }; } && |
| 15982 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15984 | (eval $ac_try) 2>&5 |
| 15985 | ac_status=$? |
| 15986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15987 | (exit $ac_status); }; }; then |
| 15988 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15989 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15990 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15991 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15992 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15993 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15994 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15995 | rm -f conftest.err conftest.$ac_objext \ |
| 15996 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15997 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15998 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15999 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16000 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16001 | cat >>confdefs.h <<_ACEOF |
| 16002 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16003 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16004 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16005 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16006 | done |
| 16007 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16008 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16009 | |
| 16010 | |
| 16011 | |
| 16012 | |
| 16013 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16014 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16015 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16016 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16017 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16018 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16019 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16021 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16022 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16023 | /* confdefs.h. */ |
| 16024 | _ACEOF |
| 16025 | cat confdefs.h >>conftest.$ac_ext |
| 16026 | cat >>conftest.$ac_ext <<_ACEOF |
| 16027 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16028 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16029 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16030 | #define $ac_func innocuous_$ac_func |
| 16031 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16032 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16033 | which can conflict with char $ac_func (); below. |
| 16034 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16035 | <limits.h> exists even on freestanding compilers. */ |
| 16036 | |
| 16037 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16038 | # include <limits.h> |
| 16039 | #else |
| 16040 | # include <assert.h> |
| 16041 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16042 | |
| 16043 | #undef $ac_func |
| 16044 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16045 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16046 | #ifdef __cplusplus |
| 16047 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16048 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16049 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16050 | /* 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] | 16051 | builtin and then its argument prototype would still apply. */ |
| 16052 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16053 | /* The GNU C library defines this for functions which it implements |
| 16054 | to always fail with ENOSYS. Some functions are actually named |
| 16055 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16056 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16057 | choke me |
| 16058 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16059 | char (*f) () = $ac_func; |
| 16060 | #endif |
| 16061 | #ifdef __cplusplus |
| 16062 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16063 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16064 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16065 | int |
| 16066 | main () |
| 16067 | { |
| 16068 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16069 | ; |
| 16070 | return 0; |
| 16071 | } |
| 16072 | _ACEOF |
| 16073 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16075 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16076 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16078 | rm -f conftest.er1 |
| 16079 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16081 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16082 | { ac_try='test -z "$ac_c_werror_flag" |
| 16083 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16085 | (eval $ac_try) 2>&5 |
| 16086 | ac_status=$? |
| 16087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16088 | (exit $ac_status); }; } && |
| 16089 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16091 | (eval $ac_try) 2>&5 |
| 16092 | ac_status=$? |
| 16093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16094 | (exit $ac_status); }; }; then |
| 16095 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16096 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16097 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16098 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16099 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16100 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16101 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16102 | rm -f conftest.err conftest.$ac_objext \ |
| 16103 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16104 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16105 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16106 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16107 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16108 | cat >>confdefs.h <<_ACEOF |
| 16109 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16110 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16111 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16112 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16113 | case $LIBOBJS in |
| 16114 | "$ac_func.$ac_objext" | \ |
| 16115 | *" $ac_func.$ac_objext" | \ |
| 16116 | "$ac_func.$ac_objext "* | \ |
| 16117 | *" $ac_func.$ac_objext "* ) ;; |
| 16118 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
| 16119 | esac |
| 16120 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16121 | fi |
| 16122 | done |
| 16123 | |
| 16124 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16125 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16126 | for ac_func in getpgrp |
| 16127 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16128 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16129 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16130 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16131 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16133 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16134 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16135 | /* confdefs.h. */ |
| 16136 | _ACEOF |
| 16137 | cat confdefs.h >>conftest.$ac_ext |
| 16138 | cat >>conftest.$ac_ext <<_ACEOF |
| 16139 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16140 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16141 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16142 | #define $ac_func innocuous_$ac_func |
| 16143 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16144 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16145 | which can conflict with char $ac_func (); below. |
| 16146 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16147 | <limits.h> exists even on freestanding compilers. */ |
| 16148 | |
| 16149 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16150 | # include <limits.h> |
| 16151 | #else |
| 16152 | # include <assert.h> |
| 16153 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16154 | |
| 16155 | #undef $ac_func |
| 16156 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16157 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16158 | #ifdef __cplusplus |
| 16159 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16160 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16161 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16162 | /* 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] | 16163 | builtin and then its argument prototype would still apply. */ |
| 16164 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16165 | /* The GNU C library defines this for functions which it implements |
| 16166 | to always fail with ENOSYS. Some functions are actually named |
| 16167 | something starting with __ and the normal name is an alias. */ |
| 16168 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16169 | choke me |
| 16170 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16171 | char (*f) () = $ac_func; |
| 16172 | #endif |
| 16173 | #ifdef __cplusplus |
| 16174 | } |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16175 | #endif |
| 16176 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16177 | int |
| 16178 | main () |
| 16179 | { |
| 16180 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16181 | ; |
| 16182 | return 0; |
| 16183 | } |
| 16184 | _ACEOF |
| 16185 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16186 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16187 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16188 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16189 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16190 | rm -f conftest.er1 |
| 16191 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16193 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16194 | { ac_try='test -z "$ac_c_werror_flag" |
| 16195 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16197 | (eval $ac_try) 2>&5 |
| 16198 | ac_status=$? |
| 16199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16200 | (exit $ac_status); }; } && |
| 16201 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16203 | (eval $ac_try) 2>&5 |
| 16204 | ac_status=$? |
| 16205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16206 | (exit $ac_status); }; }; then |
| 16207 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16208 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16209 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16211 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16212 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16213 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16214 | rm -f conftest.err conftest.$ac_objext \ |
| 16215 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16216 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16217 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16218 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16219 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16220 | cat >>confdefs.h <<_ACEOF |
| 16221 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16222 | _ACEOF |
| 16223 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16224 | /* confdefs.h. */ |
| 16225 | _ACEOF |
| 16226 | cat confdefs.h >>conftest.$ac_ext |
| 16227 | cat >>conftest.$ac_ext <<_ACEOF |
| 16228 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16229 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16230 | int |
| 16231 | main () |
| 16232 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16233 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16234 | ; |
| 16235 | return 0; |
| 16236 | } |
| 16237 | _ACEOF |
| 16238 | rm -f conftest.$ac_objext |
| 16239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16240 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16241 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16242 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16243 | rm -f conftest.er1 |
| 16244 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16246 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16247 | { ac_try='test -z "$ac_c_werror_flag" |
| 16248 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16250 | (eval $ac_try) 2>&5 |
| 16251 | ac_status=$? |
| 16252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16253 | (exit $ac_status); }; } && |
| 16254 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16256 | (eval $ac_try) 2>&5 |
| 16257 | ac_status=$? |
| 16258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16259 | (exit $ac_status); }; }; then |
| 16260 | |
| 16261 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16262 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16263 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16264 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16265 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16266 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16267 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16269 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16270 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16271 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16272 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16273 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16274 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16275 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16276 | |
| 16277 | for ac_func in setpgrp |
| 16278 | do |
| 16279 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16280 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16281 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16282 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16284 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16285 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16286 | /* confdefs.h. */ |
| 16287 | _ACEOF |
| 16288 | cat confdefs.h >>conftest.$ac_ext |
| 16289 | cat >>conftest.$ac_ext <<_ACEOF |
| 16290 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16291 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16292 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16293 | #define $ac_func innocuous_$ac_func |
| 16294 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16295 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16296 | which can conflict with char $ac_func (); below. |
| 16297 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16298 | <limits.h> exists even on freestanding compilers. */ |
| 16299 | |
| 16300 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16301 | # include <limits.h> |
| 16302 | #else |
| 16303 | # include <assert.h> |
| 16304 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16305 | |
| 16306 | #undef $ac_func |
| 16307 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16308 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16309 | #ifdef __cplusplus |
| 16310 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16311 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16312 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16313 | /* We use char because int might match the return type of a gcc2 |
| 16314 | builtin and then its argument prototype would still apply. */ |
| 16315 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16316 | /* The GNU C library defines this for functions which it implements |
| 16317 | to always fail with ENOSYS. Some functions are actually named |
| 16318 | something starting with __ and the normal name is an alias. */ |
| 16319 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16320 | choke me |
| 16321 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16322 | char (*f) () = $ac_func; |
| 16323 | #endif |
| 16324 | #ifdef __cplusplus |
| 16325 | } |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16326 | #endif |
| 16327 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16328 | int |
| 16329 | main () |
| 16330 | { |
| 16331 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16332 | ; |
| 16333 | return 0; |
| 16334 | } |
| 16335 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16336 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16337 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16338 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16339 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16340 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16341 | rm -f conftest.er1 |
| 16342 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16344 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16345 | { ac_try='test -z "$ac_c_werror_flag" |
| 16346 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16348 | (eval $ac_try) 2>&5 |
| 16349 | ac_status=$? |
| 16350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16351 | (exit $ac_status); }; } && |
| 16352 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16354 | (eval $ac_try) 2>&5 |
| 16355 | ac_status=$? |
| 16356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16357 | (exit $ac_status); }; }; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16358 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16359 | else |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16360 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16362 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16363 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16364 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16365 | rm -f conftest.err conftest.$ac_objext \ |
| 16366 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16367 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16368 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16369 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16370 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16371 | cat >>confdefs.h <<_ACEOF |
| 16372 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16373 | _ACEOF |
| 16374 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16375 | /* confdefs.h. */ |
| 16376 | _ACEOF |
| 16377 | cat confdefs.h >>conftest.$ac_ext |
| 16378 | cat >>conftest.$ac_ext <<_ACEOF |
| 16379 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16380 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16381 | int |
| 16382 | main () |
| 16383 | { |
| 16384 | setpgrp(0,0); |
| 16385 | ; |
| 16386 | return 0; |
| 16387 | } |
| 16388 | _ACEOF |
| 16389 | rm -f conftest.$ac_objext |
| 16390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16391 | (eval $ac_compile) 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16392 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16394 | rm -f conftest.er1 |
| 16395 | cat conftest.err >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16397 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16398 | { ac_try='test -z "$ac_c_werror_flag" |
| 16399 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16401 | (eval $ac_try) 2>&5 |
| 16402 | ac_status=$? |
| 16403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16404 | (exit $ac_status); }; } && |
| 16405 | { ac_try='test -s conftest.$ac_objext' |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16407 | (eval $ac_try) 2>&5 |
| 16408 | ac_status=$? |
| 16409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16410 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16411 | |
| 16412 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16413 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16414 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 16415 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16416 | |
| 16417 | else |
| 16418 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16420 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 16421 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16422 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16423 | |
| 16424 | fi |
| 16425 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 16426 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16427 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16428 | for ac_func in gettimeofday |
| 16429 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16430 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16431 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16432 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16433 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16435 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16436 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16437 | /* confdefs.h. */ |
| 16438 | _ACEOF |
| 16439 | cat confdefs.h >>conftest.$ac_ext |
| 16440 | cat >>conftest.$ac_ext <<_ACEOF |
| 16441 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16442 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16443 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16444 | #define $ac_func innocuous_$ac_func |
| 16445 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16446 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16447 | which can conflict with char $ac_func (); below. |
| 16448 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16449 | <limits.h> exists even on freestanding compilers. */ |
| 16450 | |
| 16451 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16452 | # include <limits.h> |
| 16453 | #else |
| 16454 | # include <assert.h> |
| 16455 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16456 | |
| 16457 | #undef $ac_func |
| 16458 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16459 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16460 | #ifdef __cplusplus |
| 16461 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16462 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16463 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16464 | /* 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] | 16465 | builtin and then its argument prototype would still apply. */ |
| 16466 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16467 | /* The GNU C library defines this for functions which it implements |
| 16468 | to always fail with ENOSYS. Some functions are actually named |
| 16469 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16470 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16471 | choke me |
| 16472 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16473 | char (*f) () = $ac_func; |
| 16474 | #endif |
| 16475 | #ifdef __cplusplus |
| 16476 | } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16477 | #endif |
| 16478 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16479 | int |
| 16480 | main () |
| 16481 | { |
| 16482 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16483 | ; |
| 16484 | return 0; |
| 16485 | } |
| 16486 | _ACEOF |
| 16487 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16489 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16490 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16491 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16492 | rm -f conftest.er1 |
| 16493 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16495 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16496 | { ac_try='test -z "$ac_c_werror_flag" |
| 16497 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16499 | (eval $ac_try) 2>&5 |
| 16500 | ac_status=$? |
| 16501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16502 | (exit $ac_status); }; } && |
| 16503 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16505 | (eval $ac_try) 2>&5 |
| 16506 | ac_status=$? |
| 16507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16508 | (exit $ac_status); }; }; then |
| 16509 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16510 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16511 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16513 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16514 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16515 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16516 | rm -f conftest.err conftest.$ac_objext \ |
| 16517 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16518 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16519 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16520 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16521 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16522 | cat >>confdefs.h <<_ACEOF |
| 16523 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16524 | _ACEOF |
| 16525 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16526 | /* confdefs.h. */ |
| 16527 | _ACEOF |
| 16528 | cat confdefs.h >>conftest.$ac_ext |
| 16529 | cat >>conftest.$ac_ext <<_ACEOF |
| 16530 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16531 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16532 | int |
| 16533 | main () |
| 16534 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16535 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16536 | ; |
| 16537 | return 0; |
| 16538 | } |
| 16539 | _ACEOF |
| 16540 | rm -f conftest.$ac_objext |
| 16541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16542 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16543 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16545 | rm -f conftest.er1 |
| 16546 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16548 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16549 | { ac_try='test -z "$ac_c_werror_flag" |
| 16550 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16552 | (eval $ac_try) 2>&5 |
| 16553 | ac_status=$? |
| 16554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16555 | (exit $ac_status); }; } && |
| 16556 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16558 | (eval $ac_try) 2>&5 |
| 16559 | ac_status=$? |
| 16560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16561 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16562 | : |
| 16563 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16564 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16566 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16567 | |
| 16568 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16569 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16570 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16571 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16572 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16573 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16575 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16576 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16577 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16578 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16579 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 16580 | echo "$as_me:$LINENO: checking for major" >&5 |
| 16581 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 16582 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16583 | /* confdefs.h. */ |
| 16584 | _ACEOF |
| 16585 | cat confdefs.h >>conftest.$ac_ext |
| 16586 | cat >>conftest.$ac_ext <<_ACEOF |
| 16587 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 16588 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 16589 | #if defined(MAJOR_IN_MKDEV) |
| 16590 | #include <sys/mkdev.h> |
| 16591 | #elif defined(MAJOR_IN_SYSMACROS) |
| 16592 | #include <sys/sysmacros.h> |
| 16593 | #else |
| 16594 | #include <sys/types.h> |
| 16595 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 16596 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 16597 | int |
| 16598 | main () |
| 16599 | { |
| 16600 | |
| 16601 | makedev(major(0),minor(0)); |
| 16602 | |
| 16603 | ; |
| 16604 | return 0; |
| 16605 | } |
| 16606 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 16607 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16608 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16609 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 16610 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16611 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16612 | rm -f conftest.er1 |
| 16613 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 16614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16615 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16616 | { ac_try='test -z "$ac_c_werror_flag" |
| 16617 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16619 | (eval $ac_try) 2>&5 |
| 16620 | ac_status=$? |
| 16621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16622 | (exit $ac_status); }; } && |
| 16623 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 16624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16625 | (eval $ac_try) 2>&5 |
| 16626 | ac_status=$? |
| 16627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16628 | (exit $ac_status); }; }; then |
| 16629 | |
| 16630 | |
| 16631 | cat >>confdefs.h <<\_ACEOF |
| 16632 | #define HAVE_DEVICE_MACROS 1 |
| 16633 | _ACEOF |
| 16634 | |
| 16635 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16636 | echo "${ECHO_T}yes" >&6 |
| 16637 | |
| 16638 | else |
| 16639 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16641 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 16642 | |
| 16643 | echo "$as_me:$LINENO: result: no" >&5 |
| 16644 | echo "${ECHO_T}no" >&6 |
| 16645 | |
| 16646 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16647 | rm -f conftest.err conftest.$ac_objext \ |
| 16648 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16649 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 16650 | # 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] | 16651 | # for [no]getaddrinfo in netdb.h. |
| 16652 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 16653 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 16654 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16655 | /* confdefs.h. */ |
| 16656 | _ACEOF |
| 16657 | cat confdefs.h >>conftest.$ac_ext |
| 16658 | cat >>conftest.$ac_ext <<_ACEOF |
| 16659 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 16660 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 16661 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 16662 | #include <sys/socket.h> |
| 16663 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 16664 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16665 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16666 | int |
| 16667 | main () |
| 16668 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16669 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 16670 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16672 | ; |
| 16673 | return 0; |
| 16674 | } |
| 16675 | _ACEOF |
| 16676 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16678 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16679 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16680 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16681 | rm -f conftest.er1 |
| 16682 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16684 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16685 | { ac_try='test -z "$ac_c_werror_flag" |
| 16686 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16688 | (eval $ac_try) 2>&5 |
| 16689 | ac_status=$? |
| 16690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16691 | (exit $ac_status); }; } && |
| 16692 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16694 | (eval $ac_try) 2>&5 |
| 16695 | ac_status=$? |
| 16696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16697 | (exit $ac_status); }; }; then |
| 16698 | |
| 16699 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16700 | echo "${ECHO_T}yes" >&6 |
| 16701 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 16702 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16703 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16704 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 16705 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16706 | buggygetaddrinfo=yes |
| 16707 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16708 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16709 | /* confdefs.h. */ |
| 16710 | _ACEOF |
| 16711 | cat confdefs.h >>conftest.$ac_ext |
| 16712 | cat >>conftest.$ac_ext <<_ACEOF |
| 16713 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16714 | |
| 16715 | #include <sys/types.h> |
| 16716 | #include <netdb.h> |
| 16717 | #include <string.h> |
| 16718 | #include <sys/socket.h> |
| 16719 | #include <netinet/in.h> |
| 16720 | |
| 16721 | main() |
| 16722 | { |
| 16723 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 16724 | struct addrinfo hints, *ai, *aitop; |
| 16725 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 16726 | |
| 16727 | for (passive = 0; passive <= 1; passive++) { |
| 16728 | memset(&hints, 0, sizeof(hints)); |
| 16729 | hints.ai_family = AF_UNSPEC; |
| 16730 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 16731 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 16732 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16733 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 16734 | (void)gai_strerror(gaierr); |
| 16735 | goto bad; |
| 16736 | } |
| 16737 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 16738 | if (ai->ai_addr == NULL || |
| 16739 | ai->ai_addrlen == 0 || |
| 16740 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 16741 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 16742 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 16743 | goto bad; |
| 16744 | } |
| 16745 | switch (ai->ai_family) { |
| 16746 | case AF_INET: |
| 16747 | if (strcmp(strport, "54321") != 0) { |
| 16748 | goto bad; |
| 16749 | } |
| 16750 | if (passive) { |
| 16751 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 16752 | goto bad; |
| 16753 | } |
| 16754 | } else { |
| 16755 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 16756 | goto bad; |
| 16757 | } |
| 16758 | } |
| 16759 | inet4++; |
| 16760 | break; |
| 16761 | case AF_INET6: |
| 16762 | if (strcmp(strport, "54321") != 0) { |
| 16763 | goto bad; |
| 16764 | } |
| 16765 | if (passive) { |
| 16766 | if (strcmp(straddr, "::") != 0) { |
| 16767 | goto bad; |
| 16768 | } |
| 16769 | } else { |
| 16770 | if (strcmp(straddr, "::1") != 0) { |
| 16771 | goto bad; |
| 16772 | } |
| 16773 | } |
| 16774 | inet6++; |
| 16775 | break; |
| 16776 | case AF_UNSPEC: |
| 16777 | goto bad; |
| 16778 | break; |
| 16779 | default: |
| 16780 | /* another family support? */ |
| 16781 | break; |
| 16782 | } |
| 16783 | } |
| 16784 | } |
| 16785 | |
| 16786 | if (!(inet4 == 0 || inet4 == 2)) |
| 16787 | goto bad; |
| 16788 | if (!(inet6 == 0 || inet6 == 2)) |
| 16789 | goto bad; |
| 16790 | |
| 16791 | if (aitop) |
| 16792 | freeaddrinfo(aitop); |
| 16793 | exit(0); |
| 16794 | |
| 16795 | bad: |
| 16796 | if (aitop) |
| 16797 | freeaddrinfo(aitop); |
| 16798 | exit(1); |
| 16799 | } |
| 16800 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16801 | _ACEOF |
| 16802 | rm -f conftest$ac_exeext |
| 16803 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16804 | (eval $ac_link) 2>&5 |
| 16805 | ac_status=$? |
| 16806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16807 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16809 | (eval $ac_try) 2>&5 |
| 16810 | ac_status=$? |
| 16811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16812 | (exit $ac_status); }; }; then |
| 16813 | echo "$as_me:$LINENO: result: good" >&5 |
| 16814 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16815 | buggygetaddrinfo=no |
| 16816 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16817 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16818 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16821 | ( exit $ac_status ) |
| 16822 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 16823 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16824 | buggygetaddrinfo=yes |
| 16825 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16826 | 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] | 16827 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16828 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16829 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16831 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16832 | |
| 16833 | echo "$as_me:$LINENO: result: no" >&5 |
| 16834 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16835 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16836 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 16837 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16838 | rm -f conftest.err conftest.$ac_objext \ |
| 16839 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16840 | |
| 16841 | if test "$buggygetaddrinfo" = "yes"; then |
| 16842 | if test "$ipv6" = "yes"; then |
| 16843 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 16844 | echo ' or you can specify "--disable-ipv6"'. |
| 16845 | exit 1 |
| 16846 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 16847 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16848 | |
| 16849 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 16850 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16851 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 16852 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16853 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16854 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 16855 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16856 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16857 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16858 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16859 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16860 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16862 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16863 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16864 | /* confdefs.h. */ |
| 16865 | _ACEOF |
| 16866 | cat confdefs.h >>conftest.$ac_ext |
| 16867 | cat >>conftest.$ac_ext <<_ACEOF |
| 16868 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16869 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16870 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16871 | #define $ac_func innocuous_$ac_func |
| 16872 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16873 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16874 | which can conflict with char $ac_func (); below. |
| 16875 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16876 | <limits.h> exists even on freestanding compilers. */ |
| 16877 | |
| 16878 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16879 | # include <limits.h> |
| 16880 | #else |
| 16881 | # include <assert.h> |
| 16882 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16883 | |
| 16884 | #undef $ac_func |
| 16885 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16886 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16887 | #ifdef __cplusplus |
| 16888 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16889 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16890 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16891 | /* 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] | 16892 | builtin and then its argument prototype would still apply. */ |
| 16893 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16894 | /* The GNU C library defines this for functions which it implements |
| 16895 | to always fail with ENOSYS. Some functions are actually named |
| 16896 | something starting with __ and the normal name is an alias. */ |
| 16897 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16898 | choke me |
| 16899 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16900 | char (*f) () = $ac_func; |
| 16901 | #endif |
| 16902 | #ifdef __cplusplus |
| 16903 | } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16904 | #endif |
| 16905 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16906 | int |
| 16907 | main () |
| 16908 | { |
| 16909 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16910 | ; |
| 16911 | return 0; |
| 16912 | } |
| 16913 | _ACEOF |
| 16914 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16915 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16916 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16917 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16918 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16919 | rm -f conftest.er1 |
| 16920 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16922 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16923 | { ac_try='test -z "$ac_c_werror_flag" |
| 16924 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16926 | (eval $ac_try) 2>&5 |
| 16927 | ac_status=$? |
| 16928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16929 | (exit $ac_status); }; } && |
| 16930 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16932 | (eval $ac_try) 2>&5 |
| 16933 | ac_status=$? |
| 16934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16935 | (exit $ac_status); }; }; then |
| 16936 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16937 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16938 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16940 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16941 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16942 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16943 | rm -f conftest.err conftest.$ac_objext \ |
| 16944 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16945 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16946 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16947 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16948 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16949 | cat >>confdefs.h <<_ACEOF |
| 16950 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16951 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16952 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16953 | fi |
| 16954 | done |
| 16955 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16956 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16957 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16958 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 16959 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 16960 | if test "${ac_cv_header_time+set}" = set; then |
| 16961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16962 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16963 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16964 | /* confdefs.h. */ |
| 16965 | _ACEOF |
| 16966 | cat confdefs.h >>conftest.$ac_ext |
| 16967 | cat >>conftest.$ac_ext <<_ACEOF |
| 16968 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16969 | #include <sys/types.h> |
| 16970 | #include <sys/time.h> |
| 16971 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16972 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16973 | int |
| 16974 | main () |
| 16975 | { |
| 16976 | if ((struct tm *) 0) |
| 16977 | return 0; |
| 16978 | ; |
| 16979 | return 0; |
| 16980 | } |
| 16981 | _ACEOF |
| 16982 | rm -f conftest.$ac_objext |
| 16983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16984 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16985 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16986 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16987 | rm -f conftest.er1 |
| 16988 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16990 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16991 | { ac_try='test -z "$ac_c_werror_flag" |
| 16992 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16994 | (eval $ac_try) 2>&5 |
| 16995 | ac_status=$? |
| 16996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16997 | (exit $ac_status); }; } && |
| 16998 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17000 | (eval $ac_try) 2>&5 |
| 17001 | ac_status=$? |
| 17002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17003 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17004 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17005 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17006 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17008 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17009 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17010 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17011 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17012 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17013 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 17014 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17015 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17016 | |
| 17017 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17018 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17019 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17020 | |
| 17021 | fi |
| 17022 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17023 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 17024 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 17025 | if test "${ac_cv_struct_tm+set}" = set; then |
| 17026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17027 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17028 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17029 | /* confdefs.h. */ |
| 17030 | _ACEOF |
| 17031 | cat confdefs.h >>conftest.$ac_ext |
| 17032 | cat >>conftest.$ac_ext <<_ACEOF |
| 17033 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17034 | #include <sys/types.h> |
| 17035 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17036 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17037 | int |
| 17038 | main () |
| 17039 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17040 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17041 | ; |
| 17042 | return 0; |
| 17043 | } |
| 17044 | _ACEOF |
| 17045 | rm -f conftest.$ac_objext |
| 17046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17047 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17048 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17049 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17050 | rm -f conftest.er1 |
| 17051 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17053 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17054 | { ac_try='test -z "$ac_c_werror_flag" |
| 17055 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17057 | (eval $ac_try) 2>&5 |
| 17058 | ac_status=$? |
| 17059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17060 | (exit $ac_status); }; } && |
| 17061 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17063 | (eval $ac_try) 2>&5 |
| 17064 | ac_status=$? |
| 17065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17066 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17067 | ac_cv_struct_tm=time.h |
| 17068 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17069 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17071 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17072 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17073 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17074 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17075 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17076 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 17077 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17078 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17079 | |
| 17080 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17081 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17082 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17083 | |
| 17084 | fi |
| 17085 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17086 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 17087 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 17088 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 17089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17090 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17091 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17092 | /* confdefs.h. */ |
| 17093 | _ACEOF |
| 17094 | cat confdefs.h >>conftest.$ac_ext |
| 17095 | cat >>conftest.$ac_ext <<_ACEOF |
| 17096 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17097 | #include <sys/types.h> |
| 17098 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17099 | |
| 17100 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17101 | int |
| 17102 | main () |
| 17103 | { |
| 17104 | static struct tm ac_aggr; |
| 17105 | if (ac_aggr.tm_zone) |
| 17106 | return 0; |
| 17107 | ; |
| 17108 | return 0; |
| 17109 | } |
| 17110 | _ACEOF |
| 17111 | rm -f conftest.$ac_objext |
| 17112 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17113 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17114 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17115 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17116 | rm -f conftest.er1 |
| 17117 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17119 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17120 | { ac_try='test -z "$ac_c_werror_flag" |
| 17121 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17123 | (eval $ac_try) 2>&5 |
| 17124 | ac_status=$? |
| 17125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17126 | (exit $ac_status); }; } && |
| 17127 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17129 | (eval $ac_try) 2>&5 |
| 17130 | ac_status=$? |
| 17131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17132 | (exit $ac_status); }; }; then |
| 17133 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17134 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17135 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17137 | |
| 17138 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17139 | /* confdefs.h. */ |
| 17140 | _ACEOF |
| 17141 | cat confdefs.h >>conftest.$ac_ext |
| 17142 | cat >>conftest.$ac_ext <<_ACEOF |
| 17143 | /* end confdefs.h. */ |
| 17144 | #include <sys/types.h> |
| 17145 | #include <$ac_cv_struct_tm> |
| 17146 | |
| 17147 | |
| 17148 | int |
| 17149 | main () |
| 17150 | { |
| 17151 | static struct tm ac_aggr; |
| 17152 | if (sizeof ac_aggr.tm_zone) |
| 17153 | return 0; |
| 17154 | ; |
| 17155 | return 0; |
| 17156 | } |
| 17157 | _ACEOF |
| 17158 | rm -f conftest.$ac_objext |
| 17159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17160 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17161 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17163 | rm -f conftest.er1 |
| 17164 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17166 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17167 | { ac_try='test -z "$ac_c_werror_flag" |
| 17168 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17170 | (eval $ac_try) 2>&5 |
| 17171 | ac_status=$? |
| 17172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17173 | (exit $ac_status); }; } && |
| 17174 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17176 | (eval $ac_try) 2>&5 |
| 17177 | ac_status=$? |
| 17178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17179 | (exit $ac_status); }; }; then |
| 17180 | ac_cv_member_struct_tm_tm_zone=yes |
| 17181 | else |
| 17182 | echo "$as_me: failed program was:" >&5 |
| 17183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17184 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17185 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17186 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17187 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17188 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17189 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17190 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17191 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 17192 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 17193 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 17194 | |
| 17195 | cat >>confdefs.h <<_ACEOF |
| 17196 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 17197 | _ACEOF |
| 17198 | |
| 17199 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17200 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17201 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17202 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 17203 | |
| 17204 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17205 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17206 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17207 | |
| 17208 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17209 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 17210 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 17211 | if test "${ac_cv_var_tzname+set}" = set; then |
| 17212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17213 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17214 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17215 | /* confdefs.h. */ |
| 17216 | _ACEOF |
| 17217 | cat confdefs.h >>conftest.$ac_ext |
| 17218 | cat >>conftest.$ac_ext <<_ACEOF |
| 17219 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17220 | #include <time.h> |
| 17221 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17222 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17223 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17225 | int |
| 17226 | main () |
| 17227 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17228 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17229 | ; |
| 17230 | return 0; |
| 17231 | } |
| 17232 | _ACEOF |
| 17233 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17234 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17235 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17236 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17237 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17238 | rm -f conftest.er1 |
| 17239 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17241 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17242 | { ac_try='test -z "$ac_c_werror_flag" |
| 17243 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17245 | (eval $ac_try) 2>&5 |
| 17246 | ac_status=$? |
| 17247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17248 | (exit $ac_status); }; } && |
| 17249 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17251 | (eval $ac_try) 2>&5 |
| 17252 | ac_status=$? |
| 17253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17254 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17255 | ac_cv_var_tzname=yes |
| 17256 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17257 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17258 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17259 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17260 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17261 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17262 | rm -f conftest.err conftest.$ac_objext \ |
| 17263 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17264 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17265 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 17266 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17267 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17268 | |
| 17269 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17270 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17271 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17272 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17273 | fi |
| 17274 | fi |
| 17275 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17276 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 17277 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 17278 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 17279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17280 | else |
| 17281 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17282 | /* confdefs.h. */ |
| 17283 | _ACEOF |
| 17284 | cat confdefs.h >>conftest.$ac_ext |
| 17285 | cat >>conftest.$ac_ext <<_ACEOF |
| 17286 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17287 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17288 | int |
| 17289 | main () |
| 17290 | { |
| 17291 | static struct stat ac_aggr; |
| 17292 | if (ac_aggr.st_rdev) |
| 17293 | return 0; |
| 17294 | ; |
| 17295 | return 0; |
| 17296 | } |
| 17297 | _ACEOF |
| 17298 | rm -f conftest.$ac_objext |
| 17299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17300 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17301 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17303 | rm -f conftest.er1 |
| 17304 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17306 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17307 | { ac_try='test -z "$ac_c_werror_flag" |
| 17308 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17310 | (eval $ac_try) 2>&5 |
| 17311 | ac_status=$? |
| 17312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17313 | (exit $ac_status); }; } && |
| 17314 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17316 | (eval $ac_try) 2>&5 |
| 17317 | ac_status=$? |
| 17318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17319 | (exit $ac_status); }; }; then |
| 17320 | ac_cv_member_struct_stat_st_rdev=yes |
| 17321 | else |
| 17322 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17324 | |
| 17325 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17326 | /* confdefs.h. */ |
| 17327 | _ACEOF |
| 17328 | cat confdefs.h >>conftest.$ac_ext |
| 17329 | cat >>conftest.$ac_ext <<_ACEOF |
| 17330 | /* end confdefs.h. */ |
| 17331 | $ac_includes_default |
| 17332 | int |
| 17333 | main () |
| 17334 | { |
| 17335 | static struct stat ac_aggr; |
| 17336 | if (sizeof ac_aggr.st_rdev) |
| 17337 | return 0; |
| 17338 | ; |
| 17339 | return 0; |
| 17340 | } |
| 17341 | _ACEOF |
| 17342 | rm -f conftest.$ac_objext |
| 17343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17344 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17345 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17346 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17347 | rm -f conftest.er1 |
| 17348 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17350 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17351 | { ac_try='test -z "$ac_c_werror_flag" |
| 17352 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17354 | (eval $ac_try) 2>&5 |
| 17355 | ac_status=$? |
| 17356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17357 | (exit $ac_status); }; } && |
| 17358 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17360 | (eval $ac_try) 2>&5 |
| 17361 | ac_status=$? |
| 17362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17363 | (exit $ac_status); }; }; then |
| 17364 | ac_cv_member_struct_stat_st_rdev=yes |
| 17365 | else |
| 17366 | echo "$as_me: failed program was:" >&5 |
| 17367 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17368 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17369 | ac_cv_member_struct_stat_st_rdev=no |
| 17370 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17371 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17372 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17374 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17375 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 17376 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 17377 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 17378 | |
| 17379 | cat >>confdefs.h <<_ACEOF |
| 17380 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 17381 | _ACEOF |
| 17382 | |
| 17383 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 17384 | fi |
| 17385 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17386 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 17387 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 17388 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 17389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 17390 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17391 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17392 | /* confdefs.h. */ |
| 17393 | _ACEOF |
| 17394 | cat confdefs.h >>conftest.$ac_ext |
| 17395 | cat >>conftest.$ac_ext <<_ACEOF |
| 17396 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17397 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17398 | int |
| 17399 | main () |
| 17400 | { |
| 17401 | static struct stat ac_aggr; |
| 17402 | if (ac_aggr.st_blksize) |
| 17403 | return 0; |
| 17404 | ; |
| 17405 | return 0; |
| 17406 | } |
| 17407 | _ACEOF |
| 17408 | rm -f conftest.$ac_objext |
| 17409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17410 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17411 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17413 | rm -f conftest.er1 |
| 17414 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17416 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17417 | { ac_try='test -z "$ac_c_werror_flag" |
| 17418 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17420 | (eval $ac_try) 2>&5 |
| 17421 | ac_status=$? |
| 17422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17423 | (exit $ac_status); }; } && |
| 17424 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17426 | (eval $ac_try) 2>&5 |
| 17427 | ac_status=$? |
| 17428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17429 | (exit $ac_status); }; }; then |
| 17430 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17431 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17432 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17434 | |
| 17435 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17436 | /* confdefs.h. */ |
| 17437 | _ACEOF |
| 17438 | cat confdefs.h >>conftest.$ac_ext |
| 17439 | cat >>conftest.$ac_ext <<_ACEOF |
| 17440 | /* end confdefs.h. */ |
| 17441 | $ac_includes_default |
| 17442 | int |
| 17443 | main () |
| 17444 | { |
| 17445 | static struct stat ac_aggr; |
| 17446 | if (sizeof ac_aggr.st_blksize) |
| 17447 | return 0; |
| 17448 | ; |
| 17449 | return 0; |
| 17450 | } |
| 17451 | _ACEOF |
| 17452 | rm -f conftest.$ac_objext |
| 17453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17454 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17455 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17456 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17457 | rm -f conftest.er1 |
| 17458 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17460 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17461 | { ac_try='test -z "$ac_c_werror_flag" |
| 17462 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17464 | (eval $ac_try) 2>&5 |
| 17465 | ac_status=$? |
| 17466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17467 | (exit $ac_status); }; } && |
| 17468 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17470 | (eval $ac_try) 2>&5 |
| 17471 | ac_status=$? |
| 17472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17473 | (exit $ac_status); }; }; then |
| 17474 | ac_cv_member_struct_stat_st_blksize=yes |
| 17475 | else |
| 17476 | echo "$as_me: failed program was:" >&5 |
| 17477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17478 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17479 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17480 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17481 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17482 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17484 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17485 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 17486 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 17487 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17488 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17489 | cat >>confdefs.h <<_ACEOF |
| 17490 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 17491 | _ACEOF |
| 17492 | |
| 17493 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 17494 | fi |
| 17495 | |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 17496 | echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 17497 | echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6 |
| 17498 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
| 17499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17500 | else |
| 17501 | cat >conftest.$ac_ext <<_ACEOF |
| 17502 | /* confdefs.h. */ |
| 17503 | _ACEOF |
| 17504 | cat confdefs.h >>conftest.$ac_ext |
| 17505 | cat >>conftest.$ac_ext <<_ACEOF |
| 17506 | /* end confdefs.h. */ |
| 17507 | $ac_includes_default |
| 17508 | int |
| 17509 | main () |
| 17510 | { |
| 17511 | static struct stat ac_aggr; |
| 17512 | if (ac_aggr.st_flags) |
| 17513 | return 0; |
| 17514 | ; |
| 17515 | return 0; |
| 17516 | } |
| 17517 | _ACEOF |
| 17518 | rm -f conftest.$ac_objext |
| 17519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17520 | (eval $ac_compile) 2>conftest.er1 |
| 17521 | ac_status=$? |
| 17522 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17523 | rm -f conftest.er1 |
| 17524 | cat conftest.err >&5 |
| 17525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17526 | (exit $ac_status); } && |
| 17527 | { ac_try='test -z "$ac_c_werror_flag" |
| 17528 | || test ! -s conftest.err' |
| 17529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17530 | (eval $ac_try) 2>&5 |
| 17531 | ac_status=$? |
| 17532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17533 | (exit $ac_status); }; } && |
| 17534 | { ac_try='test -s conftest.$ac_objext' |
| 17535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17536 | (eval $ac_try) 2>&5 |
| 17537 | ac_status=$? |
| 17538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17539 | (exit $ac_status); }; }; then |
| 17540 | ac_cv_member_struct_stat_st_flags=yes |
| 17541 | else |
| 17542 | echo "$as_me: failed program was:" >&5 |
| 17543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17544 | |
| 17545 | cat >conftest.$ac_ext <<_ACEOF |
| 17546 | /* confdefs.h. */ |
| 17547 | _ACEOF |
| 17548 | cat confdefs.h >>conftest.$ac_ext |
| 17549 | cat >>conftest.$ac_ext <<_ACEOF |
| 17550 | /* end confdefs.h. */ |
| 17551 | $ac_includes_default |
| 17552 | int |
| 17553 | main () |
| 17554 | { |
| 17555 | static struct stat ac_aggr; |
| 17556 | if (sizeof ac_aggr.st_flags) |
| 17557 | return 0; |
| 17558 | ; |
| 17559 | return 0; |
| 17560 | } |
| 17561 | _ACEOF |
| 17562 | rm -f conftest.$ac_objext |
| 17563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17564 | (eval $ac_compile) 2>conftest.er1 |
| 17565 | ac_status=$? |
| 17566 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17567 | rm -f conftest.er1 |
| 17568 | cat conftest.err >&5 |
| 17569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17570 | (exit $ac_status); } && |
| 17571 | { ac_try='test -z "$ac_c_werror_flag" |
| 17572 | || test ! -s conftest.err' |
| 17573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17574 | (eval $ac_try) 2>&5 |
| 17575 | ac_status=$? |
| 17576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17577 | (exit $ac_status); }; } && |
| 17578 | { ac_try='test -s conftest.$ac_objext' |
| 17579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17580 | (eval $ac_try) 2>&5 |
| 17581 | ac_status=$? |
| 17582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17583 | (exit $ac_status); }; }; then |
| 17584 | ac_cv_member_struct_stat_st_flags=yes |
| 17585 | else |
| 17586 | echo "$as_me: failed program was:" >&5 |
| 17587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17588 | |
| 17589 | ac_cv_member_struct_stat_st_flags=no |
| 17590 | fi |
| 17591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17592 | fi |
| 17593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17594 | fi |
| 17595 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 17596 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6 |
| 17597 | if test $ac_cv_member_struct_stat_st_flags = yes; then |
| 17598 | |
| 17599 | cat >>confdefs.h <<_ACEOF |
| 17600 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 17601 | _ACEOF |
| 17602 | |
| 17603 | |
| 17604 | fi |
| 17605 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 17606 | echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 17607 | echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6 |
| 17608 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
| 17609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17610 | else |
| 17611 | cat >conftest.$ac_ext <<_ACEOF |
| 17612 | /* confdefs.h. */ |
| 17613 | _ACEOF |
| 17614 | cat confdefs.h >>conftest.$ac_ext |
| 17615 | cat >>conftest.$ac_ext <<_ACEOF |
| 17616 | /* end confdefs.h. */ |
| 17617 | $ac_includes_default |
| 17618 | int |
| 17619 | main () |
| 17620 | { |
| 17621 | static struct stat ac_aggr; |
| 17622 | if (ac_aggr.st_gen) |
| 17623 | return 0; |
| 17624 | ; |
| 17625 | return 0; |
| 17626 | } |
| 17627 | _ACEOF |
| 17628 | rm -f conftest.$ac_objext |
| 17629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17630 | (eval $ac_compile) 2>conftest.er1 |
| 17631 | ac_status=$? |
| 17632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17633 | rm -f conftest.er1 |
| 17634 | cat conftest.err >&5 |
| 17635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17636 | (exit $ac_status); } && |
| 17637 | { ac_try='test -z "$ac_c_werror_flag" |
| 17638 | || test ! -s conftest.err' |
| 17639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17640 | (eval $ac_try) 2>&5 |
| 17641 | ac_status=$? |
| 17642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17643 | (exit $ac_status); }; } && |
| 17644 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
| 17650 | ac_cv_member_struct_stat_st_gen=yes |
| 17651 | else |
| 17652 | echo "$as_me: failed program was:" >&5 |
| 17653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17654 | |
| 17655 | cat >conftest.$ac_ext <<_ACEOF |
| 17656 | /* confdefs.h. */ |
| 17657 | _ACEOF |
| 17658 | cat confdefs.h >>conftest.$ac_ext |
| 17659 | cat >>conftest.$ac_ext <<_ACEOF |
| 17660 | /* end confdefs.h. */ |
| 17661 | $ac_includes_default |
| 17662 | int |
| 17663 | main () |
| 17664 | { |
| 17665 | static struct stat ac_aggr; |
| 17666 | if (sizeof ac_aggr.st_gen) |
| 17667 | return 0; |
| 17668 | ; |
| 17669 | return 0; |
| 17670 | } |
| 17671 | _ACEOF |
| 17672 | rm -f conftest.$ac_objext |
| 17673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17674 | (eval $ac_compile) 2>conftest.er1 |
| 17675 | ac_status=$? |
| 17676 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17677 | rm -f conftest.er1 |
| 17678 | cat conftest.err >&5 |
| 17679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17680 | (exit $ac_status); } && |
| 17681 | { ac_try='test -z "$ac_c_werror_flag" |
| 17682 | || test ! -s conftest.err' |
| 17683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17684 | (eval $ac_try) 2>&5 |
| 17685 | ac_status=$? |
| 17686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17687 | (exit $ac_status); }; } && |
| 17688 | { ac_try='test -s conftest.$ac_objext' |
| 17689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17690 | (eval $ac_try) 2>&5 |
| 17691 | ac_status=$? |
| 17692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17693 | (exit $ac_status); }; }; then |
| 17694 | ac_cv_member_struct_stat_st_gen=yes |
| 17695 | else |
| 17696 | echo "$as_me: failed program was:" >&5 |
| 17697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17698 | |
| 17699 | ac_cv_member_struct_stat_st_gen=no |
| 17700 | fi |
| 17701 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17702 | fi |
| 17703 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17704 | fi |
| 17705 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 17706 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6 |
| 17707 | if test $ac_cv_member_struct_stat_st_gen = yes; then |
| 17708 | |
| 17709 | cat >>confdefs.h <<_ACEOF |
| 17710 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 17711 | _ACEOF |
| 17712 | |
| 17713 | |
| 17714 | fi |
| 17715 | |
| 17716 | echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 17717 | echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6 |
| 17718 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
| 17719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17720 | else |
| 17721 | cat >conftest.$ac_ext <<_ACEOF |
| 17722 | /* confdefs.h. */ |
| 17723 | _ACEOF |
| 17724 | cat confdefs.h >>conftest.$ac_ext |
| 17725 | cat >>conftest.$ac_ext <<_ACEOF |
| 17726 | /* end confdefs.h. */ |
| 17727 | $ac_includes_default |
| 17728 | int |
| 17729 | main () |
| 17730 | { |
| 17731 | static struct stat ac_aggr; |
| 17732 | if (ac_aggr.st_birthtime) |
| 17733 | return 0; |
| 17734 | ; |
| 17735 | return 0; |
| 17736 | } |
| 17737 | _ACEOF |
| 17738 | rm -f conftest.$ac_objext |
| 17739 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17740 | (eval $ac_compile) 2>conftest.er1 |
| 17741 | ac_status=$? |
| 17742 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17743 | rm -f conftest.er1 |
| 17744 | cat conftest.err >&5 |
| 17745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17746 | (exit $ac_status); } && |
| 17747 | { ac_try='test -z "$ac_c_werror_flag" |
| 17748 | || test ! -s conftest.err' |
| 17749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17750 | (eval $ac_try) 2>&5 |
| 17751 | ac_status=$? |
| 17752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17753 | (exit $ac_status); }; } && |
| 17754 | { ac_try='test -s conftest.$ac_objext' |
| 17755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17756 | (eval $ac_try) 2>&5 |
| 17757 | ac_status=$? |
| 17758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17759 | (exit $ac_status); }; }; then |
| 17760 | ac_cv_member_struct_stat_st_birthtime=yes |
| 17761 | else |
| 17762 | echo "$as_me: failed program was:" >&5 |
| 17763 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17764 | |
| 17765 | cat >conftest.$ac_ext <<_ACEOF |
| 17766 | /* confdefs.h. */ |
| 17767 | _ACEOF |
| 17768 | cat confdefs.h >>conftest.$ac_ext |
| 17769 | cat >>conftest.$ac_ext <<_ACEOF |
| 17770 | /* end confdefs.h. */ |
| 17771 | $ac_includes_default |
| 17772 | int |
| 17773 | main () |
| 17774 | { |
| 17775 | static struct stat ac_aggr; |
| 17776 | if (sizeof ac_aggr.st_birthtime) |
| 17777 | return 0; |
| 17778 | ; |
| 17779 | return 0; |
| 17780 | } |
| 17781 | _ACEOF |
| 17782 | rm -f conftest.$ac_objext |
| 17783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17784 | (eval $ac_compile) 2>conftest.er1 |
| 17785 | ac_status=$? |
| 17786 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17787 | rm -f conftest.er1 |
| 17788 | cat conftest.err >&5 |
| 17789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17790 | (exit $ac_status); } && |
| 17791 | { ac_try='test -z "$ac_c_werror_flag" |
| 17792 | || test ! -s conftest.err' |
| 17793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17794 | (eval $ac_try) 2>&5 |
| 17795 | ac_status=$? |
| 17796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17797 | (exit $ac_status); }; } && |
| 17798 | { ac_try='test -s conftest.$ac_objext' |
| 17799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17800 | (eval $ac_try) 2>&5 |
| 17801 | ac_status=$? |
| 17802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17803 | (exit $ac_status); }; }; then |
| 17804 | ac_cv_member_struct_stat_st_birthtime=yes |
| 17805 | else |
| 17806 | echo "$as_me: failed program was:" >&5 |
| 17807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17808 | |
| 17809 | ac_cv_member_struct_stat_st_birthtime=no |
| 17810 | fi |
| 17811 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17812 | fi |
| 17813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17814 | fi |
| 17815 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 17816 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6 |
| 17817 | if test $ac_cv_member_struct_stat_st_birthtime = yes; then |
| 17818 | |
| 17819 | cat >>confdefs.h <<_ACEOF |
| 17820 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 17821 | _ACEOF |
| 17822 | |
| 17823 | |
| 17824 | fi |
| 17825 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17826 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 17827 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 17828 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 17829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 17830 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17831 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17832 | /* confdefs.h. */ |
| 17833 | _ACEOF |
| 17834 | cat confdefs.h >>conftest.$ac_ext |
| 17835 | cat >>conftest.$ac_ext <<_ACEOF |
| 17836 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17837 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17838 | int |
| 17839 | main () |
| 17840 | { |
| 17841 | static struct stat ac_aggr; |
| 17842 | if (ac_aggr.st_blocks) |
| 17843 | return 0; |
| 17844 | ; |
| 17845 | return 0; |
| 17846 | } |
| 17847 | _ACEOF |
| 17848 | rm -f conftest.$ac_objext |
| 17849 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17850 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17851 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17852 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17853 | rm -f conftest.er1 |
| 17854 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17856 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17857 | { ac_try='test -z "$ac_c_werror_flag" |
| 17858 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17860 | (eval $ac_try) 2>&5 |
| 17861 | ac_status=$? |
| 17862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17863 | (exit $ac_status); }; } && |
| 17864 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17866 | (eval $ac_try) 2>&5 |
| 17867 | ac_status=$? |
| 17868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17869 | (exit $ac_status); }; }; then |
| 17870 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17871 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17872 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17873 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17874 | |
| 17875 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17876 | /* confdefs.h. */ |
| 17877 | _ACEOF |
| 17878 | cat confdefs.h >>conftest.$ac_ext |
| 17879 | cat >>conftest.$ac_ext <<_ACEOF |
| 17880 | /* end confdefs.h. */ |
| 17881 | $ac_includes_default |
| 17882 | int |
| 17883 | main () |
| 17884 | { |
| 17885 | static struct stat ac_aggr; |
| 17886 | if (sizeof ac_aggr.st_blocks) |
| 17887 | return 0; |
| 17888 | ; |
| 17889 | return 0; |
| 17890 | } |
| 17891 | _ACEOF |
| 17892 | rm -f conftest.$ac_objext |
| 17893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17894 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17895 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17897 | rm -f conftest.er1 |
| 17898 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17900 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17901 | { ac_try='test -z "$ac_c_werror_flag" |
| 17902 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17904 | (eval $ac_try) 2>&5 |
| 17905 | ac_status=$? |
| 17906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17907 | (exit $ac_status); }; } && |
| 17908 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17910 | (eval $ac_try) 2>&5 |
| 17911 | ac_status=$? |
| 17912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17913 | (exit $ac_status); }; }; then |
| 17914 | ac_cv_member_struct_stat_st_blocks=yes |
| 17915 | else |
| 17916 | echo "$as_me: failed program was:" >&5 |
| 17917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17918 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17919 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17920 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17921 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17922 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17924 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17925 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 17926 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 17927 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17928 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17929 | cat >>confdefs.h <<_ACEOF |
| 17930 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 17931 | _ACEOF |
| 17932 | |
| 17933 | |
| 17934 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 17935 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17936 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 17937 | |
| 17938 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17939 | case $LIBOBJS in |
| 17940 | "fileblocks.$ac_objext" | \ |
| 17941 | *" fileblocks.$ac_objext" | \ |
| 17942 | "fileblocks.$ac_objext "* | \ |
| 17943 | *" fileblocks.$ac_objext "* ) ;; |
| 17944 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;; |
| 17945 | esac |
| 17946 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 17947 | fi |
| 17948 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17949 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17950 | |
| 17951 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 17952 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 17953 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 17954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17955 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17956 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17957 | /* confdefs.h. */ |
| 17958 | _ACEOF |
| 17959 | cat confdefs.h >>conftest.$ac_ext |
| 17960 | cat >>conftest.$ac_ext <<_ACEOF |
| 17961 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17962 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17963 | int |
| 17964 | main () |
| 17965 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17966 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17967 | ; |
| 17968 | return 0; |
| 17969 | } |
| 17970 | _ACEOF |
| 17971 | rm -f conftest.$ac_objext |
| 17972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17973 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17974 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17975 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17976 | rm -f conftest.er1 |
| 17977 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17979 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17980 | { ac_try='test -z "$ac_c_werror_flag" |
| 17981 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17983 | (eval $ac_try) 2>&5 |
| 17984 | ac_status=$? |
| 17985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17986 | (exit $ac_status); }; } && |
| 17987 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17989 | (eval $ac_try) 2>&5 |
| 17990 | ac_status=$? |
| 17991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17992 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17993 | ac_cv_header_time_altzone=yes |
| 17994 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17995 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17997 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17998 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17999 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18000 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18001 | fi |
| 18002 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18003 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 18004 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18005 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18006 | |
| 18007 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18008 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18009 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18010 | |
| 18011 | fi |
| 18012 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18013 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18014 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 18015 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 18016 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18017 | /* confdefs.h. */ |
| 18018 | _ACEOF |
| 18019 | cat confdefs.h >>conftest.$ac_ext |
| 18020 | cat >>conftest.$ac_ext <<_ACEOF |
| 18021 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18022 | |
| 18023 | #include <sys/types.h> |
| 18024 | #include <sys/select.h> |
| 18025 | #include <sys/time.h> |
| 18026 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18027 | int |
| 18028 | main () |
| 18029 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18030 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18031 | ; |
| 18032 | return 0; |
| 18033 | } |
| 18034 | _ACEOF |
| 18035 | rm -f conftest.$ac_objext |
| 18036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18037 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18038 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18039 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18040 | rm -f conftest.er1 |
| 18041 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18043 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18044 | { ac_try='test -z "$ac_c_werror_flag" |
| 18045 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18047 | (eval $ac_try) 2>&5 |
| 18048 | ac_status=$? |
| 18049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18050 | (exit $ac_status); }; } && |
| 18051 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18053 | (eval $ac_try) 2>&5 |
| 18054 | ac_status=$? |
| 18055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18056 | (exit $ac_status); }; }; then |
| 18057 | |
| 18058 | |
| 18059 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18060 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18061 | _ACEOF |
| 18062 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 18063 | was_it_defined=yes |
| 18064 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 18065 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18066 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18068 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18069 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18070 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18071 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 18072 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18073 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18074 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 18075 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 18076 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 18077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18078 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18079 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18080 | /* confdefs.h. */ |
| 18081 | _ACEOF |
| 18082 | cat confdefs.h >>conftest.$ac_ext |
| 18083 | cat >>conftest.$ac_ext <<_ACEOF |
| 18084 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18085 | |
| 18086 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18087 | int |
| 18088 | main () |
| 18089 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18090 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18091 | ; |
| 18092 | return 0; |
| 18093 | } |
| 18094 | _ACEOF |
| 18095 | rm -f conftest.$ac_objext |
| 18096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18097 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18098 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18099 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18100 | rm -f conftest.er1 |
| 18101 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18103 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18104 | { ac_try='test -z "$ac_c_werror_flag" |
| 18105 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18107 | (eval $ac_try) 2>&5 |
| 18108 | ac_status=$? |
| 18109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18110 | (exit $ac_status); }; } && |
| 18111 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18113 | (eval $ac_try) 2>&5 |
| 18114 | ac_status=$? |
| 18115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18116 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18117 | ac_cv_struct_addrinfo=yes |
| 18118 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18119 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18121 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18122 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18123 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18124 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18125 | fi |
| 18126 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18127 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 18128 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18129 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18130 | |
| 18131 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18132 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18133 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18134 | |
| 18135 | fi |
| 18136 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18137 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 18138 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 18139 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 18140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18141 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18142 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18143 | /* confdefs.h. */ |
| 18144 | _ACEOF |
| 18145 | cat confdefs.h >>conftest.$ac_ext |
| 18146 | cat >>conftest.$ac_ext <<_ACEOF |
| 18147 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18148 | |
| 18149 | # include <sys/types.h> |
| 18150 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18151 | int |
| 18152 | main () |
| 18153 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18154 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18155 | ; |
| 18156 | return 0; |
| 18157 | } |
| 18158 | _ACEOF |
| 18159 | rm -f conftest.$ac_objext |
| 18160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18161 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18162 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18163 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18164 | rm -f conftest.er1 |
| 18165 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18167 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18168 | { ac_try='test -z "$ac_c_werror_flag" |
| 18169 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18171 | (eval $ac_try) 2>&5 |
| 18172 | ac_status=$? |
| 18173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18174 | (exit $ac_status); }; } && |
| 18175 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18177 | (eval $ac_try) 2>&5 |
| 18178 | ac_status=$? |
| 18179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18180 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18181 | ac_cv_struct_sockaddr_storage=yes |
| 18182 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18183 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18185 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18186 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18187 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18188 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18189 | fi |
| 18190 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18191 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 18192 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18193 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18194 | |
| 18195 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18196 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18197 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18198 | |
| 18199 | fi |
| 18200 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18201 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18202 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18203 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18204 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 18205 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 18206 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 18207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18208 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18209 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18210 | /* confdefs.h. */ |
| 18211 | _ACEOF |
| 18212 | cat confdefs.h >>conftest.$ac_ext |
| 18213 | cat >>conftest.$ac_ext <<_ACEOF |
| 18214 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18215 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18216 | int |
| 18217 | main () |
| 18218 | { |
| 18219 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 18220 | test_array [0] = 0 |
| 18221 | |
| 18222 | ; |
| 18223 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18224 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18225 | _ACEOF |
| 18226 | rm -f conftest.$ac_objext |
| 18227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18228 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18229 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18230 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18231 | rm -f conftest.er1 |
| 18232 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18234 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18235 | { ac_try='test -z "$ac_c_werror_flag" |
| 18236 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18238 | (eval $ac_try) 2>&5 |
| 18239 | ac_status=$? |
| 18240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18241 | (exit $ac_status); }; } && |
| 18242 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18244 | (eval $ac_try) 2>&5 |
| 18245 | ac_status=$? |
| 18246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18247 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18248 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18249 | else |
| 18250 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18252 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18253 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18254 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18255 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18256 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18257 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 18258 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18259 | 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] | 18260 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18261 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18262 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18263 | |
| 18264 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18265 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18266 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 18267 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 18268 | if test "${ac_cv_c_const+set}" = set; then |
| 18269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18270 | else |
| 18271 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18272 | /* confdefs.h. */ |
| 18273 | _ACEOF |
| 18274 | cat confdefs.h >>conftest.$ac_ext |
| 18275 | cat >>conftest.$ac_ext <<_ACEOF |
| 18276 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18277 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18278 | int |
| 18279 | main () |
| 18280 | { |
| 18281 | /* FIXME: Include the comments suggested by Paul. */ |
| 18282 | #ifndef __cplusplus |
| 18283 | /* Ultrix mips cc rejects this. */ |
| 18284 | typedef int charset[2]; |
| 18285 | const charset x; |
| 18286 | /* SunOS 4.1.1 cc rejects this. */ |
| 18287 | char const *const *ccp; |
| 18288 | char **p; |
| 18289 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 18290 | struct point {int x, y;}; |
| 18291 | static struct point const zero = {0,0}; |
| 18292 | /* AIX XL C 1.02.0.0 rejects this. |
| 18293 | It does not let you subtract one const X* pointer from another in |
| 18294 | an arm of an if-expression whose if-part is not a constant |
| 18295 | expression */ |
| 18296 | const char *g = "string"; |
| 18297 | ccp = &g + (g ? g-g : 0); |
| 18298 | /* HPUX 7.0 cc rejects these. */ |
| 18299 | ++ccp; |
| 18300 | p = (char**) ccp; |
| 18301 | ccp = (char const *const *) p; |
| 18302 | { /* SCO 3.2v4 cc rejects this. */ |
| 18303 | char *t; |
| 18304 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18305 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18306 | *t++ = 0; |
| 18307 | } |
| 18308 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 18309 | int x[] = {25, 17}; |
| 18310 | const int *foo = &x[0]; |
| 18311 | ++foo; |
| 18312 | } |
| 18313 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 18314 | typedef const int *iptr; |
| 18315 | iptr p = 0; |
| 18316 | ++p; |
| 18317 | } |
| 18318 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 18319 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 18320 | struct s { int j; const int *ap[3]; }; |
| 18321 | struct s *b; b->j = 5; |
| 18322 | } |
| 18323 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 18324 | const int foo = 10; |
| 18325 | } |
| 18326 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18327 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18328 | ; |
| 18329 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18330 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18331 | _ACEOF |
| 18332 | rm -f conftest.$ac_objext |
| 18333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18334 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18335 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18336 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18337 | rm -f conftest.er1 |
| 18338 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18340 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18341 | { ac_try='test -z "$ac_c_werror_flag" |
| 18342 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18344 | (eval $ac_try) 2>&5 |
| 18345 | ac_status=$? |
| 18346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18347 | (exit $ac_status); }; } && |
| 18348 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18350 | (eval $ac_try) 2>&5 |
| 18351 | ac_status=$? |
| 18352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18353 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18354 | ac_cv_c_const=yes |
| 18355 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18356 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18358 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18359 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18360 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18361 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18362 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18363 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 18364 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18365 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18366 | |
| 18367 | cat >>confdefs.h <<\_ACEOF |
| 18368 | #define const |
| 18369 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18370 | |
| 18371 | fi |
| 18372 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18373 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18374 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18375 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 18376 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 18377 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18378 | /* confdefs.h. */ |
| 18379 | _ACEOF |
| 18380 | cat confdefs.h >>conftest.$ac_ext |
| 18381 | cat >>conftest.$ac_ext <<_ACEOF |
| 18382 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18383 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18384 | int |
| 18385 | main () |
| 18386 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18387 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18388 | ; |
| 18389 | return 0; |
| 18390 | } |
| 18391 | _ACEOF |
| 18392 | rm -f conftest.$ac_objext |
| 18393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18394 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18395 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18397 | rm -f conftest.er1 |
| 18398 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18400 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18401 | { ac_try='test -z "$ac_c_werror_flag" |
| 18402 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18404 | (eval $ac_try) 2>&5 |
| 18405 | ac_status=$? |
| 18406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18407 | (exit $ac_status); }; } && |
| 18408 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18410 | (eval $ac_try) 2>&5 |
| 18411 | ac_status=$? |
| 18412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18413 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18414 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18415 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18416 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18418 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18419 | |
| 18420 | cat >>confdefs.h <<\_ACEOF |
| 18421 | #define volatile |
| 18422 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18423 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 18424 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18425 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18426 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18427 | echo "$as_me:$LINENO: result: $works" >&5 |
| 18428 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18429 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18430 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18431 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 18432 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 18433 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18434 | /* confdefs.h. */ |
| 18435 | _ACEOF |
| 18436 | cat confdefs.h >>conftest.$ac_ext |
| 18437 | cat >>conftest.$ac_ext <<_ACEOF |
| 18438 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 18439 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18440 | int |
| 18441 | main () |
| 18442 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18443 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18444 | ; |
| 18445 | return 0; |
| 18446 | } |
| 18447 | _ACEOF |
| 18448 | rm -f conftest.$ac_objext |
| 18449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18450 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18451 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18452 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18453 | rm -f conftest.er1 |
| 18454 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18456 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18457 | { ac_try='test -z "$ac_c_werror_flag" |
| 18458 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18460 | (eval $ac_try) 2>&5 |
| 18461 | ac_status=$? |
| 18462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18463 | (exit $ac_status); }; } && |
| 18464 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18466 | (eval $ac_try) 2>&5 |
| 18467 | ac_status=$? |
| 18468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18469 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18470 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 18471 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18472 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18474 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18475 | |
| 18476 | cat >>confdefs.h <<\_ACEOF |
| 18477 | #define signed |
| 18478 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18479 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 18480 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18481 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18483 | echo "$as_me:$LINENO: result: $works" >&5 |
| 18484 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18485 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18486 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18487 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 18488 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 18489 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18490 | /* confdefs.h. */ |
| 18491 | _ACEOF |
| 18492 | cat confdefs.h >>conftest.$ac_ext |
| 18493 | cat >>conftest.$ac_ext <<_ACEOF |
| 18494 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18495 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18496 | int |
| 18497 | main () |
| 18498 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18499 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18500 | ; |
| 18501 | return 0; |
| 18502 | } |
| 18503 | _ACEOF |
| 18504 | rm -f conftest.$ac_objext |
| 18505 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18506 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18507 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18509 | rm -f conftest.er1 |
| 18510 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18512 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18513 | { ac_try='test -z "$ac_c_werror_flag" |
| 18514 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18516 | (eval $ac_try) 2>&5 |
| 18517 | ac_status=$? |
| 18518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18519 | (exit $ac_status); }; } && |
| 18520 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18522 | (eval $ac_try) 2>&5 |
| 18523 | ac_status=$? |
| 18524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18525 | (exit $ac_status); }; }; then |
| 18526 | |
| 18527 | |
| 18528 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18529 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18530 | _ACEOF |
| 18531 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 18532 | have_prototypes=yes |
| 18533 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 18534 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18535 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18537 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18538 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18540 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 18541 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18542 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18543 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18544 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 18545 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 18546 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18547 | /* confdefs.h. */ |
| 18548 | _ACEOF |
| 18549 | cat confdefs.h >>conftest.$ac_ext |
| 18550 | cat >>conftest.$ac_ext <<_ACEOF |
| 18551 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18552 | |
| 18553 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 18554 | int foo(int x, ...) { |
| 18555 | va_list va; |
| 18556 | va_start(va, x); |
| 18557 | va_arg(va, int); |
| 18558 | va_arg(va, char *); |
| 18559 | va_arg(va, double); |
| 18560 | return 0; |
| 18561 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18562 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18563 | int |
| 18564 | main () |
| 18565 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 18566 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18567 | ; |
| 18568 | return 0; |
| 18569 | } |
| 18570 | _ACEOF |
| 18571 | rm -f conftest.$ac_objext |
| 18572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18573 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18574 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18575 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18576 | rm -f conftest.er1 |
| 18577 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18579 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18580 | { ac_try='test -z "$ac_c_werror_flag" |
| 18581 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18583 | (eval $ac_try) 2>&5 |
| 18584 | ac_status=$? |
| 18585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18586 | (exit $ac_status); }; } && |
| 18587 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18589 | (eval $ac_try) 2>&5 |
| 18590 | ac_status=$? |
| 18591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18592 | (exit $ac_status); }; }; then |
| 18593 | |
| 18594 | |
| 18595 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18596 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18597 | _ACEOF |
| 18598 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 18599 | works=yes |
| 18600 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 18601 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18602 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18603 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18604 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18605 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18606 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18607 | echo "$as_me:$LINENO: result: $works" >&5 |
| 18608 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18609 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 18610 | # check for socketpair |
| 18611 | echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 18612 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6 |
| 18613 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 18614 | /* confdefs.h. */ |
| 18615 | _ACEOF |
| 18616 | cat confdefs.h >>conftest.$ac_ext |
| 18617 | cat >>conftest.$ac_ext <<_ACEOF |
| 18618 | /* end confdefs.h. */ |
| 18619 | |
| 18620 | #include <sys/types.h> |
| 18621 | #include <sys/socket.h> |
| 18622 | |
| 18623 | int |
| 18624 | main () |
| 18625 | { |
| 18626 | void *x=socketpair |
| 18627 | ; |
| 18628 | return 0; |
| 18629 | } |
| 18630 | _ACEOF |
| 18631 | rm -f conftest.$ac_objext |
| 18632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18633 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 18634 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18635 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18636 | rm -f conftest.er1 |
| 18637 | cat conftest.err >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 18638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18639 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18640 | { ac_try='test -z "$ac_c_werror_flag" |
| 18641 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18643 | (eval $ac_try) 2>&5 |
| 18644 | ac_status=$? |
| 18645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18646 | (exit $ac_status); }; } && |
| 18647 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 18648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18649 | (eval $ac_try) 2>&5 |
| 18650 | ac_status=$? |
| 18651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18652 | (exit $ac_status); }; }; then |
| 18653 | |
| 18654 | cat >>confdefs.h <<\_ACEOF |
| 18655 | #define HAVE_SOCKETPAIR 1 |
| 18656 | _ACEOF |
| 18657 | |
| 18658 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18659 | echo "${ECHO_T}yes" >&6 |
| 18660 | else |
| 18661 | echo "$as_me: failed program was:" >&5 |
| 18662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18663 | |
| 18664 | echo "$as_me:$LINENO: result: no" >&5 |
| 18665 | echo "${ECHO_T}no" >&6 |
| 18666 | |
| 18667 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18668 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 18669 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18670 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18671 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 18672 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 18673 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18674 | /* confdefs.h. */ |
| 18675 | _ACEOF |
| 18676 | cat confdefs.h >>conftest.$ac_ext |
| 18677 | cat >>conftest.$ac_ext <<_ACEOF |
| 18678 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18679 | #include <sys/types.h> |
| 18680 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18681 | int |
| 18682 | main () |
| 18683 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18684 | struct sockaddr x; |
| 18685 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18686 | ; |
| 18687 | return 0; |
| 18688 | } |
| 18689 | _ACEOF |
| 18690 | rm -f conftest.$ac_objext |
| 18691 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18692 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18693 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18694 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18695 | rm -f conftest.er1 |
| 18696 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18698 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18699 | { ac_try='test -z "$ac_c_werror_flag" |
| 18700 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18702 | (eval $ac_try) 2>&5 |
| 18703 | ac_status=$? |
| 18704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18705 | (exit $ac_status); }; } && |
| 18706 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18708 | (eval $ac_try) 2>&5 |
| 18709 | ac_status=$? |
| 18710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18711 | (exit $ac_status); }; }; then |
| 18712 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18713 | echo "${ECHO_T}yes" >&6 |
| 18714 | |
| 18715 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18716 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18717 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18718 | |
| 18719 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18720 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18722 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18723 | echo "$as_me:$LINENO: result: no" >&5 |
| 18724 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18725 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18726 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18727 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18728 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18729 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 18730 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 18731 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18732 | /* confdefs.h. */ |
| 18733 | _ACEOF |
| 18734 | cat confdefs.h >>conftest.$ac_ext |
| 18735 | cat >>conftest.$ac_ext <<_ACEOF |
| 18736 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18737 | |
| 18738 | #ifdef HAVE_STDARG_PROTOTYPES |
| 18739 | #include <stdarg.h> |
| 18740 | #else |
| 18741 | #include <varargs.h> |
| 18742 | #endif |
| 18743 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18744 | int |
| 18745 | main () |
| 18746 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18747 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18748 | ; |
| 18749 | return 0; |
| 18750 | } |
| 18751 | _ACEOF |
| 18752 | rm -f conftest.$ac_objext |
| 18753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18754 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18755 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18756 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18757 | rm -f conftest.er1 |
| 18758 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18760 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18761 | { ac_try='test -z "$ac_c_werror_flag" |
| 18762 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18764 | (eval $ac_try) 2>&5 |
| 18765 | ac_status=$? |
| 18766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18767 | (exit $ac_status); }; } && |
| 18768 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18770 | (eval $ac_try) 2>&5 |
| 18771 | ac_status=$? |
| 18772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18773 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18774 | : |
| 18775 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18776 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18777 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18778 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18779 | |
| 18780 | |
| 18781 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18782 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18783 | _ACEOF |
| 18784 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18785 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 18786 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18787 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18788 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18789 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 18790 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18791 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18792 | # 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] | 18793 | |
| 18794 | |
| 18795 | |
| 18796 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 18797 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 18798 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 18799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18800 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18801 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18802 | /* confdefs.h. */ |
| 18803 | _ACEOF |
| 18804 | cat confdefs.h >>conftest.$ac_ext |
| 18805 | cat >>conftest.$ac_ext <<_ACEOF |
| 18806 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18807 | /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
| 18808 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18809 | #define gethostbyname_r innocuous_gethostbyname_r |
| 18810 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18811 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18812 | which can conflict with char gethostbyname_r (); below. |
| 18813 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18814 | <limits.h> exists even on freestanding compilers. */ |
| 18815 | |
| 18816 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18817 | # include <limits.h> |
| 18818 | #else |
| 18819 | # include <assert.h> |
| 18820 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18821 | |
| 18822 | #undef gethostbyname_r |
| 18823 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18824 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18825 | #ifdef __cplusplus |
| 18826 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18827 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18828 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18829 | /* 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] | 18830 | builtin and then its argument prototype would still apply. */ |
| 18831 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18832 | /* The GNU C library defines this for functions which it implements |
| 18833 | to always fail with ENOSYS. Some functions are actually named |
| 18834 | something starting with __ and the normal name is an alias. */ |
| 18835 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 18836 | choke me |
| 18837 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18838 | char (*f) () = gethostbyname_r; |
| 18839 | #endif |
| 18840 | #ifdef __cplusplus |
| 18841 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18842 | #endif |
| 18843 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18844 | int |
| 18845 | main () |
| 18846 | { |
| 18847 | return f != gethostbyname_r; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18848 | ; |
| 18849 | return 0; |
| 18850 | } |
| 18851 | _ACEOF |
| 18852 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18853 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18854 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18855 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18856 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18857 | rm -f conftest.er1 |
| 18858 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18860 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18861 | { ac_try='test -z "$ac_c_werror_flag" |
| 18862 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18864 | (eval $ac_try) 2>&5 |
| 18865 | ac_status=$? |
| 18866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18867 | (exit $ac_status); }; } && |
| 18868 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18870 | (eval $ac_try) 2>&5 |
| 18871 | ac_status=$? |
| 18872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18873 | (exit $ac_status); }; }; then |
| 18874 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18875 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18876 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18878 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18879 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18880 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18881 | rm -f conftest.err conftest.$ac_objext \ |
| 18882 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18883 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18884 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 18885 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 18886 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18887 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18888 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18889 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18890 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18891 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18892 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 18893 | 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] | 18894 | OLD_CFLAGS=$CFLAGS |
| 18895 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18896 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18897 | /* confdefs.h. */ |
| 18898 | _ACEOF |
| 18899 | cat confdefs.h >>conftest.$ac_ext |
| 18900 | cat >>conftest.$ac_ext <<_ACEOF |
| 18901 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18902 | |
| 18903 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18904 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18905 | int |
| 18906 | main () |
| 18907 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18908 | |
| 18909 | char *name; |
| 18910 | struct hostent *he, *res; |
| 18911 | char buffer[2048]; |
| 18912 | int buflen = 2048; |
| 18913 | int h_errnop; |
| 18914 | |
| 18915 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18916 | |
| 18917 | ; |
| 18918 | return 0; |
| 18919 | } |
| 18920 | _ACEOF |
| 18921 | rm -f conftest.$ac_objext |
| 18922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18923 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18924 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18925 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18926 | rm -f conftest.er1 |
| 18927 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18929 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18930 | { ac_try='test -z "$ac_c_werror_flag" |
| 18931 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18933 | (eval $ac_try) 2>&5 |
| 18934 | ac_status=$? |
| 18935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18936 | (exit $ac_status); }; } && |
| 18937 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18939 | (eval $ac_try) 2>&5 |
| 18940 | ac_status=$? |
| 18941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18942 | (exit $ac_status); }; }; then |
| 18943 | |
| 18944 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 18945 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18946 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 18947 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18948 | |
| 18949 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18950 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18951 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18952 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18953 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18954 | echo "${ECHO_T}yes" >&6 |
| 18955 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18956 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18957 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18959 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18960 | |
| 18961 | echo "$as_me:$LINENO: result: no" >&5 |
| 18962 | echo "${ECHO_T}no" >&6 |
| 18963 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 18964 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 18965 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18966 | /* confdefs.h. */ |
| 18967 | _ACEOF |
| 18968 | cat confdefs.h >>conftest.$ac_ext |
| 18969 | cat >>conftest.$ac_ext <<_ACEOF |
| 18970 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18971 | |
| 18972 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18973 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18974 | int |
| 18975 | main () |
| 18976 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18977 | |
| 18978 | char *name; |
| 18979 | struct hostent *he; |
| 18980 | char buffer[2048]; |
| 18981 | int buflen = 2048; |
| 18982 | int h_errnop; |
| 18983 | |
| 18984 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | |
| 19013 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19014 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19015 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19016 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19017 | |
| 19018 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19019 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19020 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19021 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19022 | echo "$as_me:$LINENO: result: yes" >&5 |
| 19023 | echo "${ECHO_T}yes" >&6 |
| 19024 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19025 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19026 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19028 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19029 | |
| 19030 | echo "$as_me:$LINENO: result: no" >&5 |
| 19031 | echo "${ECHO_T}no" >&6 |
| 19032 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 19033 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 19034 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19035 | /* confdefs.h. */ |
| 19036 | _ACEOF |
| 19037 | cat confdefs.h >>conftest.$ac_ext |
| 19038 | cat >>conftest.$ac_ext <<_ACEOF |
| 19039 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19040 | |
| 19041 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19042 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19043 | int |
| 19044 | main () |
| 19045 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19046 | |
| 19047 | char *name; |
| 19048 | struct hostent *he; |
| 19049 | struct hostent_data data; |
| 19050 | |
| 19051 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19052 | |
| 19053 | ; |
| 19054 | return 0; |
| 19055 | } |
| 19056 | _ACEOF |
| 19057 | rm -f conftest.$ac_objext |
| 19058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19059 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19060 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19062 | rm -f conftest.er1 |
| 19063 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19065 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19066 | { ac_try='test -z "$ac_c_werror_flag" |
| 19067 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19069 | (eval $ac_try) 2>&5 |
| 19070 | ac_status=$? |
| 19071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19072 | (exit $ac_status); }; } && |
| 19073 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19075 | (eval $ac_try) 2>&5 |
| 19076 | ac_status=$? |
| 19077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19078 | (exit $ac_status); }; }; then |
| 19079 | |
| 19080 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19081 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19082 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19083 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19084 | |
| 19085 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19086 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19087 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19088 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19089 | echo "$as_me:$LINENO: result: yes" >&5 |
| 19090 | echo "${ECHO_T}yes" >&6 |
| 19091 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19092 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19093 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19094 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19095 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19096 | |
| 19097 | echo "$as_me:$LINENO: result: no" >&5 |
| 19098 | echo "${ECHO_T}no" >&6 |
| 19099 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19100 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19102 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19103 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19105 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19106 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19107 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19108 | CFLAGS=$OLD_CFLAGS |
| 19109 | |
| 19110 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19111 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19112 | |
| 19113 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 19114 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19115 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19116 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19117 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 19118 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 19119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19120 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19121 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19122 | /* confdefs.h. */ |
| 19123 | _ACEOF |
| 19124 | cat confdefs.h >>conftest.$ac_ext |
| 19125 | cat >>conftest.$ac_ext <<_ACEOF |
| 19126 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19127 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19128 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19129 | #define $ac_func innocuous_$ac_func |
| 19130 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19131 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19132 | which can conflict with char $ac_func (); below. |
| 19133 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19134 | <limits.h> exists even on freestanding compilers. */ |
| 19135 | |
| 19136 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19137 | # include <limits.h> |
| 19138 | #else |
| 19139 | # include <assert.h> |
| 19140 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19141 | |
| 19142 | #undef $ac_func |
| 19143 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19144 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19145 | #ifdef __cplusplus |
| 19146 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19147 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19148 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19149 | /* 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] | 19150 | builtin and then its argument prototype would still apply. */ |
| 19151 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19152 | /* The GNU C library defines this for functions which it implements |
| 19153 | to always fail with ENOSYS. Some functions are actually named |
| 19154 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 19155 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19156 | choke me |
| 19157 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19158 | char (*f) () = $ac_func; |
| 19159 | #endif |
| 19160 | #ifdef __cplusplus |
| 19161 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19162 | #endif |
| 19163 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19164 | int |
| 19165 | main () |
| 19166 | { |
| 19167 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19168 | ; |
| 19169 | return 0; |
| 19170 | } |
| 19171 | _ACEOF |
| 19172 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19174 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19175 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19176 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19177 | rm -f conftest.er1 |
| 19178 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19180 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19181 | { ac_try='test -z "$ac_c_werror_flag" |
| 19182 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19184 | (eval $ac_try) 2>&5 |
| 19185 | ac_status=$? |
| 19186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19187 | (exit $ac_status); }; } && |
| 19188 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19190 | (eval $ac_try) 2>&5 |
| 19191 | ac_status=$? |
| 19192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19193 | (exit $ac_status); }; }; then |
| 19194 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19195 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19196 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19198 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19199 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19200 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19201 | rm -f conftest.err conftest.$ac_objext \ |
| 19202 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19203 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19204 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 19205 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 19206 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 19207 | cat >>confdefs.h <<_ACEOF |
| 19208 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 19209 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19210 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19211 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 19212 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19213 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19214 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19215 | fi |
| 19216 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19217 | |
| 19218 | |
| 19219 | |
| 19220 | |
| 19221 | |
| 19222 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19223 | # checks for system services |
| 19224 | # (none yet) |
| 19225 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19226 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19227 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 19228 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 19229 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 19230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19231 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19232 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19233 | /* confdefs.h. */ |
| 19234 | _ACEOF |
| 19235 | cat confdefs.h >>conftest.$ac_ext |
| 19236 | cat >>conftest.$ac_ext <<_ACEOF |
| 19237 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19238 | /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control. |
| 19239 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19240 | #define __fpu_control innocuous___fpu_control |
| 19241 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19242 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19243 | which can conflict with char __fpu_control (); below. |
| 19244 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19245 | <limits.h> exists even on freestanding compilers. */ |
| 19246 | |
| 19247 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19248 | # include <limits.h> |
| 19249 | #else |
| 19250 | # include <assert.h> |
| 19251 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19252 | |
| 19253 | #undef __fpu_control |
| 19254 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19255 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19256 | #ifdef __cplusplus |
| 19257 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19258 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19259 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19260 | /* 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] | 19261 | builtin and then its argument prototype would still apply. */ |
| 19262 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19263 | /* The GNU C library defines this for functions which it implements |
| 19264 | to always fail with ENOSYS. Some functions are actually named |
| 19265 | something starting with __ and the normal name is an alias. */ |
| 19266 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 19267 | choke me |
| 19268 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19269 | char (*f) () = __fpu_control; |
| 19270 | #endif |
| 19271 | #ifdef __cplusplus |
| 19272 | } |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19273 | #endif |
| 19274 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19275 | int |
| 19276 | main () |
| 19277 | { |
| 19278 | return f != __fpu_control; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19279 | ; |
| 19280 | return 0; |
| 19281 | } |
| 19282 | _ACEOF |
| 19283 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19285 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19286 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19288 | rm -f conftest.er1 |
| 19289 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19291 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19292 | { ac_try='test -z "$ac_c_werror_flag" |
| 19293 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19295 | (eval $ac_try) 2>&5 |
| 19296 | ac_status=$? |
| 19297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19298 | (exit $ac_status); }; } && |
| 19299 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19301 | (eval $ac_try) 2>&5 |
| 19302 | ac_status=$? |
| 19303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19304 | (exit $ac_status); }; }; then |
| 19305 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19306 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19307 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19308 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19309 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19310 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19311 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19312 | rm -f conftest.err conftest.$ac_objext \ |
| 19313 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19314 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19315 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 19316 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 19317 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19318 | : |
| 19319 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19320 | |
| 19321 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 19322 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 19323 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 19324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19325 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19326 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 19327 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19328 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19329 | /* confdefs.h. */ |
| 19330 | _ACEOF |
| 19331 | cat confdefs.h >>conftest.$ac_ext |
| 19332 | cat >>conftest.$ac_ext <<_ACEOF |
| 19333 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19334 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 19335 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19336 | #ifdef __cplusplus |
| 19337 | extern "C" |
| 19338 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 19339 | /* 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] | 19340 | builtin and then its argument prototype would still apply. */ |
| 19341 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19342 | int |
| 19343 | main () |
| 19344 | { |
| 19345 | __fpu_control (); |
| 19346 | ; |
| 19347 | return 0; |
| 19348 | } |
| 19349 | _ACEOF |
| 19350 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19351 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19352 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19353 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19354 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19355 | rm -f conftest.er1 |
| 19356 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19358 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19359 | { ac_try='test -z "$ac_c_werror_flag" |
| 19360 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19362 | (eval $ac_try) 2>&5 |
| 19363 | ac_status=$? |
| 19364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19365 | (exit $ac_status); }; } && |
| 19366 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19368 | (eval $ac_try) 2>&5 |
| 19369 | ac_status=$? |
| 19370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19371 | (exit $ac_status); }; }; then |
| 19372 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19373 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19374 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19375 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19376 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19377 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19378 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19379 | rm -f conftest.err conftest.$ac_objext \ |
| 19380 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19381 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19382 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19383 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 19384 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 19385 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 19386 | cat >>confdefs.h <<_ACEOF |
| 19387 | #define HAVE_LIBIEEE 1 |
| 19388 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19389 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 19390 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19391 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19392 | fi |
| 19393 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19394 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19395 | fi |
| 19396 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19397 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19398 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19399 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 19400 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 19401 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19402 | # Check whether --with-fpectl or --without-fpectl was given. |
| 19403 | if test "${with_fpectl+set}" = set; then |
| 19404 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19405 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19406 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19407 | then |
| 19408 | |
| 19409 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19410 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19411 | _ACEOF |
| 19412 | |
| 19413 | echo "$as_me:$LINENO: result: yes" >&5 |
| 19414 | echo "${ECHO_T}yes" >&6 |
| 19415 | else echo "$as_me:$LINENO: result: no" >&5 |
| 19416 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19417 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19418 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19419 | echo "$as_me:$LINENO: result: no" >&5 |
| 19420 | echo "${ECHO_T}no" >&6 |
| 19421 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19422 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19423 | # check for --with-libm=... |
| 19424 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 19425 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 19426 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 19427 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 19428 | *) LIBM=-lm |
| 19429 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19430 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 19431 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 19432 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19433 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 19434 | if test "${with_libm+set}" = set; then |
| 19435 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19436 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19437 | if test "$withval" = no |
| 19438 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19439 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 19440 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19441 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19442 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19443 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 19444 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 19445 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 19446 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 19447 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19448 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19449 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19450 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 19451 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 19452 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19453 | |
| 19454 | # check for --with-libc=... |
| 19455 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19456 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 19457 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 19458 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19459 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 19460 | if test "${with_libc+set}" = set; then |
| 19461 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19462 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19463 | if test "$withval" = no |
| 19464 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19465 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 19466 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19467 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19468 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19469 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 19470 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 19471 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 19472 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 19473 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19474 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19475 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19476 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 19477 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 19478 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19479 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 19480 | # check for hypot() in math library |
| 19481 | LIBS_SAVE=$LIBS |
| 19482 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19483 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 19484 | for ac_func in hypot |
| 19485 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19486 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19487 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19488 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 19489 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 19490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 19491 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19492 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19493 | /* confdefs.h. */ |
| 19494 | _ACEOF |
| 19495 | cat confdefs.h >>conftest.$ac_ext |
| 19496 | cat >>conftest.$ac_ext <<_ACEOF |
| 19497 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19498 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19499 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19500 | #define $ac_func innocuous_$ac_func |
| 19501 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 19502 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19503 | which can conflict with char $ac_func (); below. |
| 19504 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19505 | <limits.h> exists even on freestanding compilers. */ |
| 19506 | |
| 19507 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19508 | # include <limits.h> |
| 19509 | #else |
| 19510 | # include <assert.h> |
| 19511 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19512 | |
| 19513 | #undef $ac_func |
| 19514 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 19515 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19516 | #ifdef __cplusplus |
| 19517 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19518 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19519 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 19520 | /* 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] | 19521 | builtin and then its argument prototype would still apply. */ |
| 19522 | char $ac_func (); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 19523 | /* The GNU C library defines this for functions which it implements |
| 19524 | to always fail with ENOSYS. Some functions are actually named |
| 19525 | something starting with __ and the normal name is an alias. */ |
| 19526 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 19527 | choke me |
| 19528 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19529 | char (*f) () = $ac_func; |
| 19530 | #endif |
| 19531 | #ifdef __cplusplus |
| 19532 | } |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 19533 | #endif |
| 19534 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19535 | int |
| 19536 | main () |
| 19537 | { |
| 19538 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19539 | ; |
| 19540 | return 0; |
| 19541 | } |
| 19542 | _ACEOF |
| 19543 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19544 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19545 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19546 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19547 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19548 | rm -f conftest.er1 |
| 19549 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19551 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19552 | { ac_try='test -z "$ac_c_werror_flag" |
| 19553 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19555 | (eval $ac_try) 2>&5 |
| 19556 | ac_status=$? |
| 19557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19558 | (exit $ac_status); }; } && |
| 19559 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19561 | (eval $ac_try) 2>&5 |
| 19562 | ac_status=$? |
| 19563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19564 | (exit $ac_status); }; }; then |
| 19565 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 19566 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19567 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19569 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19570 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19571 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19572 | rm -f conftest.err conftest.$ac_objext \ |
| 19573 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19574 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19575 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 19576 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 19577 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 19578 | cat >>confdefs.h <<_ACEOF |
| 19579 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 19580 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19581 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19582 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19583 | case $LIBOBJS in |
| 19584 | "$ac_func.$ac_objext" | \ |
| 19585 | *" $ac_func.$ac_objext" | \ |
| 19586 | "$ac_func.$ac_objext "* | \ |
| 19587 | *" $ac_func.$ac_objext "* ) ;; |
| 19588 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
| 19589 | esac |
| 19590 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 19591 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 19592 | done |
| 19593 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19594 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 19595 | LIBS=$LIBS_SAVE |
| 19596 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19597 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19598 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 19599 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 19600 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 19601 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 19602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19603 | fi |
| 19604 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 19605 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19606 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19607 | # Is the header compilable? |
| 19608 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 19609 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 19610 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19611 | /* confdefs.h. */ |
| 19612 | _ACEOF |
| 19613 | cat confdefs.h >>conftest.$ac_ext |
| 19614 | cat >>conftest.$ac_ext <<_ACEOF |
| 19615 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19616 | $ac_includes_default |
| 19617 | #include <wchar.h> |
| 19618 | _ACEOF |
| 19619 | rm -f conftest.$ac_objext |
| 19620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19621 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19622 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19623 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19624 | rm -f conftest.er1 |
| 19625 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19627 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19628 | { ac_try='test -z "$ac_c_werror_flag" |
| 19629 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19631 | (eval $ac_try) 2>&5 |
| 19632 | ac_status=$? |
| 19633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19634 | (exit $ac_status); }; } && |
| 19635 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19637 | (eval $ac_try) 2>&5 |
| 19638 | ac_status=$? |
| 19639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19640 | (exit $ac_status); }; }; then |
| 19641 | ac_header_compiler=yes |
| 19642 | else |
| 19643 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19645 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19646 | ac_header_compiler=no |
| 19647 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19648 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19649 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19650 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 19651 | |
| 19652 | # Is the header present? |
| 19653 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 19654 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 19655 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19656 | /* confdefs.h. */ |
| 19657 | _ACEOF |
| 19658 | cat confdefs.h >>conftest.$ac_ext |
| 19659 | cat >>conftest.$ac_ext <<_ACEOF |
| 19660 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19661 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19662 | _ACEOF |
| 19663 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 19664 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 19665 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19666 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19667 | rm -f conftest.er1 |
| 19668 | cat conftest.err >&5 |
| 19669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19670 | (exit $ac_status); } >/dev/null; then |
| 19671 | if test -s conftest.err; then |
| 19672 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19673 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19674 | else |
| 19675 | ac_cpp_err= |
| 19676 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19677 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19678 | ac_cpp_err=yes |
| 19679 | fi |
| 19680 | if test -z "$ac_cpp_err"; then |
| 19681 | ac_header_preproc=yes |
| 19682 | else |
| 19683 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19685 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19686 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19687 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19688 | rm -f conftest.err conftest.$ac_ext |
| 19689 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 19690 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 19691 | |
| 19692 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19693 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 19694 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19695 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 19696 | 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] | 19697 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 19698 | echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} |
| 19699 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19700 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19701 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19702 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 19703 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19704 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 19705 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 19706 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 19707 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 19708 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 19709 | 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] | 19710 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 19711 | 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] | 19712 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 19713 | 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] | 19714 | ( |
| 19715 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 19716 | ## ------------------------------------------------ ## |
| 19717 | ## Report this to http://www.python.org/python-bugs ## |
| 19718 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19719 | _ASBOX |
| 19720 | ) | |
| 19721 | sed "s/^/$as_me: WARNING: /" >&2 |
| 19722 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19723 | esac |
| 19724 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 19725 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 19726 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 19727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19728 | else |
| 19729 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19730 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19731 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 19732 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 19733 | |
| 19734 | fi |
| 19735 | if test $ac_cv_header_wchar_h = yes; then |
| 19736 | |
| 19737 | |
| 19738 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19739 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19740 | _ACEOF |
| 19741 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 19742 | wchar_h="yes" |
| 19743 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19744 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19745 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19746 | |
| 19747 | fi |
| 19748 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19749 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19750 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19751 | # determine wchar_t size |
| 19752 | if test "$wchar_h" = yes |
| 19753 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19754 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 19755 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 19756 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 19757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19758 | else |
| 19759 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19760 | /* confdefs.h. */ |
| 19761 | _ACEOF |
| 19762 | cat confdefs.h >>conftest.$ac_ext |
| 19763 | cat >>conftest.$ac_ext <<_ACEOF |
| 19764 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19765 | #include <wchar.h> |
| 19766 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19767 | int |
| 19768 | main () |
| 19769 | { |
| 19770 | if ((wchar_t *) 0) |
| 19771 | return 0; |
| 19772 | if (sizeof (wchar_t)) |
| 19773 | return 0; |
| 19774 | ; |
| 19775 | return 0; |
| 19776 | } |
| 19777 | _ACEOF |
| 19778 | rm -f conftest.$ac_objext |
| 19779 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19780 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19781 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19782 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19783 | rm -f conftest.er1 |
| 19784 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19786 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19787 | { ac_try='test -z "$ac_c_werror_flag" |
| 19788 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19790 | (eval $ac_try) 2>&5 |
| 19791 | ac_status=$? |
| 19792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19793 | (exit $ac_status); }; } && |
| 19794 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19796 | (eval $ac_try) 2>&5 |
| 19797 | ac_status=$? |
| 19798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19799 | (exit $ac_status); }; }; then |
| 19800 | ac_cv_type_wchar_t=yes |
| 19801 | else |
| 19802 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19804 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19805 | ac_cv_type_wchar_t=no |
| 19806 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19807 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19808 | fi |
| 19809 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 19810 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 19811 | |
| 19812 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 19813 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 19814 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 19815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19816 | else |
| 19817 | if test "$ac_cv_type_wchar_t" = yes; then |
| 19818 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 19819 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 19820 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 19821 | # This bug is HP SR number 8606223364. |
| 19822 | if test "$cross_compiling" = yes; then |
| 19823 | # Depending upon the size, compute the lo and hi bounds. |
| 19824 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19825 | /* confdefs.h. */ |
| 19826 | _ACEOF |
| 19827 | cat confdefs.h >>conftest.$ac_ext |
| 19828 | cat >>conftest.$ac_ext <<_ACEOF |
| 19829 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19830 | #include <wchar.h> |
| 19831 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19832 | int |
| 19833 | main () |
| 19834 | { |
| 19835 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 19836 | test_array [0] = 0 |
| 19837 | |
| 19838 | ; |
| 19839 | return 0; |
| 19840 | } |
| 19841 | _ACEOF |
| 19842 | rm -f conftest.$ac_objext |
| 19843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19844 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19845 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19846 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19847 | rm -f conftest.er1 |
| 19848 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19850 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19851 | { ac_try='test -z "$ac_c_werror_flag" |
| 19852 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19854 | (eval $ac_try) 2>&5 |
| 19855 | ac_status=$? |
| 19856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19857 | (exit $ac_status); }; } && |
| 19858 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19860 | (eval $ac_try) 2>&5 |
| 19861 | ac_status=$? |
| 19862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19863 | (exit $ac_status); }; }; then |
| 19864 | ac_lo=0 ac_mid=0 |
| 19865 | while :; do |
| 19866 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19867 | /* confdefs.h. */ |
| 19868 | _ACEOF |
| 19869 | cat confdefs.h >>conftest.$ac_ext |
| 19870 | cat >>conftest.$ac_ext <<_ACEOF |
| 19871 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19872 | #include <wchar.h> |
| 19873 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19874 | int |
| 19875 | main () |
| 19876 | { |
| 19877 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 19878 | test_array [0] = 0 |
| 19879 | |
| 19880 | ; |
| 19881 | return 0; |
| 19882 | } |
| 19883 | _ACEOF |
| 19884 | rm -f conftest.$ac_objext |
| 19885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19886 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19887 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19888 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19889 | rm -f conftest.er1 |
| 19890 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19892 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19893 | { ac_try='test -z "$ac_c_werror_flag" |
| 19894 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19896 | (eval $ac_try) 2>&5 |
| 19897 | ac_status=$? |
| 19898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19899 | (exit $ac_status); }; } && |
| 19900 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19902 | (eval $ac_try) 2>&5 |
| 19903 | ac_status=$? |
| 19904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19905 | (exit $ac_status); }; }; then |
| 19906 | ac_hi=$ac_mid; break |
| 19907 | else |
| 19908 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19910 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19911 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19912 | if test $ac_lo -le $ac_mid; then |
| 19913 | ac_lo= ac_hi= |
| 19914 | break |
| 19915 | fi |
| 19916 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19917 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19919 | done |
| 19920 | else |
| 19921 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19923 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19924 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19925 | /* confdefs.h. */ |
| 19926 | _ACEOF |
| 19927 | cat confdefs.h >>conftest.$ac_ext |
| 19928 | cat >>conftest.$ac_ext <<_ACEOF |
| 19929 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19930 | #include <wchar.h> |
| 19931 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19932 | int |
| 19933 | main () |
| 19934 | { |
| 19935 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 19936 | test_array [0] = 0 |
| 19937 | |
| 19938 | ; |
| 19939 | return 0; |
| 19940 | } |
| 19941 | _ACEOF |
| 19942 | rm -f conftest.$ac_objext |
| 19943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19944 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19945 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19946 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19947 | rm -f conftest.er1 |
| 19948 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19950 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19951 | { ac_try='test -z "$ac_c_werror_flag" |
| 19952 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19954 | (eval $ac_try) 2>&5 |
| 19955 | ac_status=$? |
| 19956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19957 | (exit $ac_status); }; } && |
| 19958 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19960 | (eval $ac_try) 2>&5 |
| 19961 | ac_status=$? |
| 19962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19963 | (exit $ac_status); }; }; then |
| 19964 | ac_hi=-1 ac_mid=-1 |
| 19965 | while :; do |
| 19966 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19967 | /* confdefs.h. */ |
| 19968 | _ACEOF |
| 19969 | cat confdefs.h >>conftest.$ac_ext |
| 19970 | cat >>conftest.$ac_ext <<_ACEOF |
| 19971 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19972 | #include <wchar.h> |
| 19973 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19974 | int |
| 19975 | main () |
| 19976 | { |
| 19977 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 19978 | test_array [0] = 0 |
| 19979 | |
| 19980 | ; |
| 19981 | return 0; |
| 19982 | } |
| 19983 | _ACEOF |
| 19984 | rm -f conftest.$ac_objext |
| 19985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19986 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19987 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19989 | rm -f conftest.er1 |
| 19990 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19992 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19993 | { ac_try='test -z "$ac_c_werror_flag" |
| 19994 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19996 | (eval $ac_try) 2>&5 |
| 19997 | ac_status=$? |
| 19998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19999 | (exit $ac_status); }; } && |
| 20000 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20002 | (eval $ac_try) 2>&5 |
| 20003 | ac_status=$? |
| 20004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20005 | (exit $ac_status); }; }; then |
| 20006 | ac_lo=$ac_mid; break |
| 20007 | else |
| 20008 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20010 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20011 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20012 | if test $ac_mid -le $ac_hi; then |
| 20013 | ac_lo= ac_hi= |
| 20014 | break |
| 20015 | fi |
| 20016 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20017 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20018 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20019 | done |
| 20020 | else |
| 20021 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20023 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20024 | ac_lo= ac_hi= |
| 20025 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20026 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20027 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20028 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20029 | # Binary search between lo and hi bounds. |
| 20030 | while test "x$ac_lo" != "x$ac_hi"; do |
| 20031 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 20032 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20033 | /* confdefs.h. */ |
| 20034 | _ACEOF |
| 20035 | cat confdefs.h >>conftest.$ac_ext |
| 20036 | cat >>conftest.$ac_ext <<_ACEOF |
| 20037 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20038 | #include <wchar.h> |
| 20039 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20040 | int |
| 20041 | main () |
| 20042 | { |
| 20043 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 20044 | test_array [0] = 0 |
| 20045 | |
| 20046 | ; |
| 20047 | return 0; |
| 20048 | } |
| 20049 | _ACEOF |
| 20050 | rm -f conftest.$ac_objext |
| 20051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20052 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20053 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20055 | rm -f conftest.er1 |
| 20056 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20058 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20059 | { ac_try='test -z "$ac_c_werror_flag" |
| 20060 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20062 | (eval $ac_try) 2>&5 |
| 20063 | ac_status=$? |
| 20064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20065 | (exit $ac_status); }; } && |
| 20066 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20068 | (eval $ac_try) 2>&5 |
| 20069 | ac_status=$? |
| 20070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20071 | (exit $ac_status); }; }; then |
| 20072 | ac_hi=$ac_mid |
| 20073 | else |
| 20074 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20076 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20077 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 20078 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20079 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20080 | done |
| 20081 | case $ac_lo in |
| 20082 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20083 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 20084 | See \`config.log' for more details." >&5 |
| 20085 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 20086 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20087 | { (exit 1); exit 1; }; } ;; |
| 20088 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20089 | else |
| 20090 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20091 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 20092 | See \`config.log' for more details." >&5 |
| 20093 | echo "$as_me: error: cannot run test program while cross compiling |
| 20094 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20095 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20096 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20097 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20098 | /* confdefs.h. */ |
| 20099 | _ACEOF |
| 20100 | cat confdefs.h >>conftest.$ac_ext |
| 20101 | cat >>conftest.$ac_ext <<_ACEOF |
| 20102 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20103 | #include <wchar.h> |
| 20104 | |
| 20105 | long longval () { return (long) (sizeof (wchar_t)); } |
| 20106 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20107 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20108 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20109 | int |
| 20110 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20111 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20112 | |
| 20113 | FILE *f = fopen ("conftest.val", "w"); |
| 20114 | if (! f) |
| 20115 | exit (1); |
| 20116 | if (((long) (sizeof (wchar_t))) < 0) |
| 20117 | { |
| 20118 | long i = longval (); |
| 20119 | if (i != ((long) (sizeof (wchar_t)))) |
| 20120 | exit (1); |
| 20121 | fprintf (f, "%ld\n", i); |
| 20122 | } |
| 20123 | else |
| 20124 | { |
| 20125 | unsigned long i = ulongval (); |
| 20126 | if (i != ((long) (sizeof (wchar_t)))) |
| 20127 | exit (1); |
| 20128 | fprintf (f, "%lu\n", i); |
| 20129 | } |
| 20130 | exit (ferror (f) || fclose (f) != 0); |
| 20131 | |
| 20132 | ; |
| 20133 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20134 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20135 | _ACEOF |
| 20136 | rm -f conftest$ac_exeext |
| 20137 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20138 | (eval $ac_link) 2>&5 |
| 20139 | ac_status=$? |
| 20140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20141 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20143 | (eval $ac_try) 2>&5 |
| 20144 | ac_status=$? |
| 20145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20146 | (exit $ac_status); }; }; then |
| 20147 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20148 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20149 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20150 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20152 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20153 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20154 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 20155 | See \`config.log' for more details." >&5 |
| 20156 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 20157 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20158 | { (exit 1); exit 1; }; } |
| 20159 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20160 | 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] | 20161 | fi |
| 20162 | fi |
| 20163 | rm -f conftest.val |
| 20164 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20165 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20166 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20167 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20168 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 20169 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 20170 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20171 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20172 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20173 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20174 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20175 | fi |
| 20176 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20177 | echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 20178 | echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6 |
| 20179 | have_ucs4_tcl=no |
| 20180 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20181 | /* confdefs.h. */ |
| 20182 | _ACEOF |
| 20183 | cat confdefs.h >>conftest.$ac_ext |
| 20184 | cat >>conftest.$ac_ext <<_ACEOF |
| 20185 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20186 | |
| 20187 | #include <tcl.h> |
| 20188 | #if TCL_UTF_MAX != 6 |
| 20189 | # error "NOT UCS4_TCL" |
| 20190 | #endif |
| 20191 | int |
| 20192 | main () |
| 20193 | { |
| 20194 | |
| 20195 | ; |
| 20196 | return 0; |
| 20197 | } |
| 20198 | _ACEOF |
| 20199 | rm -f conftest.$ac_objext |
| 20200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20201 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20202 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20204 | rm -f conftest.er1 |
| 20205 | cat conftest.err >&5 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20207 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20208 | { ac_try='test -z "$ac_c_werror_flag" |
| 20209 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20211 | (eval $ac_try) 2>&5 |
| 20212 | ac_status=$? |
| 20213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20214 | (exit $ac_status); }; } && |
| 20215 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20217 | (eval $ac_try) 2>&5 |
| 20218 | ac_status=$? |
| 20219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20220 | (exit $ac_status); }; }; then |
| 20221 | |
| 20222 | |
| 20223 | cat >>confdefs.h <<\_ACEOF |
| 20224 | #define HAVE_UCS4_TCL 1 |
| 20225 | _ACEOF |
| 20226 | |
| 20227 | have_ucs4_tcl=yes |
| 20228 | |
| 20229 | else |
| 20230 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20232 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20233 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20234 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20235 | echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 20236 | echo "${ECHO_T}$have_ucs4_tcl" >&6 |
| 20237 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20238 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20239 | if test "$wchar_h" = yes |
| 20240 | then |
| 20241 | # check whether wchar_t is signed or not |
| 20242 | echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 20243 | echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6 |
| 20244 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
| 20245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20246 | else |
| 20247 | |
| 20248 | if test "$cross_compiling" = yes; then |
| 20249 | ac_cv_wchar_t_signed=yes |
| 20250 | else |
| 20251 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20252 | /* confdefs.h. */ |
| 20253 | _ACEOF |
| 20254 | cat confdefs.h >>conftest.$ac_ext |
| 20255 | cat >>conftest.$ac_ext <<_ACEOF |
| 20256 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20257 | |
| 20258 | #include <wchar.h> |
| 20259 | int main() |
| 20260 | { |
Martin v. Löwis | 44fe0e4 | 2006-04-11 07:15:30 +0000 | [diff] [blame] | 20261 | /* Success: exit code 0 */ |
| 20262 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20263 | } |
| 20264 | |
| 20265 | _ACEOF |
| 20266 | rm -f conftest$ac_exeext |
| 20267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20268 | (eval $ac_link) 2>&5 |
| 20269 | ac_status=$? |
| 20270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20271 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20273 | (eval $ac_try) 2>&5 |
| 20274 | ac_status=$? |
| 20275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20276 | (exit $ac_status); }; }; then |
| 20277 | ac_cv_wchar_t_signed=yes |
| 20278 | else |
| 20279 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20280 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20282 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20283 | ( exit $ac_status ) |
| 20284 | ac_cv_wchar_t_signed=no |
| 20285 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20286 | 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] | 20287 | fi |
| 20288 | fi |
| 20289 | |
| 20290 | echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 20291 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6 |
| 20292 | fi |
| 20293 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20294 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 20295 | 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] | 20296 | # Check whether --enable-unicode or --disable-unicode was given. |
| 20297 | if test "${enable_unicode+set}" = set; then |
| 20298 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20299 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20300 | else |
| 20301 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20302 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20303 | |
| 20304 | if test $enable_unicode = yes |
| 20305 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 20306 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20307 | case "$have_ucs4_tcl" in |
| 20308 | yes) enable_unicode="ucs4" |
| 20309 | ;; |
| 20310 | *) enable_unicode="ucs2" |
| 20311 | ;; |
| 20312 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20313 | fi |
| 20314 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 20315 | |
| 20316 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20317 | case "$enable_unicode" in |
| 20318 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20319 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20320 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20321 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20322 | |
| 20323 | ;; |
| 20324 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20325 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20326 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20327 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20328 | |
| 20329 | ;; |
| 20330 | esac |
| 20331 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20332 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20333 | |
| 20334 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 20335 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20336 | if test "$enable_unicode" = "no" |
| 20337 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 20338 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20339 | echo "$as_me:$LINENO: result: not used" >&5 |
| 20340 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20341 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 20342 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20343 | |
| 20344 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20345 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20346 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20347 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20348 | |
| 20349 | # wchar_t is only usable if it maps to an unsigned type |
| 20350 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 20351 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20352 | then |
| 20353 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20354 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20355 | cat >>confdefs.h <<\_ACEOF |
| 20356 | #define HAVE_USABLE_WCHAR_T 1 |
| 20357 | _ACEOF |
| 20358 | |
| 20359 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20360 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20361 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20362 | |
| 20363 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 20364 | then |
| 20365 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20366 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20367 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20368 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20369 | |
| 20370 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 20371 | then |
| 20372 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20373 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20374 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20375 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20376 | |
| 20377 | else |
| 20378 | PY_UNICODE_TYPE="no type found" |
| 20379 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20380 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 20381 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20382 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20383 | |
| 20384 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20385 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 20386 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 20387 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 20388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20389 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20390 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 20391 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20392 | /* confdefs.h. */ |
| 20393 | _ACEOF |
| 20394 | cat confdefs.h >>conftest.$ac_ext |
| 20395 | cat >>conftest.$ac_ext <<_ACEOF |
| 20396 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20397 | #include <sys/types.h> |
| 20398 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20399 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20400 | int |
| 20401 | main () |
| 20402 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20403 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 20404 | bogus endian macros |
| 20405 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20406 | |
| 20407 | ; |
| 20408 | return 0; |
| 20409 | } |
| 20410 | _ACEOF |
| 20411 | rm -f conftest.$ac_objext |
| 20412 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20413 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20414 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20415 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20416 | rm -f conftest.er1 |
| 20417 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20419 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20420 | { ac_try='test -z "$ac_c_werror_flag" |
| 20421 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20423 | (eval $ac_try) 2>&5 |
| 20424 | ac_status=$? |
| 20425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20426 | (exit $ac_status); }; } && |
| 20427 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20429 | (eval $ac_try) 2>&5 |
| 20430 | ac_status=$? |
| 20431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20432 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20433 | # 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] | 20434 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20435 | /* confdefs.h. */ |
| 20436 | _ACEOF |
| 20437 | cat confdefs.h >>conftest.$ac_ext |
| 20438 | cat >>conftest.$ac_ext <<_ACEOF |
| 20439 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20440 | #include <sys/types.h> |
| 20441 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20442 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20443 | int |
| 20444 | main () |
| 20445 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20446 | #if BYTE_ORDER != BIG_ENDIAN |
| 20447 | not big endian |
| 20448 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20449 | |
| 20450 | ; |
| 20451 | return 0; |
| 20452 | } |
| 20453 | _ACEOF |
| 20454 | rm -f conftest.$ac_objext |
| 20455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20456 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20457 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20458 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20459 | rm -f conftest.er1 |
| 20460 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20462 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20463 | { ac_try='test -z "$ac_c_werror_flag" |
| 20464 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20466 | (eval $ac_try) 2>&5 |
| 20467 | ac_status=$? |
| 20468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20469 | (exit $ac_status); }; } && |
| 20470 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20472 | (eval $ac_try) 2>&5 |
| 20473 | ac_status=$? |
| 20474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20475 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20476 | ac_cv_c_bigendian=yes |
| 20477 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20478 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20480 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20481 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20482 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20484 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20485 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20487 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20488 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20489 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20490 | # 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] | 20491 | ac_cv_c_bigendian=unknown |
| 20492 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20493 | /* confdefs.h. */ |
| 20494 | _ACEOF |
| 20495 | cat confdefs.h >>conftest.$ac_ext |
| 20496 | cat >>conftest.$ac_ext <<_ACEOF |
| 20497 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20498 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 20499 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 20500 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 20501 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 20502 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 20503 | 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] | 20504 | int |
| 20505 | main () |
| 20506 | { |
| 20507 | _ascii (); _ebcdic (); |
| 20508 | ; |
| 20509 | return 0; |
| 20510 | } |
| 20511 | _ACEOF |
| 20512 | rm -f conftest.$ac_objext |
| 20513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20514 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20515 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20516 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20517 | rm -f conftest.er1 |
| 20518 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20520 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20521 | { ac_try='test -z "$ac_c_werror_flag" |
| 20522 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20524 | (eval $ac_try) 2>&5 |
| 20525 | ac_status=$? |
| 20526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20527 | (exit $ac_status); }; } && |
| 20528 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20530 | (eval $ac_try) 2>&5 |
| 20531 | ac_status=$? |
| 20532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20533 | (exit $ac_status); }; }; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20534 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20535 | ac_cv_c_bigendian=yes |
| 20536 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20537 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20538 | if test "$ac_cv_c_bigendian" = unknown; then |
| 20539 | ac_cv_c_bigendian=no |
| 20540 | else |
| 20541 | # finding both strings is unlikely to happen, but who knows? |
| 20542 | ac_cv_c_bigendian=unknown |
| 20543 | fi |
| 20544 | fi |
| 20545 | else |
| 20546 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20548 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20549 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20550 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20551 | else |
| 20552 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20553 | /* confdefs.h. */ |
| 20554 | _ACEOF |
| 20555 | cat confdefs.h >>conftest.$ac_ext |
| 20556 | cat >>conftest.$ac_ext <<_ACEOF |
| 20557 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20558 | int |
| 20559 | main () |
| 20560 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20561 | /* Are we little or big endian? From Harbison&Steele. */ |
| 20562 | union |
| 20563 | { |
| 20564 | long l; |
| 20565 | char c[sizeof (long)]; |
| 20566 | } u; |
| 20567 | u.l = 1; |
| 20568 | exit (u.c[sizeof (long) - 1] == 1); |
| 20569 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20570 | _ACEOF |
| 20571 | rm -f conftest$ac_exeext |
| 20572 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20573 | (eval $ac_link) 2>&5 |
| 20574 | ac_status=$? |
| 20575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20576 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20578 | (eval $ac_try) 2>&5 |
| 20579 | ac_status=$? |
| 20580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20581 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20582 | ac_cv_c_bigendian=no |
| 20583 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20584 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20585 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20587 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20588 | ( exit $ac_status ) |
| 20589 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20590 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20591 | 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] | 20592 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20593 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20594 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20595 | fi |
| 20596 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 20597 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 20598 | case $ac_cv_c_bigendian in |
| 20599 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20600 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20601 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20602 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20603 | _ACEOF |
| 20604 | ;; |
| 20605 | no) |
| 20606 | ;; |
| 20607 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20608 | { { echo "$as_me:$LINENO: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20609 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20610 | echo "$as_me: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20611 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 20612 | { (exit 1); exit 1; }; } ;; |
| 20613 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20614 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20615 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 20616 | |
| 20617 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 20618 | # Check whether right shifting a negative integer extends the sign bit |
| 20619 | # 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] | 20620 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 20621 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 20622 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 20623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 20624 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20625 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 20626 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 20627 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 20628 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20629 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20630 | /* confdefs.h. */ |
| 20631 | _ACEOF |
| 20632 | cat confdefs.h >>conftest.$ac_ext |
| 20633 | cat >>conftest.$ac_ext <<_ACEOF |
| 20634 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 20635 | |
| 20636 | int main() |
| 20637 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 20638 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 20639 | } |
| 20640 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20641 | _ACEOF |
| 20642 | rm -f conftest$ac_exeext |
| 20643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20644 | (eval $ac_link) 2>&5 |
| 20645 | ac_status=$? |
| 20646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20647 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20649 | (eval $ac_try) 2>&5 |
| 20650 | ac_status=$? |
| 20651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20652 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 20653 | ac_cv_rshift_extends_sign=yes |
| 20654 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20655 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20656 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20658 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20659 | ( exit $ac_status ) |
| 20660 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 20661 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20662 | 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] | 20663 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 20664 | fi |
| 20665 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20666 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 20667 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 20668 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 20669 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20670 | |
| 20671 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 20672 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20673 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 20674 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 20675 | fi |
| 20676 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 20677 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20678 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 20679 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 20680 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 20681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 20682 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20683 | |
| 20684 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20685 | /* confdefs.h. */ |
| 20686 | _ACEOF |
| 20687 | cat confdefs.h >>conftest.$ac_ext |
| 20688 | cat >>conftest.$ac_ext <<_ACEOF |
| 20689 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 20690 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20691 | int |
| 20692 | main () |
| 20693 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 20694 | |
| 20695 | FILE *f = fopen("/dev/null", "r"); |
| 20696 | flockfile(f); |
| 20697 | getc_unlocked(f); |
| 20698 | funlockfile(f); |
| 20699 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20700 | ; |
| 20701 | return 0; |
| 20702 | } |
| 20703 | _ACEOF |
| 20704 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20705 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20706 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20707 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20708 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20709 | rm -f conftest.er1 |
| 20710 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20712 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20713 | { ac_try='test -z "$ac_c_werror_flag" |
| 20714 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20716 | (eval $ac_try) 2>&5 |
| 20717 | ac_status=$? |
| 20718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20719 | (exit $ac_status); }; } && |
| 20720 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20722 | (eval $ac_try) 2>&5 |
| 20723 | ac_status=$? |
| 20724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20725 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 20726 | ac_cv_have_getc_unlocked=yes |
| 20727 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20728 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20730 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20731 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 20732 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20733 | rm -f conftest.err conftest.$ac_objext \ |
| 20734 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 20735 | fi |
| 20736 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20737 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 20738 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 20739 | if test "$ac_cv_have_getc_unlocked" = yes |
| 20740 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20741 | |
| 20742 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 20743 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20744 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 20745 | |
| 20746 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 20747 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 20748 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 20749 | # save the value of LIBS so we don't actually link Python with readline |
| 20750 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 20751 | |
| 20752 | echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
| 20753 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 |
| 20754 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
| 20755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20756 | else |
| 20757 | ac_check_lib_save_LIBS=$LIBS |
| 20758 | LIBS="-lreadline $LIBS" |
| 20759 | cat >conftest.$ac_ext <<_ACEOF |
| 20760 | /* confdefs.h. */ |
| 20761 | _ACEOF |
| 20762 | cat confdefs.h >>conftest.$ac_ext |
| 20763 | cat >>conftest.$ac_ext <<_ACEOF |
| 20764 | /* end confdefs.h. */ |
| 20765 | |
| 20766 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 20767 | #ifdef __cplusplus |
| 20768 | extern "C" |
| 20769 | #endif |
| 20770 | /* We use char because int might match the return type of a gcc2 |
| 20771 | builtin and then its argument prototype would still apply. */ |
| 20772 | char readline (); |
| 20773 | int |
| 20774 | main () |
| 20775 | { |
| 20776 | readline (); |
| 20777 | ; |
| 20778 | return 0; |
| 20779 | } |
| 20780 | _ACEOF |
| 20781 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20783 | (eval $ac_link) 2>conftest.er1 |
| 20784 | ac_status=$? |
| 20785 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20786 | rm -f conftest.er1 |
| 20787 | cat conftest.err >&5 |
| 20788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20789 | (exit $ac_status); } && |
| 20790 | { ac_try='test -z "$ac_c_werror_flag" |
| 20791 | || test ! -s conftest.err' |
| 20792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20793 | (eval $ac_try) 2>&5 |
| 20794 | ac_status=$? |
| 20795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20796 | (exit $ac_status); }; } && |
| 20797 | { ac_try='test -s conftest$ac_exeext' |
| 20798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20799 | (eval $ac_try) 2>&5 |
| 20800 | ac_status=$? |
| 20801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20802 | (exit $ac_status); }; }; then |
| 20803 | ac_cv_lib_readline_readline=yes |
| 20804 | else |
| 20805 | echo "$as_me: failed program was:" >&5 |
| 20806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20807 | |
| 20808 | ac_cv_lib_readline_readline=no |
| 20809 | fi |
| 20810 | rm -f conftest.err conftest.$ac_objext \ |
| 20811 | conftest$ac_exeext conftest.$ac_ext |
| 20812 | LIBS=$ac_check_lib_save_LIBS |
| 20813 | fi |
| 20814 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
| 20815 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 |
| 20816 | if test $ac_cv_lib_readline_readline = yes; then |
| 20817 | cat >>confdefs.h <<_ACEOF |
| 20818 | #define HAVE_LIBREADLINE 1 |
| 20819 | _ACEOF |
| 20820 | |
| 20821 | LIBS="-lreadline $LIBS" |
| 20822 | |
| 20823 | fi |
| 20824 | |
| 20825 | if test "$ac_cv_have_readline_readline" = no |
| 20826 | then |
| 20827 | |
| 20828 | echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5 |
| 20829 | echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6 |
| 20830 | if test "${ac_cv_lib_termcap_readline+set}" = set; then |
| 20831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20832 | else |
| 20833 | ac_check_lib_save_LIBS=$LIBS |
| 20834 | LIBS="-ltermcap $LIBS" |
| 20835 | cat >conftest.$ac_ext <<_ACEOF |
| 20836 | /* confdefs.h. */ |
| 20837 | _ACEOF |
| 20838 | cat confdefs.h >>conftest.$ac_ext |
| 20839 | cat >>conftest.$ac_ext <<_ACEOF |
| 20840 | /* end confdefs.h. */ |
| 20841 | |
| 20842 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 20843 | #ifdef __cplusplus |
| 20844 | extern "C" |
| 20845 | #endif |
| 20846 | /* We use char because int might match the return type of a gcc2 |
| 20847 | builtin and then its argument prototype would still apply. */ |
| 20848 | char readline (); |
| 20849 | int |
| 20850 | main () |
| 20851 | { |
| 20852 | readline (); |
| 20853 | ; |
| 20854 | return 0; |
| 20855 | } |
| 20856 | _ACEOF |
| 20857 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20858 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20859 | (eval $ac_link) 2>conftest.er1 |
| 20860 | ac_status=$? |
| 20861 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20862 | rm -f conftest.er1 |
| 20863 | cat conftest.err >&5 |
| 20864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20865 | (exit $ac_status); } && |
| 20866 | { ac_try='test -z "$ac_c_werror_flag" |
| 20867 | || test ! -s conftest.err' |
| 20868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20869 | (eval $ac_try) 2>&5 |
| 20870 | ac_status=$? |
| 20871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20872 | (exit $ac_status); }; } && |
| 20873 | { ac_try='test -s conftest$ac_exeext' |
| 20874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20875 | (eval $ac_try) 2>&5 |
| 20876 | ac_status=$? |
| 20877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20878 | (exit $ac_status); }; }; then |
| 20879 | ac_cv_lib_termcap_readline=yes |
| 20880 | else |
| 20881 | echo "$as_me: failed program was:" >&5 |
| 20882 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20883 | |
| 20884 | ac_cv_lib_termcap_readline=no |
| 20885 | fi |
| 20886 | rm -f conftest.err conftest.$ac_objext \ |
| 20887 | conftest$ac_exeext conftest.$ac_ext |
| 20888 | LIBS=$ac_check_lib_save_LIBS |
| 20889 | fi |
| 20890 | echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5 |
| 20891 | echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6 |
| 20892 | if test $ac_cv_lib_termcap_readline = yes; then |
| 20893 | cat >>confdefs.h <<_ACEOF |
| 20894 | #define HAVE_LIBTERMCAP 1 |
| 20895 | _ACEOF |
| 20896 | |
| 20897 | LIBS="-ltermcap $LIBS" |
| 20898 | |
| 20899 | fi |
| 20900 | |
| 20901 | fi |
| 20902 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20903 | # check for readline 2.1 |
| 20904 | echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 20905 | echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6 |
| 20906 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then |
| 20907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20908 | else |
| 20909 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 20910 | LIBS="-lreadline $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20911 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20912 | /* confdefs.h. */ |
| 20913 | _ACEOF |
| 20914 | cat confdefs.h >>conftest.$ac_ext |
| 20915 | cat >>conftest.$ac_ext <<_ACEOF |
| 20916 | /* end confdefs.h. */ |
| 20917 | |
| 20918 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 20919 | #ifdef __cplusplus |
| 20920 | extern "C" |
| 20921 | #endif |
| 20922 | /* We use char because int might match the return type of a gcc2 |
| 20923 | builtin and then its argument prototype would still apply. */ |
| 20924 | char rl_callback_handler_install (); |
| 20925 | int |
| 20926 | main () |
| 20927 | { |
| 20928 | rl_callback_handler_install (); |
| 20929 | ; |
| 20930 | return 0; |
| 20931 | } |
| 20932 | _ACEOF |
| 20933 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20935 | (eval $ac_link) 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20936 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20937 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20938 | rm -f conftest.er1 |
| 20939 | cat conftest.err >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20941 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20942 | { ac_try='test -z "$ac_c_werror_flag" |
| 20943 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20945 | (eval $ac_try) 2>&5 |
| 20946 | ac_status=$? |
| 20947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20948 | (exit $ac_status); }; } && |
| 20949 | { ac_try='test -s conftest$ac_exeext' |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20951 | (eval $ac_try) 2>&5 |
| 20952 | ac_status=$? |
| 20953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20954 | (exit $ac_status); }; }; then |
| 20955 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 20956 | else |
| 20957 | echo "$as_me: failed program was:" >&5 |
| 20958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20959 | |
| 20960 | ac_cv_lib_readline_rl_callback_handler_install=no |
| 20961 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20962 | rm -f conftest.err conftest.$ac_objext \ |
| 20963 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20964 | LIBS=$ac_check_lib_save_LIBS |
| 20965 | fi |
| 20966 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 20967 | echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6 |
| 20968 | if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then |
| 20969 | |
| 20970 | cat >>confdefs.h <<\_ACEOF |
| 20971 | #define HAVE_RL_CALLBACK 1 |
| 20972 | _ACEOF |
| 20973 | |
| 20974 | fi |
| 20975 | |
| 20976 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 20977 | # check for readline 2.2 |
| 20978 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20979 | /* confdefs.h. */ |
| 20980 | _ACEOF |
| 20981 | cat confdefs.h >>conftest.$ac_ext |
| 20982 | cat >>conftest.$ac_ext <<_ACEOF |
| 20983 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 20984 | #include <readline/readline.h> |
| 20985 | _ACEOF |
| 20986 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 20987 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20988 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20989 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 20990 | rm -f conftest.er1 |
| 20991 | cat conftest.err >&5 |
| 20992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20993 | (exit $ac_status); } >/dev/null; then |
| 20994 | if test -s conftest.err; then |
| 20995 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20996 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 20997 | else |
| 20998 | ac_cpp_err= |
| 20999 | fi |
| 21000 | else |
| 21001 | ac_cpp_err=yes |
| 21002 | fi |
| 21003 | if test -z "$ac_cpp_err"; then |
| 21004 | have_readline=yes |
| 21005 | else |
| 21006 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21008 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21009 | have_readline=no |
| 21010 | fi |
| 21011 | rm -f conftest.err conftest.$ac_ext |
| 21012 | if test $have_readline = yes |
| 21013 | then |
| 21014 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21015 | /* confdefs.h. */ |
| 21016 | _ACEOF |
| 21017 | cat confdefs.h >>conftest.$ac_ext |
| 21018 | cat >>conftest.$ac_ext <<_ACEOF |
| 21019 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21020 | #include <readline/readline.h> |
| 21021 | |
| 21022 | _ACEOF |
| 21023 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21024 | $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] | 21025 | |
| 21026 | cat >>confdefs.h <<\_ACEOF |
| 21027 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 21028 | _ACEOF |
| 21029 | |
| 21030 | fi |
| 21031 | rm -f conftest* |
| 21032 | |
| 21033 | fi |
| 21034 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21035 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21036 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 21037 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 21038 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 21039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21040 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21041 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21042 | LIBS="-lreadline $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21043 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21044 | /* confdefs.h. */ |
| 21045 | _ACEOF |
| 21046 | cat confdefs.h >>conftest.$ac_ext |
| 21047 | cat >>conftest.$ac_ext <<_ACEOF |
| 21048 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21049 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21050 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21051 | #ifdef __cplusplus |
| 21052 | extern "C" |
| 21053 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21054 | /* 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] | 21055 | builtin and then its argument prototype would still apply. */ |
| 21056 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21057 | int |
| 21058 | main () |
| 21059 | { |
| 21060 | rl_pre_input_hook (); |
| 21061 | ; |
| 21062 | return 0; |
| 21063 | } |
| 21064 | _ACEOF |
| 21065 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21067 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21068 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21070 | rm -f conftest.er1 |
| 21071 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21073 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21074 | { ac_try='test -z "$ac_c_werror_flag" |
| 21075 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21077 | (eval $ac_try) 2>&5 |
| 21078 | ac_status=$? |
| 21079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21080 | (exit $ac_status); }; } && |
| 21081 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21083 | (eval $ac_try) 2>&5 |
| 21084 | ac_status=$? |
| 21085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21086 | (exit $ac_status); }; }; then |
| 21087 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21088 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21089 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21091 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21092 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21093 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21094 | rm -f conftest.err conftest.$ac_objext \ |
| 21095 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21096 | LIBS=$ac_check_lib_save_LIBS |
| 21097 | fi |
| 21098 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 21099 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 21100 | 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] | 21101 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21102 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21103 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21104 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21105 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21106 | fi |
| 21107 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21108 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21109 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21110 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 21111 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 21112 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 21113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21114 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21115 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21116 | LIBS="-lreadline $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21117 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21118 | /* confdefs.h. */ |
| 21119 | _ACEOF |
| 21120 | cat confdefs.h >>conftest.$ac_ext |
| 21121 | cat >>conftest.$ac_ext <<_ACEOF |
| 21122 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21123 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21124 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21125 | #ifdef __cplusplus |
| 21126 | extern "C" |
| 21127 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21128 | /* 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] | 21129 | builtin and then its argument prototype would still apply. */ |
| 21130 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21131 | int |
| 21132 | main () |
| 21133 | { |
| 21134 | rl_completion_matches (); |
| 21135 | ; |
| 21136 | return 0; |
| 21137 | } |
| 21138 | _ACEOF |
| 21139 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21140 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21141 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21142 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21143 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21144 | rm -f conftest.er1 |
| 21145 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21147 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21148 | { ac_try='test -z "$ac_c_werror_flag" |
| 21149 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21151 | (eval $ac_try) 2>&5 |
| 21152 | ac_status=$? |
| 21153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21154 | (exit $ac_status); }; } && |
| 21155 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21157 | (eval $ac_try) 2>&5 |
| 21158 | ac_status=$? |
| 21159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21160 | (exit $ac_status); }; }; then |
| 21161 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21162 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21163 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21165 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21166 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21167 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21168 | rm -f conftest.err conftest.$ac_objext \ |
| 21169 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21170 | LIBS=$ac_check_lib_save_LIBS |
| 21171 | fi |
| 21172 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 21173 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 21174 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21175 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21176 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21177 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21178 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21179 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21180 | fi |
| 21181 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21182 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21183 | # also in readline 4.2 |
| 21184 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21185 | /* confdefs.h. */ |
| 21186 | _ACEOF |
| 21187 | cat confdefs.h >>conftest.$ac_ext |
| 21188 | cat >>conftest.$ac_ext <<_ACEOF |
| 21189 | /* end confdefs.h. */ |
| 21190 | #include <readline/readline.h> |
| 21191 | _ACEOF |
| 21192 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 21193 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 21194 | ac_status=$? |
| 21195 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21196 | rm -f conftest.er1 |
| 21197 | cat conftest.err >&5 |
| 21198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21199 | (exit $ac_status); } >/dev/null; then |
| 21200 | if test -s conftest.err; then |
| 21201 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21202 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21203 | else |
| 21204 | ac_cpp_err= |
| 21205 | fi |
| 21206 | else |
| 21207 | ac_cpp_err=yes |
| 21208 | fi |
| 21209 | if test -z "$ac_cpp_err"; then |
| 21210 | have_readline=yes |
| 21211 | else |
| 21212 | echo "$as_me: failed program was:" >&5 |
| 21213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21214 | |
| 21215 | have_readline=no |
| 21216 | fi |
| 21217 | rm -f conftest.err conftest.$ac_ext |
| 21218 | if test $have_readline = yes |
| 21219 | then |
| 21220 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21221 | /* confdefs.h. */ |
| 21222 | _ACEOF |
| 21223 | cat confdefs.h >>conftest.$ac_ext |
| 21224 | cat >>conftest.$ac_ext <<_ACEOF |
| 21225 | /* end confdefs.h. */ |
| 21226 | #include <readline/readline.h> |
| 21227 | |
| 21228 | _ACEOF |
| 21229 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 21230 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 21231 | |
| 21232 | cat >>confdefs.h <<\_ACEOF |
| 21233 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 21234 | _ACEOF |
| 21235 | |
| 21236 | fi |
| 21237 | rm -f conftest* |
| 21238 | |
| 21239 | fi |
| 21240 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 21241 | # End of readline checks: restore LIBS |
| 21242 | LIBS=$LIBS_no_readline |
| 21243 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21244 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 21245 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 21246 | if test "${ac_cv_broken_nice+set}" = set; then |
| 21247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21248 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21249 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21250 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 21251 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21252 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21253 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21254 | /* confdefs.h. */ |
| 21255 | _ACEOF |
| 21256 | cat confdefs.h >>conftest.$ac_ext |
| 21257 | cat >>conftest.$ac_ext <<_ACEOF |
| 21258 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21259 | |
| 21260 | int main() |
| 21261 | { |
| 21262 | int val1 = nice(1); |
| 21263 | if (val1 != -1 && val1 == nice(2)) |
| 21264 | exit(0); |
| 21265 | exit(1); |
| 21266 | } |
| 21267 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21268 | _ACEOF |
| 21269 | rm -f conftest$ac_exeext |
| 21270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21271 | (eval $ac_link) 2>&5 |
| 21272 | ac_status=$? |
| 21273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21274 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21276 | (eval $ac_try) 2>&5 |
| 21277 | ac_status=$? |
| 21278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21279 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21280 | ac_cv_broken_nice=yes |
| 21281 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21282 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21283 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21285 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21286 | ( exit $ac_status ) |
| 21287 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21288 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21289 | 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] | 21290 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21291 | fi |
| 21292 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21293 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 21294 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21295 | if test "$ac_cv_broken_nice" = yes |
| 21296 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21297 | |
| 21298 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21299 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21300 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21301 | |
| 21302 | fi |
| 21303 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 21304 | echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 21305 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6 |
| 21306 | if test "$cross_compiling" = yes; then |
| 21307 | ac_cv_broken_poll=no |
| 21308 | else |
| 21309 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 21310 | /* confdefs.h. */ |
| 21311 | _ACEOF |
| 21312 | cat confdefs.h >>conftest.$ac_ext |
| 21313 | cat >>conftest.$ac_ext <<_ACEOF |
| 21314 | /* end confdefs.h. */ |
| 21315 | |
| 21316 | #include <poll.h> |
| 21317 | |
| 21318 | int main (void) |
| 21319 | { |
| 21320 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
| 21321 | |
| 21322 | close (42); |
| 21323 | |
| 21324 | int poll_test = poll (&poll_struct, 1, 0); |
| 21325 | |
| 21326 | if (poll_test < 0) |
| 21327 | { |
| 21328 | exit(0); |
| 21329 | } |
| 21330 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
| 21331 | { |
| 21332 | exit(0); |
| 21333 | } |
| 21334 | else |
| 21335 | { |
| 21336 | exit(1); |
| 21337 | } |
| 21338 | } |
| 21339 | |
| 21340 | _ACEOF |
| 21341 | rm -f conftest$ac_exeext |
| 21342 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21343 | (eval $ac_link) 2>&5 |
| 21344 | ac_status=$? |
| 21345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21346 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21348 | (eval $ac_try) 2>&5 |
| 21349 | ac_status=$? |
| 21350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21351 | (exit $ac_status); }; }; then |
| 21352 | ac_cv_broken_poll=yes |
| 21353 | else |
| 21354 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21355 | echo "$as_me: failed program was:" >&5 |
| 21356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21357 | |
| 21358 | ( exit $ac_status ) |
| 21359 | ac_cv_broken_poll=no |
| 21360 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21361 | 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] | 21362 | fi |
| 21363 | echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 21364 | echo "${ECHO_T}$ac_cv_broken_poll" >&6 |
| 21365 | if test "$ac_cv_broken_poll" = yes |
| 21366 | then |
| 21367 | |
| 21368 | cat >>confdefs.h <<\_ACEOF |
| 21369 | #define HAVE_BROKEN_POLL 1 |
| 21370 | _ACEOF |
| 21371 | |
| 21372 | fi |
| 21373 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21374 | # 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] | 21375 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 21376 | # tzname[] |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21377 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 21378 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 21379 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 21380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21381 | else |
| 21382 | cat >conftest.$ac_ext <<_ACEOF |
| 21383 | /* confdefs.h. */ |
| 21384 | _ACEOF |
| 21385 | cat confdefs.h >>conftest.$ac_ext |
| 21386 | cat >>conftest.$ac_ext <<_ACEOF |
| 21387 | /* end confdefs.h. */ |
| 21388 | #include <sys/types.h> |
| 21389 | #include <$ac_cv_struct_tm> |
| 21390 | |
| 21391 | |
| 21392 | int |
| 21393 | main () |
| 21394 | { |
| 21395 | static struct tm ac_aggr; |
| 21396 | if (ac_aggr.tm_zone) |
| 21397 | return 0; |
| 21398 | ; |
| 21399 | return 0; |
| 21400 | } |
| 21401 | _ACEOF |
| 21402 | rm -f conftest.$ac_objext |
| 21403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21404 | (eval $ac_compile) 2>conftest.er1 |
| 21405 | ac_status=$? |
| 21406 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21407 | rm -f conftest.er1 |
| 21408 | cat conftest.err >&5 |
| 21409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21410 | (exit $ac_status); } && |
| 21411 | { ac_try='test -z "$ac_c_werror_flag" |
| 21412 | || test ! -s conftest.err' |
| 21413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21414 | (eval $ac_try) 2>&5 |
| 21415 | ac_status=$? |
| 21416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21417 | (exit $ac_status); }; } && |
| 21418 | { ac_try='test -s conftest.$ac_objext' |
| 21419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21420 | (eval $ac_try) 2>&5 |
| 21421 | ac_status=$? |
| 21422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21423 | (exit $ac_status); }; }; then |
| 21424 | ac_cv_member_struct_tm_tm_zone=yes |
| 21425 | else |
| 21426 | echo "$as_me: failed program was:" >&5 |
| 21427 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21428 | |
| 21429 | cat >conftest.$ac_ext <<_ACEOF |
| 21430 | /* confdefs.h. */ |
| 21431 | _ACEOF |
| 21432 | cat confdefs.h >>conftest.$ac_ext |
| 21433 | cat >>conftest.$ac_ext <<_ACEOF |
| 21434 | /* end confdefs.h. */ |
| 21435 | #include <sys/types.h> |
| 21436 | #include <$ac_cv_struct_tm> |
| 21437 | |
| 21438 | |
| 21439 | int |
| 21440 | main () |
| 21441 | { |
| 21442 | static struct tm ac_aggr; |
| 21443 | if (sizeof ac_aggr.tm_zone) |
| 21444 | return 0; |
| 21445 | ; |
| 21446 | return 0; |
| 21447 | } |
| 21448 | _ACEOF |
| 21449 | rm -f conftest.$ac_objext |
| 21450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21451 | (eval $ac_compile) 2>conftest.er1 |
| 21452 | ac_status=$? |
| 21453 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21454 | rm -f conftest.er1 |
| 21455 | cat conftest.err >&5 |
| 21456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21457 | (exit $ac_status); } && |
| 21458 | { ac_try='test -z "$ac_c_werror_flag" |
| 21459 | || test ! -s conftest.err' |
| 21460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21461 | (eval $ac_try) 2>&5 |
| 21462 | ac_status=$? |
| 21463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21464 | (exit $ac_status); }; } && |
| 21465 | { ac_try='test -s conftest.$ac_objext' |
| 21466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21467 | (eval $ac_try) 2>&5 |
| 21468 | ac_status=$? |
| 21469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21470 | (exit $ac_status); }; }; then |
| 21471 | ac_cv_member_struct_tm_tm_zone=yes |
| 21472 | else |
| 21473 | echo "$as_me: failed program was:" >&5 |
| 21474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21475 | |
| 21476 | ac_cv_member_struct_tm_tm_zone=no |
| 21477 | fi |
| 21478 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21479 | fi |
| 21480 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21481 | fi |
| 21482 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 21483 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 21484 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 21485 | |
| 21486 | cat >>confdefs.h <<_ACEOF |
| 21487 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 21488 | _ACEOF |
| 21489 | |
| 21490 | |
| 21491 | fi |
| 21492 | |
| 21493 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 21494 | |
| 21495 | cat >>confdefs.h <<\_ACEOF |
| 21496 | #define HAVE_TM_ZONE 1 |
| 21497 | _ACEOF |
| 21498 | |
| 21499 | else |
| 21500 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 21501 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 21502 | if test "${ac_cv_var_tzname+set}" = set; then |
| 21503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21504 | else |
| 21505 | cat >conftest.$ac_ext <<_ACEOF |
| 21506 | /* confdefs.h. */ |
| 21507 | _ACEOF |
| 21508 | cat confdefs.h >>conftest.$ac_ext |
| 21509 | cat >>conftest.$ac_ext <<_ACEOF |
| 21510 | /* end confdefs.h. */ |
| 21511 | #include <time.h> |
| 21512 | #ifndef tzname /* For SGI. */ |
| 21513 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
| 21514 | #endif |
| 21515 | |
| 21516 | int |
| 21517 | main () |
| 21518 | { |
| 21519 | atoi(*tzname); |
| 21520 | ; |
| 21521 | return 0; |
| 21522 | } |
| 21523 | _ACEOF |
| 21524 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21526 | (eval $ac_link) 2>conftest.er1 |
| 21527 | ac_status=$? |
| 21528 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21529 | rm -f conftest.er1 |
| 21530 | cat conftest.err >&5 |
| 21531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21532 | (exit $ac_status); } && |
| 21533 | { ac_try='test -z "$ac_c_werror_flag" |
| 21534 | || test ! -s conftest.err' |
| 21535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21536 | (eval $ac_try) 2>&5 |
| 21537 | ac_status=$? |
| 21538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21539 | (exit $ac_status); }; } && |
| 21540 | { ac_try='test -s conftest$ac_exeext' |
| 21541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21542 | (eval $ac_try) 2>&5 |
| 21543 | ac_status=$? |
| 21544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21545 | (exit $ac_status); }; }; then |
| 21546 | ac_cv_var_tzname=yes |
| 21547 | else |
| 21548 | echo "$as_me: failed program was:" >&5 |
| 21549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21550 | |
| 21551 | ac_cv_var_tzname=no |
| 21552 | fi |
| 21553 | rm -f conftest.err conftest.$ac_objext \ |
| 21554 | conftest$ac_exeext conftest.$ac_ext |
| 21555 | fi |
| 21556 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 21557 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
| 21558 | if test $ac_cv_var_tzname = yes; then |
| 21559 | |
| 21560 | cat >>confdefs.h <<\_ACEOF |
| 21561 | #define HAVE_TZNAME 1 |
| 21562 | _ACEOF |
| 21563 | |
| 21564 | fi |
| 21565 | fi |
| 21566 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 21567 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 21568 | # check tzset(3) exists and works like we expect it to |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 21569 | echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 21570 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6 |
| 21571 | if test "${ac_cv_working_tzset+set}" = set; then |
| 21572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21573 | else |
| 21574 | |
| 21575 | if test "$cross_compiling" = yes; then |
| 21576 | ac_cv_working_tzset=no |
| 21577 | else |
| 21578 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21579 | /* confdefs.h. */ |
| 21580 | _ACEOF |
| 21581 | cat confdefs.h >>conftest.$ac_ext |
| 21582 | cat >>conftest.$ac_ext <<_ACEOF |
| 21583 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 21584 | |
| 21585 | #include <stdlib.h> |
| 21586 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 21587 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21588 | |
| 21589 | #if HAVE_TZNAME |
| 21590 | extern char *tzname[]; |
| 21591 | #endif |
| 21592 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 21593 | int main() |
| 21594 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 21595 | /* Note that we need to ensure that not only does tzset(3) |
| 21596 | do 'something' with localtime, but it works as documented |
| 21597 | 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] | 21598 | This includes making sure that tzname is set properly if |
| 21599 | tm->tm_zone does not exist since it is the alternative way |
| 21600 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 21601 | |
| 21602 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 21603 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 21604 | */ |
| 21605 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 21606 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 21607 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 21608 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 21609 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 21610 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 21611 | if (localtime(&groundhogday)->tm_hour != 0) |
| 21612 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21613 | #if HAVE_TZNAME |
| 21614 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 21615 | if (strcmp(tzname[0], "UTC") || |
| 21616 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 21617 | exit(1); |
| 21618 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 21619 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 21620 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 21621 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 21622 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 21623 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21624 | #if HAVE_TZNAME |
| 21625 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 21626 | exit(1); |
| 21627 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 21628 | |
| 21629 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 21630 | tzset(); |
| 21631 | if (localtime(&groundhogday)->tm_hour != 11) |
| 21632 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21633 | #if HAVE_TZNAME |
| 21634 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 21635 | exit(1); |
| 21636 | #endif |
| 21637 | |
| 21638 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 21639 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 21640 | exit(1); |
| 21641 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 21642 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21643 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 21644 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 21645 | exit(0); |
| 21646 | } |
| 21647 | |
| 21648 | _ACEOF |
| 21649 | rm -f conftest$ac_exeext |
| 21650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21651 | (eval $ac_link) 2>&5 |
| 21652 | ac_status=$? |
| 21653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21654 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21656 | (eval $ac_try) 2>&5 |
| 21657 | ac_status=$? |
| 21658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21659 | (exit $ac_status); }; }; then |
| 21660 | ac_cv_working_tzset=yes |
| 21661 | else |
| 21662 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21663 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21665 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 21666 | ( exit $ac_status ) |
| 21667 | ac_cv_working_tzset=no |
| 21668 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21669 | 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] | 21670 | fi |
| 21671 | fi |
| 21672 | |
| 21673 | echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 21674 | echo "${ECHO_T}$ac_cv_working_tzset" >&6 |
| 21675 | if test "$ac_cv_working_tzset" = yes |
| 21676 | then |
| 21677 | |
| 21678 | cat >>confdefs.h <<\_ACEOF |
| 21679 | #define HAVE_WORKING_TZSET 1 |
| 21680 | _ACEOF |
| 21681 | |
| 21682 | fi |
| 21683 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 21684 | # Look for subsecond timestamps in struct stat |
| 21685 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 21686 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 21687 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 21688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21689 | else |
| 21690 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21691 | /* confdefs.h. */ |
| 21692 | _ACEOF |
| 21693 | cat confdefs.h >>conftest.$ac_ext |
| 21694 | cat >>conftest.$ac_ext <<_ACEOF |
| 21695 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 21696 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 21697 | int |
| 21698 | main () |
| 21699 | { |
| 21700 | |
| 21701 | struct stat st; |
| 21702 | st.st_mtim.tv_nsec = 1; |
| 21703 | |
| 21704 | ; |
| 21705 | return 0; |
| 21706 | } |
| 21707 | _ACEOF |
| 21708 | rm -f conftest.$ac_objext |
| 21709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21710 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 21711 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21713 | rm -f conftest.er1 |
| 21714 | cat conftest.err >&5 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 21715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21716 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21717 | { ac_try='test -z "$ac_c_werror_flag" |
| 21718 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21720 | (eval $ac_try) 2>&5 |
| 21721 | ac_status=$? |
| 21722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21723 | (exit $ac_status); }; } && |
| 21724 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 21725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21726 | (eval $ac_try) 2>&5 |
| 21727 | ac_status=$? |
| 21728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21729 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 21730 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 21731 | else |
| 21732 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21734 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 21735 | ac_cv_stat_tv_nsec=no |
| 21736 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 21738 | fi |
| 21739 | |
| 21740 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 21741 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 21742 | if test "$ac_cv_stat_tv_nsec" = yes |
| 21743 | then |
| 21744 | |
| 21745 | cat >>confdefs.h <<\_ACEOF |
| 21746 | #define HAVE_STAT_TV_NSEC 1 |
| 21747 | _ACEOF |
| 21748 | |
| 21749 | fi |
| 21750 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21751 | # Look for BSD style subsecond timestamps in struct stat |
| 21752 | echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 21753 | echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6 |
| 21754 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
| 21755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21756 | else |
| 21757 | cat >conftest.$ac_ext <<_ACEOF |
| 21758 | /* confdefs.h. */ |
| 21759 | _ACEOF |
| 21760 | cat confdefs.h >>conftest.$ac_ext |
| 21761 | cat >>conftest.$ac_ext <<_ACEOF |
| 21762 | /* end confdefs.h. */ |
| 21763 | #include <sys/stat.h> |
| 21764 | int |
| 21765 | main () |
| 21766 | { |
| 21767 | |
| 21768 | struct stat st; |
| 21769 | st.st_mtimespec.tv_nsec = 1; |
| 21770 | |
| 21771 | ; |
| 21772 | return 0; |
| 21773 | } |
| 21774 | _ACEOF |
| 21775 | rm -f conftest.$ac_objext |
| 21776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21777 | (eval $ac_compile) 2>conftest.er1 |
| 21778 | ac_status=$? |
| 21779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21780 | rm -f conftest.er1 |
| 21781 | cat conftest.err >&5 |
| 21782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21783 | (exit $ac_status); } && |
| 21784 | { ac_try='test -z "$ac_c_werror_flag" |
| 21785 | || test ! -s conftest.err' |
| 21786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21787 | (eval $ac_try) 2>&5 |
| 21788 | ac_status=$? |
| 21789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21790 | (exit $ac_status); }; } && |
| 21791 | { ac_try='test -s conftest.$ac_objext' |
| 21792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21793 | (eval $ac_try) 2>&5 |
| 21794 | ac_status=$? |
| 21795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21796 | (exit $ac_status); }; }; then |
| 21797 | ac_cv_stat_tv_nsec2=yes |
| 21798 | else |
| 21799 | echo "$as_me: failed program was:" >&5 |
| 21800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21801 | |
| 21802 | ac_cv_stat_tv_nsec2=no |
| 21803 | fi |
| 21804 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21805 | fi |
| 21806 | |
| 21807 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 21808 | echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6 |
| 21809 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 21810 | then |
| 21811 | |
| 21812 | cat >>confdefs.h <<\_ACEOF |
| 21813 | #define HAVE_STAT_TV_NSEC2 1 |
| 21814 | _ACEOF |
| 21815 | |
| 21816 | fi |
| 21817 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21818 | # 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] | 21819 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 21820 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 21821 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 21822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21823 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21824 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21825 | /* confdefs.h. */ |
| 21826 | _ACEOF |
| 21827 | cat confdefs.h >>conftest.$ac_ext |
| 21828 | cat >>conftest.$ac_ext <<_ACEOF |
| 21829 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21830 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21831 | int |
| 21832 | main () |
| 21833 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21834 | |
| 21835 | int rtn; |
| 21836 | rtn = mvwdelch(0,0,0); |
| 21837 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21838 | ; |
| 21839 | return 0; |
| 21840 | } |
| 21841 | _ACEOF |
| 21842 | rm -f conftest.$ac_objext |
| 21843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21844 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21845 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21846 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21847 | rm -f conftest.er1 |
| 21848 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21850 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21851 | { ac_try='test -z "$ac_c_werror_flag" |
| 21852 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21854 | (eval $ac_try) 2>&5 |
| 21855 | ac_status=$? |
| 21856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21857 | (exit $ac_status); }; } && |
| 21858 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21860 | (eval $ac_try) 2>&5 |
| 21861 | ac_status=$? |
| 21862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21863 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21864 | ac_cv_mvwdelch_is_expression=yes |
| 21865 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21866 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21868 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21869 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21870 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21871 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21872 | fi |
| 21873 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21874 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 21875 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21876 | |
| 21877 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 21878 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21879 | |
| 21880 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21881 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21882 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21883 | |
| 21884 | fi |
| 21885 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21886 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 21887 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 21888 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 21889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21890 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21891 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21892 | /* confdefs.h. */ |
| 21893 | _ACEOF |
| 21894 | cat confdefs.h >>conftest.$ac_ext |
| 21895 | cat >>conftest.$ac_ext <<_ACEOF |
| 21896 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21897 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21898 | int |
| 21899 | main () |
| 21900 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21901 | |
| 21902 | WINDOW *w; |
| 21903 | w->_flags = 0; |
| 21904 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21905 | ; |
| 21906 | return 0; |
| 21907 | } |
| 21908 | _ACEOF |
| 21909 | rm -f conftest.$ac_objext |
| 21910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21911 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21912 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21914 | rm -f conftest.er1 |
| 21915 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21917 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21918 | { ac_try='test -z "$ac_c_werror_flag" |
| 21919 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21921 | (eval $ac_try) 2>&5 |
| 21922 | ac_status=$? |
| 21923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21924 | (exit $ac_status); }; } && |
| 21925 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21927 | (eval $ac_try) 2>&5 |
| 21928 | ac_status=$? |
| 21929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21930 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21931 | ac_cv_window_has_flags=yes |
| 21932 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21933 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21935 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21936 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21937 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21938 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21939 | fi |
| 21940 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21941 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 21942 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21943 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21944 | |
| 21945 | if test "$ac_cv_window_has_flags" = yes |
| 21946 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21947 | |
| 21948 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21949 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21950 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21951 | |
| 21952 | fi |
| 21953 | |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 21954 | echo "$as_me:$LINENO: checking for is_term_resized" >&5 |
| 21955 | echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6 |
| 21956 | cat >conftest.$ac_ext <<_ACEOF |
| 21957 | /* confdefs.h. */ |
| 21958 | _ACEOF |
| 21959 | cat confdefs.h >>conftest.$ac_ext |
| 21960 | cat >>conftest.$ac_ext <<_ACEOF |
| 21961 | /* end confdefs.h. */ |
| 21962 | #include <curses.h> |
| 21963 | int |
| 21964 | main () |
| 21965 | { |
| 21966 | void *x=is_term_resized |
| 21967 | ; |
| 21968 | return 0; |
| 21969 | } |
| 21970 | _ACEOF |
| 21971 | rm -f conftest.$ac_objext |
| 21972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21973 | (eval $ac_compile) 2>conftest.er1 |
| 21974 | ac_status=$? |
| 21975 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21976 | rm -f conftest.er1 |
| 21977 | cat conftest.err >&5 |
| 21978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21979 | (exit $ac_status); } && |
| 21980 | { ac_try='test -z "$ac_c_werror_flag" |
| 21981 | || test ! -s conftest.err' |
| 21982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21983 | (eval $ac_try) 2>&5 |
| 21984 | ac_status=$? |
| 21985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21986 | (exit $ac_status); }; } && |
| 21987 | { ac_try='test -s conftest.$ac_objext' |
| 21988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21989 | (eval $ac_try) 2>&5 |
| 21990 | ac_status=$? |
| 21991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21992 | (exit $ac_status); }; }; then |
| 21993 | |
| 21994 | cat >>confdefs.h <<\_ACEOF |
| 21995 | #define HAVE_CURSES_IS_TERM_RESIZED 1 |
| 21996 | _ACEOF |
| 21997 | |
| 21998 | echo "$as_me:$LINENO: result: yes" >&5 |
| 21999 | echo "${ECHO_T}yes" >&6 |
| 22000 | else |
| 22001 | echo "$as_me: failed program was:" >&5 |
| 22002 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22003 | |
| 22004 | echo "$as_me:$LINENO: result: no" >&5 |
| 22005 | echo "${ECHO_T}no" >&6 |
| 22006 | |
| 22007 | fi |
| 22008 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22009 | |
| 22010 | echo "$as_me:$LINENO: checking for resize_term" >&5 |
| 22011 | echo $ECHO_N "checking for resize_term... $ECHO_C" >&6 |
| 22012 | cat >conftest.$ac_ext <<_ACEOF |
| 22013 | /* confdefs.h. */ |
| 22014 | _ACEOF |
| 22015 | cat confdefs.h >>conftest.$ac_ext |
| 22016 | cat >>conftest.$ac_ext <<_ACEOF |
| 22017 | /* end confdefs.h. */ |
| 22018 | #include <curses.h> |
| 22019 | int |
| 22020 | main () |
| 22021 | { |
| 22022 | void *x=resize_term |
| 22023 | ; |
| 22024 | return 0; |
| 22025 | } |
| 22026 | _ACEOF |
| 22027 | rm -f conftest.$ac_objext |
| 22028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22029 | (eval $ac_compile) 2>conftest.er1 |
| 22030 | ac_status=$? |
| 22031 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22032 | rm -f conftest.er1 |
| 22033 | cat conftest.err >&5 |
| 22034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22035 | (exit $ac_status); } && |
| 22036 | { ac_try='test -z "$ac_c_werror_flag" |
| 22037 | || test ! -s conftest.err' |
| 22038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22039 | (eval $ac_try) 2>&5 |
| 22040 | ac_status=$? |
| 22041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22042 | (exit $ac_status); }; } && |
| 22043 | { ac_try='test -s conftest.$ac_objext' |
| 22044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22045 | (eval $ac_try) 2>&5 |
| 22046 | ac_status=$? |
| 22047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22048 | (exit $ac_status); }; }; then |
| 22049 | |
| 22050 | cat >>confdefs.h <<\_ACEOF |
| 22051 | #define HAVE_CURSES_RESIZE_TERM 1 |
| 22052 | _ACEOF |
| 22053 | |
| 22054 | echo "$as_me:$LINENO: result: yes" >&5 |
| 22055 | echo "${ECHO_T}yes" >&6 |
| 22056 | else |
| 22057 | echo "$as_me: failed program was:" >&5 |
| 22058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22059 | |
| 22060 | echo "$as_me:$LINENO: result: no" >&5 |
| 22061 | echo "${ECHO_T}no" >&6 |
| 22062 | |
| 22063 | fi |
| 22064 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22065 | |
| 22066 | echo "$as_me:$LINENO: checking for resizeterm" >&5 |
| 22067 | echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6 |
| 22068 | cat >conftest.$ac_ext <<_ACEOF |
| 22069 | /* confdefs.h. */ |
| 22070 | _ACEOF |
| 22071 | cat confdefs.h >>conftest.$ac_ext |
| 22072 | cat >>conftest.$ac_ext <<_ACEOF |
| 22073 | /* end confdefs.h. */ |
| 22074 | #include <curses.h> |
| 22075 | int |
| 22076 | main () |
| 22077 | { |
| 22078 | void *x=resizeterm |
| 22079 | ; |
| 22080 | return 0; |
| 22081 | } |
| 22082 | _ACEOF |
| 22083 | rm -f conftest.$ac_objext |
| 22084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22085 | (eval $ac_compile) 2>conftest.er1 |
| 22086 | ac_status=$? |
| 22087 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22088 | rm -f conftest.er1 |
| 22089 | cat conftest.err >&5 |
| 22090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22091 | (exit $ac_status); } && |
| 22092 | { ac_try='test -z "$ac_c_werror_flag" |
| 22093 | || test ! -s conftest.err' |
| 22094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22095 | (eval $ac_try) 2>&5 |
| 22096 | ac_status=$? |
| 22097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22098 | (exit $ac_status); }; } && |
| 22099 | { ac_try='test -s conftest.$ac_objext' |
| 22100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22101 | (eval $ac_try) 2>&5 |
| 22102 | ac_status=$? |
| 22103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22104 | (exit $ac_status); }; }; then |
| 22105 | |
| 22106 | cat >>confdefs.h <<\_ACEOF |
| 22107 | #define HAVE_CURSES_RESIZETERM 1 |
| 22108 | _ACEOF |
| 22109 | |
| 22110 | echo "$as_me:$LINENO: result: yes" >&5 |
| 22111 | echo "${ECHO_T}yes" >&6 |
| 22112 | else |
| 22113 | echo "$as_me: failed program was:" >&5 |
| 22114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22115 | |
| 22116 | echo "$as_me:$LINENO: result: no" >&5 |
| 22117 | echo "${ECHO_T}no" >&6 |
| 22118 | |
| 22119 | fi |
| 22120 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22121 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 22122 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 22123 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 22124 | |
| 22125 | if test -r /dev/ptmx |
| 22126 | then |
| 22127 | echo "$as_me:$LINENO: result: yes" >&5 |
| 22128 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 22129 | |
| 22130 | cat >>confdefs.h <<\_ACEOF |
| 22131 | #define HAVE_DEV_PTMX 1 |
| 22132 | _ACEOF |
| 22133 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 22134 | else |
| 22135 | echo "$as_me:$LINENO: result: no" >&5 |
| 22136 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 22137 | fi |
| 22138 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 22139 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 22140 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 22141 | |
| 22142 | if test -r /dev/ptc |
| 22143 | then |
| 22144 | echo "$as_me:$LINENO: result: yes" >&5 |
| 22145 | echo "${ECHO_T}yes" >&6 |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 22146 | |
| 22147 | cat >>confdefs.h <<\_ACEOF |
| 22148 | #define HAVE_DEV_PTC 1 |
| 22149 | _ACEOF |
| 22150 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 22151 | else |
| 22152 | echo "$as_me:$LINENO: result: no" >&5 |
| 22153 | echo "${ECHO_T}no" >&6 |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 22154 | fi |
| 22155 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 22156 | echo "$as_me:$LINENO: checking for %zd printf() format support" >&5 |
| 22157 | echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6 |
| 22158 | if test "$cross_compiling" = yes; then |
| 22159 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 22160 | See \`config.log' for more details." >&5 |
| 22161 | echo "$as_me: error: cannot run test program while cross compiling |
| 22162 | See \`config.log' for more details." >&2;} |
| 22163 | { (exit 1); exit 1; }; } |
| 22164 | else |
| 22165 | cat >conftest.$ac_ext <<_ACEOF |
| 22166 | /* confdefs.h. */ |
| 22167 | _ACEOF |
| 22168 | cat confdefs.h >>conftest.$ac_ext |
| 22169 | cat >>conftest.$ac_ext <<_ACEOF |
| 22170 | /* end confdefs.h. */ |
| 22171 | #include <stdio.h> |
| 22172 | #include <stddef.h> |
| 22173 | #include <string.h> |
| 22174 | |
| 22175 | int main() |
| 22176 | { |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 22177 | char buffer[256]; |
| 22178 | |
| 22179 | #ifdef HAVE_SSIZE_T |
| 22180 | typedef ssize_t Py_ssize_t; |
| 22181 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 22182 | typedef long Py_ssize_t; |
| 22183 | #else |
| 22184 | typedef int Py_ssize_t; |
| 22185 | #endif |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 22186 | |
| 22187 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 22188 | return 1; |
| 22189 | |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 22190 | if (strcmp(buffer, "123")) |
| 22191 | return 1; |
| 22192 | |
| 22193 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 22194 | return 1; |
| 22195 | |
| 22196 | if (strcmp(buffer, "-123")) |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 22197 | return 1; |
| 22198 | |
| 22199 | return 0; |
| 22200 | } |
| 22201 | _ACEOF |
| 22202 | rm -f conftest$ac_exeext |
| 22203 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22204 | (eval $ac_link) 2>&5 |
| 22205 | ac_status=$? |
| 22206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22207 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 22208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22209 | (eval $ac_try) 2>&5 |
| 22210 | ac_status=$? |
| 22211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22212 | (exit $ac_status); }; }; then |
| 22213 | echo "$as_me:$LINENO: result: yes" >&5 |
| 22214 | echo "${ECHO_T}yes" >&6 |
| 22215 | |
| 22216 | cat >>confdefs.h <<\_ACEOF |
| 22217 | #define PY_FORMAT_SIZE_T "z" |
| 22218 | _ACEOF |
| 22219 | |
| 22220 | else |
| 22221 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22222 | echo "$as_me: failed program was:" >&5 |
| 22223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22224 | |
| 22225 | ( exit $ac_status ) |
| 22226 | echo "$as_me:$LINENO: result: no" >&5 |
| 22227 | echo "${ECHO_T}no" >&6 |
| 22228 | fi |
| 22229 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 22230 | fi |
| 22231 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22232 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 22233 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 22234 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 22235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 22236 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22237 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22238 | /* confdefs.h. */ |
| 22239 | _ACEOF |
| 22240 | cat confdefs.h >>conftest.$ac_ext |
| 22241 | cat >>conftest.$ac_ext <<_ACEOF |
| 22242 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 22243 | |
| 22244 | #ifdef HAVE_SYS_TYPES_H |
| 22245 | #include <sys/types.h> |
| 22246 | #endif |
| 22247 | #ifdef HAVE_SYS_SOCKET_H |
| 22248 | #include <sys/socket.h> |
| 22249 | #endif |
| 22250 | |
| 22251 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22252 | int |
| 22253 | main () |
| 22254 | { |
| 22255 | if ((socklen_t *) 0) |
| 22256 | return 0; |
| 22257 | if (sizeof (socklen_t)) |
| 22258 | return 0; |
| 22259 | ; |
| 22260 | return 0; |
| 22261 | } |
| 22262 | _ACEOF |
| 22263 | rm -f conftest.$ac_objext |
| 22264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22265 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22266 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22267 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22268 | rm -f conftest.er1 |
| 22269 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22271 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22272 | { ac_try='test -z "$ac_c_werror_flag" |
| 22273 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22275 | (eval $ac_try) 2>&5 |
| 22276 | ac_status=$? |
| 22277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22278 | (exit $ac_status); }; } && |
| 22279 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22281 | (eval $ac_try) 2>&5 |
| 22282 | ac_status=$? |
| 22283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22284 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 22285 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 22286 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22287 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22288 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22289 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22290 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 22291 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22293 | fi |
| 22294 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 22295 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 22296 | if test $ac_cv_type_socklen_t = yes; then |
| 22297 | : |
| 22298 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 22299 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 22300 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 22301 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22302 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 22303 | |
| 22304 | fi |
| 22305 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22306 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22307 | |
| 22308 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 22309 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 22310 | do |
| 22311 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 22312 | done |
| 22313 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22314 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 22315 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22316 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 22317 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 22318 | for dir in $SRCDIRS; do |
| 22319 | if test ! -d $dir; then |
| 22320 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 22321 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 22322 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22323 | echo "$as_me:$LINENO: result: done" >&5 |
| 22324 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 22325 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22326 | # generate output files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22327 | 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] | 22328 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22329 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22330 | # This file is a shell script that caches the results of configure |
| 22331 | # 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] | 22332 | # scripts and configure runs, see configure's option --config-cache. |
| 22333 | # It is not useful on other systems. If it contains results you don't |
| 22334 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22335 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22336 | # config.status only pays attention to the cache file if you give it |
| 22337 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22338 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22339 | # `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] | 22340 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 22341 | # following values. |
| 22342 | |
| 22343 | _ACEOF |
| 22344 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22345 | # The following way of writing the cache mishandles newlines in values, |
| 22346 | # but we know of no workaround that is simple, portable, and efficient. |
| 22347 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 22348 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 22349 | # 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] | 22350 | { |
| 22351 | (set) 2>&1 | |
| 22352 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 22353 | *ac_space=\ *) |
| 22354 | # `set' does not quote correctly, so add quotes (double-quote |
| 22355 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 22356 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22357 | "s/'/'\\\\''/g; |
| 22358 | 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] | 22359 | ;; |
| 22360 | *) |
| 22361 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 22362 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22363 | "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] | 22364 | ;; |
| 22365 | esac; |
| 22366 | } | |
| 22367 | sed ' |
| 22368 | t clear |
| 22369 | : clear |
| 22370 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 22371 | t end |
| 22372 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 22373 | : end' >>confcache |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22374 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 22375 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22376 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 22377 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 22378 | else |
| 22379 | echo "not updating unwritable cache $cache_file" |
| 22380 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22381 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 22382 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 22383 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22384 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 22385 | # Let make expand exec_prefix. |
| 22386 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 22387 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22388 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 22389 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 22390 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 22391 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22392 | if test "x$srcdir" = x.; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22393 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22394 | s/:*\$(srcdir):*/:/; |
| 22395 | s/:*\${srcdir}:*/:/; |
| 22396 | s/:*@srcdir@:*/:/; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22397 | s/^\([^=]*=[ ]*\):*/\1/; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22398 | s/:*$//; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22399 | s/^[^=]*=[ ]*$//; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22400 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22401 | fi |
| 22402 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22403 | DEFS=-DHAVE_CONFIG_H |
| 22404 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22405 | ac_libobjs= |
| 22406 | ac_ltlibobjs= |
| 22407 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 22408 | # 1. Remove the extension, and $U if already installed. |
| 22409 | ac_i=`echo "$ac_i" | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22410 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 22411 | # 2. Add them. |
| 22412 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 22413 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22414 | done |
| 22415 | LIBOBJS=$ac_libobjs |
| 22416 | |
| 22417 | LTLIBOBJS=$ac_ltlibobjs |
| 22418 | |
| 22419 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22420 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22421 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22422 | ac_clean_files_save=$ac_clean_files |
| 22423 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 22424 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 22425 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 22426 | cat >$CONFIG_STATUS <<_ACEOF |
| 22427 | #! $SHELL |
| 22428 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22429 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22430 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22431 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22432 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22433 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22434 | ac_cs_recheck=false |
| 22435 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22436 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 22437 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22438 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22439 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22440 | ## --------------------- ## |
| 22441 | ## M4sh Initialization. ## |
| 22442 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22443 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22444 | # Be Bourne compatible |
| 22445 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 22446 | emulate sh |
| 22447 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22448 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 22449 | # is contrary to our usage. Disable this feature. |
| 22450 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22451 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 22452 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22453 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22454 | DUALCASE=1; export DUALCASE # for MKS sh |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22455 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22456 | # Support unset when possible. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22457 | 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] | 22458 | as_unset=unset |
| 22459 | else |
| 22460 | as_unset=false |
| 22461 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22462 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22463 | |
| 22464 | # Work around bugs in pre-3.0 UWIN ksh. |
| 22465 | $as_unset ENV MAIL MAILPATH |
| 22466 | PS1='$ ' |
| 22467 | PS2='> ' |
| 22468 | PS4='+ ' |
| 22469 | |
| 22470 | # NLS nuisances. |
| 22471 | for as_var in \ |
| 22472 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 22473 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 22474 | LC_TELEPHONE LC_TIME |
| 22475 | do |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22476 | 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] | 22477 | eval $as_var=C; export $as_var |
| 22478 | else |
| 22479 | $as_unset $as_var |
| 22480 | fi |
| 22481 | done |
| 22482 | |
| 22483 | # Required to use basename. |
| 22484 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 22485 | as_expr=expr |
| 22486 | else |
| 22487 | as_expr=false |
| 22488 | fi |
| 22489 | |
| 22490 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 22491 | as_basename=basename |
| 22492 | else |
| 22493 | as_basename=false |
| 22494 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22495 | |
| 22496 | |
| 22497 | # Name of the executable. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22498 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22499 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 22500 | X"$0" : 'X\(//\)$' \| \ |
| 22501 | X"$0" : 'X\(/\)$' \| \ |
| 22502 | . : '\(.\)' 2>/dev/null || |
| 22503 | echo X/"$0" | |
| 22504 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 22505 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 22506 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 22507 | s/.*/./; q'` |
| 22508 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22509 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22510 | # PATH needs CR, and LINENO needs CR and PATH. |
| 22511 | # Avoid depending upon Character Ranges. |
| 22512 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 22513 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 22514 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 22515 | as_cr_digits='0123456789' |
| 22516 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 22517 | |
| 22518 | # The user is always right. |
| 22519 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22520 | echo "#! /bin/sh" >conf$$.sh |
| 22521 | echo "exit 0" >>conf$$.sh |
| 22522 | chmod +x conf$$.sh |
| 22523 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22524 | PATH_SEPARATOR=';' |
| 22525 | else |
| 22526 | PATH_SEPARATOR=: |
| 22527 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22528 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22529 | fi |
| 22530 | |
| 22531 | |
| 22532 | as_lineno_1=$LINENO |
| 22533 | as_lineno_2=$LINENO |
| 22534 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 22535 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 22536 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 22537 | # Find who we are. Look in the path if we contain no path at all |
| 22538 | # relative or not. |
| 22539 | case $0 in |
| 22540 | *[\\/]* ) as_myself=$0 ;; |
| 22541 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22542 | for as_dir in $PATH |
| 22543 | do |
| 22544 | IFS=$as_save_IFS |
| 22545 | test -z "$as_dir" && as_dir=. |
| 22546 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 22547 | done |
| 22548 | |
| 22549 | ;; |
| 22550 | esac |
| 22551 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 22552 | # in which case we are not to be found in the path. |
| 22553 | if test "x$as_myself" = x; then |
| 22554 | as_myself=$0 |
| 22555 | fi |
| 22556 | if test ! -f "$as_myself"; then |
| 22557 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 22558 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 22559 | { (exit 1); exit 1; }; } |
| 22560 | fi |
| 22561 | case $CONFIG_SHELL in |
| 22562 | '') |
| 22563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22564 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 22565 | do |
| 22566 | IFS=$as_save_IFS |
| 22567 | test -z "$as_dir" && as_dir=. |
| 22568 | for as_base in sh bash ksh sh5; do |
| 22569 | case $as_dir in |
| 22570 | /*) |
| 22571 | if ("$as_dir/$as_base" -c ' |
| 22572 | as_lineno_1=$LINENO |
| 22573 | as_lineno_2=$LINENO |
| 22574 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 22575 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 22576 | 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] | 22577 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 22578 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22579 | CONFIG_SHELL=$as_dir/$as_base |
| 22580 | export CONFIG_SHELL |
| 22581 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 22582 | fi;; |
| 22583 | esac |
| 22584 | done |
| 22585 | done |
| 22586 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22587 | esac |
| 22588 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22589 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 22590 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 22591 | # line-number line before each line; the second 'sed' does the real |
| 22592 | # work. The second script uses 'N' to pair each line-number line |
| 22593 | # with the numbered line, and appends trailing '-' during |
| 22594 | # substitution so that $LINENO is not a special case at line end. |
| 22595 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 22596 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 22597 | sed '=' <$as_myself | |
| 22598 | sed ' |
| 22599 | N |
| 22600 | s,$,-, |
| 22601 | : loop |
| 22602 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 22603 | t loop |
| 22604 | s,-$,, |
| 22605 | s,^['$as_cr_digits']*\n,, |
| 22606 | ' >$as_me.lineno && |
| 22607 | chmod +x $as_me.lineno || |
| 22608 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 22609 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 22610 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22611 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22612 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 22613 | # (the dirname of $[0] is not the place where we might find the |
| 22614 | # original and so on. Autoconf is especially sensible to this). |
| 22615 | . ./$as_me.lineno |
| 22616 | # Exit status is that of the last command. |
| 22617 | exit |
| 22618 | } |
| 22619 | |
| 22620 | |
| 22621 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 22622 | *c*,-n*) ECHO_N= ECHO_C=' |
| 22623 | ' ECHO_T=' ' ;; |
| 22624 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 22625 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 22626 | esac |
| 22627 | |
| 22628 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 22629 | as_expr=expr |
| 22630 | else |
| 22631 | as_expr=false |
| 22632 | fi |
| 22633 | |
| 22634 | rm -f conf$$ conf$$.exe conf$$.file |
| 22635 | echo >conf$$.file |
| 22636 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 22637 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 22638 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 22639 | if test -f conf$$.exe; then |
| 22640 | # Don't use ln at all; we don't have any links |
| 22641 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22642 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22643 | as_ln_s='ln -s' |
| 22644 | fi |
| 22645 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 22646 | as_ln_s=ln |
| 22647 | else |
| 22648 | as_ln_s='cp -p' |
| 22649 | fi |
| 22650 | rm -f conf$$ conf$$.exe conf$$.file |
| 22651 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22652 | if mkdir -p . 2>/dev/null; then |
| 22653 | as_mkdir_p=: |
| 22654 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22655 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22656 | as_mkdir_p=false |
| 22657 | fi |
| 22658 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22659 | as_executable_p="test -f" |
| 22660 | |
| 22661 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22662 | 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] | 22663 | |
| 22664 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22665 | 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] | 22666 | |
| 22667 | |
| 22668 | # IFS |
| 22669 | # We need space, tab and new line, in precisely that order. |
| 22670 | as_nl=' |
| 22671 | ' |
| 22672 | IFS=" $as_nl" |
| 22673 | |
| 22674 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22675 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22676 | |
| 22677 | exec 6>&1 |
| 22678 | |
| 22679 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 22680 | # report actual input values of CONFIG_FILES etc. instead of their |
| 22681 | # values after options handling. Logging --version etc. is OK. |
| 22682 | exec 5>>config.log |
| 22683 | { |
| 22684 | echo |
| 22685 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 22686 | ## Running $as_me. ## |
| 22687 | _ASBOX |
| 22688 | } >&5 |
| 22689 | cat >&5 <<_CSEOF |
| 22690 | |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 22691 | This file was extended by python $as_me 2.6, which was |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22692 | generated by GNU Autoconf 2.59. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22693 | |
| 22694 | CONFIG_FILES = $CONFIG_FILES |
| 22695 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 22696 | CONFIG_LINKS = $CONFIG_LINKS |
| 22697 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 22698 | $ $0 $@ |
| 22699 | |
| 22700 | _CSEOF |
| 22701 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 22702 | echo >&5 |
| 22703 | _ACEOF |
| 22704 | |
| 22705 | # Files that config.status was made for. |
| 22706 | if test -n "$ac_config_files"; then |
| 22707 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 22708 | fi |
| 22709 | |
| 22710 | if test -n "$ac_config_headers"; then |
| 22711 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 22712 | fi |
| 22713 | |
| 22714 | if test -n "$ac_config_links"; then |
| 22715 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 22716 | fi |
| 22717 | |
| 22718 | if test -n "$ac_config_commands"; then |
| 22719 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 22720 | fi |
| 22721 | |
| 22722 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22723 | |
| 22724 | ac_cs_usage="\ |
| 22725 | \`$as_me' instantiates files from templates according to the |
| 22726 | current configuration. |
| 22727 | |
| 22728 | Usage: $0 [OPTIONS] [FILE]... |
| 22729 | |
| 22730 | -h, --help print this help, then exit |
| 22731 | -V, --version print version number, then exit |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22732 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22733 | -d, --debug don't remove temporary files |
| 22734 | --recheck update $as_me by reconfiguring in the same conditions |
| 22735 | --file=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22736 | instantiate the configuration file FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22737 | --header=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22738 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22739 | |
| 22740 | Configuration files: |
| 22741 | $config_files |
| 22742 | |
| 22743 | Configuration headers: |
| 22744 | $config_headers |
| 22745 | |
| 22746 | Report bugs to <bug-autoconf@gnu.org>." |
| 22747 | _ACEOF |
| 22748 | |
| 22749 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22750 | ac_cs_version="\\ |
Neal Norwitz | 9be5732 | 2006-08-18 05:39:20 +0000 | [diff] [blame] | 22751 | python config.status 2.6 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22752 | configured by $0, generated by GNU Autoconf 2.59, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22753 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 22754 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22755 | Copyright (C) 2003 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22756 | This config.status script is free software; the Free Software Foundation |
| 22757 | gives unlimited permission to copy, distribute and modify it." |
| 22758 | srcdir=$srcdir |
| 22759 | INSTALL="$INSTALL" |
| 22760 | _ACEOF |
| 22761 | |
| 22762 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22763 | # If no file are specified by the user, then we need to provide default |
| 22764 | # value. By we need to know if files were specified by the user. |
| 22765 | ac_need_defaults=: |
| 22766 | while test $# != 0 |
| 22767 | do |
| 22768 | case $1 in |
| 22769 | --*=*) |
| 22770 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 22771 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22772 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22773 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22774 | -*) |
| 22775 | ac_option=$1 |
| 22776 | ac_optarg=$2 |
| 22777 | ac_shift=shift |
| 22778 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22779 | *) # This is not an option, so the user has probably given explicit |
| 22780 | # arguments. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22781 | ac_option=$1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22782 | ac_need_defaults=false;; |
| 22783 | esac |
| 22784 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22785 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22786 | # Handling of the options. |
| 22787 | _ACEOF |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22788 | cat >>$CONFIG_STATUS <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22789 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 22790 | ac_cs_recheck=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22791 | --version | --vers* | -V ) |
| 22792 | echo "$ac_cs_version"; exit 0 ;; |
| 22793 | --he | --h) |
| 22794 | # Conflict between --help and --header |
| 22795 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 22796 | Try \`$0 --help' for more information." >&5 |
| 22797 | echo "$as_me: error: ambiguous option: $1 |
| 22798 | Try \`$0 --help' for more information." >&2;} |
| 22799 | { (exit 1); exit 1; }; };; |
| 22800 | --help | --hel | -h ) |
| 22801 | echo "$ac_cs_usage"; exit 0 ;; |
| 22802 | --debug | --d* | -d ) |
| 22803 | debug=: ;; |
| 22804 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22805 | $ac_shift |
| 22806 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22807 | ac_need_defaults=false;; |
| 22808 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22809 | $ac_shift |
| 22810 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22811 | ac_need_defaults=false;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22812 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 22813 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 22814 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22815 | |
| 22816 | # This is an error. |
| 22817 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 22818 | Try \`$0 --help' for more information." >&5 |
| 22819 | echo "$as_me: error: unrecognized option: $1 |
| 22820 | Try \`$0 --help' for more information." >&2;} |
| 22821 | { (exit 1); exit 1; }; } ;; |
| 22822 | |
| 22823 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 22824 | |
| 22825 | esac |
| 22826 | shift |
| 22827 | done |
| 22828 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22829 | ac_configure_extra_args= |
| 22830 | |
| 22831 | if $ac_cs_silent; then |
| 22832 | exec 6>/dev/null |
| 22833 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 22834 | fi |
| 22835 | |
| 22836 | _ACEOF |
| 22837 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22838 | if \$ac_cs_recheck; then |
| 22839 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 22840 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 22841 | fi |
| 22842 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22843 | _ACEOF |
| 22844 | |
| 22845 | |
| 22846 | |
| 22847 | |
| 22848 | |
| 22849 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22850 | for ac_config_target in $ac_config_targets |
| 22851 | do |
| 22852 | case "$ac_config_target" in |
| 22853 | # Handling of arguments. |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 22854 | "Mac/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 22855 | "Mac/PythonLauncher/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
| 22856 | "Mac/IDLE/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22857 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 22858 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 22859 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 22860 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 22861 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 22862 | { (exit 1); exit 1; }; };; |
| 22863 | esac |
| 22864 | done |
| 22865 | |
| 22866 | # If the user did not use the arguments to specify the items to instantiate, |
| 22867 | # then the envvar interface is used. Set only those that are not. |
| 22868 | # We use the long form for the default assignment because of an extremely |
| 22869 | # bizarre bug on SunOS 4.1.3. |
| 22870 | if $ac_need_defaults; then |
| 22871 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 22872 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 22873 | fi |
| 22874 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22875 | # Have a temporary directory for convenience. Make it in the build tree |
| 22876 | # simply because there is no reason to put it here, and in addition, |
| 22877 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22878 | # Create a temporary directory, and hook for its removal unless debugging. |
| 22879 | $debug || |
| 22880 | { |
| 22881 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 22882 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 22883 | } |
| 22884 | |
| 22885 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22886 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22887 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22888 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22889 | test -n "$tmp" && test -d "$tmp" |
| 22890 | } || |
| 22891 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22892 | tmp=./confstat$$-$RANDOM |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22893 | (umask 077 && mkdir $tmp) |
| 22894 | } || |
| 22895 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22896 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22897 | { (exit 1); exit 1; } |
| 22898 | } |
| 22899 | |
| 22900 | _ACEOF |
| 22901 | |
| 22902 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22903 | |
| 22904 | # |
| 22905 | # CONFIG_FILES section. |
| 22906 | # |
| 22907 | |
| 22908 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 22909 | # This happens for instance when ./config.status config.h |
| 22910 | if test -n "\$CONFIG_FILES"; then |
| 22911 | # Protect against being on the right side of a sed subst in config.status. |
| 22912 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 22913 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 22914 | s,@SHELL@,$SHELL,;t t |
| 22915 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 22916 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 22917 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 22918 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 22919 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 22920 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 22921 | s,@exec_prefix@,$exec_prefix,;t t |
| 22922 | s,@prefix@,$prefix,;t t |
| 22923 | s,@program_transform_name@,$program_transform_name,;t t |
| 22924 | s,@bindir@,$bindir,;t t |
| 22925 | s,@sbindir@,$sbindir,;t t |
| 22926 | s,@libexecdir@,$libexecdir,;t t |
| 22927 | s,@datadir@,$datadir,;t t |
| 22928 | s,@sysconfdir@,$sysconfdir,;t t |
| 22929 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 22930 | s,@localstatedir@,$localstatedir,;t t |
| 22931 | s,@libdir@,$libdir,;t t |
| 22932 | s,@includedir@,$includedir,;t t |
| 22933 | s,@oldincludedir@,$oldincludedir,;t t |
| 22934 | s,@infodir@,$infodir,;t t |
| 22935 | s,@mandir@,$mandir,;t t |
| 22936 | s,@build_alias@,$build_alias,;t t |
| 22937 | s,@host_alias@,$host_alias,;t t |
| 22938 | s,@target_alias@,$target_alias,;t t |
| 22939 | s,@DEFS@,$DEFS,;t t |
| 22940 | s,@ECHO_C@,$ECHO_C,;t t |
| 22941 | s,@ECHO_N@,$ECHO_N,;t t |
| 22942 | s,@ECHO_T@,$ECHO_T,;t t |
| 22943 | s,@LIBS@,$LIBS,;t t |
| 22944 | s,@VERSION@,$VERSION,;t t |
| 22945 | s,@SOVERSION@,$SOVERSION,;t t |
| 22946 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 22947 | s,@UNIVERSALSDK@,$UNIVERSALSDK,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22948 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 22949 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 22950 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 22951 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 22952 | s,@FRAMEWORKINSTALLFIRST@,$FRAMEWORKINSTALLFIRST,;t t |
| 22953 | s,@FRAMEWORKINSTALLLAST@,$FRAMEWORKINSTALLLAST,;t t |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 22954 | s,@FRAMEWORKALTINSTALLFIRST@,$FRAMEWORKALTINSTALLFIRST,;t t |
| 22955 | s,@FRAMEWORKALTINSTALLLAST@,$FRAMEWORKALTINSTALLLAST,;t t |
| 22956 | s,@FRAMEWORKUNIXTOOLSPREFIX@,$FRAMEWORKUNIXTOOLSPREFIX,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22957 | s,@MACHDEP@,$MACHDEP,;t t |
| 22958 | s,@SGI_ABI@,$SGI_ABI,;t t |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 22959 | s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 22960 | s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 22961 | s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 22962 | s,@EXPORT_MACOSX_DEPLOYMENT_TARGET@,$EXPORT_MACOSX_DEPLOYMENT_TARGET,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22963 | s,@CC@,$CC,;t t |
| 22964 | s,@CFLAGS@,$CFLAGS,;t t |
| 22965 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 22966 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 22967 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 22968 | s,@EXEEXT@,$EXEEXT,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22969 | s,@OBJEXT@,$OBJEXT,;t t |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 22970 | s,@CXX@,$CXX,;t t |
| 22971 | s,@MAINCC@,$MAINCC,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22972 | s,@CPP@,$CPP,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22973 | s,@EGREP@,$EGREP,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22974 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 22975 | s,@LIBRARY@,$LIBRARY,;t t |
| 22976 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 22977 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 22978 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 22979 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 22980 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 22981 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 22982 | s,@LINKCC@,$LINKCC,;t t |
| 22983 | s,@RANLIB@,$RANLIB,;t t |
| 22984 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 22985 | s,@AR@,$AR,;t t |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 22986 | s,@SVNVERSION@,$SVNVERSION,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22987 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 22988 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 22989 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 22990 | s,@LN@,$LN,;t t |
| 22991 | s,@OPT@,$OPT,;t t |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 22992 | s,@BASECFLAGS@,$BASECFLAGS,;t t |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 22993 | s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22994 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 22995 | s,@SO@,$SO,;t t |
| 22996 | s,@LDSHARED@,$LDSHARED,;t t |
| 22997 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 22998 | s,@CCSHARED@,$CCSHARED,;t t |
| 22999 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 23000 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 23001 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23002 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 23003 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 23004 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 23005 | s,@LDLAST@,$LDLAST,;t t |
| 23006 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 23007 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 23008 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 23009 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 23010 | s,@TRUE@,$TRUE,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23011 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 23012 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 23013 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 23014 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 23015 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 23016 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 23017 | s,@LIBM@,$LIBM,;t t |
| 23018 | s,@LIBC@,$LIBC,;t t |
| 23019 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 23020 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 23021 | s,@SRCDIRS@,$SRCDIRS,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23022 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23023 | CEOF |
| 23024 | |
| 23025 | _ACEOF |
| 23026 | |
| 23027 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23028 | # Split the substitutions into bite-sized pieces for seds with |
| 23029 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 23030 | ac_max_sed_lines=48 |
| 23031 | ac_sed_frag=1 # Number of current file. |
| 23032 | ac_beg=1 # First line for current file. |
| 23033 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 23034 | ac_more_lines=: |
| 23035 | ac_sed_cmds= |
| 23036 | while $ac_more_lines; do |
| 23037 | if test $ac_beg -gt 1; then |
| 23038 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 23039 | else |
| 23040 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 23041 | fi |
| 23042 | if test ! -s $tmp/subs.frag; then |
| 23043 | ac_more_lines=false |
| 23044 | else |
| 23045 | # The purpose of the label and of the branching condition is to |
| 23046 | # speed up the sed processing (if there are no `@' at all, there |
| 23047 | # is no need to browse any of the substitutions). |
| 23048 | # These are the two extra sed commands mentioned above. |
| 23049 | (echo ':t |
| 23050 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 23051 | if test -z "$ac_sed_cmds"; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23052 | 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] | 23053 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23054 | 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] | 23055 | fi |
| 23056 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 23057 | ac_beg=$ac_end |
| 23058 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 23059 | fi |
| 23060 | done |
| 23061 | if test -z "$ac_sed_cmds"; then |
| 23062 | ac_sed_cmds=cat |
| 23063 | fi |
| 23064 | fi # test -n "$CONFIG_FILES" |
| 23065 | |
| 23066 | _ACEOF |
| 23067 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23068 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 23069 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 23070 | case $ac_file in |
| 23071 | - | *:- | *:-:* ) # input from stdin |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23072 | cat >$tmp/stdin |
| 23073 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 23074 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23075 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23076 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23077 | * ) ac_file_in=$ac_file.in ;; |
| 23078 | esac |
| 23079 | |
| 23080 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 23081 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 23082 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23083 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 23084 | X"$ac_file" : 'X\(//\)$' \| \ |
| 23085 | X"$ac_file" : 'X\(/\)' \| \ |
| 23086 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23087 | echo X"$ac_file" | |
| 23088 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23089 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23090 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23091 | /^X\(\/\).*/{ s//\1/; q; } |
| 23092 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23093 | { if $as_mkdir_p; then |
| 23094 | mkdir -p "$ac_dir" |
| 23095 | else |
| 23096 | as_dir="$ac_dir" |
| 23097 | as_dirs= |
| 23098 | while test ! -d "$as_dir"; do |
| 23099 | as_dirs="$as_dir $as_dirs" |
| 23100 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 23101 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23102 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 23103 | X"$as_dir" : 'X\(//\)$' \| \ |
| 23104 | X"$as_dir" : 'X\(/\)' \| \ |
| 23105 | . : '\(.\)' 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23106 | echo X"$as_dir" | |
| 23107 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23108 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23109 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23110 | /^X\(\/\).*/{ s//\1/; q; } |
| 23111 | s/.*/./; q'` |
| 23112 | done |
| 23113 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 23114 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 23115 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 23116 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23117 | |
| 23118 | ac_builddir=. |
| 23119 | |
| 23120 | if test "$ac_dir" != .; then |
| 23121 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 23122 | # A "../" for each directory in $ac_dir_suffix. |
| 23123 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 23124 | else |
| 23125 | ac_dir_suffix= ac_top_builddir= |
| 23126 | fi |
| 23127 | |
| 23128 | case $srcdir in |
| 23129 | .) # No --srcdir option. We are building in place. |
| 23130 | ac_srcdir=. |
| 23131 | if test -z "$ac_top_builddir"; then |
| 23132 | ac_top_srcdir=. |
| 23133 | else |
| 23134 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 23135 | fi ;; |
| 23136 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 23137 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 23138 | ac_top_srcdir=$srcdir ;; |
| 23139 | *) # Relative path. |
| 23140 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 23141 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 23142 | esac |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23143 | |
| 23144 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 23145 | # the directories may not exist. |
| 23146 | case `pwd` in |
| 23147 | .) ac_abs_builddir="$ac_dir";; |
| 23148 | *) |
| 23149 | case "$ac_dir" in |
| 23150 | .) ac_abs_builddir=`pwd`;; |
| 23151 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 23152 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 23153 | esac;; |
| 23154 | esac |
| 23155 | case $ac_abs_builddir in |
| 23156 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 23157 | *) |
| 23158 | case ${ac_top_builddir}. in |
| 23159 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 23160 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 23161 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 23162 | esac;; |
| 23163 | esac |
| 23164 | case $ac_abs_builddir in |
| 23165 | .) ac_abs_srcdir=$ac_srcdir;; |
| 23166 | *) |
| 23167 | case $ac_srcdir in |
| 23168 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 23169 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 23170 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 23171 | esac;; |
| 23172 | esac |
| 23173 | case $ac_abs_builddir in |
| 23174 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 23175 | *) |
| 23176 | case $ac_top_srcdir in |
| 23177 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 23178 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 23179 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 23180 | esac;; |
| 23181 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23182 | |
| 23183 | |
| 23184 | case $INSTALL in |
| 23185 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 23186 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 23187 | esac |
| 23188 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23189 | if test x"$ac_file" != x-; then |
| 23190 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 23191 | echo "$as_me: creating $ac_file" >&6;} |
| 23192 | rm -f "$ac_file" |
| 23193 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23194 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 23195 | # use $as_me), people would be surprised to read: |
| 23196 | # /* config.h. Generated by config.status. */ |
| 23197 | if test x"$ac_file" = x-; then |
| 23198 | configure_input= |
| 23199 | else |
| 23200 | configure_input="$ac_file. " |
| 23201 | fi |
| 23202 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23203 | sed 's,.*/,,'` by configure." |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23204 | |
| 23205 | # First look for the input files in the build tree, otherwise in the |
| 23206 | # src tree. |
| 23207 | ac_file_inputs=`IFS=: |
| 23208 | for f in $ac_file_in; do |
| 23209 | case $f in |
| 23210 | -) echo $tmp/stdin ;; |
| 23211 | [\\/$]*) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23212 | # Absolute (can't be DOS-style, as IFS=:) |
| 23213 | 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] | 23214 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 23215 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23216 | echo "$f";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23217 | *) # Relative |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23218 | if test -f "$f"; then |
| 23219 | # Build tree |
| 23220 | echo "$f" |
| 23221 | elif test -f "$srcdir/$f"; then |
| 23222 | # Source tree |
| 23223 | echo "$srcdir/$f" |
| 23224 | else |
| 23225 | # /dev/null tree |
| 23226 | { { 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] | 23227 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 23228 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23229 | fi;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23230 | esac |
| 23231 | done` || { (exit 1); exit 1; } |
| 23232 | _ACEOF |
| 23233 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23234 | sed "$ac_vpsub |
| 23235 | $extrasub |
| 23236 | _ACEOF |
| 23237 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23238 | :t |
| 23239 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 23240 | s,@configure_input@,$configure_input,;t t |
| 23241 | s,@srcdir@,$ac_srcdir,;t t |
| 23242 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 23243 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 23244 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 23245 | s,@builddir@,$ac_builddir,;t t |
| 23246 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 23247 | s,@top_builddir@,$ac_top_builddir,;t t |
| 23248 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 23249 | s,@INSTALL@,$ac_INSTALL,;t t |
| 23250 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 23251 | rm -f $tmp/stdin |
| 23252 | if test x"$ac_file" != x-; then |
| 23253 | mv $tmp/out $ac_file |
| 23254 | else |
| 23255 | cat $tmp/out |
| 23256 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23257 | fi |
| 23258 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23259 | done |
| 23260 | _ACEOF |
| 23261 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23262 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23263 | # |
| 23264 | # CONFIG_HEADER section. |
| 23265 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23266 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23267 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 23268 | # 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] | 23269 | # |
| 23270 | # ac_d sets the value in "#define NAME VALUE" lines. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23271 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 23272 | ac_dB='[ ].*$,\1#\2' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23273 | ac_dC=' ' |
| 23274 | ac_dD=',;t' |
| 23275 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23276 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23277 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23278 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23279 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23280 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23281 | 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] | 23282 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23283 | case $ac_file in |
| 23284 | - | *:- | *:-:* ) # input from stdin |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23285 | cat >$tmp/stdin |
| 23286 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 23287 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23288 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23289 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23290 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23291 | esac |
| 23292 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23293 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 23294 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23295 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23296 | # First look for the input files in the build tree, otherwise in the |
| 23297 | # src tree. |
| 23298 | ac_file_inputs=`IFS=: |
| 23299 | for f in $ac_file_in; do |
| 23300 | case $f in |
| 23301 | -) echo $tmp/stdin ;; |
| 23302 | [\\/$]*) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23303 | # Absolute (can't be DOS-style, as IFS=:) |
| 23304 | 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] | 23305 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 23306 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23307 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 23308 | echo "$f";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23309 | *) # Relative |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23310 | if test -f "$f"; then |
| 23311 | # Build tree |
| 23312 | echo "$f" |
| 23313 | elif test -f "$srcdir/$f"; then |
| 23314 | # Source tree |
| 23315 | echo "$srcdir/$f" |
| 23316 | else |
| 23317 | # /dev/null tree |
| 23318 | { { 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] | 23319 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 23320 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23321 | fi;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23322 | esac |
| 23323 | done` || { (exit 1); exit 1; } |
| 23324 | # Remove the trailing spaces. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23325 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23326 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23327 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23328 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23329 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 23330 | # `conftest.undefs', that substitutes the proper values into |
| 23331 | # config.h.in to produce config.h. The first handles `#define' |
| 23332 | # templates, and the second `#undef' templates. |
| 23333 | # And first: Protect against being on the right side of a sed subst in |
| 23334 | # config.status. Protect against being in an unquoted here document |
| 23335 | # in config.status. |
| 23336 | rm -f conftest.defines conftest.undefs |
| 23337 | # Using a here document instead of a string reduces the quoting nightmare. |
| 23338 | # Putting comments in sed scripts is not portable. |
| 23339 | # |
| 23340 | # `end' is used to avoid that the second main sed command (meant for |
| 23341 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 23342 | # See the Autoconf documentation for `clear'. |
| 23343 | cat >confdef2sed.sed <<\_ACEOF |
| 23344 | s/[\\&,]/\\&/g |
| 23345 | s,[\\$`],\\&,g |
| 23346 | t clear |
| 23347 | : clear |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23348 | 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] | 23349 | t end |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23350 | 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] | 23351 | : end |
| 23352 | _ACEOF |
| 23353 | # If some macros were called several times there might be several times |
| 23354 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 23355 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 23356 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 23357 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 23358 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23359 | |
| 23360 | # This sed command replaces #undef with comments. This is necessary, for |
| 23361 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 23362 | # 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] | 23363 | cat >>conftest.undefs <<\_ACEOF |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23364 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23365 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23366 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23367 | # Break up conftest.defines because some shells have a limit on the size |
| 23368 | # of here documents, and old seds have small limits too (100 cmds). |
| 23369 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23370 | 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] | 23371 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 23372 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23373 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23374 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23375 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23376 | # Write a limited-size here document to $tmp/defines.sed. |
| 23377 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 23378 | # Speed up: don't consider the non `#define' lines. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23379 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23380 | # Work around the forget-to-reset-the-flag bug. |
| 23381 | echo 't clr' >>$CONFIG_STATUS |
| 23382 | echo ': clr' >>$CONFIG_STATUS |
| 23383 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23384 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23385 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 23386 | rm -f $tmp/in |
| 23387 | mv $tmp/out $tmp/in |
| 23388 | ' >>$CONFIG_STATUS |
| 23389 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 23390 | rm -f conftest.defines |
| 23391 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23392 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23393 | rm -f conftest.defines |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23394 | echo ' fi # grep' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23395 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23396 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23397 | # Break up conftest.undefs because some shells have a limit on the size |
| 23398 | # of here documents, and old seds have small limits too (100 cmds). |
| 23399 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 23400 | rm -f conftest.tail |
| 23401 | while grep . conftest.undefs >/dev/null |
| 23402 | do |
| 23403 | # Write a limited-size here document to $tmp/undefs.sed. |
| 23404 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 23405 | # Speed up: don't consider the non `#undef' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23406 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23407 | # Work around the forget-to-reset-the-flag bug. |
| 23408 | echo 't clr' >>$CONFIG_STATUS |
| 23409 | echo ': clr' >>$CONFIG_STATUS |
| 23410 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 23411 | echo 'CEOF |
| 23412 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 23413 | rm -f $tmp/in |
| 23414 | mv $tmp/out $tmp/in |
| 23415 | ' >>$CONFIG_STATUS |
| 23416 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 23417 | rm -f conftest.undefs |
| 23418 | mv conftest.tail conftest.undefs |
| 23419 | done |
| 23420 | rm -f conftest.undefs |
| 23421 | |
| 23422 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23423 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 23424 | # use $as_me), people would be surprised to read: |
| 23425 | # /* config.h. Generated by config.status. */ |
| 23426 | if test x"$ac_file" = x-; then |
| 23427 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23428 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23429 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23430 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23431 | cat $tmp/in >>$tmp/config.h |
| 23432 | rm -f $tmp/in |
| 23433 | if test x"$ac_file" != x-; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23434 | 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] | 23435 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 23436 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 23437 | else |
| 23438 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 23439 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23440 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 23441 | X"$ac_file" : 'X\(//\)$' \| \ |
| 23442 | X"$ac_file" : 'X\(/\)' \| \ |
| 23443 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23444 | echo X"$ac_file" | |
| 23445 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23446 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23447 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23448 | /^X\(\/\).*/{ s//\1/; q; } |
| 23449 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23450 | { if $as_mkdir_p; then |
| 23451 | mkdir -p "$ac_dir" |
| 23452 | else |
| 23453 | as_dir="$ac_dir" |
| 23454 | as_dirs= |
| 23455 | while test ! -d "$as_dir"; do |
| 23456 | as_dirs="$as_dir $as_dirs" |
| 23457 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 23458 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23459 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 23460 | X"$as_dir" : 'X\(//\)$' \| \ |
| 23461 | X"$as_dir" : 'X\(/\)' \| \ |
| 23462 | . : '\(.\)' 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23463 | echo X"$as_dir" | |
| 23464 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23465 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23466 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23467 | /^X\(\/\).*/{ s//\1/; q; } |
| 23468 | s/.*/./; q'` |
| 23469 | done |
| 23470 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 23471 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 23472 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 23473 | { (exit 1); exit 1; }; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23474 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23475 | rm -f $ac_file |
| 23476 | mv $tmp/config.h $ac_file |
| 23477 | fi |
| 23478 | else |
| 23479 | cat $tmp/config.h |
| 23480 | rm -f $tmp/config.h |
| 23481 | fi |
| 23482 | done |
| 23483 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23484 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23485 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23486 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23487 | { (exit 0); exit 0; } |
| 23488 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23489 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23490 | ac_clean_files=$ac_clean_files_save |
| 23491 | |
| 23492 | |
| 23493 | # configure is writing to config.log, and then calls config.status. |
| 23494 | # config.status does its own redirection, appending to config.log. |
| 23495 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 23496 | # by configure, so config.status won't be able to write to it; its |
| 23497 | # output is simply discarded. So we exec the FD to /dev/null, |
| 23498 | # effectively closing config.log, so it can be properly (re)opened and |
| 23499 | # appended to by config.status. When coming back to configure, we |
| 23500 | # need to make the FD available again. |
| 23501 | if test "$no_create" != yes; then |
| 23502 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23503 | ac_config_status_args= |
| 23504 | test "$silent" = yes && |
| 23505 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23506 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23507 | $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] | 23508 | exec 5>>config.log |
| 23509 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 23510 | # would make configure fail if this is the last instruction. |
| 23511 | $ac_cs_success || { (exit 1); exit 1; } |
| 23512 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23513 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 23514 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 23515 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 23516 | if test ! -f Modules/Setup |
| 23517 | then |
| 23518 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 23519 | fi |
| 23520 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 23521 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 23522 | if test ! -f Modules/Setup.local |
| 23523 | then |
| 23524 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 23525 | fi |
| 23526 | |
| 23527 | echo "creating Makefile" |
| 23528 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 23529 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 23530 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 23531 | mv config.c Modules |